/**
 * Child theme styles. Loaded right after style.css (handle "flatsome-style").
 *
 * Section 1 was previously in style.css, section 2 in style.min.css; the order
 * is unchanged so the cascade is identical.
 */

/* ==== 1. Base overrides (formerly style.css) ==== */

.wpcf7 .wpcf7-not-valid-tip {
    color: var(--color-black);
}

a.remove {
    border: 1px solid var(--color-black);
    color: var(--color-black);
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.yith-wcwl-add-to-wishlist--link-style {
    display: none;
}

.mb-0 p {
    margin-bottom: 0 !important;
}

.blog-header-wrapper {
    text-align: center;
    padding-top: 30px;
}

.box-blog-post .overlay-link {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
}

.facetwp-load-more {
    margin-right: 0;
}

.ti-review-item *,
.ti-widget-container * {
    font-family: sans-serif !important;
    font-weight: normal !important;
    font-size: 0.9rem !important;
}

.ti-review-item > .ti-inner {
    background-color: transparent !important;
}

.wc_aelia_cs_currency_selector {
    padding: 0;
    font-size: var(--body-font-size-xsmall);
    text-transform: uppercase;

    & p {
        font-size: var(--body-font-size-xsmall);
    }
    & .selected_option {
        padding: 4px 12px 4px 4px;
        border: none;
        position: relative;
        &::before {
            height: 0.4rem;
            width: 0.4rem;
            top: 0.45rem !important;
            right: 0 !important;
        }
    }

    & .currency_flag {
        display: none;
    }

    & .currency_name {
        margin: 0;
        max-width: 320px;
        overflow: visible;
    }

    & .dropdown {
        padding: 10px;
        background-color: #f1f1f1;
        border: none;
    }
}

.wc_aelia_cs_currency_selector.active .selected_currency::before {
    top: 0.55rem !important;
}

/*************** Product Page 2026   ***************/
.single-product {
    & .row.row-small:has(.product-thumbnails) {
        & .vertical-thumbnails {
            flex-basis: 10%;
            max-width: 10%;
        }
        & .large-10 {
            flex-basis: 90%;
            max-width: 90%;
        }
    }
    & .unique-serial {
        display: none;
    }

    & .product-image-column h1.product-title {
        display: none;
    }
    & h1.product-title {
        font-size: 2.8rem !important;
    }

    & .product-price-shortcode {
        display: block;
        margin-bottom: 1.9rem;
    }

    & .product-price-shortcode:has(.product-shipping-class) {
        display: flex;
        justify-content: space-between;
    }
    & .info-stack {
        gap: 1rem;
        margin-bottom: 0.5rem;
        & .img {
            width: 24px !important;
        }
    }
    & .other-metals {
        margin-bottom: 2rem;
        & .other-metals__list {
            display: flex;
            flex-wrap: nowrap;
            gap: 1rem;
        }
    }
    & table.variations tr {
        display: flex;
        flex-direction: column;
    }

    & .variations tbody tr {
        margin-bottom: 0.5rem;
    }

    & table.variations th.label,
    table.variations td.value {
        width: 100%;

        & label {
            font-size: var(--body-font-size-small);
        }
    }

    .select2-container--default .select2-selection--single {
        background-color: transparent;
    }

    span.amount {
        color: var(--color-black);
        font-weight: normal;
        font-size: var(--body-font-size);
        white-space: nowrap;
    }

    .woocommerce-variation-price {
        display: flex;
        justify-content: space-between;
        font-size: var(--body-font-size);
        font-weight: normal;
        line-height: 1;
        text-transform: uppercase;
        color: var(--color-black);
        & span.amount {
            font-weight: normal;
        }
    }

    .woocommerce-variation-description {
        display: none;
    }

    & .ux-quantity {
        display: none !important;
    }

    & .add-to-cart-stack:not(:has(table.variations)) {
        & .button.is-link {
            display: none !important;
        }
    }

    & .add-to-cart-stack {
        position: relative;
        & .button.is-link.expand {
            position: absolute;
            top: -5px;
            right: 0;
            text-align: right;
            z-index: 99;
            line-height: 1;
            padding: 0;

            & span {
                text-transform: none !important;
                text-decoration: underline;
                line-height: 1;
            }
        }
    }

    & .added-to-cart-link {
        text-align: center;

        & .button {
            margin: 0;
        }
    }

    & .single_add_to_cart_button {
        width: 100%;
    }

    .woocommerce-variation-price {
        border: none;
        padding: 0 0 1em 0;
    }

    & .reset_variations {
        display: none !important;
    }

    & .stack.items-stretch {
        & .button span {
            text-decoration: underline;
        }
    }

    & .accordion-title {
        font-family: var(--heading-font-family);
        font-size: var(--body-font-size-small);
        padding: 0.8rem 0 0.8rem 0 !important;
    }
}

.single-product.has-carat {
    & .product-price-shortcode,
    & .add-to-cart-stack {
        display: none;
    }
}

.single-product.guldtackor,
.single-product.investment-gold {
    & .unique-serial {
        display: flex !important;
    }

    & .natural-diamonds {
        display: none;
    }
}
@media only screen and (max-width: 849px) {
    .single-product {
        & .row.row-small:has(.product-thumbnails) {
            & .vertical-thumbnails {
                display: none;
            }
            & .large-10 {
                flex-basis: 100%;
                max-width: 100%;
            }
            & .flickity-button {
                display: none;
            }
        }

        & .rank-math-breadcrumb p {
            margin: 0;
            margin-top: 1rem;
        }
        & .product-info-column h1.product-title {
            display: none;
        }
        & .product-image-column h1.product-title {
            display: block;
            text-align: left;
            margin-bottom: .5rem;
        }

        & h1.product-title {
            text-align: center;
            font-size: var(--h1-size) !important;
        }

        & .product-price-shortcode:has(.product-shipping-class) {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
    }
}

/* ==== 2. Components (formerly style.min.css) ==== */

@font-face {
    font-family: "Baskerville";
    src: url(../fonts/Baskerville.woff2) format("woff2");
    font-display: swap;
    font-weight: normal;
}
.grecaptcha-badge {
    visibility: hidden;
}
:root {
    --padding-size: 90px !important;
    --body-font-size: 0.9rem !important;
    --body-font-size-small: 0.75rem !important;
    --body-font-size-xsmall: 0.7rem !important;
    --body-font-size-xxsmall: 0.6rem !important;
    --body-font-weight: 300 !important;
    --heading-font-weight: normal !important;
    --h1-size: 2rem !important;
    --h1-size-xl: 2.75rem !important;
    --h2-size: 1.8rem !important;
    --h3-size: 1.25rem !important;
    --h4-size: 1rem !important;
    --h5-size: 0.75rem !important;
    --h6-size: 0.7rem !important;
    --btn-size: 0.75rem 1.5rem !important;
    --btn-size-sm: 0.5rem 1rem !important;
    --body-font-family: sans-serif !important;
    --heading-font-family: "Baskerville", serif !important;
    --color-beige: #f7f3e8 !important;
    --color-lightbeige: #faf8f3 !important;
    --color-darkbeige: #bb9b6a !important;
    --color-black: #494949 !important;
    --color-gray: #d9d9d9 !important;
    --color-gray-dark: #6b6b6b !important;
    --color-graige: #f9f7f8 !important;
}
@media only screen and (max-width: 849px) {
    :root {
        --padding-size: 30px !important;
        --h2-size: 1.25rem !important;
    }
}
.py {
    padding: var(--padding-size) 0 !important;
}
body {
    & p,
    .text:not(:has(p)) {
        font-size: var(--body-font-size);
        font-family: var(--body-font-family);
        font-weight: var(--body-font-weight);
        color: var(--color-black) !important;
    }
    & strong {
        font-weight: 500 !important;
    }
}
h1,
h2,
h3,
h4,
h5,
h6,
p .h1 {
    font-family: var(--heading-font-family) !important;
    font-weight: var(--heading-font-weight) !important;
    color: var(--color-black) !important;
    text-transform: none !important;
}
h1,
p .h1 {
    font-size: var(--h1-size) !important;
}
h2 {
    font-size: var(--h2-size) !important;
}
h3,
.h3,
.h3 h2 {
    font-size: var(--h3-size) !important;
}
h4 {
    font-size: var(--h4-size) !important;
}
h5 {
    font-size: var(--h5-size) !important;
}
h6 {
    font-size: var(--h5-size) !important;
}
h1.xl,
p .h1.xl {
    font-size: var(--h1-size-xl) !important;
}
.text-beige *,
.text-beige p {
    color: var(--color-darkbeige) !important;
    font-size: var(--body-font-size-small);
    text-transform: uppercase !important;
}
.text a,
.accordion a {
    font-size: var(--body-font-size);
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
    color: var(--color-black) !important;
}
.accordion a {
    display: inline;
}
.small p {
    font-size: var(--body-font-size-small);
}
.col:has(p, h2) {
    & li {
        font-weight: var(--body-font-weight);
        font-size: var(--body-font-size);
    }
}
@media only screen and (max-width: 849px) {
    .xs-mobile p {
        font-size: var(--body-font-size-small) !important;
    }
    .xs-mobile h3 {
        font-size: var(--h4-size) !important;
        line-height: 1 !important;
        margin-bottom: 0.5rem !important;
    }
    .usp-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        & .icon-box-text {
            text-align: center;
        }
        & .icon-box-img,
        .icon {
            margin: 0 !important;
            height: 30px !important;
            width: unset !important;
        }
    }
    .usp-display {
        padding: 0 30px;
        & .col {
            padding-bottom: 0 !important;
        }
    }
    .col-inner:has(.usp-box) {
        display: flex;
        flex-direction: column;
    }
}
.beige-bg {
    background-color: var(--color-lightbeige) !important;
}
.lightbeige-bg {
    background-color: var(--color-lightbeige) !important;
}
.button:not(.back-to-top, .wishlist-button, .zoom-button),
button#place_order,
.express-atc button {
    padding: 0.5rem 2rem !important;
    min-height: unset !important;
    line-height: 1 !important;
    background-color: #fff0;
    border: 1px solid var(--color-black);
    color: var(--color-black);
    font-weight: 400;
    font-size: var(--body-font-size-small);
    text-transform: uppercase;
    line-height: 1.6 !important;
    & span {
        font-family: var(--body-font-family);
        font-size: var(--body-font-size-small);
        color: var(--color-black);
        font-weight: 400;
        text-transform: uppercase;
    }
    &:hover {
        background-color: var(--color-black);
        border: 1px solid var(--color-black);
        color: #fff;
        & span {
            color: #fff;
        }
    }
}
.button.button-sm {
    padding: 0.3rem 1rem !important;
    font-size: var(--body-font-size-xsmall) !important;
}
.ux-relay__load-more-button {
    transition: all 0.3s;
    &:hover {
        color: #fff;
    }
}
.button.single_add_to_cart_button {
    background-color: var(--color-black);
    color: #fff;
    &:hover {
        color: #fff;
    }
}
.button.is-link.expand,
.button.is-link {
    border: none;
    padding: 0.3rem 0 !important;
    border: none;
    text-align: left;
    &:hover {
        border: none !important;
        & span {
            color: var(--color-black) !important;
        }
    }
}
.button.primary.filled {
    background-color: var(--color-black);
    border-color: var(--color-black);
    color: white !important;
    & span {
        color: white !important;
    }
}
.button.wishlist-button,
.button.icon {
    border: none !important;
    & i {
        color: var(--color-black);
    }
}
.button.expand {
    font-weight: var(--body-font-weight);
    & span {
        font-weight: var(--body-font-weight) !important;
    }
}
.button.selected {
    background-color: var(--color-black);
    color: #fff;
}
.woocommerce-product-gallery__image.is-selected img {
    transition: transform 0.5s;
    transform-origin: center center;
}
.gc-hero {
    position: relative;
}
.gc-hero__picture {
    display: block;
    line-height: 0;
}
.gc-hero__img {
    display: block;
    width: 100%;
    height: auto;
}
.gc-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    padding: clamp(16px, 4vw, 48px);
}
.gc-hero__inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
    pointer-events: auto;
    padding-bottom: calc(10% - 48px);
}
.gc-hero--align-left .gc-hero__inner {
    align-items: flex-start;
    text-align: left;
}
.gc-hero--align-right .gc-hero__inner {
    align-items: flex-end;
    text-align: right;
}
.gc-hero__heading {
    margin: 0;
    color: white !important;
    text-shadow: rgb(0 0 0 / 0.26) 0 0 10px;
}
.gc-hero__buttons {
    width: 25%;
    display: flex;
    gap: 1rem;
}
@media only screen and (max-width: 1800px) {
    .gc-hero__buttons {
        width: 30%;
    }
}
@media only screen and (max-width: 1500px) {
    .gc-hero__buttons {
        width: 35%;
    }
}
@media only screen and (max-width: 1000px) {
    .gc-hero__buttons {
        width: 50%;
    }
}
.gc-hero__buttons .button {
    flex: 1;
    margin: 0;
    background-color: rgb(255 255 255 / 0.8);
    border-color: #fff;
}
.gc-hero__buttons .button:hover {
    color: var(--color-black) !important;
    background-color: rgb(255 255 255) !important;
    box-shadow: none;
    border-color: white !important;
}
.gc-hero__buttons .button:hover span {
    color: var(--color-black) !important;
}
@media only screen and (max-width: 849px) {
    .gc-hero__buttons {
        flex-direction: column;
        width: auto;

        & .button {
            flex: unset !important;
            width: auto !important;
        }
    }
    .gc-hero__inner {
        padding-bottom: calc(33% - 48px);
    }
    .gc-hero__img {
        display: block;
        width: 100%;
        height: 600px;
        object-fit: cover;
    }
}
.top-divider {
    border-top: 1px solid var(--color-gray-dark);
    position: relative;
    &::after {
        content: "";
        position: absolute;
        width: 15px;
        height: 15px;
        left: 50%;
        top: -7.5px;
        border: 1px solid var(--color-gray-dark);
        background-color: #fff;
        transform: scale(-0.2, 1);
        transform: rotate(45deg);
    }
}
.no-margin p:last-child .no-margin h2,
.no-margin.h2 p {
    margin-bottom: 0 !important;
}
.text-column .col-inner {
    padding: 5% 25% !important;
}
@media only screen and (max-width: 1400px) {
    .text-column .col-inner {
        padding: 40px !important;
    }
}
@media only screen and (max-width: 849px) {
    .text-column .col-inner {
        padding: 25px !important;
    }
}
.text-column-wide .col-inner {
    padding: 5% 10% !important;
}
@media only screen and (max-width: 1400px) {
    .text-column-wide .col-inner {
        padding: 40px !important;
    }
}
.section-with-bg {
    background-color: #f1f1f1;
}
.collection-section .divider {
    margin: 3em 0 5em 0;
    background: var(--color-beige);
}
@media only screen and (max-width: 849px) {
    .collection-section .divider {
        margin: 2rem 0;
        background: var(--color-beige);
    }
}
.subpage-title {
    position: relative;
    & .col {
        padding-bottom: 0 !important;
        margin-bottom: -1rem;
    }
}
.lightbox-content .row:not(.row-collapse) {
    margin-left: auto;
    margin-right: auto;
}
.ux-search-submit {
    display: none !important;
}
.form-flat {
    color: var(--color-black) !important;
}
.ux-search-box {
    & .search-field {
        width: 50% !important;
        background: #fff0;
        border-radius: 0 !important;
        border: 1px solid var(--color-black) !important;
        color: var(--color-black) !important;
        font-size: var(--body-font-size);
        &::placeholder {
            color: var(--color-black) !important;
        }
    }
    & .live-search-results {
        display: none;
    }
    & .search-field {
        color: var(--color-black);
    }
}
.search-results {
    & .slider,
    hr,
    h4 {
        display: none;
    }
}
.mfp-bg.mfp-ready {
    background: #fff;
    opacity: 0.9;
}
.nav > li > a > i {
    font-size: var(--body-font-size) !important;
}
.nav > li > a > i.icon-menu {
    font-size: 1.5rem !important;
    padding-left: 0.5rem;
}
.header-nav > li > a {
    font-family: var(--body-font-family);
    font-weight: var(--body-font-weight);
    font-size: var(--body-font-size-small);
    letter-spacing: 1px;
    flex-wrap: nowrap;
    text-transform: uppercase !important;
}
.header-bottom {
    min-height: 1px !important;
    padding: 0.5rem 0;
    & .flex-row {
        justify-content: space-between;
        padding: 0 30px;
    }
    & .flex-left {
        flex-basis: 100%;
        & .nav-left {
            justify-content: space-between;
        }
    }
    & .flex-right {
        padding-left: 60px;
        & .nav-right {
            flex-direction: row;
            flex-wrap: nowrap;
            justify-content: flex-start;
            gap: 1.2rem;
            & li {
                margin: 0;
            }
        }
    }
}
& .cart-item .image-icon img {
    max-width: var(--body-font-size);
}
.ux-mini-cart-qty {
    display: none !important;
}
.header-top {
    .button span {
        font-size: var(--body-font-size-xsmall) !important;
    }
}
.header-main,
.header-top {
    & .header-language-dropdown {
        & .image-icon,
        .icon-image {
            display: none !important;
        }
        & .nav-dropdown {
            display: table !important;
            padding: 10px;
            min-width: 140px;
            background-color: #f1f1f1;
            & li {
                margin: 0 !important;
            }
        }
        & a {
            font-family: var(--body-font-family);
            font-weight: var(--body-font-weight);
            font-size: var(--body-font-size-xsmall);
            letter-spacing: 1px;
            text-transform: uppercase;
            color: var(--color-black);
        }
    }
    & .button span {
        font-family: var(--body-font-family);
        font-weight: var(--body-font-weight) !important;
        font-size: var(--body-font-size-small);
        letter-spacing: 1px;
        text-transform: uppercase;
    }
    & .top-bar-nav a {
        font-family: var(--body-font-family);
        font-weight: var(--body-font-weight) !important;
        font-size: var(--body-font-size-xsmall) !important;
        letter-spacing: 1px;
        text-transform: uppercase;
    }
    & .account-link-mobile,
    .wishlist-link {
        color: var(--color-black);
    }
}
.current-dropdown .cart-icon strong {
    background-color: transparent !important;
}
@media only screen and (max-width: 849px) {
    #logo {
        width: 150px !important;
    }
}
.nav-pagination > li > a,
.nav-pagination > li > .current {
    font-weight: var(--body-font-weight);
    font-size: var(--body-font-size-small);
    border-width: 1px;
}
.nav-pagination .next {
    background: none !important;
}
.nav.nav-sidebar {
    & a {
        font-family: var(--body-font-family);
        font-weight: var(--body-font-weight);
        font-size: var(--body-font-size-small);
        letter-spacing: 1px;
    }
    & .sub-menu a {
        letter-spacing: unset;
    }
    & .toggle i {
        font-size: var(--body-font-size);
    }
}
.sub-menu {
    & a {
        font-size: var(--body-font-size-small);
    }
    & .banner {
        min-height: 100%;
    }
    & .menu-heading p {
        font-family: var(--body-font-family);
        font-size: var(--body-font-size-small);
        font-weight: var(--body-font-weight);
        margin-bottom: 7px;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #222;
    }
}
.mobile-sidebar {
    & li {
        & a {
            font-family: var(--body-font-family);
            font-weight: var(--body-font-weight);
            font-size: var(--body-font-size);
            text-transform: uppercase !important;
        }
        & ul li a {
            font-family: var(--body-font-family);
            font-weight: var(--body-font-weight);
            font-size: var(--body-font-size);
            text-transform: initial !important;
        }
    }
    .nav-vertical li li.menu-item-has-children > a {
        font-family: var(--body-font-family);
        font-weight: var(--body-font-weight);
        font-size: var(--body-font-size-small);
        color: var(--color-black);
        text-transform: uppercase !important;
    }
    .active > .children {
        padding-bottom: 0 !important;
    }
    .nav-vertical li li.menu-item-has-children {
        margin-bottom: 0 !important;
    }
    .nav-vertical li:last-child {
        margin-bottom: 1em !important;
    }
}
.seo-text .bottom-description-inner {
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}
.seo-text .bottom-description-inner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #fff0 0%, #fff 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.seo-text .bottom-description-inner.open {
    max-height: none;
}
.seo-text .bottom-description-inner.open::after {
    opacity: 0;
}
.seo-text .button-wrapper {
    margin-top: 2rem;
}
.facetwp-type-pager {
    text-align: center;
    & .facetwp-load-more {
        margin-top: 1rem;
        padding: 0.5rem 2rem !important;
        min-height: unset !important;
        line-height: 1 !important;
        background-color: #fff0;
        border: 1px solid var(--color-black);
        color: var(--color-black);
        font-weight: 400;
        font-size: var(--body-font-size-small);
        text-transform: uppercase;
        line-height: 1.6 !important;
    }
}
.category-title {
    padding-left: calc(3% - 15px) !important;
    padding-right: calc(3% - 15px) !important;
    padding-bottom: 0 !important;
    z-index: 40;
    & .rank-math-breadcrumb {
        p {
            font-size: var(--body-font-size-small);
            color: var(--color-black);
        }
    }
    & .filter-wrapper {
        background-color: #fff;
        & .accordion-title {
            margin-bottom: 0;
        }
        & .accordion-inner {
            display: block;
            padding: 0;
            margin: 0;
        }
    }
    & .filter-wrapper.fixed {
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
        width: 100%;
        & .rank-math-breadcrumb p {
            margin-bottom: 0.5rem;
        }
        & .filter-column {
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
    }
    & .mb-sm {
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
    }
    & .child-category-buttons {
        margin-bottom: 0.5rem;
    }
    & .filter-options,
    .child-category-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        & .button {
            margin: 0 !important;
            flex-shrink: 0;
        }
        & .facetwp-type-search {
            flex-basis: 25%;
            & i {
                display: none;
            }
        }
        & .facetwp-type-sort {
            position: relative;
            & select {
                margin: 0;
                height: 100%;
                background: #fff0;
                outline: none;
                border: 1px solid var(--color-black);
                position: relative;
            }
            &::after {
                content: "";
                width: 0;
                height: 0;
                border-left: 5px solid #fff0;
                border-right: 5px solid #fff0;
                border-top: 5px solid #333;
                position: absolute;
                top: 0;
                right: 5px;
                bottom: 0;
                margin: auto;
                transition: ease-in 0.15s;
            }
        }
        & .facetwp-input-wrap {
            width: 100%;
        }
    }
    & .facetwp-type-fselect {
        width: 15%;
    }
    & .facetwp-facet {
        margin: 0;
        height: 100%;
        min-height: 37px !important;
        & .fs-wrap {
            width: 100%;
            min-height: 37px !important;
            font-family: var(--body-font-family);
            font-size: var(--body-font-size-small);
            color: var(--color-black);
            & .fs-label-wrap {
                padding: 8px 24px !important;
                height: auto !important;
                min-height: 37px !important;
            }
            & .fs-label-wrap,
            .fs-label {
                display: flex;
                align-items: center;
                flex-wrap: nowrap;
                height: 100%;
                border-color: var(--color-black);
                font-size: var(--body-font-size-small);
            }
            & .fs-label {
                padding: 0;
            }
        }
        & .fs-search input {
            margin: 0;
        }
    }
}
@media only screen and (max-width: 849px) {
    .category-title {
        padding-left: calc(3% - 15px) !important;
        padding-right: calc(3% - 15px) !important;
        z-index: 30;
        & .mb-sm {
            margin-bottom: 0.5rem;
            margin-top: 0.5rem;
        }
        & .child-category-buttons {
            flex-wrap: nowrap;
            flex-direction: row;
            overflow-x: scroll;
            -ms-overflow-style: none;
            scrollbar-width: none;
            &::-webkit-scrollbar {
                display: none;
            }
        }
        & .filter-options {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            & .button {
                margin: 0 !important;
            }
            & .facetwp-type-search {
                flex-basis: 25%;
                & i {
                    display: none;
                }
            }
            & .facetwp-type-fselect {
                width: 100%;
            }
            & .facetwp-input-wrap {
                width: 100%;
            }
        }
        & .facetwp-facet {
            flex-basis: 100%;
            & .fs-wrap {
                width: 100%;
                height: 100%;
                & .fs-label-wrap {
                    padding: 0.5rem 2rem;
                }
            }
        }
    }
}
#yith-wcwl-message,
#yith-wcwl-popup-message {
    font-family: var(--heading-font-family) !important;
    font-weight: normal !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.clamp-width {
    padding: 0 25%;
}
.box.no-hover {
    border: none;
    &:hover {
        border: none;
    }
}
@media only screen and (max-width: 849px) {
    .box.align-heading {
        & .box-text {
            padding: 1rem;
            position: relative;
        }
        & .h3 {
            position: absolute;
            top: 1rem;
            right: 0;
            left: 0;
            width: 100%;
            padding: 0 1rem;
            & h2 {
                font-size: 1rem !important;
            }
        }
        & .p {
            padding-top: 50px;
        }
    }
}
.box {
    border: 1px solid #fff0;
    & a.plain {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 10;
    }
    &:hover {
        border: 1px solid var(--color-black);
        & .image-cover:has(img.show-on-hover) {
            & img:not(.show-on-hover) {
                opacity: 0;
            }
        }
        & .box-image .express-atc {
            opacity: 1 !important;
        }
    }
    & .box-image {
        background-color: var(--color-graige);
        & .express-atc {
            position: absolute;
            bottom: 3px;
            left: 0;
            right: 0;
            z-index: 30;
            transition: 0.3s ease-in-out;
            background-color: rgb(255 255 255 / 0.5);
            padding: 1.5rem 2rem;
            opacity: 0;
            transition: all 0.3s ease-in-out;
            & form {
                margin: 0;
            }
            & .button {
                font-size: var(--body-font-size-small) !important;
                width: 100%;
                text-align: center;
                position: absolute;
                top: 0;
                right: 0;
                bottom: 0;
                left: 0;
            }
        }
        & .image-cover {
            padding-top: 125%;
        }
        & img {
            transition: unset !important;
        }
        & img.show-on-hover {
            filter: unset;
            background-color: var(--color-graige);
        }
    }
    & .top.right.show-on-hover {
        z-index: 60;
    }
    & .box-text {
        padding: 15px;
        & h2 {
            font-size: var(--h4-size);
        }
        & .variable-text {
            display: flex;
            align-items: center;
            gap: 8px;
            & i {
                line-height: 1.6;
            }
        }
        & .has-diamond-textwrapper {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        & span,
        p {
            font-weight: var(--body-font-weight);
            color: var(--color-black);
            font-size: var(--body-font-size-small);
        }
        & span.price:has(.shipping-class) {
            display: flex;
            justify-content: space-between;
        }
    }
    & .box-text.text-center p {
        font-size: var(--body-font-size-small);
    }
    & span.amount,
    span.amount span {
        font-size: var(--body-font-size-small);
        font-family: var(--body-font-family);
        font-weight: var(--body-font-weight);
        color: var(--color-black);
    }
}
@media only screen and (max-width: 849px) {
    .box {
        border: none !important;
        & .box-text {
            & span.price:has(.shipping-class) {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
            }
            & .has-diamond-textwrapper {
                flex-direction: column;
                align-items: start;
            }
        }
        &:hover {
            border: none;
            & .image-cover:has(img.show-on-hover) {
                & img:not(.show-on-hover) {
                    opacity: 1;
                }
            }
        }
    }
}
.product-small:has(.out-of-stock-label) {
    pointer-events: none;
}
.product-small {
    & .out-of-stock-label {
        top: calc(50% - 30px);
        padding: 0;
        font-size: var(--body-font-size);
        font-family: var(--body-font-family);
        font-weight: var(--body-font-weight);
        color: var(--color-black) !important;
        & p {
            margin: 0;
            line-height: 60px;
        }
    }
    & .out-of-stock-label:not(:has(p)) {
        line-height: 60px;
    }
    & .badge-container {
        margin: 1rem;
    }
    & .badge {
        margin: 0;
        width: auto;
        height: auto;
    }
    & .badge-inner.secondary.on-sale {
        font-weight: var(--body-font-weight);
        font-size: var(--body-font-size-small);
        padding: 0.6rem 0.75rem;
        border-radius: 0;
        background-color: var(--color-beige);
        color: var(--color-black);
    }
    & .image-tools.top.right {
        padding: 1rem;
    }
    & .wishlist-button {
        margin: 0;
        background-color: var(--color-beige);
        color: var(--color-black);
        border-radius: 0!important;
    }
}
.product-small.col {
    & .col-inner {
        height: 100%;
        border: 1px solid #fff0;
    }
    &:hover .col-inner {
        border: 1px solid var(--color-black);
    }
    & .box {
        border: 1px solid #fff0;
    }
}
.product-small:not(.product-type-variable) {
    & .shipping-class {
        display: none;
    }
}
.moreProducts {
    margin-top: -90px;
}
.archive .row.row-small {
    max-width: 100% !important;
}
.archive .subpage-title {
    padding: 60px 0;
}
.product-section .row-slider,
.full-width-row,
.up-sells .row,
.product-section .row {
    padding-left: 3% !important;
    padding-right: 3% !important;
    max-width: 100% !important;
}
.section.py:has(.row-large, .medium-6, h2) {
    & h2 {
        font-size: var(--h4-size) !important;
    }
    & p {
        font-size: var(--body-font-size-small) !important;
    }
}
.product-row {
    justify-content: center !important;
}
@media only screen and (max-width: 850px) {
    .box-category .box-text,
    .product-small .box-text {
        height: auto !important;
    }
    .clamp-width {
        padding: 0;
    }
    .product-small.col {
        & .col-inner {
            height: 100%;
            border: none;
        }
        &:hover .col-inner {
            border: none;
        }
        & .box {
            border: none;
        }
    }
}
@media only screen and (max-width: 48em) {
    .box-category .box-text,
    .product-small .box-text {
        padding: 10px 0 0 0;
    }
}
.product-section-title-upsell {
    display: none;
}
.product-section {
    border: none;
}
.previous svg,
.next svg {
    display: none;
}
.previous {
    background: url(../img/angle-left-sharp-thin.svg) !important;
    background-repeat: no-repeat !important;
    left: 1% !important;
}
.next {
    background: url(../img/angle-right-sharp-thin.svg) !important;
    background-repeat: no-repeat !important;
    right: 1% !important;
}
.flickity-prev-next-button {
    opacity: 1;
    width: 15px;
}
.slider-nav-push:not(.slider-nav-reveal) .flickity-prev-next-button {
    margin-top: 0 !important;
}
.product-small .product-title a,
.diamond-spec .short-product-title {
    font-family: sans-serif !important;
    font-weight: 300 !important;
    font-size: var(--body-font-size-small);
}
.product-small h2 {
    font-size: 1.15rem !important;
}
.shop-page-title {
    text-align: center;
    font-size: 30px;
    text-transform: capitalize;
    & p {
        text-transform: none !important;
    }
    & .text-beige p {
        text-transform: uppercase !important;
    }
}
.shop-page-title .breadcrumbs,
.shop-page-title .category-filtering {
    display: none;
}
.collection-section {
    padding-left: 3% !important;
    padding-right: 3% !important;
    max-width: 100% !important;
}
.collection-section .two-products .col:first-child {
    padding-right: 9.8px !important;
}
.collection-section .two-products .col:last-child {
    padding-left: 9.8px !important;
}
.inspo-banner {
    height: 100%;
}
@media only screen and (max-width: 849px) {
    .collection-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
        & .col-inner:has(.banner) {
            margin: 0 !important;
        }
    }
    .inspo-banner {
        height: 400px !important;
    }
    .product-small h2 {
        font-size: 1rem !important;
    }
    .content-area:has(.collection-section, .subpage-title) {
        & .subpage-title {
            padding-bottom: 0 !important;
        }
    }
}
.four-visible .col {
    display: none;
}
.four-visible .col:nth-child(1),
.four-visible .col:nth-child(2),
.four-visible .col:nth-child(3),
.four-visible .col:nth-child(4) {
    display: block !important;
}
.woocommerce-product-gallery__image,
.pswp__img,
.product-small .box-image:hover {
    background-color: var(--color-graige);
}
.woocommerce-product-gallery__image img {
    background-color: var(--color-graige);
}
.product-thumbnails a {
    background-color: var(--color-graige);
}
.product-thumbnails .is-nav-selected a img {
    border-color: var(--color-gray-dark);
}

