/* Checkout payment and fulfillment choices — Lumviom R7 */
.checkout-modal .checkout-stage-heading h3 { color: #30251f; letter-spacing: -.02em; }
.checkout-modal .fulfillment-choices, .checkout-modal .payment-choices { gap: .85rem; align-items: stretch; }
.checkout-modal .fulfillment-choices .choice-card, .checkout-modal .payment-choices .choice-card {
    position: relative; min-height: 5.25rem; padding: 1rem 1.05rem; border: 1px solid #e5ddd5;
    border-radius: 1rem; background: #fff; color: #30251f; box-shadow: 0 2px 8px rgb(54 37 25 / 5%);
    text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}
.checkout-modal .fulfillment-choices .choice-card:hover, .checkout-modal .payment-choices .choice-card:hover {
    border-color: #e7a178; box-shadow: 0 5px 16px rgb(54 37 25 / 9%); transform: translateY(-1px);
}
.checkout-modal .fulfillment-choices .choice-card:focus-visible, .checkout-modal .payment-choices .choice-card:focus-visible,
.checkout-modal .payment-panel input:focus-visible { outline: 3px solid rgb(213 86 42 / 35%); outline-offset: 3px; }
.checkout-modal .fulfillment-choices .choice-card.active, .checkout-modal .payment-choices .choice-card.active {
    border-color: #d9572b; background: #fff8f3; box-shadow: 0 0 0 2px rgb(217 87 43 / 12%), 0 5px 15px rgb(54 37 25 / 7%);
}
.checkout-modal .fulfillment-choices .choice-card > div, .checkout-modal .payment-choices .choice-card > div {
    display: grid; gap: .25rem; min-width: 0;
}
.checkout-modal .fulfillment-choices .choice-card strong, .checkout-modal .payment-choices .choice-card strong {
    color: #30251f; font-size: .98rem; line-height: 1.25;
}
.checkout-modal .fulfillment-choices .choice-card small, .checkout-modal .payment-choices .choice-card small {
    color: #6d625b; font-size: .8rem; font-weight: 500; line-height: 1.35;
}
.checkout-modal .fulfillment-choices .choice-card em { color: #8b492f; font-size: .76rem; font-style: normal; font-weight: 650; }
.checkout-modal .payment-panel { margin-top: 1rem; padding: 1.1rem; border: 1px solid #e8dfd7; border-radius: 1rem; background: #fffdfa; }
.checkout-modal .payment-panel > strong { color: #30251f; font-size: .98rem; }
.checkout-modal .payment-panel > p { max-width: 42rem; margin: .35rem 0 .75rem; color: #6d625b; font-size: .88rem; line-height: 1.55; }
.checkout-modal .payment-panel .payment-online-option {
    min-height: 3rem; align-items: center; border-color: #cfe1d2; border-radius: .8rem;
    background: #f4faf5; color: #245b37; cursor: pointer;
}
.checkout-modal .payment-panel .payment-online-option input { width: 1.1rem; height: 1.1rem; accent-color: #267443; }
.checkout-modal .payment-panel .card-type-heading { display: block; margin-top: .85rem; color: #645950; font-size: .82rem; }
.checkout-modal .payment-panel .card-type-choices label { min-height: 2.75rem; border: 1px solid #e5ddd5; border-radius: .7rem; background: #fff; }
.checkout-modal .checkout-next { min-height: 3rem; border-radius: .85rem; font-weight: 750; }
@media (max-width: 600px) {
    .checkout-modal .fulfillment-choices, .checkout-modal .payment-choices { grid-template-columns: 1fr; gap: .65rem; }
    .checkout-modal .fulfillment-choices .choice-card, .checkout-modal .payment-choices .choice-card { min-height: 4.6rem; padding: .85rem .9rem; }
    .checkout-modal .payment-panel { padding: .95rem; }
}

/* Keep the sticky checkout dock compact; the total hint stays in the order summary. */
.checkout-modal .checkout-dock .dock-actions {
    flex: 0 0 auto;
    width: auto;
}
.checkout-modal .checkout-dock .dock-actions .checkout-back,
.checkout-modal .checkout-dock .dock-actions .checkout-next {
    flex: 0 0 auto;
    width: auto;
    min-width: 8.5rem;
    padding-inline: 1.1rem;
}
.checkout-modal .checkout-dock .dock-actions .checkout-back { min-width: 7rem; }
@media (max-width: 600px) {
    .checkout-modal .checkout-dock .dock-actions { gap: .5rem; }
    .checkout-modal .checkout-dock .dock-actions .checkout-back { min-width: 6.25rem; }
    .checkout-modal .checkout-dock .dock-actions .checkout-next { min-width: 7.5rem; }
}

/* R9: two compact, mutually exclusive payment groups. */
.checkout-modal .payment-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
    width: 100%;
    min-width: 0;
}
.checkout-modal .payment-mode-button,
.checkout-modal .payment-method-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.9rem;
    padding: .65rem .75rem;
    border: 1px solid #e5ddd5;
    border-radius: .8rem;
    background: #fff;
    color: #30251f;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.checkout-modal .payment-mode-button.active,
.checkout-modal .payment-method-button.active {
    border-color: #d9572b;
    background: #fff5ee;
    box-shadow: 0 0 0 2px rgb(217 87 43 / 12%);
}
.checkout-modal .payment-mode-panel[hidden],
.checkout-modal .payment-method-button[hidden],
.checkout-modal [data-change-fields][hidden],
.checkout-modal [data-change-amount][hidden] { display: none !important; }
.checkout-modal .payment-mode-button:focus-visible,
.checkout-modal .payment-method-button:focus-visible,
.checkout-modal .change-question input:focus-visible {
    outline: 3px solid rgb(213 86 42 / 35%);
    outline-offset: 2px;
}
.checkout-modal .payment-mode-panel { margin-top: .75rem; padding: .8rem; }
.checkout-modal .payment-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}
.checkout-modal .payment-method-button { min-height: 2.75rem; padding: .55rem .45rem; font-size: .9rem; }
.checkout-modal .payment-change-fields { margin-top: .8rem; }
.checkout-modal .change-question {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 0;
    padding: 0;
    border: 0;
}
.checkout-modal .change-question legend { width: 100%; margin-bottom: .35rem; color: #30251f; font-weight: 700; }
.checkout-modal .change-question label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.5rem;
    padding: .35rem .7rem;
    border: 1px solid #e5ddd5;
    border-radius: .65rem;
    background: #fff;
}
.checkout-modal .change-question input { width: 1rem; height: 1rem; accent-color: #d9572b; }
.checkout-modal .change-amount { display: block; margin-top: .7rem; }
.checkout-modal .change-amount > span { display: block; margin-bottom: .35rem; color: #30251f; font-weight: 650; }
@media (max-width: 420px) {
    .checkout-modal .payment-mode-switch { gap: .4rem; }
    .checkout-modal .payment-mode-button { padding-inline: .35rem; font-size: .88rem; }
    .checkout-modal .payment-method-grid { gap: .35rem; }
    .checkout-modal .payment-method-button { padding-inline: .3rem; font-size: .8rem; }
}
