/* Shared buyer styles adapted from RISE app/design-tokens.css and Codzilla Sans v0.5.
   The programme colours come from each programme's own site. Keep these roles scoped
   to public layouts so operational screens can retain their own colour scheme. */
@font-face {
    font-family: "Codzilla Sans"; font-style: normal; font-weight: 300 900; font-display: swap;
    src: url("fonts/storefront/CodzillaSans-Armenian.woff2") format("woff2");
    unicode-range: U+0530-058F, U+FB13-FB17;
}
@font-face {
    font-family: "Codzilla Sans"; font-style: normal; font-weight: 300 900; font-display: swap;
    src: url("fonts/storefront/Inter-Latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+0300-0301, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
        U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Codzilla Sans"; font-style: normal; font-weight: 300 900; font-display: swap;
    src: url("fonts/storefront/Inter-Cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Match the language-specific heading metrics used by the RISE and Academy sites. */
:root, [lang]:lang(en), [lang]:lang(ru) {
    --cz-leading-tight: 1.1;
    --cz-leading-snug: 1.25;
    --cz-tracking-tight: -.015em;
}
[lang]:lang(hy) {
    --cz-leading-tight: 1.2;
    --cz-leading-snug: 1.3;
    --cz-tracking-tight: 0;
}

:is(.customer-shell, .shop-shell .customer-shell, .codzilla-shell, .webinar-shell, .donate-shell .customer-shell) {
    color-scheme: light;
    --font-sans: -apple-system, BlinkMacSystemFont, "Codzilla Sans", "Noto Sans Armenian", Arial, sans-serif;
    --font-serif: var(--font-sans);
    --page-bg: #ffffff; --surface: #ffffff; --text: #232323; --text-muted: #626267;
    --ink-900: #232323; --ink-700: #353535; --ink-500: #626267;
    --ink-100: #e1e4e8; --ink-50: #f5f5f7; --border: #e1e4e8; --border-control: #85858b;
    --storefront-action: #005271; --storefront-on-action: #ffffff;
    --storefront-action-hover: #003e56; --storefront-link: #005271;
    --brand-50: #eef5f8; --brand-100: #dbeaf0;
    --brand-500: var(--storefront-link); --brand-600: var(--storefront-action-hover); --brand-700: var(--text);
    --focus-ring: #006787; --shop-image-bg: #f5f5f7;
    --content-width: 72rem;
    font-family: var(--font-sans); color: var(--text); background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}
[data-storefront="bebras"] {
    --storefront-action: #ea8103; --storefront-on-action: #1e1e1e;
    --storefront-action-hover: #ffad42; --storefront-link: #934b14;
    --brand-50: #fff4e4; --focus-ring: #934b14;
}
[data-storefront="logiccup"] {
    --storefront-action: #ffc44f; --storefront-on-action: #15233d;
    --storefront-action-hover: #ffda87; --storefront-link: #15233d;
    --brand-50: #faf5e8; --focus-ring: #255784;
}
[data-storefront="codzilla"], .codzilla-shell[data-storefront="codzilla"] {
    --storefront-action: #ea8003; --storefront-on-action: #232323;
    --storefront-action-hover: #f89e30; --storefront-link: #934b14;
    --brand-50: #fff4e7; --focus-ring: #934b14;
}
[data-storefront] {
    --brand-500: var(--storefront-link); --brand-600: var(--storefront-link);
    --brand-700: var(--text);
}
:is(.customer-shell, .webinar-shell) .btn--primary {
    background: var(--storefront-action); color: var(--storefront-on-action); border-color: transparent;
    border-radius: 999px; line-height: 1.45; font-weight: 600; text-decoration: none;
}
:is(.customer-shell, .webinar-shell) .btn--primary:hover:enabled {
    background: var(--storefront-action-hover); color: var(--storefront-on-action);
}
.customer-shell :is(.btn, .registration-flow .btn) { border-radius: 999px; }
:is(.customer-shell, .codzilla-shell, .webinar-shell) :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--focus-ring); outline-offset: 3px;
}
.customer-shell .site-header, .webinar-shell .site-header {
    background: var(--page-bg); color: var(--text); border-bottom: 1px solid var(--border); box-shadow: none;
}
.customer-shell .site-header__inner, .webinar-shell .site-header__inner {
    min-height: 64px; max-width: var(--content-width); padding-inline: clamp(18px, 3vw, 36px);
}
.site-header__wordmark { width: 74px; height: auto; display: block; }
.site-header__product {
    font-size: .77rem; font-weight: 500; color: var(--text-muted); padding-inline-start: .8rem;
    border-inline-start: 1px solid var(--border); line-height: 1.4; max-width: 10rem;
}
.customer-shell .site-header__brand { gap: .8rem; }
.customer-shell .site-nav a, .customer-shell .site-header__donate { color: var(--text); font-weight: 500; }
.customer-shell .site-nav a:hover, .customer-shell .site-header__donate:hover { color: var(--storefront-link); }
.customer-shell .site-footer.site-footer--illustrated, .webinar-shell .site-footer {
    --text: #232323; --text-muted: #626267; --border: #e1e4e8; color: var(--text-muted);
    color-scheme: light; background: #f5f5f7; border-top: 1px solid var(--border);
}
.customer-shell .site-footer a:hover, .webinar-shell .site-footer a:hover { color: var(--storefront-link); }
.customer-shell .foundation-colophon { background: #f5f5f7; color: var(--text-muted); }
:is(.shop-shell .customer-shell, .customer-shell) .page {
    padding: clamp(30px, 5vw, 68px) clamp(18px, 3vw, 36px) clamp(48px, 7vw, 88px);
}
/* The page-title role is shared by public destinations, checkout and account-free service pages. */
:root { --storefront-page-title-size: 2rem; }
@media (min-width: 700px) {
    :root { --storefront-page-title-size: 2.5rem; }
}
@media (min-width: 1100px) {
    :root { --storefront-page-title-size: 3rem; }
}
h1.storefront-title {
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--storefront-page-title-size);
    font-weight: 600;
    line-height: var(--cz-leading-tight);
    letter-spacing: var(--cz-tracking-tight);
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.cz-band .storefront-title { margin: 0; }
.codzilla-shell :is(.course-thumb, .course-art) {
    display: block;
    width: var(--cz-spacing-12);
    height: var(--cz-spacing-12);
    object-fit: contain;
    background: var(--cz-paper);
    border-radius: var(--cz-radius-sm);
}
.customer-shell .purchase-section, .webinar-shell :is(.details-card, .selection-card, .bundle-card) {
    border-radius: 20px; box-shadow: none;
}
.customer-shell .registration-action-bar { color: var(--text); }
.customer-shell .registration-flow .purchase-section { border-radius: 0; }
.customer-shell :is(.form-control, .field input:not([type=checkbox]):not([type=radio]), .field select) {
    border-radius: 12px;
}
.webinar-shell .webinar-checkout { font-family: var(--font-sans); }

@media (max-width: 600px) {
    .site-header__wordmark { width: 59px; }
    .site-header__product { font-size: .65rem; padding-inline-start: .5rem; max-width: 7.5rem; }
    .customer-shell .site-header__brand { gap: .5rem; }
    .customer-shell .site-header__inner, .webinar-shell .site-header__inner { min-height: 56px; }
    .customer-shell .site-header__actions { gap: .45rem; }
    .customer-shell .page { padding-inline: 16px; }
}

.customer-shell .registration-flow :is(.btn--primary, .registration-continue) {
    background: var(--storefront-action); color: var(--storefront-on-action);
}

.icon.storefront-icon {
    display: block;
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}
.storefront-back {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    color: var(--storefront-link);
    border-radius: .375rem;
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}
.storefront-back .storefront-icon { width: 16px; height: 16px; }
.storefront-back:hover { text-decoration: underline; text-underline-offset: .2em; }
.storefront-back:active { color: var(--text); }
.customer-shell .storefront-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: max-content;
    max-width: 100%;
    padding: 2px;
    border-radius: 999px;
    background: var(--ink-50);
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.customer-shell .storefront-stepper > button {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
}
@media (hover: hover) {
    .customer-shell .storefront-stepper > button:hover:enabled { background: var(--ink-100); }
}
.customer-shell .storefront-stepper > button:active:enabled { background: var(--border); }
.customer-shell .storefront-stepper > button:disabled { color: var(--text-muted); opacity: .45; cursor: default; }
.storefront-stepper > :is(.stepper__value, .qty__value, input[type=number]) {
    min-width: 2.5ch;
    color: inherit;
    text-align: center;
    font: 600 1.0625rem/1.4 var(--font-sans);
    font-variant-numeric: tabular-nums;
}
.basket-quantity__minus, .basket-quantity__plus { flex: 0 0 44px; }
.customer-shell .basket-quantity > input[type=number] {
    width: 4.5ch;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    appearance: textfield;
}
.storefront-stepper > input[type=number]::-webkit-inner-spin-button { appearance: none; }