.single-product {
    & .badge-container {
        margin: 1rem!important;

        & .badge {
            font-size: var(--body-font-size-small);
            border-radius: 0;

            & .badge-inner {
                background-color: var(--color-beige);
                color: var(--color-black);
                font-weight: normal!important;
                padding: .6rem .75rem;
                border-radius: 0;
            }
        }
    }
}

.has-equal-box-heights .box-image {
    padding-top: unset !important;
}
.custom-product-page .product-images *:active,
.custom-product-page .product-images *:focus,
.custom-product-page .product-images *,
.custom-product-page .product-images a:active,
.custom-product-page .product-images a:focus {
    outline: none;
    border: none;
}
.woocommerce-product-gallery img,
.woocommerce-product-gallery figure {
    border: none;
    outline: none;
    overflow: hidden;
}
.wishlist_table {
    & .product-stock-status {
        display: none;
    }
}
@media only screen and (max-width: 849px) {
    .product-row .text {
        padding: 0 30px;
    }
}
.select2-results__option {
    margin: 0 !important;
    padding: 0;
    font-size: var(--body-font-size-small) !important;
}
.icon-box-img {
    width: auto !important;
    height: 20px !important;
    & svg {
        min-height: 20px !important;
        max-height: 20px !important;
        padding: 0 !important;
        overflow: visible !important;
        width: auto;
    }
    & img {
        width: 20px !important;
    }
}
.icon-box {
    & p {
        margin-bottom: 0 !important;
    }
}
.icon-box-center .icon-box-img {
    height: 30px !important;
    & svg {
        min-height: 30px !important;
        max-height: 30px !important;
    }
    & img {
        width: 30px !important;
    }
}
.accordion {
    & .accordion-title {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        border: none;
        font-size: var(--body-font-size-small);
        font-weight: var(--body-font-weight);
        text-transform: uppercase;
        margin-right: 1em;
        margin-bottom: 1em;
        color: var(--color-black);
    }
    & .active {
        background-color: unset;
    }
    & .toggle {
        position: relative;
        left: unset;
        top: unset;
        transform-origin: unset;
        margin: unset;
        width: unset;
        height: unset;
        line-height: 0;
        & i {
            line-height: 0;
        }
    }
    & .accordion-inner {
        padding: 0 0 0 8px;
        margin-bottom: 1em;
        & p {
            font-size: var(--body-font-size-small);
        }
    }
}
.read-more-tab .accordion-title {
    border: none;
    padding: 0;
    display: flex;
    flex-direction: row-reverse;
    align-content: center;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: var(--body-font-size-small);
    font-weight: var(--body-font-weight) !important;
}
.read-more-tab p {
    font-size: var(--body-font-size) !important;
    font-weight: var(--body-font-weight) !important;
}
.read-more-tab button {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    width: auto !important;
}
.read-more-tab .active,
.faq-tabs .active {
    font-weight: 400;
    background-color: transparent !important;
}
.read-more-tab .accordion-inner {
    padding: 15px !important;
}
.faq-tabs {
    & .accordion-title {
        font-size: var(--body-font-size);
        border-top: 1px solid var(--color-gray);
        margin: 0;
        padding: 0.8rem;
        text-transform: none;
    }
    .active {
        font-weight: var(--body-font-weight);
        border-top: 1px solid var(--color-black);
    }
    .accordion-inner {
        padding: 0 0 0.8rem 0.8rem;
        & p {
            font-size: var(--body-font-size);
        }
    }
}
.faq-tabs .toggle {
    left: auto !important;
    right: 0 !important;
}
.full-footer {
    & .ux-menu-title p {
        font-family: var(--body-font-family);
    }
    & .ux-menu-link a,
    .bottom-footer p,
    a {
        font-size: var(--body-font-size-small);
        min-height: unset;
    }
    & .payment-icon {
        background: #fff0;
    }
}
@media only screen and (max-width: 1200px) {
    .stack:has(.ux-menu) {
        flex-wrap: wrap;
        & .ux-menu {
            max-width: 33%;
            min-width: 33%;
            flex-basis: 33%;
        }
    }
}
@media only screen and (max-width: 849px) {
    .stack:has(.ux-menu) {
        flex-wrap: wrap;
        & .ux-menu {
            max-width: 100%;
            min-width: 100%;
            flex-basis: 100%;
            margin-bottom: 1rem !important;
            & p {
                margin-bottom: 0 !important;
            }
        }
    }
    .full-footer .text-center {
        text-align: left !important;
    }
}
.absolute-footer {
    display: none !important;
}
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-black);
}

