.single-product div.product .sf-product-main .woocommerce-product-gallery {
    position: relative;
}

@media (min-width: 961px) {
    body.single-product.sf-product-gallery-sticky div.product .sf-product-main .woocommerce-product-gallery {
        position: sticky;
    }
}

.single-product div.product .woocommerce-product-gallery .flex-direction-nav {
    position: absolute;
    top: -4px;
    right: 22px;
    left: auto;
    display: flex;
    gap: 12px;
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 6;
    background: transparent;
}

.single-product div.product .woocommerce-product-gallery .flex-direction-nav li {
    float: none;
    width: 44px;
    height: 44px;
    margin: 0;
}

.single-product div.product .woocommerce-product-gallery .flex-direction-nav a {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #053daa;
    box-shadow: none;
    color: #fff;
    font-size: 0;
    line-height: 0;
    text-indent: 0;
    opacity: 1;
    transform: none;
    cursor: pointer;
    transition: background-color .2s ease;
}

.single-product div.product .woocommerce-product-gallery .flex-direction-nav a::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.single-product div.product .woocommerce-product-gallery .flex-direction-nav a.flex-prev::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 5 8 12 15 19'/%3E%3C/svg%3E");
}

.single-product div.product .woocommerce-product-gallery .flex-direction-nav a.flex-next::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 5 16 12 9 19'/%3E%3C/svg%3E");
}

.single-product div.product .woocommerce-product-gallery .flex-direction-nav a:hover,
.single-product div.product .woocommerce-product-gallery .flex-direction-nav a:focus {
    background: #ff5500;
    color: #fff;
}

.single-product div.product .woocommerce-product-gallery .flex-direction-nav a:focus-visible {
    outline: 2px solid #ff5500;
    outline-offset: 3px;
}

.single-product div.product .woocommerce-product-gallery .flex-direction-nav a.flex-disabled {
    opacity: .45;
    cursor: default;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport {
    height: 596px !important;
}

@media (max-width: 960px) {
    .single-product div.product .woocommerce-product-gallery .flex-viewport {
        height: 462px !important;
    }
}

@media (max-width: 629px) {
    .single-product div.product .woocommerce-product-gallery .flex-viewport {
        height: 378px !important;
    }
}
