.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (min-width: 1024px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
        gap: 2rem;
    }
}
@media (min-width: 1024px) {
    .checkout-order-col {
        position: sticky;
        top: 5.5rem;
        border-left: 1px solid rgba(163, 163, 163, 0.45);
        padding-left: 2rem;
    }
}
.checkout-col-title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: #171717;
}
.checkout-subtitle {
    margin: 2rem 0 0.75rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #171717;
}
.checkout-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #171717;
}
.checkout-payment-title {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: #171717;
}
.checkout-payment-picker { width: 100%; }
.checkout-payment-carousel {
    position: relative;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
}
.checkout-payment-carousel__track {
    display: flex;
    gap: 0.625rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.375rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 0.25rem 0.375rem;
    scrollbar-width: none;
}
.checkout-payment-carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
    .checkout-payment-carousel__track {
        padding: 0.25rem 2.75rem;
    }
}
.checkout-payment-carousel__arrow {
    display: none;
    position: absolute;
    top: 50%;
    z-index: 2;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(163, 163, 163, 0.65);
    border-radius: 9999px;
    background: #fff;
    color: #262626;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.checkout-payment-carousel__arrow:hover {
    border-color: #171717;
    background: #fafafa;
}
.checkout-payment-carousel__arrow--prev { left: 0; }
.checkout-payment-carousel__arrow--next { right: 0; }
@media (min-width: 1024px) {
    .checkout-payment-carousel:hover .checkout-payment-carousel__arrow,
    .checkout-payment-carousel:focus-within .checkout-payment-carousel__arrow {
        display: flex;
        opacity: 1;
    }
}
.checkout-payment-card {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 7.25rem;
    min-height: 6.25rem;
    padding: 0.875rem 0.5rem;
    border: 1px solid rgba(163, 163, 163, 0.55);
    border-radius: 0.875rem;
    background: #fff;
    cursor: pointer;
    text-align: center;
    scroll-snap-align: start;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.checkout-payment-card:hover {
    border-color: #737373;
    background: #fafafa;
}
.checkout-payment-card--selected,
.checkout-payment-card:has(:checked) {
    border-color: #171717;
    outline: 1px solid #171717;
    outline-offset: -1px;
    background: #fafafa;
}
.checkout-payment-card__input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.checkout-payment-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: #f5f5f5;
    flex-shrink: 0;
}
.checkout-payment-card__icon-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}
.checkout-payment-card__icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: #404040;
}
.checkout-payment-card__icon-fallback svg { width: 100%; height: 100%; }
.checkout-payment-card__title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.25;
    color: #171717;
}
.checkout-payment-detail {
    width: 100%;
    margin: 0.375rem 0 0;
    padding: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #525252;
    white-space: pre-line;
}
.checkout-payment-detail[hidden] { display: none !important; }
.checkout-shipping-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid rgba(163, 163, 163, 0.5);
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    cursor: pointer;
    transition: border-color .15s ease;
}
.checkout-shipping-option:hover { border-color: #737373; }
.checkout-shipping-option:has(:checked) {
    border-color: #171717;
    box-shadow: 0 0 0 1px #171717;
}
.checkout-shipping-option input { margin-top: 0.2rem; flex-shrink: 0; }
.qr-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(23, 23, 23, 0.5);
}
.qr-modal-overlay[hidden] { display: none !important; }
.qr-modal-panel {
    background: #fff;
    border-radius: 1rem;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(23, 23, 23, 0.2);
    box-shadow: none;
}
.qr-modal-head {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(23, 23, 23, 0.2);
    font-weight: 700;
    font-size: 1.05rem;
    color: #171717;
}
.qr-modal-body { padding: 1.25rem; }
.qr-modal-img-wrap { text-align: center; margin-bottom: 1rem; }
.qr-modal-img-wrap img {
    max-width: 220px;
    height: auto;
    border: 1px solid rgba(163, 163, 163, 0.5);
    border-radius: 0.75rem;
}
.qr-modal-desc { font-size: 0.875rem; color: #525252; line-height: 1.5; margin-bottom: 1rem; }
.qr-modal-total { font-size: 1rem; font-weight: 700; color: #171717; margin-bottom: 0.75rem; }
.qr-modal-limit-msg {
    font-size: 0.8125rem;
    color: #404040;
    background: #e5e5e5;
    border: 1px solid #d4d4d4;
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
}
.qr-modal-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.qr-modal-dropzone {
    border: 1px dashed rgba(23, 23, 23, 0.35);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #737373;
    margin-bottom: 1rem;
    transition: border-color 0.15s, background 0.15s;
}
.qr-modal-dropzone.qr-dragover { border-color: #171717; background: #f5f5f5; }
.qr-modal-dropzone.qr-has-preview { display: none; }
.qr-receipt-preview {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}
.qr-receipt-preview img {
    display: block;
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    margin: 0 auto;
    border: 1px solid rgba(163, 163, 163, 0.5);
    border-radius: 0.75rem;
    object-fit: contain;
    background: #fff;
}
.qr-receipt-preview__remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 9999px;
    background: rgba(23, 23, 23, 0.82);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}
.qr-receipt-preview__remove:hover { background: #171717; }
.qr-receipt-preview__name {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: #525252;
    word-break: break-all;
}
.qr-modal-err { font-size: 0.8125rem; color: #404040; margin-top: 0.5rem; }