input[type="radio"] {
    /* Disable the browser's default radio button styles */
    appearance: none;
    margin: 0 0.5rem 0 0;

    /* Recreate the circle container */
    border: 1px solid var(--color-black);
    background: white;
    border-radius: 50%;

    /* Center our dot in the container */
    display: inline-grid;
    place-content: center;

    /* Use a pseudo-element to display our "dot" */
    &::before {
        content: "";
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 50%;
    }

    /* And display it when the radio button is checked */
    &:checked::before {
        background: var(--color-black);
    }
}
label {
    line-height: 1;
}
.wpcf7-text {
    box-shadow: none !important;
    border: 1px solid #222 !important;
    padding: 15px 30px !important;
    height: auto !important;
    width: 100% !important;
}
.wpcf7-textarea {
    box-shadow: none;
    border: 1px solid #222;
    padding: 15px 30px !important;
    resize: none;
}
.wpcf7-textarea:focus,
.wpcf7-text:focus {
    box-shadow: none;
    background-color: #ddd !important;
}
.wpcf7-text::placeholder,
.wpcf7-textarea::placeholder {
    font-family: "Baskerville", serif !important;
    font-weight: normal !important;
}
label {
    font-weight: var(--body-font-weight);
    font-size: var(--body-font-size-small);
    color: var(--color-black);
}
.form-container {
    display: flex;
    flex-direction: row;
}
.-sdr .title {
    margin: 20px 0 10px 0;
    font-size: var(--body-font-size);
}
.sdr-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
@media only screen and (max-width: 48em) {
    .sdr-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }
    .sdr-wrapper .wpcf7-form-control-wrap {
        margin-bottom: 30px;
    }
    .sdr-wrapper .ideal-budget {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .sdr-wrapper .ideal-budget .wpcf7-list-item {
        width: 33.33%;
    }
}
.-sdr .form-half-2-3 {
    width: 66%;
    padding-right: 100px;
}
.-sdr .form-half-1-3 {
    width: 33%;
    padding-left: 15px;
}
.-sdr hr {
    margin-bottom: 30px;
}
@media only screen and (max-width: 1000px) {
    .form-container {
        display: flex;
        flex-direction: column;
        padding: 0 30px;
    }
    .-sdr .form-half-2-3 {
        width: 100%;
        padding-right: 0;
    }
    .-sdr .form-half-1-3 {
        width: 100%;
        padding-left: 0;
    }
}
.imgcheckbox,
.-sdr .carat-weight .wpcf7-checkbox,
.-sdr .ideal-budget .wpcf7-checkbox {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-content: center;
}
.imgcheckbox label {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: auto !important;
    margin-right: 15px;
}
@media only screen and (max-width: 1000px) {
    .imgcheckbox,
    .-sdr .carat-weight .wpcf7-checkbox,
    .-sdr .ideal-budget .wpcf7-checkbox {
        flex-wrap: wrap;
    }
    .imgcheckbox label {
        width: 10%;
    }
}
@media only screen and (max-width: 48em) {
    .imgcheckbox label {
        width: 20%;
        margin-bottom: 1em;
    }
}
.imgcheckbox img {
    min-height: 50px;
    min-width: 50px;
    max-height: 50px;
    max-width: 50px;
    height: 50px;
    width: 50px;
    object-fit: cover;
    padding-bottom: 10px;
    box-sizing: content-box;
}
.checkboxlabel,
.carat-weight .wpcf7-list-item-label,
.ideal-budget .wpcf7-list-item-label {
    font-size: 12px;
    line-height: 1;
    padding: 8px 10px;
    transition: all 0.2s ease-in-out;
    border-radius: 3px;
    font-weight: 400;
}
input.hidecheckbox {
    visibility: hidden;
    position: absolute;
}
.imgcheckbox label > input + img + span,
.imgcheckbox label > input + img {
    cursor: pointer;
}
.imgcheckbox label > input + img {
    opacity: 0.5;
}
.imgcheckbox label > input:checked + img + span {
    background: #f7f3e8;
}
.imgcheckbox label > input:checked + img {
    opacity: 1;
}
.-sdr .carat-weight .wpcf7-list-item,
.-sdr .ideal-budget .wpcf7-list-item {
    padding: 0;
    height: 100%;
}
.-sdr .carat-weight input,
.-sdr .ideal-budget input {
    visibility: hidden;
    position: absolute;
}
.-sdr .carat-weight label > input:checked + span,
.-sdr .ideal-budget label > input:checked + span {
    background: #f7f3e8;
}
.-sdr input[type="number"] {
    box-shadow: none;
    border: 1px solid #222 !important;
    padding: 15px;
    width: 110px;
    text-align: center;
    font-size: var(--body-font-size-small);
    margin-bottom: 0;
    position: relative;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}
