.ssf-widget,
.ssf-widget *,
.ssf-widget *::before,
.ssf-widget *::after,
.ssf-modal-root,
.ssf-modal-root *,
.ssf-modal-root *::before,
.ssf-modal-root *::after {
    box-sizing: border-box;
}

.ssf-widget {
    display: block;
    margin: 12px 0;
    max-width: 100%;
}

.ssf-primary-action.ssf-is-loading::after {
    animation: ssfSpin .7s linear infinite;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    content: "";
    flex: 0 0 auto;
    height: 14px;
    width: 14px;
}

.ssf-modal-root {
    --ssf-bg: #ffffff;
    --ssf-fg: #141414;
    --ssf-muted: rgba(20, 20, 20, .56);
    --ssf-subtle: rgba(20, 20, 20, .08);
    --ssf-faint: rgba(20, 20, 20, .032);
    --ssf-button-bg: #141414;
    --ssf-button-text: #ffffff;
    align-items: center;
    animation: ssfRootIn .16s ease both;
    color: var(--ssf-fg);
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    inset: 0;
    justify-content: center;
    overflow: hidden;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    pointer-events: auto;
    position: fixed;
    z-index: 2147483000;
}

.ssf-modal-root.ssf-is-closing {
    animation: ssfRootOut .16s ease both;
    pointer-events: none;
}

.ssf-modal-overlay {
    background: rgba(0, 0, 0, .38);
    inset: 0;
    position: absolute;
}

@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
    .ssf-modal-overlay {
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }
}

.ssf-modal-shell {
    animation: ssfModalIn .2s cubic-bezier(.2, .85, .25, 1) both;
    background: var(--ssf-bg);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 0;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
    color: var(--ssf-fg);
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 720px);
    max-height: min(90dvh, 720px);
    outline: 0;
    overflow: hidden;
    position: relative;
    width: min(820px, calc(100vw - 24px));
}

.ssf-modal-root.ssf-is-closing .ssf-modal-shell {
    animation: ssfModalOut .16s ease both;
}

.ssf-modal-close {
    appearance: none;
    -webkit-appearance: none;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(20, 20, 20, .12);
    border-radius: 999px;
    color: var(--ssf-fg);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 24px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    min-width: 0;
    padding: 0 0 2px;
    position: absolute;
    right: 22px;
    top: 22px;
    transition: background-color .18s ease, transform .18s ease;
    width: 40px;
    z-index: 4;
}

.ssf-modal-close:hover {
    background: rgba(20, 20, 20, .09);
}

.ssf-modal-close:focus-visible,
.ssf-modal-tabs button:focus-visible,
.ssf-primary-action:focus-visible,
.ssf-secondary-action:focus-visible {
    outline: 2px solid var(--ssf-fg);
    outline-offset: 3px;
}

.ssf-modal-header {
    border-bottom: 0;
    flex: 0 0 auto;
    padding: 38px 84px 24px 38px;
}

.ssf-modal-header span {
    color: var(--ssf-muted);
    display: block;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .12em;
    line-height: 1;
    margin-bottom: 9px;
    text-transform: uppercase;
}

.ssf-modal-header h2 {
    color: var(--ssf-fg);
    font: inherit;
    font-size: 34px;
    font-weight: 430;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
    max-width: 620px;
}

.ssf-modal-header p {
    color: var(--ssf-muted);
    font: inherit;
    font-size: 14.5px;
    line-height: 1.55;
    margin: 12px 0 0;
    max-width: 620px;
}

