/* Shared storefront components extracted from inline page styles. */

.wizard-form .row,
.cart-checkout-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    align-items: start;
}

@media (max-width: 860px) {
    .wizard-form .row,
    .cart-checkout-form__grid {
        grid-template-columns: 1fr;
    }
}

.checkout-delivery-window {
    display: grid;
    gap: 10px;
    align-self: start;
}

.checkout-delivery-window > label {
    margin-bottom: 0;
}

.checkout-delivery-window__hint {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.42;
}

.checkout-date-mode {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    width: fit-content;
    padding: 4px;
    border: 1px solid rgba(19, 34, 53, 0.08);
    border-radius: 999px;
    background: #f7f8fb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.checkout-date-mode__pill {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.checkout-date-mode__pill:hover {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    transform: translateY(-1px);
}

.checkout-date-mode__pill.is-active {
    background: #17213a;
    color: #fff;
    box-shadow: 0 10px 20px rgba(23, 33, 58, 0.18);
}

.checkout-date-field.is-hidden {
    display: none;
}

.checkout-fixed-address {
    display: grid;
    gap: 6px;
    min-height: 68px;
    padding: 15px 18px;
    border: 1px solid rgba(19, 34, 53, 0.08);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(247, 248, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.checkout-fixed-address__title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.checkout-fixed-address__hint {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.checkout-slot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.checkout-slot-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.checkout-slot-card__input,
.checkout-payment-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-slot-card__surface {
    min-height: 94px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(19, 34, 53, 0.08);
    background: rgba(255, 255, 255, 0.96);
    display: grid;
    gap: 10px;
    align-content: start;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: var(--shadow-xs);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.checkout-slot-card__time {
    display: block;
    color: var(--text);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.checkout-slot-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fbf5e6;
    color: #8a5f10;
    font-size: 0.8rem;
    line-height: 1.2;
}

.checkout-slot-card__meta-label {
    color: #aa7a15;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.checkout-slot-card__meta-value {
    color: #8a5f10;
    font-size: 0.96rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.checkout-slot-card__status {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.checkout-slot-card__status[data-state="available"] {
    display: none;
}

.checkout-slot-card.is-selected .checkout-slot-card__surface,
.checkout-slot-card__input:checked + .checkout-slot-card__surface {
    border-color: rgba(23, 33, 58, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fe 100%);
    box-shadow: 0 16px 28px rgba(23, 33, 58, 0.08), 0 0 0 2px rgba(23, 33, 58, 0.08);
    transform: translateY(-1px);
}

.checkout-slot-card.is-selected .checkout-slot-card__time,
.checkout-slot-card__input:checked + .checkout-slot-card__surface .checkout-slot-card__time {
    color: #17213a;
}

.checkout-slot-card.is-selected .checkout-slot-card__meta,
.checkout-slot-card__input:checked + .checkout-slot-card__surface .checkout-slot-card__meta {
    background: #f3e8c8;
}

.checkout-slot-card.is-selected .checkout-slot-card__status,
.checkout-slot-card__input:checked + .checkout-slot-card__surface .checkout-slot-card__status {
    color: #17213a;
}

.checkout-slot-card.is-disabled {
    cursor: not-allowed;
}

.checkout-slot-card.is-disabled .checkout-slot-card__surface {
    background: #f7f6f2;
    border-color: rgba(19, 34, 53, 0.06);
    box-shadow: none;
}

.checkout-slot-card.is-disabled .checkout-slot-card__meta {
    background: rgba(154, 163, 176, 0.12);
}

.checkout-slot-card.is-disabled .checkout-slot-card__time,
.checkout-slot-card.is-disabled .checkout-slot-card__meta,
.checkout-slot-card.is-disabled .checkout-slot-card__meta-label,
.checkout-slot-card.is-disabled .checkout-slot-card__meta-value,
.checkout-slot-card.is-disabled .checkout-slot-card__status {
    color: #9aa3b0;
}

.checkout-payment-methods {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.checkout-payment-methods__head {
    display: grid;
    gap: 4px;
}

.checkout-payment-methods__label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.checkout-payment-methods__intro {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.45;
}

.checkout-payment-group {
    display: grid;
    gap: 8px;
}

.checkout-payment-group__title {
    margin: 0;
    color: var(--muted-strong);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

.checkout-payment-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.checkout-payment-option__surface {
    --payment-accent: #42526e;
    --payment-tint: rgba(19, 34, 53, 0.06);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(19, 34, 53, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    text-transform: none;
    letter-spacing: normal;
    box-shadow: var(--shadow-xs);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.checkout-payment-option__surface--manual {
    --payment-accent: #5f6d80;
    --payment-tint: rgba(95, 109, 128, 0.1);
}

.checkout-payment-option__surface--pluxee {
    --payment-accent: #b88411;
    --payment-tint: rgba(245, 204, 102, 0.18);
}

.checkout-payment-option__surface--mercadopago {
    --payment-accent: #2578c5;
    --payment-tint: rgba(163, 207, 246, 0.2);
}

.checkout-payment-option__main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.checkout-payment-option__logo {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text);
    box-shadow: none;
}

.checkout-payment-option__logo--manual {
    background: #eff2f5;
}

.checkout-payment-option__logo--pluxee {
    background: #fde9b8;
}

.checkout-payment-option__logo--mercadopago {
    background: #d9efff;
}

.checkout-payment-option__heading {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.checkout-payment-option__title {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.15;
}

.checkout-payment-option__subtitle {
    color: var(--muted-strong);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
}

.checkout-payment-option__indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(19, 34, 53, 0.22);
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.checkout-payment-option__aside {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
}

.checkout-payment-option__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--payment-tint);
    color: var(--payment-accent);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.checkout-payment-option__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.checkout-payment-option__description {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
}

.checkout-payment-option__meta {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.3;
}

.checkout-payment-option__input:checked + .checkout-payment-option__surface {
    border-color: rgba(19, 34, 53, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 100%);
    box-shadow: 0 16px 28px rgba(19, 34, 53, 0.06);
    transform: translateY(-1px);
}

.checkout-payment-option__input:checked + .checkout-payment-option__surface .checkout-payment-option__indicator {
    border-color: var(--payment-accent);
    box-shadow: inset 0 0 0 5px var(--payment-accent);
}

.checkout-payment-option__input:focus-visible + .checkout-payment-option__surface,
.checkout-slot-card__input:focus-visible + .checkout-slot-card__surface {
    outline: 2px solid rgba(19, 34, 53, 0.18);
    outline-offset: 3px;
}

.am-wrap {
    position: relative;
    display: inline-block;
}

.am-summary {
    list-style: none;
}

.am-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--surface-strong);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    user-select: none;
    cursor: pointer;
    box-shadow: none;
}

.am-avatar--small {
    width: 28px;
    height: 28px;
    font-size: 0.86rem;
    background: rgba(19, 34, 53, 0.08);
    color: var(--text);
    box-shadow: none;
}

.am-menu {
    position: absolute;
    right: 0;
    top: 44px;
    min-width: 260px;
    padding: 10px;
    border: 1px solid rgba(19, 34, 53, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    z-index: 40;
}

.am-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
}

.am-item:hover {
    background: var(--surface-alt);
}

.am-item--static {
    cursor: default;
}

.am-item--static:hover {
    background: transparent;
}

.am-user-copy {
    display: grid;
    gap: 2px;
}

.am-user-name {
    font-weight: 700;
}

.am-muted {
    color: var(--muted);
    font-size: 0.92rem;
}

.am-hr {
    height: 1px;
    margin: 8px 0;
    background: var(--divider);
}

details.am-dd {
    position: relative;
}

details.am-dd > summary {
    list-style: none;
}

details.am-dd > summary::-webkit-details-marker {
    display: none;
}

details.am-dd[open] summary .am-avatar {
    outline: 2px solid rgba(19, 34, 53, 0.12);
}

.am-badge {
    margin-left: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 720px) {
    .checkout-slot-grid {
        grid-template-columns: 1fr;
    }

    .checkout-payment-option__surface {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .checkout-payment-option__aside {
        gap: 8px;
    }

    .checkout-payment-option__badge {
        font-size: 0.68rem;
        padding: 5px 8px;
    }
}
