/* BARBET SHARED SIZE CHART V2: centred modal, selectors scoped to .bbsc; no global typography/layout overrides. */
.bbsc[hidden], .bbsc [hidden] { display: none !important; }
.bbsc { position: fixed; inset: 0; z-index: 110010; font-family: inherit; color: #272727; }
.bbsc:not([hidden]) { display: flex; align-items: center; justify-content: center; padding: 28px; }
.bbsc * { box-sizing: border-box; }
.bbsc-backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.42); }
.bbsc-dialog {
    position: relative; /* Modal is centred, not anchored to the right edge. */
    top: auto; right: auto; bottom: auto; left: auto;
    width: min(680px, 100%);
    max-height: min(780px, calc(100vh - 56px));
    max-height: min(780px, calc(100dvh - 56px));
    min-height: 0;
    margin: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0,0,0,.23);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    outline: 0;
}
.bbsc-header { min-height: 68px; flex: none; padding: 16px 24px; border-bottom: 1px solid #ebe8e3; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.bbsc-header h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.bbsc-close { flex: none; width: 38px; height: 38px; background: #f1f1f1; border: 0; border-radius: 50%; display: grid; place-items: center; color: #555; cursor: pointer; padding: 8px; }
.bbsc-close svg { width: 20px; height: 20px; }
.bbsc-close:hover { background: #e5e3df; }
.bbsc button:focus-visible { outline: 2px solid #876a28; outline-offset: 2px; }
.bbsc-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 23px 26px 32px; }
.bbsc-switch { display: inline-flex; padding: 3px; border-radius: 9px; background: #f4f1eb; gap: 3px; margin-bottom: 22px; }
.bbsc-switch button { border: 0; background: transparent; min-width: 78px; padding: 11px 12px; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 700; color: #929292; cursor: pointer; line-height: 1.1; }
.bbsc-switch button.is-active { background: #fff; color: #795d21; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.bbsc-table-wrapper { border: 1px solid #e6e0d6; border-radius: 10px; overflow: hidden; }
.bbsc-table { width: 100%; border: 0; border-collapse: collapse; table-layout: fixed; font-size: 13px; line-height: 1.4; }
.bbsc-table th,.bbsc-table td { border-right: 1px solid #e6e8ec; border-bottom: 1px solid #ece8e1; padding: 17px 12px; text-align: center; vertical-align: middle; }
.bbsc-table tr > :last-child { border-right: none; }
.bbsc-table thead th { background: #faf8f5; color: #565656; font-weight: 700; font-size: 12px; }
.bbsc-table tbody th { background: #fff; font-weight: 700; text-align: left; padding-left: 22px; border-left: 3px solid #d9b04d; }
.bbsc-table tbody tr:nth-child(even) td,.bbsc-table tbody tr:nth-child(even) th { background: #fcfbf9; }
.bbsc-note { margin: 0; padding: 13px 20px; background: #fcfaf6; color: #777; font-size: 12px; }
.bbsc-note strong { color: #525252; }
.bbsc-guide { display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 24px; align-items: start; margin-top: 32px; }
.bbsc-diagram svg { width: 100%; height: auto; display: block; }
.bbsc-instructions { margin: 0; padding: 0; list-style: none; counter-reset: steps; color: #656565; font-size: 13px; line-height: 1.85; }
.bbsc-instructions li { position: relative; padding-left: 21px; margin: 0 0 14px; counter-increment: steps; }
.bbsc-instructions li::before { content: counter(steps) '.'; position: absolute; left: 0; top: 0; color: #1599a6; font-weight: 700; }
.bbsc-instructions strong { color: #393939; }
body.barbet-size-open { overflow: hidden; }
.pdpv3-option-title .bbsc-pdp-open { border: 0; background: none; text-decoration: underline; color: #ac442e; font: inherit; font-size: 10px; cursor: pointer; padding: 2px 0; }
.pdpv3-option-title .bbsc-pdp-open:hover { color: #742d20; }
.pdpv3-option-title .bbsc-pdp-open:focus-visible { outline: 2px solid #9b6433; outline-offset: 3px; }
@media (max-width: 540px) {
    .bbsc:not([hidden]) { padding: 12px; }
    .bbsc-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 12px;
    }
    .bbsc-header { min-height: 62px; padding: 12px 18px; }
    .bbsc-scroll { padding: 18px 17px 28px; }
    .bbsc-table th,.bbsc-table td { padding: 14px 5px; font-size: 12px; }
    .bbsc-table tbody th { padding-left: 13px; }
    .bbsc-guide { grid-template-columns: 115px minmax(0,1fr); gap: 14px; margin-top: 24px; }
    .bbsc-instructions { font-size: 12px; line-height: 1.65; }
    .bbsc-instructions li { margin-bottom: 12px; padding-left: 18px; }
}
@media (prefers-reduced-motion: reduce) { .bbsc * { scroll-behavior: auto!important; } }
