.commerce-flow-page {
    background: var(--bg);
}

.commerce-flow-page .page-shell {
    padding-bottom: 0;
}

.commerce-flow-page .site-footer {
    display: block;
}

.commerce-flow {
    width: min(calc(100% - 24px), 880px);
    gap: 18px;
    padding: 18px 0 32px;
}

.commerce-flow__section {
    display: grid;
    min-width: 0;
    gap: 10px;
}

.commerce-flow__seller {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--ui-shadow-sm);
}

.commerce-flow__seller > .account-list-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.commerce-flow__actions,
.commerce-flow__actions form {
    display: grid;
    gap: 10px;
}

.commerce-flow-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: end;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(223, 232, 220, .72), rgba(255, 253, 247, .96) 58%);
    box-shadow: var(--ui-shadow-sm);
}

.commerce-flow-header__back {
    grid-column: 1 / -1;
    display: inline-flex;
    width: fit-content;
    min-height: 32px;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 600;
}

.commerce-flow-header__copy {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.commerce-flow-header__copy p {
    margin: 0;
    color: var(--accent-strong);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.commerce-flow-header__copy h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.35rem, 5vw, 2rem);
    line-height: 1.04;
}

.commerce-flow-header__copy div {
    max-width: 58ch;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.4;
}

.commerce-flow-header__status {
    align-self: start;
    padding: 6px 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.commerce-notice,
.commerce-blockers {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.commerce-notice__icon,
.commerce-blockers__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
}

.commerce-notice--warning .commerce-notice__icon,
.commerce-blockers__icon {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.commerce-notice__copy {
    display: grid;
    gap: 3px;
}

.commerce-notice strong,
.commerce-blockers strong {
    color: var(--text);
    font-size: .82rem;
    font-weight: 700;
}

.commerce-notice small,
.commerce-blockers li {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.4;
}

.commerce-blockers ul {
    display: grid;
    gap: 4px;
    margin: 6px 0 0;
    padding-left: 18px;
}

.commerce-submit {
    width: 100%;
    min-height: 48px;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: var(--cream);
    font-size: .9rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(200, 97, 56, .18);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.commerce-submit--secondary {
    border: 1px solid var(--brand);
    background: var(--surface);
    color: var(--brand);
    box-shadow: none;
}

.commerce-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(200, 97, 56, .22);
}

.commerce-submit:disabled,
.commerce-submit[aria-busy="true"] {
    opacity: .58;
    cursor: wait;
}

.commerce-flow__panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--ui-shadow-sm);
}

.commerce-flow__panel label {
    color: var(--text);
    font-size: .78rem;
    font-weight: 600;
}

.commerce-flow__panel input,
.commerce-flow__panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.commerce-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

.commerce-payment-trust {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
    border-radius: 10px;
    background: linear-gradient(145deg, var(--surface), var(--brand-soft));
    box-shadow: var(--ui-shadow-sm);
}

.commerce-payment-trust__heading {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.commerce-payment-trust__shield {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--brand);
    color: var(--cream);
}

.commerce-payment-trust h3,
.commerce-payment-trust p {
    margin: 0;
}