@media only screen and (max-width: 449px) {
    .single-product .upsells-wrapper .row .col:nth-child(3) {
        display: none;
    }
}
/* Cookiebot banner (injected at runtime via Google Tag Manager). */
#CybotCookiebotDialogHeader {
    display: none !important;
}
.CybotCookiebotDialogContentWrapper {
    flex-direction: column !important;
}
#CybotCookiebotDialogTabContent {
    margin: 0 !important;
    padding-bottom: 16px !important;
}
.CybotCookiebotScrollContainer {
    width: 100% !important;
    min-height: none !important;
    padding: 0 0 16px 0 !important;
}
#CybotCookiebotDialogBodyContentText {
    font-family: sans-serif !important;
    letter-spacing: none !important;
    line-height: 1.6 !important;
}
.CybotCookiebotDialogBodyBottomWrapper {
    margin: 0 !important;
    padding: 0 !important;
}
.CybotCookiebotDialogBodyLevelButtonDescription {
    font-weight: normal !important;
}
#CybotCookiebotDialogBodyButtonsWrapper {
    flex-direction: row-reverse !important;
    gap: 16px;
}
.CybotCookiebotDialogBodyLevelButtonWrapper {
    margin: 0 !important;
}
#CybotCookiebotDialogBodyFieldsetInnerContainer {
    gap: 16px;
}
#CybotCookiebotDialogBodyButtons {
    max-width: none !important;
}
.CybotCookiebotDialogBodyButton {
    width: auto !important;
    margin: 0 !important;
    padding: 0.02rem 2rem !important;
    font-weight: normal !important;
    border-radius: 0 !important;
}
#CybotCookiebotDialogFooter {
    position: relative !important;
}
.CybotCookiebotFader {
    display: none !important;
}
@media only screen and (max-width: 1279px) {
    #CybotCookiebotDialog {
        left: 0 !important;
        right: 0;
        bottom: 0;
        top: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        transform: none !important;
        border-radius: 0 !important;
    }
    .CybotCookiebotDialogBodyLevelButtonWrapper {
        width: calc(25% - 16px) !important;
        padding: 8px 0 !important;
        border: none !important;
        align-items: flex-start !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 16px;
        & label {
            margin-bottom: 0 !important;
        }
    }
    #CybotCookiebotDialogBodyLevelButtonsSelectPane {
        border: none !important;
    }
}
@media only screen and (max-width: 849px) {
    #CybotCookiebotDialog {
        left: 0 !important;
        right: 0;
        bottom: 0;
        top: auto !important;
        max-width: 100% !important;
        width: 100% !important;
        transform: none !important;
        border-radius: 0 !important;
    }
    .CybotCookiebotScrollContainer {
        padding: 0 !important;
        min-height: 1px !important;
    }
    #CybotCookiebotDialogBodyContent {
        padding: 8px !important;
    }
    #CybotCookiebotDialogTabContent {
        padding-bottom: 0 !important;
    }
    #CybotCookiebotDialogBodyContentText {
        font-size: 0.8rem !important;
    }
    #CybotCookiebotDialogBodyLevelButtonsSelectPane {
        padding: 8px !important;
    }
    #CybotCookiebotDialogBodyButtonsWrapper {
        justify-content: space-between !important;
    }
    .CybotCookiebotDialogBodyLevelButtonWrapper {
        width: calc(50% - 16px) !important;
        justify-content: space-between !important;
        padding: 0 !important;
    }
    #CybotCookiebotDialogBodyLevelButtonsSelectPane {
        border: none !important;
    }
    #CybotCookiebotDialogBodyEdgeMoreDetails {
        padding: 0 8px !important;
    }
    #CybotCookiebotDialogBodyEdgeMoreDetails {
        margin: 0 !important;
        justify-content: flex-start !important;
    }
    #CybotCookiebotDialogFooter {
        padding: 8px !important;
    }
    #CybotCookiebotDialogPoweredByText {
        display: none !important;
    }
}
.flex-1 {
    flex: 1;
    min-width: 100%;
}
.cart-upsells {
    background: #fff;
    padding: 30px;
    margin-top: 30px;
}
.message-container {
    color: var(--color-black);
    & p,
    i,
    a,
    p {
        color: var(--color-black);
    }
}
.gold-upsell {
    background: #fff;
    padding: 30px;
    & .gold-upsell-product {
        display: flex;
        gap: 30px;
    }
    & .product-thumbnail {
        flex-basis: 33%;
        width: 33%;
        background-color: Var(--color-graige);
    }
    & .upsell-info {
        flex-basis: 66%;
        width: 66%;
    }
}
.cart_item:not(.item-has-carat) {
    & .variation-data {
        display: none !important;
    }
}
.cart_item.item-has-carat {
    & .product-diamond-specs,
    small,
    .variation-DiamondColor,
    .variation-DiamondClarity {
        display: none !important;
    }
    .checkout-item-wrapper {
        & .variation-DiamondColor,
        .variation-DiamondClarity {
            display: block !important;
        }
    }
}
.cart_item.item-has-carat:has(.variation-NecklaceLength) {
    & .variation-DiamondColor,
    .variation-DiamondClarity {
        display: block !important;
    }
    .checkout-item-wrapper {
        & .variation-DiamondColor,
        .variation-DiamondClarity {
            display: block !important;
        }
    }
}
.cart_item:has(.variation-NecklaceLength)
    .variation-data:not(:has(.variation-NecklaceLength)) {
    display: none;
}
.woocommerce-form-coupon-toggle {
    margin-bottom: -90px;
    z-index: 30;
    position: relative;
    & p {
        display: inline;
        font-size: var(--body-font-size-small);
        margin-right: 5px;
    }
    & a {
        font-size: var(--body-font-size-small);
    }
}
.woocommerce-form-coupon {
    border: none;
    background: #fff;
    flex-basis: calc(58.3333333333% - 30px);
    max-width: calc(58.3333333333% - 30px);
    & p {
        display: none;
    }
    & .medium-flex-wrap {
        gap: 30px;
    }
}
.woocommerce-mini-cart {
    & .variation {
        display: none;
    }
}
.woocommerce-shipping-destination,
.woocommerce-shipping-calculator {
    display: none;
}
.page-template-page-cart {
    #main {
        background-color: #f1f1f1;
    }
    & .product-diamond-specs {
        width: 100%;
        & strong,
        p {
            font-size: var(--body-font-size-small);
        }
    }
    & .variation-data:last-child {
        border-bottom: 1px solid var(--color-black);
    }
    & .checkout-page-title {
        display: none;
    }
    & .cart-container {
        padding: 0 60px;
    }
    & .woocommerce-cart-form {
        margin-bottom: 0;
    }
    & .woocommerce-cart-form__cart-item:has(.variation-Engraving) {
        &:after {
            content: "Diamond Certificate GIA";
            position: absolute;
            bottom: 38px;
            left: 40px;
            font-size: var(--body-font-size-xsmall);
            color: var(--color-black);
            font-weight: var(--body-font-weight);
        }
    }
    & .gift-wrap-checkbox {
        position: absolute;
        bottom: 1rem;
        right: 30px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        & label {
            font-size: var(--body-font-size-small);
            color: var(--color-black);
            font-weight: var(--body-font-weight);
            margin: 0;
        }
        & input[type="checkbox"] {
            margin: 0 !important;
        }
    }
    & .woocommerce-cart-form__contents {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    & .woocommerce-Price-amount {
        font-family: sans-serif !important;
        font-size: var(--body-font-size);
        color: var(--color-black);
        font-weight: var(--body-font-weight);
    }
    & .cart_item {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        position: relative;
        gap: 30px;
        padding: 30px;
        background: #fff;
        & .product-remove {
            position: absolute;
            right: 30px;
            top: 30px;
            & a {
                border: none;
            }
        }
        & .product-thumbnail {
            flex-basis: 33%;
            background-color: var(--color-graige);
            display: flex;
            align-items: center;
        }
        & .product-name {
            flex: 1;
            display: flex;
            align-items: flex-start;
            flex-direction: column;
            justify-content: center;
            & .variation-data {
                width: 100%;
            }
            & .variation-data:last-child {
                border-bottom: 1px solid var(--color-black);
            }
        }
        & .span.amount,
        .cart_item span.amount span,
        .cart-sidebar span.amount,
        .cart-sidebar span.amount span {
            font-family: sans-serif !important;
            font-size: var(--body-font-size-small);
        }
        & .variation-data {
            display: flex;
            justify-content: space-between;
            flex-direction: row;
            flex-wrap: wrap;
            align-content: flex-start;
            margin: 0;
            width: 100%;
        }
        & .variation-data-item {
            display: inline-flex;
            flex-basis: 50%;
            flex-shrink: 0;
            flex-grow: 1;
            & p {
                font-size: var(--body-font-size-small);
            }
        }
        & .variation-EarringDiameter {
            display: none;
        }
    }
}
.variation-data-item:not(
    .variation-Diamantstorlek,
    .variation-Metalltyp,
    .variation-RIngstorlek,
    .variation-Diamantfrg,
    .variation-Diamantklarhet
) {
    display: none !important;
}
#cart-popup {
    & .cart-popup-inner {
        padding: 15px !important;
    }
    & .heading-font {
        font-family: var(--heading-font-family);
        text-transform: none !important;
    }
    & .is-divider,
    .remove_from_cart_button,
    br {
        display: none;
    }
    & p,
    span:not(.heading-font) {
        font-size: var(--body-font-size-small);
        font-weight: var(--body-font-weight);
    }
}
@media only screen and (max-width: 849px) {
    .page-template-page-cart {
        & .cart_item {
            padding: 30px 30px 45px 30px;
        }
    }
    .woocommerce-form-coupon {
        flex-basis: calc(100%);
        max-width: calc(100%);
        & .medium-flex-wrap {
            gap: 1em;
        }
    }
    .checkout-page-title {
        padding-top: 30px;
        padding-bottom: 0 !important;
    }
    .cart-container:has(h2) .large-12 {
        padding-top: 0;
        padding-bottom: 30px !important;
    }
}
html[lang="sv-SE"]
    .woocommerce-cart-form__cart-item:has(.variation-Engraving)::after {
    content: "Diamantcertifikat GIA";
}
@media only screen and (max-width: 849px) {
    .page-template-page-cart {
        & .cart-container {
            padding: 0 15px;
        }
    }
    .cart_item {
        & h3 {
            font-size: var(--h4-size) !important;
        }
    }
    .gift-wrap-checkbox {
        position: absolute;
        bottom: 1rem;
        right: unset !important;
        left: 30px !important;
        bottom: 1rem !important;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}
.woocommerce-notices-wrapper,
.woocommerce-message {
    display: none !important;
}
.body:not(.admin-bar) {
    & .woocommerce-error {
        display: none !important;
    }
}
.cart-sidebar,
.checkout-sidebar {
    & .checkout-item-flex {
        display: flex;
        flex-wrap: nowrap;
        gap: 30px;
        align-items: center;
        flex-direction: row;
        width: 100%;
        margin-bottom: 1rem;
    }
    & .cart_totals {
        padding: 30px;
    }
    & th,
    td,
    label {
        font-size: var(--body-font-size-small) !important;
        font-weight: var(--body-font-weight);
        color: var(--color-black);
        opacity: 1;
        padding: 8px 0;
        border-bottom: none;
    }
    p {
        text-align: left;
    }
    span.amount {
        font-family: sans-serif !important;
        font-size: var(--body-font-size-small);
        color: var(--color-black);
        font-weight: var(--body-font-weight);
    }
    .cart_item {
        & .checkout-product-image {
            width: 33.33%;
            flex-basis: 33.33%;
            background-color: var(--color-graige);
        }
        & .product-title {
            width: 60%;
            flex-basis: 60%;
        }
        & .checkout-item-wrapper {
            border-bottom: 1px solid var(--color-black);
            padding-bottom: 1rem;
            margin-bottom: 1rem;
            & .variation-data {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                & .variation-data-item {
                    flex-basis: 50%;
                    max-width: 50%;
                }
            }
        }
    }
    .cart-subtotal,
    .order-total {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        border-bottom: 1px solid var(--color-black);
        align-items: center;
        padding-bottom: 1rem;
        & h4 {
            margin-bottom: 0;
        }
    }
    & .order-total {
        margin-bottom: 1rem;
    }
    & .product-quantity {
        display: none;
    }
    & .variation-data {
        width: 100%;
        & .variation-Engraving {
            display: flex;
        }
    }
    thead {
        display: none;
    }
}
& .shop_table .order-total th,
.shop_table .order-total td {
    border: none;
}
#kco-order-review {
    padding-right: unset;
}

