.checkout-page {
    font-family: "DM Sans", sans-serif;
    background: #f7f6f3;
    padding: 40px 0 80px;
}

.checkout-page h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.9rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #bbb;
    margin-bottom: 32px;
}

.checkout-steps .step-active {
    color: #1a1a1a;
    font-weight: 600;
}

.checkout-steps .sep {
    color: #ddd;
}

/* Cards */
.checkout-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.checkout-card-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Address radio */
.addr-card {
    border: 1.5px solid #ede9e3;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s;
    position: relative;
    display: block;
}

.addr-card:has(input:checked) {
    border-color: #1a1a1a;
    background: #fafaf9;
}

.addr-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.addr-dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    transition:
        background 0.15s,
        border-color 0.15s;
}

.addr-card:has(input:checked) .addr-dot {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.addr-dot::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    display: block;
    margin: 5px auto 0;
    opacity: 0;
}

.addr-card:has(input:checked) .addr-dot::after {
    opacity: 1;
}

.addr-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.addr-detail {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

.badge-default {
    background: #e8f5e9;
    color: #2e8b6e;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 8px;
}

/* Shipping */
.ship-card {
    border: 1.5px solid #ede9e3;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.15s;
    position: relative;
}

.ship-card:has(input:checked) {
    border-color: #1a1a1a;
    background: #fafaf9;
}

.ship-card input {
    position: absolute;
    opacity: 0;
}

.ship-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.ship-fee {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}

.ship-fee.free {
    color: #2e8b6e;
}

/* Inputs */
.form-label-sm {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    display: block;
}

.form-inp {
    border: 1.5px solid #ede9e3;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
    font-family: "DM Sans", sans-serif;
    transition: border-color 0.15s;
    background: #fafaf9;
    color: #1a1a1a;
}

.form-inp:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
}

.btn-toggle-addr {
    background: none;
    border: 1.5px dashed #ddd;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    width: 100%;
    font-family: "DM Sans", sans-serif;
    transition:
        border-color 0.15s,
        color 0.15s;
    margin-top: 6px;
}

.btn-toggle-addr:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

/* Summary panel */
.summary-panel {
    background: #21409a;
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    position: sticky;
    top: 24px;
}

.summary-panel-title {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.sum-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.sum-item-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}

.sum-item-name {
    font-size: 13px;
    color: #fdc123;
    flex: 1;
    line-height: 1.4;
}

.sum-item-price {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.sum-div {
    border: none;
    border-top: 1px solid #fdc123;
    margin: 14px 0;
}

.sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #fdc123;
    margin-bottom: 10px;
}

.sum-row.total {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px solid #fdc123;
    margin-top: 4px;
}

.btn-place {
    display: block;
    width: 100%;
    background: #d4a853;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    margin-top: 18px;
    font-family: "DM Sans", sans-serif;
    transition:
        background 0.2s,
        transform 0.1s;
}

.btn-place:hover:not(:disabled) {
    background: #e0b660;
    transform: translateY(-1px);
}

.btn-place:disabled {
    background: #fdc123;
    color: #fff;
    cursor: not-allowed;
    transform: none;
}

/* ══ PAYMENT MODAL ══════════════════════════════════════════════ */
.pay-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pay-overlay.open {
    display: flex;
}

.pay-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    padding: 32px;
    font-family: "DM Sans", sans-serif;
    position: relative;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pay-modal-x {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 20px;
    color: #bbb;
    cursor: pointer;
}

.pay-modal-x:hover {
    color: #1a1a1a;
}

.pay-modal h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.35rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.pay-modal-sub {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 22px;
}

.pay-amount {
    background: #1a1a1a;
    color: #d4a853;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 22px;
    font-family: "Playfair Display", serif;
}

.method-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.method-tab {
    border: 1.5px solid #ede9e3;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s;
    background: #fff;
}

.method-tab.active {
    border-color: #1a1a1a;
    background: #fafaf9;
}

.method-tab .tab-icon {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

.method-tab .tab-label {
    font-size: 12px;
    font-weight: 600;
    color: #777;
}

.method-tab.active .tab-label {
    color: #1a1a1a;
}

.provider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.prov-btn {
    border: 1.5px solid #ede9e3;
    border-radius: 10px;
    padding: 11px 8px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: #fff;
    font-family: "DM Sans", sans-serif;
    transition:
        border-color 0.15s,
        color 0.15s;
}

.prov-btn:hover,
.prov-btn.sel {
    border-color: #1a1a1a;
    color: #1a1a1a;
    background: #fafaf9;
}

.prov-icon {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

.phone-wrap {
    position: relative;
    margin-bottom: 14px;
}

.phone-pfx {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 600;
    color: #555;
    pointer-events: none;
}

.phone-inp {
    padding-left: 58px !important;
}

.btn-pay {
    width: 100%;
    background: #d4a853;
    color: #1a1a1a;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    transition: background 0.2s;
}

.btn-pay:hover:not(:disabled) {
    background: #e0b660;
}

.btn-pay:disabled {
    background: #f0ede8;
    color: #bbb;
    cursor: not-allowed;
}

.btn-sec {
    width: 100%;
    background: none;
    border: 1.5px solid #ede9e3;
    color: #555;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: "DM Sans", sans-serif;
    margin-top: 10px;
    transition: border-color 0.15s;
}

.btn-sec:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.pay-status {
    text-align: center;
    padding: 12px 0 20px;
}

.pay-status .big-icon {
    font-size: 52px;
    margin-bottom: 12px;
}

.pay-status h4 {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.pay-status p {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

.spin-ring {
    width: 48px;
    height: 48px;
    border: 3px solid #eee;
    border-top-color: #d4a853;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
