.qoy-size-guide {
    color: var(--ink);
}

.size-guide {
    padding-top: 5px;
    padding-bottom: 42px;
}

.size-guide__header h1,
.size-guide h2 {
    font-weight: 400;
}

.size-guide__header h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
}

.size-guide__header p,
.size-guide__instructions > p {
    margin: 0;
    color: #7d8388;
    font-size: 12px;
    line-height: 1.55;
}

.size-guide__table-wrap {
    margin-top: 28px;
    overflow-x: auto;
    outline: none;
    scrollbar-color: var(--brown) #f3f1f0;
}

.size-guide__table-wrap:focus-visible {
    box-shadow: 0 0 0 2px rgba(134, 112, 109, .2);
}

.size-guide__table {
    width: 100%;
    min-width: 650px;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    color: #686f74;
    font-size: 12px;
    line-height: 1.35;
}

.size-guide__table th,
.size-guide__table td {
    border: 0;
    padding: 10px 16px;
    text-align: center;
}

.size-guide__table thead th {
    background: #fff;
    color: #646b70;
    font-size: 10px;
    font-weight: 400;
}

.size-guide__table tbody th {
    font-weight: 400;
}

.size-guide__table tbody tr:nth-child(odd) > * {
    background: #f6f5f4;
}

.size-guide__table tbody tr:nth-child(even) > * {
    background: #eeeeed;
}

.size-guide__measurements {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 70px;
    align-items: center;
    min-height: 360px;
    padding: 64px 34px 44px 0;
}

.size-guide__instructions h2,
.size-guide__bra > h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.2;
}

.measurement-list {
    display: grid;
    gap: 30px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: size-step;
}

.measurement-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 34px;
    color: #7b8085;
    font-size: 11px;
    line-height: 1.55;
    counter-increment: size-step;
}

.measurement-list li::before {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #8a8f92;
    border-radius: 50%;
    color: #666d72;
    content: counter(size-step);
    font-size: 14px;
}

.measurement-list strong {
    color: #6d7378;
    font-size: 10px;
    font-weight: 500;
}

.measurement-figure {
    width: 310px;
    max-width: 100%;
    height: auto;
    justify-self: end;
    object-fit: contain;
}

.size-guide__bra {
    padding-top: 28px;
}

.size-guide__bra .size-guide__table-wrap {
    margin-top: 20px;
}

.size-guide__table--bra thead tr:first-child th[colspan] {
    border-bottom: 1px solid #8c9295;
}

.size-guide__table--bra thead tr:last-child th {
    padding-top: 6px;
}

.size-guide__measurements--bra {
    min-height: 300px;
    padding-top: 60px;
    padding-bottom: 15px;
}

.measurement-figure--bra {
    width: 330px;
}

@media (max-width: 700px) {
    .size-guide {
        padding-top: 0;
        padding-bottom: 10px;
    }

    .size-guide__header h1 {
        font-size: 26px;
    }

    .size-guide__table-wrap {
        margin-right: -15px;
        padding-right: 15px;
    }

    .size-guide__table {
        min-width: 590px;
        font-size: 11px;
    }

    .size-guide__table th,
    .size-guide__table td {
        padding: 9px 10px;
    }

    .size-guide__measurements {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
        padding: 50px 0 38px;
    }

    .size-guide__instructions h2,
    .size-guide__bra > h2 {
        font-size: 22px;
    }

    .measurement-list {
        gap: 22px;
        margin-top: 28px;
    }

    .measurement-list li {
        font-size: 11px;
    }

    .measurement-figure,
    .measurement-figure--bra {
        width: min(100%, 300px);
        justify-self: center;
    }

    .size-guide__bra {
        padding-top: 20px;
    }

    .size-guide__measurements--bra {
        padding-top: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .size-guide__table-wrap {
        scroll-behavior: auto;
    }
}