.kco-two-column-left #kco-wrapper {
    grid-template-columns: 6fr 6fr !important;
    padding-top: 90px;
}

@media only screen and (max-width: 849px) {
    .kco-two-column-left #kco-wrapper {
        padding-top: 0;
    }
}

.page-template-page-checkout {
    & .review-order-footer {
        background-color: white;
        padding: 1rem;
    }
    & .cart-subtotal,
    .order-total {
        display: flex;
        justify-content: space-between;

        & * {
            margin: 0;
            font-weight: var(--body-font-weight);
        }
    }
    & .checkout-product-name {
        display: none;
    }
    & .product-diamond-specs {
        font-size: var(--body-font-size-small);
        font-weight: var(--body-font-weight);
    }
    & .variation-data p {
        font-size: var(--body-font-size-small);
    }
    & .item-has-carat .product-diamond-specs {
        display: none !important;
    }
    & .checkout-page-title {
        display: none;
    }
    & form.checkout h3 {
        font-size: var(--h3-size);
        font-weight: var(--body-font-weight);
        color: var(--color-black);
        text-transform: none !important;
        padding-top: 0 !important;
    }
    & #customer_details {
        padding: 30px;
        background: #fff;
    }
    & .col-inner:has(.checkout-sidebar) {
        padding: 0;
        border: none !important;
    }
    & .checkout-sidebar {
        background: #fff;
        padding: 30px;
        & .checkout-item-flex {
            flex-wrap: wrap;
        }
        & .product-title {
            flex-basis: 60%;
            width: 60%;
        }
        & .product-diamond-specs {
            flex-basis: 100%;
            width: 100%;
        }
        & .variation-EarringDiameter {
            display: none;
        }
    }
    & .woocommerce-billing-fields {
        border: none;
        padding: 0;
        & label,
        span {
            font-weight: 400;
            font-size: var(--body-font-size-small);
        }
    }
    .shipping_address label {
        display: none;
    }
    #customer_details {
        & .fl-wrap-textarea.fl-is-active textarea {
            padding: 24px !important;
        }
    }
    .container.page-checkout {
        padding: 0;
        z-index: 30;
        &:after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            left: 50%;
            height: 100%;
            width: 50%;
            background-color: #f1f1f1;
            z-index: 10;
        }

        & .kco-checkout,
        #kco-iframe {
            z-index: 30;
            padding-right: 90px;
            margin: 0;
        }

        & #kco-order-review {
            z-index: 30;
            padding-left: 60px;
            margin: 0;
        }

        & .fl-wrap-textarea {
            display: none;
        }

        & .checkout-item-wrapper {
            background-color: white;
            margin-bottom: 30px;
            padding: 1rem;

            & .ux-quantity {
                width: 100%;
                display: flex;

                & input {
                    flex: 1;
                    background-color: transparent;
                    min-height: unset;
                }

                & .qty.text {
                    flex-basis: 20%;
                    max-width: unset;
                    height: unset;
                }
            }
        }

        & .diamond-specs-wrapper {
            width: 100%;
        }

        & .checkout-item-flex {
            display: flex;
            flex-wrap: wrap;
            row-gap: 1 rem;

            & .product-title {
                flex-grow: 0;
                width: 85%;
                padding-left: 30px;
                padding-right: 45px;
            }

            & br {
                display: none;
            }
            & small {
                width: 100%;
                flex: 1;
            }
        }

        & .checkout-product-image {
            width: 15%;
            background-color: white;
        }
    }

    @media only screen and (max-width: 849px) {
        .container.page-checkout:after {
            display: none;
        }
        #kco-iframe {
            padding-right: 0 !important;
        }
        .kco-checkout {
            padding-right: 0 !important;
        }
        #kco-order-review {
            padding-left: 0 !important;
            padding: 30px !important;
        }
        .woocommerce-form-coupon-toggle {
            margin-bottom: 0 !important;
        }
    }
}
.woocommerce-order-received {
    & .checkout-page-title {
        display: none;
    }
    & th {
        font-size: var(--body-font-size);
        font-weight: var(--body-font-weight);
        font-family: var(--heading-font-family);
        text-transform: none;
    }
    & .amount,
    a,
    strong,
    address,
    td,
    p {
        font-size: var(--body-font-size-small);
        font-weight: var(--body-font-weight) !important;
        font-family: var(--body-font-family);
        text-transform: none;
    }
    & .large-7 > p {
        background: #fff;
        margin: 0;
        padding: 30px 30px 0 30px;
    }
    & .woocommerce-order-details,
    .large-5 .entry-content,
    .woocommerce-customer-details {
        background: #fff;
        padding: 30px;
        box-shadow: none;
    }
}
@media only screen and (max-width: 849px) {
    .woocommerce-order-received {
        #main {
            padding: 30px 15px !important;
        }
    }
    & .cart-sidebar,
    .checkout-sidebar {
        & .checkout-item-flex {
            flex-direction: column;
            & .product-title,
            .product-diamond-specs,
            .checkout-product-image {
                width: 100%;
                flex-basis: 100%;
            }
        }
    }
}
.slider-wrapper .flickity-prev-next-button {
    display: block !important;
}
.form-row.create-account label {
    font-size: var(--body-font-size-small);
    font-weight: var(--body-font-weight);
    font-family: var(--heading-font-family);
}
@media only screen and (max-width: 849px) {
    .page-template-page-checkout {
        & #main {
            background-color: #f1f1f1;
            padding: 0;
        }
    }
}
.woocommerce-billing-fields {
    & label {
        display: none;
    }
}
select,
input[type="text"],
input[type="email"],
input[type="tel"] {
    font-size: var(--body-font-size-small);
    color: var(--color-black);
    padding: 8px 24px !important;
    &::placeholder {
        color: var(--color-black);
    }
}
input[type="text"],
input[type="email"],
input[type="tel"] {
    border: 1px solid var(--color-black);
    color: var(--color-black);
    box-shadow: none;
    outline: none;
    padding: 8px 24px !important;
    height: auto;
    &::placeholder {
        color: var(--color-black);
    }
}
textarea {
    font-size: var(--body-font-size-small);
    border: 1px solid var(--color-black);
    color: var(--color-black);
    box-shadow: none;
    outline: none;
    padding: 8px !important;
    height: auto;
}
.select2-container {
    width: 100% !important;
}
.select2-container .select2-selection,
.form-row .fl-is-active select {
    border: 1px solid var(--color-black);
    color: var(--color-black);
    box-shadow: none;
    padding: 8px 24px !important;
    height: auto;
}
.select2-container--default .select2-selection--single {
    border-radius: 0 !important;
    border-color: var(--color-black) !important;
}
.select2-selection__rendered {
    font-size: var(--body-font-size-small);
    color: var(--color-black);
    font-weight: var(--body-font-weight);
}
.select2-container .select2-selection {
    padding: 0.5rem !important;
}
.select2-results__option {
    font-size: var(--body-font-size-small);
    color: var(--color-black);
    &:hover {
        background-color: var(--color-gray);
    }
}
.select2-selection__rendered {
    line-height: 1.6 !important;
}
.select2-container--default
    .select2-results__option--highlighted[aria-selected],
