/* =========================================================
   PRODUCT SIZE GUIDE — BASE
========================================================= */

.single-product-size-guide-button {
    display: none;
}

.single-product-purchase
table.variations
th.label
.single-product-size-guide-button.is-mounted {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #666666;
    border-radius: 0;
    background: transparent;
    color: #666666;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;

    cursor: pointer;
    transition:
        opacity 0.2s ease,
        border-color 0.2s ease;
}

.single-product-purchase
table.variations
th.label
.single-product-size-guide-button.is-mounted:hover {
    opacity: 0.6;
}

.single-product-purchase
.single-product-size-guide-button.is-mounted::before,
.single-product-purchase
.single-product-size-guide-button.is-mounted::after {
    display: none;
}


/* =========================================================
   SIZE GUIDE TRIGGER — MOBILE
========================================================= */

@media (max-width: 767px) {
    .single-product-purchase
    table.variations
    th.label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
    }

    .single-product-purchase
    table.variations
    th.label
    .single-product-size-guide-button.is-mounted {
        margin-left: auto;
        font-size: 12px;
    }
}

.ton618-size-guide {
    position: fixed;
    inset: 0;
    z-index: 40000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.ton618-size-guide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ton618-size-guide__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.52);
    cursor: default;
}

.ton618-size-guide__drawer {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: 600px;
    min-width: 600px;
    height: 100dvh;
    background: #f7f4f0;
    color: #000000;
    outline: none;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.32s ease;
}

.ton618-size-guide.is-active
.ton618-size-guide__drawer {
    transform: translateX(0);
}

.ton618-size-guide__scroll {
    width: 100%;
    height: 100%;
    padding: 45px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    scrollbar-width: thin;
}

.ton618-size-guide__close {
    position: absolute;
    top: 24px;
    right: 26px;
    z-index: 5;

    width: 34px;
    height: 34px;
    padding: 0;

    border: 0;
    background: transparent;
    color: #040D1A;
    cursor: pointer;
}

.ton618-size-guide__close::before,
.ton618-size-guide__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;

    width: 20px;
    height: 1px;

    background: currentColor;
    transform-origin: center;
}

.ton618-size-guide__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ton618-size-guide__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* =========================================================
   SIZE GUIDE — HEADER
========================================================= */

.ton618-size-guide__header {
    position: relative;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 40px;
}

.ton618-size-guide__header h2 {
    margin: 0;
    color: #000000;
    font-family: var(--font-decorative);
    font-size: 36px;
    font-weight: 300;
    font-style: normal;
    line-height: 1;
    letter-spacing: -1px;
}


/* =========================================================
   SIZE GUIDE — CUSTOM DROPDOWN
========================================================= */

.ton618-size-guide__select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.ton618-size-guide__select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.ton618-size-guide__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;
    background: transparent;
    color: #666666;

    font-family: var(--font-decorative);
    font-size: 36px;
    font-weight: 300;
    font-style: italic;
    line-height: 1;
    letter-spacing: -1px;
    text-align: left;
    white-space: nowrap;

    cursor: pointer;
    box-shadow: none;
    appearance: none;
}

.ton618-size-guide__dropdown-caret {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;

    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;

    transform: translateY(-3px) rotate(45deg);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.ton618-size-guide__dropdown-toggle[aria-expanded="true"]
.ton618-size-guide__dropdown-caret {
    transform: translateY(2px) rotate(-135deg);
}


/* =========================================================
   SIZE GUIDE — DROPDOWN MENU
========================================================= */

.ton618-size-guide__dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;

    width: 160px;
    min-width: 160px;
    max-width: 160px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;
    background: #f7f4f0;

    box-shadow:
        0 16px 38px rgba(4, 13, 26, 0.08),
        0 4px 12px rgba(4, 13, 26, 0.04);

    overflow: hidden;
    box-sizing: border-box;
}

.ton618-size-guide__dropdown-menu[hidden] {
    display: none !important;
}


/* =========================================================
   SIZE GUIDE — DROPDOWN OPTIONS
========================================================= */

.ton618-size-guide__dropdown-option {
    width: 100%;
    height: 40px;
    min-height: 40px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin: 0;
    padding: 0 12px;

    border: 0;
    border-radius: 0;
    background: transparent;
    color: #777777;

    font-family: var(--font-decorative);
    font-size: 24px;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: -0.4px;
    text-align: left;
    white-space: nowrap;

    cursor: pointer;
    box-shadow: none;
    appearance: none;
    box-sizing: border-box;

    transition: color 0.2s ease;
}

.ton618-size-guide__dropdown-option.is-selected,
.ton618-size-guide__dropdown-option[aria-selected="true"] {
    background: transparent;
    color: #000000;
}

