/* Boutique autonome: the standalone shop chrome (shop/base.html.twig). Layout
   comes from Bootstrap utilities in the templates; only token-dependent looks
   live here. The shop always renders the light theme (data-theme-locked). */

.shop-body {
    --bs-border-radius: var(--ap-radius);
    --bs-border-radius-sm: var(--ap-radius);
    --bs-border-radius-lg: var(--ap-radius);
}

.shop-body .form-check-input[type='checkbox'] {
    border-radius: min(var(--ap-radius), 0.25em);
}

.shop-body .panel,
.shop-body .site-image, 
.shop-body .image-frame {
    border-radius: var(--ap-radius);
}

.shop-body .site-image {
    border-color: color-mix(in srgb, var(--ap-border) 45%, transparent);
}

/* The horizontal gutter belongs to the container, not to the section: the
   header, the rayon bar and the footer have no section wrapper, so a
   section-level inset misaligns them below the container's max width. */
.shop-body .section {
    padding-block: 1.5rem;
}

.shop-announce {
    background: rgba(var(--ap-accent-rgb), 0.08);
    color: var(--ap-accent-text);
    font-family: var(--ap-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* The same 1480px the platform's own layout caps at (--pf-maxw): the two are
   read side by side, and platform.css is not loaded on the public shop. */
.shop-body .container-fluid {
    max-width: 1480px;
    padding-inline: 1.5rem;
}

.shop-header__brand {
    color: var(--ap-text);
    font-family: var(--ap-font-display);
    font-weight: 700;
}

.shop-header__logo {
    max-height: 48px;
}

.shop-footer__logo {
    max-height: 40px;
}

.shop-header__cart {
    --bs-btn-bg: var(--ap-text);
    --bs-btn-border-color: var(--ap-text);
    --bs-btn-color: var(--ap-bg);
    --bs-btn-hover-bg: var(--ap-muted);
    --bs-btn-hover-border-color: var(--ap-muted);
    --bs-btn-hover-color: var(--ap-bg);
    --bs-btn-active-bg: var(--ap-muted);
    --bs-btn-active-border-color: var(--ap-muted);
    --bs-btn-active-color: var(--ap-bg);
    --bs-btn-padding-x: 0.85rem;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-font-size: 1rem;

    border-radius: var(--ap-radius);
}

.shop-header__cart-count {
    --bs-badge-font-size: 0.65rem;
    --bs-badge-padding-y: 0.2rem;
    --bs-badge-padding-x: 0.3rem;

    min-width: 1.1rem;
    margin-inline-end: -0.3rem;
    background: var(--ap-accent);
    color: var(--ap-accent-contrast);
    font-family: var(--ap-font-mono);
    font-weight: 700;
}

.shop-categories {
    position: relative;
    z-index: 4;
}

.shop-categories__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.shop-categories__list::-webkit-scrollbar {
    display: none;
}

.shop-categories__list > * {
    flex: 0 0 auto;
}

.shop-categories__link {
    display: inline-block;
    padding: 0.65rem 0.9rem;
    border: 0;
    background: none;
    color: var(--ap-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

.shop-categories__link:hover,
.shop-categories__link[aria-expanded='true'] {
    color: var(--ap-accent-text);
}

.shop-categories__link.is-current {
    color: var(--ap-text);
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--ap-accent);
}

/* The panel spans the bar rather than hanging under one rayon, so its own
   container lines its columns up with the page below it. */
.shop-mega {
    position: absolute;
    z-index: 4;
    top: 100%;
    right: 0;
    left: 0;
    border-bottom: 1px solid var(--ap-border);
    box-shadow: 0 34px 54px -34px rgba(0, 0, 0, 0.28);
}

@media (max-width: 991.98px) {
    .shop-mega {
        display: none;
    }
}

.shop-mega__inner {
    padding-block: 1.4rem 2rem;
}

.shop-mega__all {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.8rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--ap-border);
}

.shop-mega__all a {
    color: var(--ap-text);
    font-weight: 600;
    text-decoration: none;
}

.shop-mega__count {
    color: var(--ap-faint);
    font-family: var(--ap-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* One column per sub-rayon, its own sub-rayons listed under it. */
.shop-mega__columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
}

.shop-mega__column {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 9rem;
    max-width: 14rem;
}

.shop-mega__head {
    color: var(--ap-text);
    font-weight: 600;
    text-decoration: none;
}

.shop-mega__leaf {
    color: var(--ap-muted);
    font-size: 0.85rem;
    line-height: 1.35;
    text-decoration: none;
}

.shop-mega__all a:hover,
.shop-mega__head:hover,
.shop-mega__leaf:hover {
    color: var(--ap-accent-text);
}

/* The rail is the phone's way down the shelves, so it scrolls rather than
   wraps: wrapping would push the grid off the first screen. */
.shop-rayons__rail {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
}

.shop-rayons__rail::-webkit-scrollbar {
    display: none;
}

.shop-rayons__rail > li {
    flex: 0 0 auto;
}

.shop-rayon__tile {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: 8rem;
    border-radius: var(--ap-radius);
    background: rgba(var(--ap-accent-rgb), 0.08);
    color: var(--ap-accent-text);
    font-family: var(--ap-font-display);
    font-size: 2rem;
    font-weight: 700;
}

.shop-rayon__tile--photo {
    object-fit: cover;
    height: 8rem;
}

.shop-rayon__name {
    max-width: 7rem;
    color: var(--ap-text);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.shop-rayon:hover .shop-rayon__name {
    color: var(--ap-accent-text);
}

/* The bar carries the rule between itself and the grid, so the facets read as
   chrome over the products rather than as a first row of them. */
.shop-bar {
    border-bottom: 1px solid var(--ap-border);
}

/* The filter bar: one pill per facet, checkbox behind it. .btn-check hides the
   input without hiding it from the keyboard, so the label carries the whole look
   and :focus-visible still lands on it. */
.shop-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius-button);
    background: var(--ap-bg);
    color: var(--ap-text);
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
}

.shop-pill:hover {
    border-color: var(--ap-accent);
    color: var(--ap-accent-text);
}

.btn-check:checked + .shop-pill,
.shop-pill--on {
    border-color: var(--ap-accent);
    background: rgba(var(--ap-accent-rgb), 0.08);
    color: var(--ap-accent-text);
    font-weight: 600;
}

.btn-check:focus-visible + .shop-pill,
.shop-pill:focus-visible {
    outline: 2px solid var(--ap-accent);
    outline-offset: 2px;
}

/* A <details> rather than a dropdown: the bounds have to open with no script
   at all, and the bar wraps instead of scrolling so the panel is never clipped. */
.shop-price {
    position: relative;
}

.shop-price > summary {
    list-style: none;
}

.shop-price > summary::-webkit-details-marker {
    display: none;
}

.shop-price__panel {
    position: absolute;
    z-index: 3;
    width: max-content;
    margin-top: 0.4rem;
    border: 1px solid var(--ap-border);
    background: var(--ap-bg);
}

.shop-price__input {
    max-width: 80px;
}

/* A page step scrolls this panel back to the top, and the navbar above it is
   sticky on the tenants who chose it: the same 5.5rem the sticky
   asides clear keeps the first row out from under it. */
[data-shop-swap] {
    scroll-margin-top: 5.5rem;
}

/* The pager reads as a line under the grid, not as a row of boxes. */
.shop-pager {
    padding-top: 1rem;
    border-top: 1px solid var(--ap-border);
}

.shop-pager .page-link {
    padding-inline: 0;
    border: 0;
    background: none;
    color: var(--ap-text);
}

.shop-pager .disabled .page-link {
    color: var(--ap-faint);
}

.shop-breadcrumb {
    font-family: var(--ap-font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ap-muted);
}

.shop-hero__tile {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    width: 11rem;
    border-radius: var(--ap-radius);
    background: rgba(var(--ap-accent-rgb), 0.08);
}

.shop-hero__tile img {
    max-width: 60%;
    height: auto;
}

.shop-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    padding: 0.25rem 0.6rem;
    border-radius: var(--ap-radius);
    background: var(--ap-accent);
    color: var(--ap-accent-contrast);
    font-family: var(--ap-font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-card__badge--sold-out {
    background: var(--ap-panel);
    color: var(--ap-faint);
    border: 1px solid var(--ap-border);
}

.shop-cart-line__thumb {
    flex: none;
    width: 4.5rem;
}

.shop-cart-line__name,
.shop-cart-line__name:hover {
    color: var(--ap-text);
}

.shop-gallery .shop-gallery__thumbs {
    position: static;
    z-index: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0.75rem 0 0;
}

.shop-gallery__thumbs .shop-gallery__thumb {
    box-sizing: border-box;
    flex: none;
    width: 4.5rem;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background-color: transparent;
    text-indent: 0;
    opacity: 0.55;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.shop-gallery__thumbs .shop-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-gallery__thumbs .shop-gallery__thumb:hover,
.shop-gallery__thumbs .shop-gallery__thumb:focus-visible {
    opacity: 1;
}

.shop-gallery__thumbs .shop-gallery__thumb.active {
    border-color: var(--ap-accent);
    opacity: 1;
}

.shop-card,
.shop-card:hover {
    color: var(--ap-text);
}

.shop-card--sold-out {
    filter: grayscale(1);
    opacity: 0.65;
}

.shop-progress {
    height: 6px;
    --bs-progress-bar-bg: var(--ap-accent);
}

.shop-progress .progress-bar {
    width: var(--shop-progress, 0%);
}

@media (min-width: 992px) {
    .shop-summary {
        position: sticky;
        top: 5.5rem;
    }
}

.shop-stock-low,
.shop-free-shipping {
    color: var(--ap-accent-text);
    font-weight: 600;
}

.shop-discount-chip {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: var(--ap-panel);
    color: var(--ap-accent-text);
    font-size: 0.6em;
    font-weight: 600;
    vertical-align: middle;
}

/* The stepper app/shop_stepper.js builds around the number field. The buy row leaves it
   stretched, so it takes the add-to-cart button's height, and the floor is the touch target
   for the narrow line where that button wraps below. Bootstrap's .input-group squares the
   inner corners, so the theme radius lands on the outer ones only. */
.shop-stepper {
    width: auto;
    min-height: 2.75rem;
    flex-wrap: nowrap;
}

.shop-stepper > .form-control {
    flex: 0 0 4rem;
    text-align: center;
    appearance: textfield;
}

.shop-stepper > .form-control::-webkit-inner-spin-button,
.shop-stepper > .form-control::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.shop-stepper .btn {
    --bs-btn-padding-x: 0;
    --bs-btn-padding-y: 0;
    --bs-btn-font-size: 1rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    border-radius: var(--ap-radius);
    letter-spacing: 0;
}

.shop-promo-row {
    color: var(--ap-accent-text);
}

.shop-promo-row .btn-link {
    color: inherit;
}

.shop-footer a {
    color: var(--ap-text);
}

.shop-footer a:hover {
    color: var(--ap-accent-text);
}

.shop-footer .shop-reassurance {
    flex-direction: column;
    gap: 0.5rem;
}

.shop-search__field {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 32.5rem;
    margin: 0 auto;
    padding: 0.625rem 1.125rem;
    background: var(--ap-panel);
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
}

.shop-search__field:focus-within {
    border-color: var(--ap-accent);
}

.shop-search__icon {
    color: var(--ap-faint);
    font-size: 0.9rem;
}

.shop-search__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ap-text);
    font-size: 0.85rem;
}

.shop-search__input:focus {
    outline: 0;
}

.shop-search__toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: var(--ap-panel);
    color: var(--ap-muted);
}

.shop-sort {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: var(--ap-bg);
    color: var(--ap-text);
    font-size: 0.78rem;
    cursor: pointer;
}

.shop-sort:focus-visible {
    outline: 2px solid var(--ap-accent);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .shop-header__cart,
    .shop-header__account {
        --bs-btn-padding-x: 0;
        --bs-btn-padding-y: 0;

        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
    }

    .shop-header__bar--collapsible .shop-header__brand-link {
        flex: 1 1 0;
    }

    .shop-header__bar--collapsible .shop-search__toggle {
        display: inline-flex;
    }

    .shop-header__bar--collapsible .shop-search__field {
        display: none;
    }

    .shop-header__bar--collapsible.shop-header__bar--open .shop-search__field {
        display: flex;
        flex-basis: 100%;
        order: 10;
        max-width: none;
        margin: 0;
    }

    /* Under 16px iOS Safari zooms the page when the field takes focus, and the
       icon focuses it on opening: the needle has to stay at 16px here. */
    .shop-search__input {
        font-size: 16px;
    }
}

/* ---- Customer account ---- */
.shop-header__account {
    --bs-btn-color: var(--ap-text);
    --bs-btn-border-color: var(--ap-border);
    --bs-btn-hover-bg: var(--ap-panel);
    --bs-btn-hover-color: var(--ap-text);
    --bs-btn-hover-border-color: var(--ap-border);
    --bs-btn-active-bg: var(--ap-panel);
    --bs-btn-active-color: var(--ap-text);
    --bs-btn-active-border-color: var(--ap-border);
    --bs-btn-padding-x: 0.85rem;
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-font-size: 1rem;

    border-radius: var(--ap-radius);
}

/* The chip fits the button's line box, so the signed-in button keeps the cart's height. */
.shop-avatar {
    display: inline-grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--ap-accent);
    color: var(--ap-accent-contrast);
    font-size: 0.7rem;
    font-weight: 700;
}