.select2-container--default
    .select2-results__option--highlighted[data-selected] {
    background-color: var(--color-black);
    color: #fff;
}
#yith-wcwl-form {
    & th {
        font-family: var(--heading-font-family);
        font-weight: var(--body-font-weight);
        text-transform: none;
    }
    & .share-icons-title {
        font-family: var(--heading-font-family);
        font-weight: var(--body-font-weight);
        text-transform: none;
    }
    & a {
        font-family: var(--heading-font-family);
        font-weight: var(--body-font-weight);
    }
    & .product-price {
        font-weight: var(--body-font-weight) !important;
        & .amount {
            font-weight: var(--body-font-weight) !important;
            display: block;
        }
    }
    & .add_to_cart_button {
        font-family: var(--body-font-family);
        font-weight: var(--body-font-weight);
        font-size: var(--body-font-size-small);
        text-transform: uppercase;
        border: 1px solid var(--color-black);
    }
}
.usp-display {
    & img {
        max-height: 50px;
    }
    & .img img {
        width: fit-content;
    }
}

/*************** Flickity: Progress bar + Arrows ***************/
.flickity-page-dots {
    bottom: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 0 !important;
    list-style: none !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}
.flickity-page-dots .dot {
    flex: 1 !important;
    height: 3px !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    border: none !important;
    background-color: var(--color-gray) !important;
    opacity: 1 !important;
    transition: background-color 0.3s;
}
.flickity-page-dots .dot.is-selected {
    background-color: var(--color-black) !important;
}