.ton618-size-guide__dropdown-option:hover,
.ton618-size-guide__dropdown-option:focus-visible {
    background: transparent;
    color: #000000;
    outline: none;
}

.ton618-size-guide__dropdown-option::before,
.ton618-size-guide__dropdown-option::after,
.ton618-size-guide__dropdown-option.is-selected::before,
.ton618-size-guide__dropdown-option.is-selected::after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   TABLE
========================================================= */

.ton618-size-guide__table {
    display: grid;
    grid-template-columns:
        repeat(var(--size-guide-columns), minmax(0, 1fr));
    margin-bottom: 40px;
    border-right: 1px solid rgba(184, 184, 184, 0.18);
}

.ton618-size-guide__column {
    min-width: 0;
    padding: 15px 24px 24px;
    border-right: 1px solid rgba(184, 184, 184, 0.18);
    text-align: center;
}

.ton618-size-guide__column:last-child {
    border-right: 0;
}

.ton618-size-guide__column h3 {
    min-height: 34px;
    margin: 0 0 20px;
    color: #000000;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

.ton618-size-guide__column ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ton618-size-guide__column li {
	color: #000000;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}


/* =========================================================
   PERFECT FIT
========================================================= */

.ton618-size-guide__fit-title {
    margin-bottom: 8px;
    color: #666666;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
}

.ton618-size-guide__images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    margin-bottom: 10px;
}

.ton618-size-guide__image {
    width: 100%;
    aspect-ratio: 5 / 7;
    margin: 0;
    overflow: hidden;
    background: #e9e5df;
}

.ton618-size-guide__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.ton618-size-guide__description {
    max-width: 760px;
    color: #000000;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.ton618-size-guide__description p {
    margin: 0 0 18px;
}

.ton618-size-guide__description p:last-child {
    margin-bottom: 0;
}

body.size-guide-open {
    overflow: hidden;
}

/* =========================================================
   PRODUCT SIZE GUIDE — INFORMATION ACCORDIONS
========================================================= */

.ton618-size-guide__accordions {
    margin-top: 15px;
    border-top: 1px solid rgba(184, 184, 184, 0.18);
}

.ton618-size-guide-accordion {
    border-bottom: 1px solid rgba(184, 184, 184, 0.18);
}

.ton618-size-guide-accordion__button {
    position: relative;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #666666;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
}

.ton618-size-guide-accordion__button:hover {
    color: #040D1A;
}

.ton618-size-guide-accordion__icon {
	display: none;
    position: relative;
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
}

.ton618-size-guide-accordion__icon::before,
.ton618-size-guide-accordion__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ton618-size-guide-accordion__icon::before {
    width: 12px;
    height: 1px;
}

.ton618-size-guide-accordion__icon::after {
    width: 1px;
    height: 12px;
}

.ton618-size-guide-accordion.is-open
.ton618-size-guide-accordion__icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0);
}

.ton618-size-guide-accordion__content[hidden] {
    display: none !important;
}

.ton618-size-guide-accordion__content-inner {
    padding: 0 28px 15px 0px;
    color: #000000;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
}

.ton618-size-guide-accordion__content-inner p {
    margin: 0 0 14px;
}

.ton618-size-guide-accordion__content-inner p:last-child {
    margin-bottom: 0;
}

.ton618-size-guide-accordion__content-inner a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   PRODUCT SIZE GUIDE — MOBILE
========================================================= */

