/* =============================================================
   Pickup checkout — card + modal
   Shown only when the chosen shipping zone is is_pickup=true.
   ============================================================= */

/* HTML's [hidden] attribute is overridden by fieldset's display:flex.
   This selector reasserts it for any [hidden] form node. */
[hidden] { display: none !important; }

/* The pickup recap fieldset that replaces the hidden address section. */
.checkout-pickup-card {
    background: color-mix(in srgb, var(--ink) 4%, transparent);
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: 12px;
}
.checkout-pickup-note {
    margin: 0 0 14px 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: color-mix(in srgb, var(--ink) 80%, transparent);
}

/* -------------------------------------------------------------
   Pickup POINT notice (Mondial Relay etc.) — shown while the real
   API integration is pending. Slightly warmer accent than the
   pickup-store card to hint "action needed later from us".
   ------------------------------------------------------------- */
.checkout-pickup-point-notice {
    background: color-mix(in srgb, var(--magenta, #EE00AA) 7%, transparent);
    border: 1px solid color-mix(in srgb, var(--magenta, #EE00AA) 22%, transparent);
    border-radius: 12px;
}
.checkout-pickup-point-note {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink);
}
.checkout-pickup-point-hint {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: color-mix(in srgb, var(--ink) 62%, transparent);
    font-style: italic;
}
.checkout-pickup-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.checkout-pickup-summary-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.35;
}
.checkout-pickup-summary-text strong {
    font-size: 15px;
    letter-spacing: 0.01em;
}
.checkout-pickup-summary-text span {
    font-size: 13px;
    color: color-mix(in srgb, var(--ink) 72%, transparent);
    font-variant-numeric: tabular-nums;
}
.checkout-pickup-more-btn {
    appearance: none;
    background: var(--ink);
    color: var(--paper);
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.checkout-pickup-more-btn:hover,
.checkout-pickup-more-btn:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

/* =============================================================
   Modal — generic .hz-modal scaffolding (reusable for other apps).
   ============================================================= */
.hz-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: hz-modal-fade-in 0.18s ease both;
}
.hz-modal[hidden] { display: none; }
.hz-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 8, 0.62);
    backdrop-filter: blur(2px);
    cursor: pointer;
}
.hz-modal__panel {
    position: relative;
    z-index: 1;
    background: var(--paper);
    color: var(--ink);
    max-width: 520px;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 14px;
    box-shadow: 0 28px 60px -20px rgba(0, 0, 0, 0.45);
    padding: 28px 28px 24px 28px;
    animation: hz-modal-slide-up 0.22s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hz-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    appearance: none;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: var(--ink);
    opacity: 0.65;
    cursor: pointer;
    padding: 6px 10px;
    transition: opacity 0.15s ease;
}
.hz-modal__close:hover { opacity: 1; }
.hz-modal__head { margin-bottom: 18px; }
.hz-modal__kicker {
    display: inline-block;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 6px;
}
.hz-modal__title {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.hz-modal__media {
    margin: 0 0 20px 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.hz-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hz-modal__media-img--fallback {
    object-fit: contain !important;
    opacity: 0.55;
    padding: 14% 20%;
}
.hz-modal__facts {
    margin: 0;
    display: grid;
    grid-template-columns: 110px 1fr;
    row-gap: 12px;
    column-gap: 18px;
    align-items: start;
}
.hz-modal__facts dt {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.55;
    line-height: 1.7;
}
.hz-modal__facts dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}
.hz-modal__facts a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hz-modal__map-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 12.5px;
    opacity: 0.75;
}
.hz-modal__hours {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hz-modal__hours-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 3px 0;
    border-bottom: 1px dotted color-mix(in srgb, var(--ink) 14%, transparent);
}
.hz-modal__hours-row:last-child { border-bottom: 0; }
.hz-modal__hours-day {
    font-size: 13px;
    font-weight: 500;
}
.hz-modal__hours-slot {
    font-family: var(--mono);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: color-mix(in srgb, var(--ink) 78%, transparent);
}
.hz-modal__hours-row--closed .hz-modal__hours-slot {
    font-style: italic;
    opacity: 0.55;
}

@keyframes hz-modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes hz-modal-slide-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .hz-modal { padding: 12px; }
    .hz-modal__panel { padding: 22px 18px 18px 18px; }
    .hz-modal__title { font-size: 22px; }
    .hz-modal__facts { grid-template-columns: 88px 1fr; column-gap: 12px; }
}

/* -------------------------------------------------------------
   Cart — promo code block (Feb 2026)
   ------------------------------------------------------------- */
.cart-promo {
    margin: 14px 0;
    padding: 14px;
    background: color-mix(in srgb, var(--ink) 3%, transparent);
    border: 1px dashed color-mix(in srgb, var(--ink) 15%, transparent);
    border-radius: 10px;
}
.cart-promo__label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--ink) 65%, transparent);
    margin-bottom: 8px;
}
.cart-promo__inline { display: flex; gap: 8px; }
.cart-promo__inline input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    background: #fff;
    color: var(--ink);
}
.cart-promo__inline input:focus { outline: 2px solid var(--magenta, #EE00AA); outline-offset: 1px; }
.cart-promo__inline button {
    padding: 10px 18px;
    background: var(--ink);
    color: var(--paper);
    border: 0;
    border-radius: 6px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease;
}
.cart-promo__inline button:hover { background: var(--magenta, #EE00AA); }
.cart-promo__error {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: #a4620d;
}
.cart-promo__applied {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: color-mix(in srgb, #0f7d3a 8%, transparent);
    border: 1px solid color-mix(in srgb, #0f7d3a 24%, transparent);
    border-radius: 8px;
}
.cart-promo__check { font-size: 18px; color: #0f7d3a; font-weight: 700; }
.cart-promo__meta { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.cart-promo__meta strong { font-family: var(--mono); letter-spacing: 0.03em; font-size: 13px; }
.cart-promo__meta span { font-size: 12px; color: color-mix(in srgb, var(--ink) 70%, transparent); }
.cart-promo__remove {
    background: transparent;
    border: 0;
    color: color-mix(in srgb, var(--ink) 65%, transparent);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
}
.cart-promo__remove:hover { color: var(--ink); }

.cart-summary-row--discount { color: #0f7d3a; }
.cart-summary-row--discount strong { color: #0f7d3a; }