/* Samma bar på produktsidans galleri. Kräver "pageDots": true i
   woocommerce/single-product/product-image-vertical.php (override i barntemat –
   sidan kör vertikala thumbnails, så product-image.php returnerar tidigt).
   Bara mobil: på desktop finns thumbnails och pilar i stället. Basregeln måste
   ha högre specificitet än .flickity-page-dots ovan för att slå dess
   display: flex !important. */
.product-gallery-slider > .flickity-page-dots {
    display: none !important;
}
@media (max-width: 849px) {
    .product-gallery-slider > .flickity-page-dots {
        display: flex !important;
    }
}

/* Archive/loop arrows */
.flickity-prev-next-button {
    z-index: 40;
    width: 2rem !important;
    height: 2rem !important;
    min-width: unset !important;
    min-height: unset !important;
    padding: 4px !important;
    bottom: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-color: white !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    background-position: center center !important;
    /* Flatsome's .slider-nav-reveal .flickity-prev-next-button paints a
       box-shadow offset -150px upward, intended for the full-height reveal
       variant. With our circular 32x32 arrow the shadow becomes a dark disc
       floating ~150px above the button. Clear it here. */
    box-shadow: none !important;
}
.flickity-prev-next-button.previous {
    left: 10px !important;
}
.flickity-prev-next-button.next {
    right: 10px !important;
}
/* Flatsome's `.slider:hover .flickity-prev-next-button` rule rewrites
   `transform` to `translateX(0) !important` on hover, which wipes out the
   `translateY(-50%)` above and drops the arrow ~16px. Re-apply vertical
   centering at equal or higher specificity so the arrow stays put. */
.product-loop-gallery .flickity-prev-next-button,
.product-loop-gallery:hover .flickity-prev-next-button,
.slider:hover .flickity-prev-next-button {
    transform: translateY(-50%) !important;
}
@media (max-width: 549px) {
    .flickity-prev-next-button {
        width: 1.5rem !important;
        height: 1.5rem !important;
        bottom: 5px !important;
    }
    .flickity-prev-next-button.previous {
        left: 5px !important;
    }
    .flickity-prev-next-button.next {
        right: 5px !important;
    }
}

/* Product page gallery arrows - centered vertically, larger */
.single-product .product-gallery-slider .flickity-prev-next-button {
    width: 2.5rem !important;
    height: 2.5rem !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    padding: 0 !important;
}

/* Safety net: before Flickity initializes (or if it never does on
   variable/out-of-stock products), show only the first cell so the
   archive grid doesn't collapse into a stack of tall empty rows. */
.product-loop-gallery:not(.flickity-enabled) {
    overflow: hidden;
}
.product-loop-gallery:not(.flickity-enabled) .flickity-cell {
    display: none;
}
.product-loop-gallery:not(.flickity-enabled) .flickity-cell:first-child {
    display: block;
}

/* ============================================================
   Bokningsmodal (#booking-popup) - scroll inuti rutan på mobil.

   Rutan får ett höjdtak istället för att täcka hela skärmen.
   Rubrik, veckonavigering och dagrubriker ligger stilla; bara
   tidsrutnätet scrollar.

   OBS: markup och grundstil kommer från pluginet
   apshaps-weekly-booking (assets/css/apshaps-wb.css), som laddas
   EFTER den här filen. Därför är .mfp-wrap med i selektorn nedan -
   utan den vinner pluginets padding.
   ============================================================ */