.ssf-header-meta {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.ssf-info-card,
.ssf-loading,
.ssf-empty,
.ssf-alert,
.ssf-measure-card {
    background: var(--ssf-faint);
    border: 1px solid rgba(20, 20, 20, .075);
    border-radius: 14px;
    color: var(--ssf-muted);
    font: inherit;
    font-size: 14px;
    line-height: 1.55;
    padding: 14px;
}

.ssf-info-card strong,
.ssf-alert strong {
    color: var(--ssf-fg);
    display: block;
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .08em;
    line-height: 1.1;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.ssf-info-card p,
.ssf-alert p {
    margin: 0;
}

.ssf-alert p {
    margin-bottom: 12px;
}

.ssf-measure-guide {
    display: grid;
    gap: 22px;
}

.ssf-measure-title {
    color: var(--ssf-fg);
    font: inherit;
    font-size: 24px;
    font-weight: 420;
    letter-spacing: .035em;
    line-height: 1.18;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ssf-measure-helper,
.ssf-measure-fit-note {
    color: var(--ssf-muted);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.5;
    margin: -8px 0 0;
}

.ssf-measure-list {
    display: grid;
    gap: 12px;
}

.ssf-measure-row {
    background: rgba(20, 20, 20, .025);
    border: 1px solid rgba(20, 20, 20, .065);
    border-radius: 14px;
    column-gap: 12px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 15px;
    row-gap: 4px;
}

.ssf-measure-icon {
    align-items: center;
    border: 1px solid rgba(20, 20, 20, .16);
    border-radius: 999px;
    display: inline-flex;
    grid-row: 1 / span 2;
    height: 30px;
    justify-content: center;
    position: relative;
    width: 30px;
}

.ssf-measure-icon::before {
    border-left: 1px solid rgba(20, 20, 20, .55);
    border-top: 1px solid rgba(20, 20, 20, .55);
    content: "";
    height: 12px;
    transform: rotate(-45deg);
    width: 12px;
}

.ssf-measure-row h3 {
    color: rgba(20, 20, 20, .86);
    font: inherit;
    font-size: 15px;
    font-weight: 520;
    letter-spacing: .06em;
    line-height: 1.25;
    margin: 0;
    text-transform: uppercase;
}

.ssf-measure-row p {
    color: rgba(20, 20, 20, .76);
    font: inherit;
    font-size: 15px;
    font-weight: 380;
    line-height: 1.45;
    margin: 0;
}

.ssf-loading-skeleton {
    display: grid;
    gap: 12px;
}

.ssf-skeleton-tabs {
    display: flex;
    gap: 8px;
}

.ssf-skeleton-tabs i,
.ssf-skeleton-line,
.ssf-skeleton-table i {
    animation: ssfSkeletonShimmer 1.1s ease-in-out infinite;
    background: linear-gradient(90deg, rgba(20, 20, 20, .045), rgba(20, 20, 20, .095), rgba(20, 20, 20, .045));
    background-size: 220% 100%;
    border-radius: 999px;
    display: block;
}

.ssf-skeleton-tabs i {
    height: 34px;
    width: 112px;
}

.ssf-skeleton-tabs i:nth-child(2) {
    width: 126px;
}

.ssf-skeleton-tabs i:nth-child(3) {
    width: 94px;
}

.ssf-skeleton-card {
    background: var(--ssf-faint);
    border: 1px solid rgba(20, 20, 20, .07);
    border-radius: 16px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.ssf-skeleton-line {
    height: 12px;
    width: 58%;
}

.ssf-skeleton-line--wide {
    width: 76%;
}

.ssf-skeleton-line--short {
    width: 38%;
}

.ssf-skeleton-table {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 6px;
}

.ssf-skeleton-table i {
    border-radius: 10px;
    height: 38px;
}

.ssf-modal-tabs {
    border-bottom: 1px solid rgba(20, 20, 20, .06);
    display: flex;
    flex: 0 0 auto;
    gap: 22px;
    overflow: hidden;
    padding: 0 38px;
    scrollbar-width: none;
}

.ssf-modal-tabs::-webkit-scrollbar {
    display: none;
}

.ssf-modal-tabs button {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--ssf-muted);
    cursor: pointer;
    flex: 1 1 0;
    font: inherit;
    font-size: 12px;
    font-weight: 680;
    letter-spacing: 0;
    line-height: 1;
    margin: 0;
    min-height: 44px;
    min-width: 0;
    padding: 0 2px;
    white-space: nowrap;
}

.ssf-modal-tabs button.ssf-is-active {
    border-bottom-color: currentColor;
    color: var(--ssf-fg);
}

.ssf-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 38px 38px;
    -webkit-overflow-scrolling: touch;
}

.ssf-panel {
    display: none;
}

.ssf-panel.ssf-is-active {
    animation: ssfPanelIn .16s ease both;
    display: block;
}

.ssf-chart-stack {
    display: grid;
    gap: 0;
}

.ssf-size-note,
.ssf-table-note {
    color: #8a8a8a;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.4;
    margin: 0 0 14px;
}

.ssf-table-surface {
    background: var(--ssf-bg);
    border: 1px solid rgba(20, 20, 20, .055);
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    overflow: hidden;
}

.ssf-size-table {
    border-collapse: separate;
    border-spacing: 0;
    color: inherit;
    display: table;
    font: inherit;
    font-size: 13.5px;
    min-width: 100%;
    table-layout: fixed;
    width: 100%;
}

.ssf-size-table th,
.ssf-size-table td {
    border: 0;
    border-bottom: 1px solid rgba(20, 20, 20, .05);
    line-height: 1.25;
    padding: 15px 13px;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
}

.ssf-size-table thead th {
    background: #fff;
    color: rgba(20, 20, 20, .48);
    font-size: 10px;
    font-weight: 680;
    letter-spacing: .075em;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 1;
}

.ssf-size-table tbody th {
    color: var(--ssf-fg);
    font-size: 14.5px;
    font-weight: 680;
}

.ssf-size-table tbody td {
    color: rgba(20, 20, 20, .66);
    font-weight: 520;
}

.ssf-size-table tbody tr:nth-child(even) th,
.ssf-size-table tbody tr:nth-child(even) td {
    background: transparent;
}

.ssf-size-table tbody tr.ssf-is-recommended th,
.ssf-size-table tbody tr.ssf-is-recommended td {
    background: rgba(20, 20, 20, .035);
}

.ssf-size-table tbody tr:last-child th,
.ssf-size-table tbody tr:last-child td {
    border-bottom: 0;
}

.ssf-row-size {
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

.ssf-rec-pill {
    align-items: center;
    background: rgba(20, 20, 20, .055);
    border: 1px solid rgba(20, 20, 20, .07);
    border-radius: 999px;
    color: rgba(20, 20, 20, .58);
    display: none;
    font-size: 9px;
    font-weight: 680;
    letter-spacing: .02em;
    line-height: 1;
    margin-left: 0;
    max-width: 100%;
    padding: 4px 6px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}

.ssf-size-table tr.ssf-is-recommended .ssf-rec-pill,
.ssf-size-card.ssf-is-recommended .ssf-rec-pill {
    display: inline-flex;
}

.ssf-size-cards {
    display: none;
}

.ssf-saved-measurements-slot {
    padding: 0 0 14px;
}

.ssf-saved-measurements-bar {
    align-items: flex-start;
    background: rgba(20, 20, 20, .026);
    border: 1px solid rgba(20, 20, 20, .06);
    border-radius: 0;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 0 12px;
    border-left: 0;
    border-right: 0;
}

.ssf-saved-measurements-bar p {
    color: rgba(20, 20, 20, .72);
    font-size: 13px;
    font-weight: 620;
    line-height: 1.35;
    margin: 0;
}

.ssf-saved-measurements-bar div {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.ssf-saved-measurements-bar button {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: rgba(20, 20, 20, .58);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
    margin: 0;
    padding: 7px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ssf-saved-measurements-bar button:focus-visible {
    outline: 2px solid var(--ssf-fg);
    outline-offset: 3px;
}

.ssf-recommend {
    display: block;
    margin: 0 auto;
    max-width: 560px;
}

.ssf-recommend [hidden] {
    display: none;
}

.ssf-form-view {
    display: grid;
    gap: 15px;
}

.ssf-form-intro {
    display: grid;
    gap: 6px;
}

.ssf-form-intro strong {
    color: var(--ssf-fg);
    font-size: 16px;
    font-weight: 760;
    line-height: 1.2;
}

.ssf-form-intro span {
    color: var(--ssf-muted);
    font-size: 14px;
    line-height: 1.45;
}

.ssf-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ssf-field {
    display: grid;
    gap: 7px;
}

.ssf-field--full {
    grid-column: 1 / -1;
}

.ssf-field > span {
    color: var(--ssf-muted);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ssf-input-shell,
.ssf-select-shell {
    align-items: center;
    background: var(--ssf-bg);
    border: 1px solid rgba(20, 20, 20, .1);
    border-radius: 0;
    display: flex;
    min-height: 52px;
    padding: 0 14px;
}

.ssf-input-shell:focus-within,
.ssf-select-shell:focus-within {
    border-color: rgba(20, 20, 20, .32);
    box-shadow: 0 0 0 4px rgba(20, 20, 20, .055);
}

.ssf-input-shell input,
.ssf-select-shell select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--ssf-fg);
    flex: 1 1 auto;
    font: inherit;
    font-size: 16px;
    font-weight: 680;
    line-height: 1.3;
    min-width: 0;
    outline: 0;
    padding: 2px 0;
    width: 100%;
}

.ssf-select-shell select {
    min-height: 32px;
    padding-bottom: 4px;
    padding-top: 4px;
}

.ssf-input-shell em {
    color: var(--ssf-muted);
    font: inherit;
    font-size: 13px;
    font-style: normal;
    font-weight: 720;
    padding-left: 8px;
}

.ssf-inline-message,
.ssf-cart-message {
    color: var(--ssf-muted);
    font-size: 12px;
    line-height: 1.35;
    min-height: 16px;
}

.ssf-result-card {
    background: var(--ssf-bg);
    border: 1px solid rgba(20, 20, 20, .07);
    border-radius: 0;
    box-shadow: none;
    display: grid;
    gap: 18px;
    padding: 28px;
}

.ssf-result-stage {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.ssf-result-top {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-start;
}

.ssf-result-top > span {
    color: var(--ssf-muted);
    font-size: 11px;
    font-weight: 640;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ssf-confidence {
    background: rgba(20, 20, 20, .035);
    border: 1px solid rgba(20, 20, 20, .065);
    border-radius: 999px;
    color: rgba(20, 20, 20, .68);
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 640;
    line-height: 1;
    padding: 8px 10px;
}

.ssf-result-size {
    color: var(--ssf-fg);
    display: block;
    font-size: 86px;
    font-weight: 420;
    letter-spacing: 0;
    line-height: .9;
}

.ssf-result-copy {
    color: var(--ssf-muted);
    font-size: 14.5px;
    line-height: 1.45;
    margin: 0;
}

.ssf-result-actions {
    align-items: center;
    color: rgba(20, 20, 20, .35);
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 8px;
}

.ssf-result-actions button {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: rgba(20, 20, 20, .58);
    cursor: pointer;
    font: inherit;
    font-weight: 680;
    margin: 0;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ssf-result-actions button:focus-visible {
    outline: 2px solid var(--ssf-fg);
    outline-offset: 3px;
}

.ssf-recommended-note {
    align-items: center;
    background: rgba(20, 20, 20, .045);
    border: 1px solid rgba(20, 20, 20, .09);
    border-radius: 10px;
    color: var(--ssf-fg);
    display: inline-flex;
    gap: 8px;
    justify-self: start;
    padding: 8px 10px;
}

.ssf-recommended-note span {
    color: var(--ssf-muted);
    font-size: 11px;
    font-weight: 760;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ssf-recommended-note strong {
    font-size: 15px;
    font-weight: 840;
}

.ssf-remember-measurements {
    align-items: flex-start;
    background: rgba(20, 20, 20, .025);
    border: 1px solid rgba(20, 20, 20, .07);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 12px;
}

.ssf-remember-measurements input {
    accent-color: var(--ssf-fg);
    flex: 0 0 auto;
    height: 18px;
    margin: 1px 0 0;
    width: 18px;
}

.ssf-remember-measurements span {
    display: grid;
    gap: 3px;
}

.ssf-remember-measurements strong {
    color: rgba(20, 20, 20, .78);
    font-size: 13px;
    font-weight: 720;
    line-height: 1.25;
}

.ssf-remember-measurements em {
    color: var(--ssf-muted);
    font: inherit;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.ssf-result-alternatives {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ssf-alt-size {
    appearance: none;
    -webkit-appearance: none;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(20, 20, 20, .08);
    border-radius: 0;
    color: var(--ssf-fg);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    font: inherit;
    justify-content: center;
    line-height: 1.05;
    margin: 0;
    min-height: 54px;
    min-width: 0;
    padding: 8px 10px;
    transition: background-color .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease;
}

.ssf-alt-size:hover:not(:disabled),
.ssf-alt-size.ssf-is-active {
    background: rgba(20, 20, 20, .035);
    border-color: rgba(20, 20, 20, .22);
}

.ssf-alt-size.ssf-is-active {
    box-shadow: inset 0 0 0 1px rgba(20, 20, 20, .12);
}

.ssf-alt-size.ssf-is-recommended {
    border-color: rgba(20, 20, 20, .3);
}

.ssf-alt-size:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.ssf-alt-size:focus-visible {
    outline: 2px solid var(--ssf-fg);
    outline-offset: 3px;
}

.ssf-alt-size strong {
    font-size: 15px;
    font-weight: 820;
}

.ssf-alt-size__label {
    color: var(--ssf-muted);
    display: block;
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ssf-social-proof {
    background: rgba(20, 20, 20, .04);
    border: 1px solid rgba(20, 20, 20, .06);
    border-radius: 12px;
    color: rgba(20, 20, 20, .68);
    font-size: 13px;
    line-height: 1.4;
    padding: 12px;
}

.ssf-cart-zone {
    display: grid;
    gap: 8px;
}

.ssf-primary-action,
.ssf-secondary-action {
    appearance: none;
    -webkit-appearance: none;
    align-items: center;
    border-radius: 0;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    font-weight: 780;
    gap: 10px;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
    min-height: 50px;
    min-width: 0;
    padding: 0 18px;
    position: relative;
    text-align: center;
    transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    width: 100%;
}

.ssf-primary-action {
    background: var(--ssf-button-bg);
    border: 1px solid var(--ssf-button-bg);
    box-shadow: none;
    color: var(--ssf-button-text);
}

.ssf-secondary-action {
    background: rgba(20, 20, 20, .045);
    border: 1px solid rgba(20, 20, 20, .08);
    color: var(--ssf-fg);
}

.ssf-primary-action:not(:disabled):hover,
.ssf-secondary-action:not(:disabled):hover {
    opacity: .92;
    transform: translateY(-1px);
}

.ssf-primary-action:disabled,
.ssf-secondary-action:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .48;
    transform: none;
}

@media (max-width: 767px) {
    .ssf-modal-root {
        align-items: center;
        justify-content: center;
        padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    }

    .ssf-widget {
        margin: 10px 0;
    }

    .ssf-modal-shell {
        border-radius: 18px;
        max-height: 90vh;
        max-height: 90dvh;
        width: min(100%, calc(100vw - 24px));
    }

    .ssf-modal-close {
        height: 34px;
        right: 16px;
        top: 16px;
        width: 34px;
    }

    .ssf-modal-header {
        padding: 26px 62px 18px 20px;
    }

    .ssf-modal-header span {
        font-size: 10px;
        letter-spacing: .1em;
        margin-bottom: 7px;
    }

    .ssf-modal-header h2 {
        font-size: 23px;
        line-height: 1.08;
    }

    .ssf-modal-header p {
        font-size: 13px;
        line-height: 1.45;
        margin-top: 8px;
    }

    .ssf-modal-tabs {
        gap: 10px;
        padding: 0 20px;
    }

    .ssf-modal-tabs button {
        font-size: 11.5px;
        min-height: 42px;
        padding: 0;
    }

    .ssf-saved-measurements-slot {
        padding: 0 0 12px;
    }

    .ssf-saved-measurements-bar {
        display: grid;
        gap: 9px;
        padding: 11px 12px;
    }

    .ssf-saved-measurements-bar div {
        justify-content: flex-start;
    }

    .ssf-modal-body {
        padding: 18px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    }

    .ssf-size-note,
    .ssf-table-note {
        font-size: 11.5px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .ssf-table-surface {
        border-color: rgba(20, 20, 20, .065);
        border-radius: 0;
        display: block;
        overflow: hidden;
    }

    .ssf-size-table {
        font-size: 12px;
        table-layout: fixed;
        width: 100%;
    }

    .ssf-size-table th,
    .ssf-size-table td {
        border-bottom-color: rgba(20, 20, 20, .052);
        line-height: 1.22;
        padding: 10px 7px;
        word-break: normal;
    }

    .ssf-size-table thead th {
        background: rgba(20, 20, 20, .022);
        color: rgba(20, 20, 20, .58);
        font-size: 9px;
        font-weight: 760;
        letter-spacing: .07em;
    }

    .ssf-size-table thead th:first-child,
    .ssf-size-table tbody th {
        width: 30%;
    }

    .ssf-size-table tbody th {
        font-size: 12.5px;
        font-weight: 760;
    }

    .ssf-size-table .ssf-row-size {
        display: inline;
        margin-right: 5px;
    }

    .ssf-size-table .ssf-rec-pill {
        font-size: 8.5px;
        letter-spacing: .025em;
        line-height: 1;
        margin-left: 0;
        max-width: none;
        padding: 3px 5px;
        white-space: nowrap;
    }

    .ssf-size-table tbody td {
        color: rgba(20, 20, 20, .67);
        font-size: 12px;
        font-weight: 520;
    }

    .ssf-size-cards {
        display: none;
    }

    .ssf-measure-guide {
        gap: 18px;
    }

    .ssf-measure-title {
        font-size: 20px;
        letter-spacing: .03em;
        line-height: 1.18;
        margin-bottom: 4px;
    }

    .ssf-measure-helper {
        font-size: 11.5px;
        line-height: 1.45;
        margin-top: -6px;
    }

    .ssf-measure-list {
        gap: 10px;
    }

    .ssf-measure-row {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 13px;
        row-gap: 4px;
    }

    .ssf-measure-icon {
        height: 28px;
        width: 28px;
    }

    .ssf-measure-row h3 {
        font-size: 13px;
        letter-spacing: .065em;
    }

    .ssf-measure-row p {
        font-size: 13.5px;
        line-height: 1.45;
    }

    .ssf-measure-fit-note {
        font-size: 11.5px;
        line-height: 1.45;
    }

    .ssf-size-card {
        background: var(--ssf-bg);
        border: 1px solid rgba(20, 20, 20, .085);
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .04);
        display: grid;
        gap: 10px;
        padding: 13px;
    }

    .ssf-size-card.ssf-is-recommended {
        background: rgba(20, 20, 20, .045);
    }

    .ssf-size-card__head {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: space-between;
    }

    .ssf-size-card__head strong {
        color: var(--ssf-fg);
        font-size: 19px;
        font-weight: 820;
        line-height: 1;
    }

    .ssf-size-card dl {
        display: grid;
        gap: 7px;
        margin: 0;
    }

    .ssf-size-card dl div {
        align-items: center;
        border-top: 1px solid rgba(20, 20, 20, .06);
        display: flex;
        gap: 10px;
        justify-content: space-between;
        padding-top: 7px;
    }

    .ssf-size-card dt,
    .ssf-size-card dd {
        font: inherit;
        margin: 0;
    }

    .ssf-size-card dt {
        color: var(--ssf-muted);
        font-size: 12px;
        font-weight: 650;
    }

    .ssf-size-card dd {
        color: var(--ssf-fg);
        font-size: 13px;
        font-weight: 760;
        text-align: right;
    }

    .ssf-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ssf-recommend {
        max-width: none;
    }

    .ssf-result-top {
        flex-direction: row;
        gap: 8px;
    }

    .ssf-result-card {
        gap: 16px;
        padding: 22px 18px;
    }

    .ssf-result-size {
        font-size: 76px;
    }

    .ssf-result-alternatives {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ssf-alt-size {
        min-height: 56px;
        padding: 7px 5px;
    }

    .ssf-alt-size__label {
        font-size: 8px;
        letter-spacing: .025em;
    }

    .ssf-primary-action,
    .ssf-secondary-action {
        min-height: 48px;
        white-space: normal;
    }
}

@media (max-width: 430px) {
    .ssf-modal-header h2 {
        font-size: 22px;
    }
}

@media (max-width: 390px) {
    .ssf-modal-root {
        padding: max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    }

    .ssf-modal-shell {
        width: calc(100vw - 20px);
    }

    .ssf-modal-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ssf-size-table th,
    .ssf-size-table td {
        padding: 9px 6px;
    }

    .ssf-size-table thead th {
        font-size: 8.5px;
        letter-spacing: .055em;
    }

    .ssf-size-table tbody th,
    .ssf-size-table tbody td {
        font-size: 11.5px;
    }
}

@media (max-width: 360px) {
    .ssf-modal-header {
        padding-left: 14px;
    }

    .ssf-modal-header h2 {
        font-size: 20px;
    }

    .ssf-size-table th,
    .ssf-size-table td {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (min-width: 768px) {
    .ssf-modal-shell {
        min-height: 420px;
    }
}

@media (min-width: 1024px) {
    .ssf-modal-header {
        padding: 28px 76px 20px 28px;
    }

    .ssf-modal-body {
        padding: 20px 28px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ssf-modal-root,
    .ssf-modal-shell,
    .ssf-panel,
    .ssf-alt-size,
    .ssf-primary-action,
    .ssf-secondary-action,
    .ssf-skeleton-tabs i,
    .ssf-skeleton-line,
    .ssf-skeleton-table i {
        animation: none;
        transition: none;
    }
}

@keyframes ssfRootIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ssfRootOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes ssfModalIn {
    from {
        opacity: 0;
        transform: scale(.975);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ssfModalOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(.985);
    }
}

@keyframes ssfPanelIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ssfSpin {
    to { transform: rotate(360deg); }
}

@keyframes ssfSkeletonShimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}