.shop-auth {
    max-width: 28rem;
}

.shop-auth--wide,
.shop-account-form {
    max-width: 40rem;
}

.shop-account-form--narrow {
    max-width: 28rem;
}

/* A legend styled as the mockup's eyebrow, out of Bootstrap's floated legend. */
.shop-eyebrow {
    float: none;
    width: auto;
    margin-bottom: 0.9rem;
    color: var(--ap-muted);
    font-family: var(--ap-font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shop-account-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    border-radius: var(--ap-radius);
    color: var(--ap-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.shop-account-nav__link:hover {
    color: var(--ap-text);
}

.shop-account-nav__link[aria-current='page'] {
    background: var(--ap-panel);
    color: var(--ap-text);
    font-weight: 700;
}

.shop-account-nav__logout {
    color: var(--ap-muted);
    font-size: 0.85rem;
    text-decoration: none;
}

.shop-account-nav__logout:hover {
    color: var(--ap-text);
}

@media (min-width: 992px) {
    .shop-account-nav {
        position: sticky;
        top: 5.5rem;
    }
}

/* The delivery block folds under the "same address" box with no script (ADR-0007). */
.shop-address-toggle:has(input:checked) + .shop-address-fields {
    display: none;
}

/* The address suggestions hang below their field: `.panel` clips them at its border
   and gives every row the same z-index, so the next row would paint over them. */
.shop-address-fields {
    overflow: visible;
}

.shop-address-fields > *:has(.address-autocomplete) {
    z-index: 2;
}

/* ---- Checkout ---- */
.shop-checkout-steps {
    color: var(--ap-muted);
    font-family: var(--ap-font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shop-checkout-steps__current {
    color: var(--ap-text);
    font-weight: 700;
}

.shop-checkout-step__num {
    color: var(--ap-accent-text);
    font-family: var(--ap-font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.shop-checkout--dimmed {
    opacity: 0.4;
    pointer-events: none;
}

.shop-checkout-step--done {
    color: var(--ap-muted);
}

.shop-checkout-step--done .shop-checkout-step__num {
    color: var(--ap-muted);
}

.shop-auth-tabs {
    padding: 0.25rem;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: var(--ap-bg);
}

.shop-auth-tabs__link {
    padding: 0.5rem 1rem;
    border-radius: var(--ap-radius);
    color: var(--ap-muted);
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.shop-auth-tabs__link:hover {
    color: var(--ap-text);
}

.shop-auth-tabs__link--active {
    background: var(--ap-panel);
    color: var(--ap-text);
    font-weight: 600;
}

.shop-auth-or__rule {
    height: 1px;
    background: var(--ap-border);
}

.shop-summary__thumb {
    flex: none;
    width: 3rem;
}

.shop-summary__qty {
    top: 0;
    right: 0;
    transform: translate(35%, -35%);
    background: var(--ap-text);
    color: var(--ap-bg);
    font-family: var(--ap-font-mono);
    font-size: 0.6rem;
}

/* ---- Customer account, the sign-in pages (mockup « Boutique - Connexion ») ---- */
/* The shop's accent rule sits under the title, not above it. */
.shop-body .divider-accent {
    border-top: 0;
    border-bottom: 2px solid var(--ap-accent);
}

.shop-auth-pitch {
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: var(--ap-radius);
    background: var(--ap-panel);
}

.shop-auth-pitch__title {
    max-width: 28rem;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.08;
    text-wrap: pretty;
}

.shop-auth-pitch__list li {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    font-size: 0.9rem;
}

.shop-auth-pitch__list li::before {
    content: '';
    flex: none;
    width: 0.75rem;
    height: 2px;
    background: var(--ap-accent);
}

.shop-auth-side {
    padding: clamp(2rem, 5vw, 4rem) 1.25rem;
}

.shop-auth-card {
    width: 100%;
    max-width: 26rem;
}

.shop-passfield {
    position: relative;
}

.shop-passfield .form-control {
    padding-inline-end: 5rem;
}

.shop-passfield__toggle {
    border: 0;
    padding: 0;
    background: none;
    color: var(--ap-muted);
    font-size: 0.78rem;
}

.shop-passfield > .shop-passfield__toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
}

.shop-passfield__tools {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.shop-strength {
    display: flex;
    gap: 0.25rem;
}

.shop-strength span {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--ap-border);
}

[data-level='1'] .shop-strength span:nth-child(-n + 1),
[data-level='2'] .shop-strength span:nth-child(-n + 2),
[data-level='3'] .shop-strength span {
    background: var(--ap-accent);
}

[data-level='1'] .shop-strength span:nth-child(1) {
    background: var(--ap-muted);
}

.shop-check-badge {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--ap-accent);
    color: var(--ap-accent-contrast);
    font-size: 1.1rem;
}

/* ---- Folding sections (account orders, product page): a native <details>, no script (ADR-0007) ---- */
.shop-disclosure__summary {
    cursor: pointer;
    list-style: none;
}

.shop-disclosure__summary::-webkit-details-marker {
    display: none;
}

.shop-disclosure__chevron {
    transition: transform 0.2s ease;
}

.shop-disclosure[open] .shop-disclosure__chevron {
    transform: rotate(180deg);
}

.shop-file__ext {
    display: grid;
    place-items: center;
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: var(--ap-radius);
    background: var(--ap-panel);
    color: var(--ap-accent-text);
    font-family: var(--ap-font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ---- The rows a buyer chooses from: delivery modes and payment
   methods. One card shape for both, the chosen one outlined. ---- */
.shop-delivery-mode,
.shop-pay-method {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: var(--ap-bg);
    cursor: pointer;
}

/* The mode's own radio, not any radio inside it: a relay card holds the point
   radios too, and a point stays checked once another mode is picked. */
.shop-delivery-mode:has(> .shop-delivery-mode__row input:checked),
.shop-pay-method:has(input:checked) {
    border-color: var(--ap-accent);
    background: var(--ap-panel);
}

.shop-delivery-mode__row {
    cursor: pointer;
}

.shop-pay-method:not(:has(input:checked)) .shop-pay-method__description {
    display: none;
}

/* The points belong to the mode that carries them, so they appear with it and
   leave the tab order with it. A server-side error re-renders the mode checked,
   so the list is open again on the page that names the mistake. */
.shop-relay-points {
    display: none;
    padding: 0 0.75rem 0.75rem 3rem;
}

.shop-delivery-mode:has(> .shop-delivery-mode__row input:checked) .shop-relay-points {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shop-relay-points__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Five rows, the sixth peeking so the list reads as scrollable, and the
       page keeps its shape whether the directory answers three points or fifteen. */
    max-height: 24rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.shop-relay-points__count {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
}

.shop-relay-point {
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    background: var(--ap-bg);
    cursor: pointer;
}

.shop-relay-point:has(input:checked) {
    border-color: var(--ap-accent);
}

.shop-summary__relay {
    border-radius: var(--ap-radius);
    font-size: 0.8rem;
}

.shop-transfer {
    display: flex;
    flex-direction: column;
    max-width: 45rem;
}

.shop-transfer__row {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.25rem 1rem;
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--ap-border);
}

.shop-transfer__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.shop-transfer__row:first-child {
    padding-top: 0;
}

.shop-transfer dt {
    color: var(--ap-muted);
    font-family: var(--ap-font-mono);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shop-transfer dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* ---- Order confirmation (mockup « Confirmation de commande ») ---- */
.shop-confirm-lede {
    max-width: 62ch;
    font-size: 1.05rem;
}

.shop-confirm-meta {
    color: var(--ap-muted);
    font-family: var(--ap-font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shop-confirm-perso {
    margin-top: 0.15rem;
    padding-left: 0.7rem;
    border-left: 2px solid var(--ap-border);
}

.shop-confirm-locked {
    padding: 0.4rem 0.9rem;
    border: 1px dashed var(--ap-border);
    border-radius: var(--ap-radius-button);
    color: var(--ap-faint);
    font-family: var(--ap-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-confirm-chip {
    padding: 0.25rem 0.7rem;
    border-radius: var(--ap-radius-button);
    background: var(--ap-bg);
    color: var(--ap-muted);
    font-family: var(--ap-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-confirm-poll {
    max-width: 42rem;
}

.shop-confirm-poll__dot {
    flex: none;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--ap-accent);
    animation: shop-confirm-pulse 1.4s ease-in-out infinite;
}

@keyframes shop-confirm-pulse {
    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-confirm-poll__dot {
        animation: none;
    }
}

.shop-confirm-steps__num {
    flex: none;
    padding-top: 0.2rem;
    color: var(--ap-faint);
    font-family: var(--ap-font-mono);
    font-size: 0.65rem;
}

@media (min-width: 992px) {
    .shop-confirm-aside {
        position: sticky;
        top: 5.5rem;
    }
}