.commerce-payment-trust h3 {
    color: var(--brand);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.commerce-payment-trust__heading p,
.commerce-payment-trust__note {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.4;
}

.commerce-alcohol-gate {
    display: grid;
    gap: 7px;
    margin-block: 12px;
    padding: 12px;
    border: 2px solid #8f281f;
    border-radius: 8px;
    background: #fff8f6;
    color: #4f1712;
    line-height: 1.4;
}

.commerce-alcohol-gate p,
.commerce-alcohol-gate small {
    margin: 0;
}

.commerce-alcohol-gate__confirmation {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.commerce-alcohol-gate__confirmation input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.legal-alcohol-banner {
    box-sizing: border-box;
    width: 100%;
    min-height: 60px;
    border: 4px solid #000;
    background: #fff;
    color: #000;
    display: grid;
    grid-template-columns: minmax(150px, 18%) 1fr;
    gap: clamp(0.75rem, 2vw, 2rem);
    align-items: center;
    padding: clamp(0.5rem, 1.3vw, 1rem);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.legal-alcohol-banner__republic {
    display: grid;
    justify-items: start;
    gap: 0.15rem;
    line-height: 1;
}

.legal-alcohol-banner__flag {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 84px;
    height: 32px;
}

.legal-alcohol-banner__flag i:nth-child(1) { background: #000091; }
.legal-alcohol-banner__flag i:nth-child(2) { background: #fff; }
.legal-alcohol-banner__flag i:nth-child(3) { background: #e1000f; }

.legal-alcohol-banner__republic small {
    font-size: 0.7rem;
    font-style: italic;
    white-space: nowrap;
}

.legal-alcohol-banner__republic strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.82rem;
    line-height: 0.95;
}

.legal-alcohol-banner__message {
    display: grid;
    gap: 0.3rem;
    text-align: center;
}

.legal-alcohol-banner__message > strong {
    font-size: clamp(0.94rem, 2vw, 1.4rem);
    font-weight: 600;
}

.legal-alcohol-banner__message > span {
    font-size: clamp(0.82rem, 1.6vw, 1.1rem);
    font-weight: 400;
}

.legal-alcohol-banner__message > small {
    justify-self: end;
    font-size: clamp(0.62rem, 1.1vw, 0.78rem);
    font-weight: 400;
}

@media (max-width: 560px) {
    .legal-alcohol-banner {
        grid-template-columns: 92px 1fr;
        gap: 0.55rem;
        border-width: 3px;
    }

    .legal-alcohol-banner__republic small {
        font-size: 0.7rem;
    }

    .legal-alcohol-banner__republic strong {
        font-size: 0.7rem;
    }
}

.commerce-payment-brands {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.commerce-payment-brand {
    display: grid;
    min-height: 54px;
    place-items: center;
    gap: 2px;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.commerce-payment-brand--pending {
    background: color-mix(in srgb, var(--surface) 82%, var(--bg));
}

.commerce-payment-brand__mark {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.commerce-payment-brand__wordmark {
    display: inline-block;
    line-height: 1;
}

.commerce-payment-brand__mark--visa {
    color: #1434cb;
    font-size: 1.05rem;
    font-style: italic;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.commerce-payment-brand__mark--mastercard {
    flex-direction: column;
    gap: 2px;
    color: #1f1f1f;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: -.04em;
}

.commerce-payment-brand__mastercard-symbol {
    display: inline-flex;
    width: 35px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

.commerce-payment-brand__mastercard-symbol i {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eb001b;
}

.commerce-payment-brand__mastercard-symbol i + i {
    margin-left: -5px;
    background: #f79e1b;
    mix-blend-mode: multiply;
}

.commerce-payment-brand__mark--cb {
    color: #2e2e79;
    font-size: 1.05rem;
    letter-spacing: .08em;
}

.commerce-payment-brand__cb-symbol {
    display: inline-grid;
    min-width: 42px;
    min-height: 25px;
    place-items: center;
    padding-inline: 5px;
    border: 2px solid currentcolor;
    border-radius: 5px;
    background: linear-gradient(90deg, #2e2e79 0 50%, #0b8d74 50% 100%);
    color: #fff;
    font-size: .88rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
}

.commerce-payment-brand__mark--paypal {
    color: #003087;
    font-size: 1rem;
}

.commerce-payment-brand__paypal-symbol {
    color: #0070e0;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    text-shadow: -2px 0 0 #003087;
}

.commerce-payment-brand--pending .commerce-payment-brand__mark {
    filter: grayscale(1);
    opacity: .48;
}

.commerce-payment-brand small {
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

@media (min-width: 520px) {
    .commerce-payment-brands {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 680px) {
    .commerce-flow {
        padding-block: 28px 44px;
    }

    .commerce-flow__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .commerce-flow-header {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .commerce-submit {
        transition: none;
    }
}

/* ---- LA MENTION ALCOOL AU PIED : une ligne discrete, pas une banderole.
 * Elle etait servie pleine largeur sous l'en-tete et ouvrait l'accueil sur
 * un avertissement. Ces regles viennent APRES sa definition d'origine et la
 * reprennent — la mention reste lisible, elle cesse d'etre la vitrine. */
.legal-alcohol-banner {
    max-width: var(--hp-content-max, 1180px);
    margin: 0 auto;
    padding: 10px var(--hp-page-x, 16px) calc(18px + var(--hp-bottom-nav-height, 0px));
    border: 0;
    background: none;
    gap: 10px;
    align-items: center;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--muted, #6b6257);
    opacity: .85;
}

.legal-alcohol-banner__republic small,
.legal-alcohol-banner__republic strong {
    font-size: 0.6rem;
    line-height: 1.1;
}

.legal-alcohol-banner__republic strong br {
    display: none;
}

.legal-alcohol-banner__message {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    text-align: left;
}

.legal-alcohol-banner__message strong {
    font-size: 0.74rem;
    font-weight: 700;
}

.legal-alcohol-banner__message small {
    font-size: 0.62rem;
    letter-spacing: .01em;
}

/* MENTIONS EN TOUT PETIT (04/09) — decision de Julien : le message sanitaire
   « L'abus d'alcool est dangereux pour la sante » reste (loi Evin), aussi petit
   que lisible. Le bandeau « Protection des mineurs » (.legal-alcohol-banner) ne
   bouge PAS : son format est fixe par l'arrete du 4 mai 2023. */
.commerce-alcohol-gate small {
    display: block;
    font-size: .62rem;
    line-height: 1.3;
    color: var(--ui-color-muted, #6B6B60);
}