@media (max-width: 767px) {

    .ton618-size-guide__drawer {
        width: 100vw;
        min-width: 0;
        max-width: 100vw;
    }

    .ton618-size-guide__scroll {
        width: 100%;
        height: 100%;
        padding: 26px 24px 30px;

        overflow-x: hidden;
        overflow-y: auto;

        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }

    .ton618-size-guide__close {
        position: fixed;
        top: 12px;
        right: 12px;

        width: 32px;
        height: 32px;
    }

    .ton618-size-guide__close::before,
    .ton618-size-guide__close::after {
        width: 20px;
    }

    .ton618-size-guide__content,
    .ton618-size-guide__panel,
    .ton618-size-guide__fit {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    /* =====================================================
       HEADER
    ===================================================== */

    .ton618-size-guide__header {
        display: flex;
        align-items: baseline;
        flex-wrap: nowrap;
        gap: 7px;

        width: 100%;
        min-width: 0;

        margin: 0 0 26px;
        padding: 0 34px 0 0;
    }

    .ton618-size-guide__header h2 {
        flex: 0 1 auto;
        min-width: 0;
        margin: 0;

        font-size: clamp(22px, 7vw, 24px);
        line-height: 1;
        letter-spacing: -0.7px;
        white-space: nowrap;
    }

    /* =====================================================
       CUSTOM DROPDOWN
    ===================================================== */

    .ton618-size-guide__select-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;

        flex: 0 0 auto;
        min-width: 0;
        max-width: 100%;
    }

    .ton618-size-guide__dropdown-toggle {
        gap: 7px;
        max-width: 100%;
        margin: 0;
        padding: 0;

        font-size: clamp(22px, 7vw, 24px);
        line-height: 1;
        letter-spacing: -0.7px;
        white-space: nowrap;
    }

    .ton618-size-guide__dropdown-caret {
        width: 7px;
        height: 7px;
        flex: 0 0 7px;
    }

    .ton618-size-guide__dropdown-menu {
        top: calc(100% + 7px);
        left: 0;

        width: 160px;
        min-width: 160px;
        max-width: 160px;
    }

    .ton618-size-guide__dropdown-option {
        width: 100%;
        height: 40px;
        min-height: 40px;

        padding: 0 12px;

        font-size: 24px;
        line-height: 1;
    }

    /* =====================================================
       TABLE — ALL COLUMNS FIT INSIDE SCREEN
    ===================================================== */

    .ton618-size-guide__panel {
        overflow: visible;
    }

    .ton618-size-guide__table {
        width: 100%;
        min-width: 0;
        max-width: 100%;

        display: grid;
        grid-template-columns:
            repeat(
                var(--size-guide-columns, 1),
                minmax(0, 1fr)
            );

        align-items: stretch;

        margin: 0 0 24px;

        border-right: 1px solid rgba(184, 184, 184, 0.18);

        overflow: visible;
        box-sizing: border-box;
    }

    .ton618-size-guide__column {
        width: auto;
        min-width: 0;
        max-width: none;

        margin: 0;
        padding: 10px 4px 14px;

        border-right: 1px solid rgba(184, 184, 184, 0.18);

        text-align: center;
        box-sizing: border-box;
    }

    .ton618-size-guide__column:last-child {
        border-right: 0;
    }

    .ton618-size-guide__column h3 {
        min-height: 36px;
        display: flex;
        align-items: flex-start;
        justify-content: center;

        margin: 0 0 10px;
        padding: 0 2px;

        font-size: 12px;
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: 0;
        text-align: center;
        text-transform: uppercase;

        overflow-wrap: anywhere;
        word-break: normal;
    }

    .ton618-size-guide__column ul {
        gap: 4px;
    }

    .ton618-size-guide__column li {
        font-size: 11px;
        line-height: 1.15;
        white-space: nowrap;
    }

    /* =====================================================
       PERFECT FIT
    ===================================================== */

    .ton618-size-guide__fit-title {
        margin-bottom: 6px;
        font-size: 12px;
        line-height: 1.2;
    }

    .ton618-size-guide__images {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px;

        margin: 0 0 8px;

        overflow: visible;
    }

    .ton618-size-guide__image {
        width: 100%;
        min-width: 0;
        max-width: none;
        aspect-ratio: 5 / 7;

        margin: 0;
        overflow: hidden;
    }

    .ton618-size-guide__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* =====================================================
       DESCRIPTION
    ===================================================== */

    .ton618-size-guide__description {
        width: 100%;
        max-width: none;

        font-size: 12px;
        font-weight: 400;
        line-height: 1.35;
        letter-spacing: 0;
    }

    .ton618-size-guide__description p {
        margin: 0 0 12px;
    }

    .ton618-size-guide__description p:last-child {
        margin-bottom: 0;
    }

    /* =====================================================
       ACCORDIONS
    ===================================================== */

    .ton618-size-guide__accordions {
        margin-top: 20px;
    }

    .ton618-size-guide-accordion__button {
        min-height: 40px;
        padding: 10px 4px;
        font-size: 12px;
        line-height: 1.2;
    }

    .ton618-size-guide-accordion__content-inner {
        padding: 0 8px 14px 4px;

        font-size: 10px;
        line-height: 1.4;
    }

    .ton618-size-guide-accordion__content-inner p {
        margin-bottom: 10px;
    }
}

/* =========================================================
   EXTRA SMALL MOBILE
========================================================= */

@media (max-width: 360px) {
    .ton618-size-guide__scroll {
        padding-right: 18px;
        padding-left: 18px;
    }

    .ton618-size-guide__header h2,
    .ton618-size-guide__dropdown-toggle {
        font-size: 20px;
    }

    .ton618-size-guide__column {
        padding-right: 2px;
        padding-left: 2px;
    }

    .ton618-size-guide__column h3 {
        font-size: 9px;
    }

    .ton618-size-guide__column li {
        font-size: 10px;
    }
}