@media (max-width: 549px) {
    .mfp-wrap .mfp-content #booking-popup {
        display: flex;
        flex-direction: column;
        max-height: 68dvh;
        padding: 26px 10px 0;
        overflow: hidden;
    }

    /* 68dvh är tunat för steg 1, som har OBEGRÄNSAT innehåll - sju
       dagar tider kan vara hur långt som helst, och hela poängen är
       att rubrik och veckonavigering ligger stilla medan rutnätet
       scrollar.

       Steg 2 och 3 har motsatt karaktär: känt, begränsat innehåll.
       Där är det bättre att rutan får växa än att innehållet göms
       bakom scroll. Bekräftelsen landar på ~690px; 88dvh räcker på en
       iPhone 13 men inte på en SE, så hinten längre ned behövs ändå.

       Taket sätts på rutan och inte på steget, eftersom det är rutan
       som är höjdbegränsad - steget ärver bara utrymmet. */
    .mfp-wrap .mfp-content #booking-popup:has(.apshaps-step-2:not([hidden])),
    .mfp-wrap .mfp-content #booking-popup:has(.apshaps-step-3:not([hidden])) {
        max-height: 88dvh;
    }

    /* min-height:0 krävs för att flexbarn ska tillåtas krympa */
    #booking-popup .apshaps-booking {
        flex: 1 1 auto;
        min-height: 0;
    }
    #booking-popup .apshaps-step {
        min-height: 0;
    }

    /* Pluginet döljer steg med hidden-attributet - låt det vinna */
    #booking-popup .apshaps-step[hidden] {
        display: none;
    }

    #booking-popup .apshaps-step-1:not([hidden]) {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        position: relative;
        timeline-scope: --tidsscroll;
    }

    /* Ligger stilla när rutnätet scrollar */
    #booking-popup .booking-header,
    #booking-popup .apshaps-week-nav,
    #booking-popup .apshaps-header-row {
        flex: 0 0 auto;
    }

    /* Måste matcha .apshaps-grid:s border-right exakt - se
       kommentaren där. Ändra aldrig den ena utan den andra. */
    #booking-popup .apshaps-header-row {
        border-right: 1px solid var(--light-border-color);
    }

    /* Pluginet sätter overflow:hidden här. Utan detta klipps tider
       bort istället för att bli scrollbara. */
    #booking-popup .apshaps-day {
        overflow: visible;
    }

    /* Tidsrutnätet är det enda som scrollar */
    #booking-popup .apshaps-grid {
        /* Pluginet använder repeat(7, 1fr), vilket egentligen är
           minmax(auto, 1fr) - kolumnerna kan då inte krympa under
           sitt min-content. Dagar med tidsknappar trycker ut sina
           kolumner ~0.1px var och den tomma söndagen får ta
           smällen, så rutnätet glider ur linje mot rubrikraden
           (som inte har samma tryck). minmax(0, 1fr) ger exakt
           lika breda kolumner oavsett innehåll. */
        grid-template-columns: repeat(7, minmax(0, 1fr));
        flex: 1 1 auto;
        min-height: 0;
        padding-bottom: 10px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        /* Högerkanten till höger om söndagskolumnen. Pluginet
           ritar den normalt med .apshaps-grid::after, men den är
           absolutpositionerad och scrollar bort så fort rutnätet
           blir scrollyta - därför en ram här i stället.
           Pluginets bakgrundsgradient duger inte: dagkolumnerna
           har egen vit bakgrund och målar över den.
           VIKTIGT: exakt samma ram måste sitta på
           .apshaps-header-row (se nedan). En ram krymper
           innehållsbredden med 1px, och sitter den bara på det
           ena rutnätet delar de sju kolumnerna olika bredd -
           felet ackumuleras och söndagen hamnar ~0.8px fel. */
        border-right: 1px solid var(--light-border-color);
        /* Scrollbaren döljs - pluginets scrollbar-gutter:stable
           förskjuter annars sista dagkolumnen mot dagrubrikerna. */
        scrollbar-width: none;
        scrollbar-gutter: auto;
        scroll-timeline-name: --tidsscroll;
        scroll-timeline-axis: block;
    }
    #booking-popup .apshaps-grid::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    /* Pluginets högerkant scrollar med innehållet - ersatt av
       border-right på scrollytan ovan. */
    #booking-popup .apshaps-grid::after {
        display: none;
    }

    /* Scroll-indikator: toning + text över rutnätets underkant.
       Styrs av rutnätets scrollposition, utan JS. Ligger timeline'n
       stilla (inget att scrolla) är animationen inaktiv och
       basvärdet opacity:0 gäller - hinten visas alltså bara när den
       stämmer. */
    #booking-popup .apshaps-step-1::after {
        content: "Scrolla för fler tider";
        position: absolute;
        inset: auto 0 0 0;
        height: 64px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 6px;
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #8a8a8a;
        pointer-events: none;
        z-index: 6;
        background: linear-gradient(to top, #fff 42%, rgba(255, 255, 255, 0));
        opacity: 0;
    }

    /* Klasshakar ifall scroll-timeline behöver kompletteras med JS
       (toggla has-overflow / at-end på .apshaps-step-1). */
    #booking-popup .apshaps-step-1.has-overflow::after {
        opacity: 1;
    }
    #booking-popup .apshaps-step-1.at-end::after {
        opacity: 0;
    }

    /* Steg 2 (formulär) och steg 3 (bekräftelse) scrollar om de
       blir för höga för rutan. */
    #booking-popup .apshaps-step-2,
    #booking-popup .apshaps-step-3 {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        /* Rutans egen padding är 26px 10px 0 - noll i botten, för att
           steg 1:s toning ska kunna ligga kant i kant med underkanten.
           Här är steget SJÄLVT scrollytan, så bottenluften måste sitta
           på steget i stället. Sätts den på rutan hamnar den utanför
           scrollytan och innehållet möter kanten ändå.
           Utan den ligger "Återgå till produkten" dikt mot rutans
           underkant. */
        padding-bottom: 26px;
    }

    /* Timeline för hinten nedan. Namnet deklareras på scrollytan själv
       - jämför steg 1, där rutnätet äger timeline'n och steget bara
       får se den via timeline-scope. Här är scrollytan och elementet
       som bär ::after samma element, så det behövs inte. */
    #booking-popup .apshaps-step-3 {
        scroll-timeline-name: --bekraftelsescroll;
        scroll-timeline-axis: block;
    }

    /* Samma scroll-indikator som steg 1, med en skillnad som är lätt
       att missa: i steg 1 scrollar .apshaps-grid INUTI steget, så
       toningen kan ligga absolut mot steget och stå stilla. Här är
       steget scrollytan - en absolutpositionerad toning skulle scrolla
       iväg med innehållet. Därför sticky.

       Negativ margin-top gör att den lägger sig ÖVER innehållets sista
       rader i stället för att skjuta ner dem, så den kostar ingen
       höjd. */
    #booking-popup .apshaps-step-3::after {
        content: "Scrolla för mer";
        position: sticky;
        bottom: 0;
        margin-top: -64px;
        height: 64px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 6px;
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #8a8a8a;
        pointer-events: none;
        z-index: 6;
        background: linear-gradient(to top, #fff 42%, rgba(255, 255, 255, 0));
        opacity: 0;
    }

    /* Klasshakar, samma som steg 1 - se product-single-helpers.php */
    #booking-popup .apshaps-step-3.has-overflow::after {
        opacity: 1;
    }
    #booking-popup .apshaps-step-3.at-end::after {
        opacity: 0;
    }
}

/* Scroll-driven animation - BARA där den faktiskt stöds.
   Utan @supports-vakten blir animation-shorthanden kvar i
   webbläsare som saknar stöd (t.ex. äldre iOS Safari).
   animation-timeline ignoreras då, animationen får
   standardlängden 0s, hoppar direkt till slutläget opacity:0
   och döljer hinten permanent - och eftersom animerade värden
   slår vanliga deklarationer körs JS-fallbacken över.
   Där det här blocket inte gäller sköter klasserna
   has-overflow / at-end jobbet (se product-single-helpers.php). */
@supports (animation-timeline: scroll()) {
    @media (max-width: 549px) {
        #booking-popup .apshaps-step-1::after {
            animation: apshaps-scrollhint linear both;
            animation-timeline: --tidsscroll;
            animation-range: 0 60px;
        }
        #booking-popup .apshaps-step-3::after {
            animation: apshaps-scrollhint linear both;
            animation-timeline: --bekraftelsescroll;
            animation-range: 0 60px;
        }
    }
}

@keyframes apshaps-scrollhint {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Product video in the product gallery (inc/woocommerce/product-video.php) */
.product-gallery-video {
    position: relative;
    width: 100%;
    background-color: var(--color-beige);
    overflow: hidden;
}

.product-gallery-video__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-video__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    min-height: 0;
    padding: 0 0 0 4px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-gallery-video__play[hidden] {
    display: none;
}

.product-gallery-video-thumb a {
    position: relative;
    display: block;
}

.product-gallery-video-thumb__blank {
    display: block;
    aspect-ratio: 1 / 1;
    background-color: var(--color-beige);
}

.product-gallery-video-thumb__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.product-gallery-video-thumb__blank + .product-gallery-video-thumb__icon {
    color: var(--color-black);
    filter: none;
}
