/* Customer-facing typography and the shared soft highlight from the approved reference. */
:root {
    --gm-acid-soft: #d5fc93;
    --sp-buyer-font: "Involve", Arial, sans-serif;
    --sp-text-body: 16px;
    --sp-text-small: 14px;
    --sp-text-heading: 24px;
    --sp-text-subheading: 18px;
}
.gm-auth-shell, .sp-account-page, .gm-checkout-shell, .sp-cart-shell,
.gm-ai, .gm-ai .gm-ai__dialog, .gm-vto { font-family: var(--sp-buyer-font) !important; }
.gm-auth-shell input, .gm-auth-shell button, .gm-checkout-shell input,
.gm-checkout-shell button, .gm-checkout-shell select { font-family: inherit; }
.gm-auth-logo img { width: 180px; height: auto; max-width: 100%; }
.gm-auth-card__intro h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.12; }
.gm-auth-card__intro > p:last-child, .gm-auth-form input, .gm-auth-submit { font-size: 16px; }
.gm-auth-switch, .gm-auth-legal, .gm-auth-note p, .gm-auth-back { font-size: 14px; }
.gm-ai { font-size: 16px; }
.gm-ai .gm-ai__header h2 { font-size: clamp(22px, 4vw, 26px); }
.gm-ai .gm-ai__dialog[data-screen="camera"] .gm-ai__header h2 { font-size: 20px; }
.gm-ai .gm-ai__subtitle, .gm-ai .gm-ai__button, .gm-ai .gm-ai__upload-row strong,
.gm-ai .gm-ai__reference strong { font-size: 16px; }
.gm-ai .gm-ai__other-person, .gm-ai .gm-ai__local-note, .gm-ai .gm-ai__upload-row small,
.gm-ai .gm-ai__tips, .gm-ai .gm-ai__tips p, .gm-ai .gm-ai__notice, .gm-ai .gm-ai__notice p,
.gm-ai .gm-ai__quota, .gm-ai .gm-ai__quota p, .gm-ai .gm-ai__status, .gm-ai .gm-ai__links,
.gm-ai .gm-ai__link, .gm-ai .gm-ai__camera-caption, .gm-ai .gm-ai__camera-help,
.gm-ai .gm-ai__reference span, .gm-ai .gm-ai__variant-block > span, .gm-ai .gm-ai__variant,
.gm-ai .gm-ai__consent, .gm-ai .gm-ai__ephemeral, .gm-ai .gm-ai__steps strong,
.gm-ai .gm-ai__recommendations h3, .gm-ai .gm-ai__recommendation span,
.gm-ai .gm-ai__recommendation strong, .gm-ai .gm-ai__waiting-history,
.gm-ai .gm-ai__result-progress, .gm-ai .gm-ai__disclaimer, .gm-ai .gm-ai__partial { font-size: 14px; }
.gm-ai .gm-ai__steps small, .gm-ai .gm-ai__result-badge, .gm-ai .gm-ai__view-label { font-size: 12px; }
.sp-account-page { font-size: 16px; line-height: 1.5; }
.sp-account-page .text-xs, .sp-account-page .text-sm { font-size: var(--sp-text-body); }
.sp-account-page .text-base { font-size: 16px; }
.gm-checkout-summary__totals > .flex > p, .gm-checkout-summary__item-price { color: #111 !important; }
.sp-cart-summary .primary-button { justify-self: center; text-align: center; }
.gm-carrier-card.is-selected .gm-carrier-card__body, .gm-delivery-city-option:hover,
.gm-delivery-city-option:focus-visible, .gm-delivery-city-option.is-active,
.gm-pickup-point.is-selected, .gm-checkout-method input:checked + label,
.gm-checkout-method input:checked ~ label { background-color: var(--gm-acid-soft) !important; }
.gm-checkout-delivery-rate.is-selected, .gm-checkout-delivery .gm-pickup-option:hover,
.gm-checkout-delivery .gm-pickup-option.is-selected, .gm-pickup-selected { background-color: var(--gm-acid-soft) !important; }
.gm-checkout-delivery .gm-carrier-card[aria-pressed="true"] { background-color: var(--gm-acid-soft); }
.sp-order-table th, .sp-order-table td { text-align: center; vertical-align: middle; }
.sp-order-table td { display: table-cell !important; }
.sp-order-product { display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: #111; }
.sp-order-product:hover, .sp-order-product-name:hover { text-decoration: underline; }
.sp-order-status { display: inline-flex; align-items: center; gap: 7px; border-radius: 20px; padding: 5px 10px; font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.sp-order-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.sp-order-status--waiting { color: #835a00; background: #fff2bd; }
.sp-order-status--processing { color: #006883; background: #dff6ff; }
.sp-order-status--in_transit { color: #6340a1; background: #f0e5ff; }
.sp-order-status--delivered { color: #226729; background: #e3f7df; }
.sp-order-status--canceled, .sp-order-status--refunded { color: #9c3535; background: #ffe9e9; }
.sp-order-status--closed { color: #555; background: #eee; }
.sp-order-totals { display: grid; gap: 12px; min-width: min(100%, 300px); font-size: 15px; }
.sp-order-totals > div { display: flex; justify-content: space-between; gap: 20px; }
.sp-order-totals__grand { border-top: 1px solid #ddd; padding-top: 12px; font-weight: 700; }
.sp-header.sp-header--scroll-aware { position: sticky; top: 0; transform: translateY(0); transition: transform .2s ease; }
.sp-header.sp-header--hidden { transform: translateY(calc(-100% - 2px)); }
@media (prefers-reduced-motion: reduce) { .sp-header.sp-header--scroll-aware { transition: none; } }
/* One storefront type scale, based on the catalog. Keep icon fonts, map widgets,
   product-card artwork and promotional hero sizes owned by their components. */
body.sp-storefront {
    font-family: var(--sp-buyer-font) !important;
    font-size: var(--sp-text-body);
    font-weight: 500;
    line-height: 1.3;
}
body.sp-storefront :where(*):not([class*="icon-"]):not([class*="ymaps-"]):not([class*="ymaps-"] *) {
    font-family: var(--sp-buyer-font) !important;
}
.sp-storefront :is(.gm-auth-shell, .sp-account-page, .gm-checkout-shell, .sp-cart-shell,
    .gc-page, .sp-content-page, .gm-ai-history, .sp-order-confirmation) {
    font-size: var(--sp-text-body);
    line-height: 1.3;
}
.sp-storefront :is(.gm-auth-shell, .sp-account-page, .gm-checkout-shell, .sp-cart-shell,
    .gc-page, .sp-content-page, .gm-ai-history, .sp-order-confirmation)
    :where(p, li, dt, dd, td, th, label, legend, input, select, textarea, a, button, summary,
        .text-xs, .text-sm, [class*="max-sm:text-"], [class*="max-md:text-"],
        .primary-button, .secondary-button, .sp-button, .gm-button):where(:not([class*="icon-"]):not([class*="ymaps-"]):not([class*="ymaps-"] *)) {
    font-size: var(--sp-text-body) !important;
    line-height: 1.3;
}
.sp-storefront :is(.gm-auth-shell, .sp-account-page, .gm-checkout-shell, .sp-cart-shell,
    .gc-page, .sp-content-page, .gm-ai-history, .sp-order-confirmation)
    :where(h1, h2, [role="heading"][aria-level="1"], [role="heading"][aria-level="2"]) {
    font-size: var(--sp-text-heading) !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    line-height: 1.3;
}
.sp-storefront :is(.gm-auth-shell, .sp-account-page, .gm-checkout-shell, .sp-cart-shell,
    .gc-page, .sp-content-page, .gm-ai-history, .sp-order-confirmation) h3,
.sp-storefront .gm-checkout-address-card__header h2,
.sp-storefront .gm-checkout-delivery-rate strong,
.sp-storefront .sp-cart-summary__grand-total p,
.sp-storefront .gm-checkout-shell .gm-checkout-summary__grand-total p {
    font-size: var(--sp-text-subheading) !important;
    font-weight: 600 !important;
    letter-spacing: 0;
    line-height: 1.3;
}
.sp-storefront :is(.gm-auth-shell, .sp-account-page, .gm-checkout-shell, .sp-cart-shell,
    .gc-page, .sp-content-page, .gm-ai-history, .sp-order-confirmation)
    :where(small, .gm-kicker, .gc-muted, .gc-message__meta,
        .gc-notice, .gm-auth-legal, .gm-auth-back, .gm-auth-switch,
        .gm-checkout-delivery-hint, .gm-pickup-count, .gm-city-search__status,
        .gm-ai__disclaimer):not([class*="icon-"]),
.sp-storefront .gm-auth-shell .gm-auth-note p,
.sp-storefront .gm-promo__head small,
.sp-storefront .gm-checkout-fields label:not([class*="icon-"]),
.sp-storefront .gm-checkout-delivery-controls label > span,
.sp-storefront .gm-city-search__option span,
.sp-storefront .gm-carrier-card__title,
.sp-storefront .gm-delivery-region summary,
.sp-storefront .gm-pickup-option > span:last-child,
.sp-storefront .gm-account-contact__verified,
.sp-storefront .sp-order-status {
    font-size: var(--sp-text-small) !important;
    line-height: 1.3;
}
.sp-storefront .gm-checkout-fields label:not([class*="icon-"]) {
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}
.sp-storefront .gm-promo__head strong,
.sp-storefront .gm-promo__button,
.sp-storefront .gm-promo__applied strong,
.sp-storefront .gm-promo__applied button,
.sp-storefront .gm-city-search__option strong,
.sp-storefront .gm-pickup-option strong,
.sp-storefront .gm-checkout-delivery-rate > span,
.sp-storefront .gm-account-nav nav a,
.sp-storefront .gm-account-nav form button,
.sp-storefront .gm-account-nav__person strong,
.sp-storefront .gm-account-stats span,
.sp-storefront .gm-account-contact a,
.sp-storefront .sp-order-row > span:not([class*="icon-"]),
.sp-storefront .sp-cart-selection-count,
.sp-storefront .gm-checkout-delivery .gm-pickup-more,
.sp-storefront .gm-checkout-summary__item p:first-child,
.sp-storefront .gm-checkout-summary__item-price,
.sp-storefront .gm-checkout-summary__totals > .flex:not(.gm-checkout-summary__grand-total) > p,
.sp-storefront .sp-order-totals,
.sp-storefront .gc-prose,
.sp-storefront .sp-description__text,
.sp-storefront .sp-description__text :is(p, li, td, th, span) {
    font-size: var(--sp-text-body) !important;
    line-height: 1.3;
}
.sp-storefront .gm-checkout-fields input,
.sp-storefront .gm-checkout-fields select,
.sp-storefront .gm-checkout-delivery-controls :is(input, select),
.sp-storefront .gm-promo__input {
    font-size: var(--sp-text-body) !important;
}
.sp-storefront .gm-checkout-summary__item p:first-child,
.sp-storefront .gm-promo__head strong,
.sp-storefront .gm-promo__button { font-weight: 600; }
.sp-storefront .gm-promo__form { flex-wrap: wrap; }
.sp-storefront .gm-promo__form > div { flex: 1 1 140px; min-width: 0; }
.sp-storefront .gm-promo__button { flex: 1 0 auto; max-width: 100%; }
.sp-storefront .gm-checkout-intro ol { flex-wrap: wrap; }
.sp-storefront :is(.gm-auth-shell, .sp-account-page, .gm-checkout-shell, .sp-cart-shell,
    .gc-page, .sp-content-page, .gm-ai-history, .sp-order-confirmation) .italic {
    font-style: normal !important;
}
.sp-storefront .sp-field-error {
    font-size: var(--sp-text-small) !important;
    font-style: normal;
    line-height: 1.4;
}
.sp-storefront .gm-account-stats span {
    letter-spacing: 0;
    text-transform: none;
}
.sp-storefront .gm-account-stats strong {
    font-size: var(--sp-text-heading);
    letter-spacing: 0;
}
.sp-storefront .sp-account-page :is(input, select, textarea) { min-width: 0; }
.sp-storefront .sp-account-page p { overflow-wrap: anywhere; }
.sp-storefront .sp-order-mobile-meta { flex-wrap: wrap; gap: 8px; }
.sp-storefront .sp-account-page > .flex > * { min-width: 0; }
.sp-storefront .sp-datagrid-search { min-width: 0; flex: 1; }
.sp-storefront .sp-datagrid-search > div:first-child { min-width: 0; width: 100%; }
.sp-storefront .sp-datagrid-search input { width: 100%; }
@media (max-width: 767px) {
    body.sp-storefront { --sp-text-heading: 23px; }
    .sp-storefront .gm-promo__form > div { flex-basis: auto; }
    .sp-storefront .sp-account-page > .flex { grid-template-columns: minmax(0, 1fr); }
}
