/* ---------- Checkout Container ---------- */
.checkout-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 28px;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    box-sizing: border-box;
    color: #111;
}

/* Headline */
.checkout-container h2 {
    text-align: left;
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f1720;
    margin: 0 0 16px 0;
}

/* Layout grid: form + summary */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 22px;
    align-items: start;
}

/* Left column form card (clean) */
.checkout-form {
    background: transparent;
    padding: 0;
}

/* Right column summary card */
.checkout-summary {
    background: #f7faf8;
    border: 1px solid #eef6f1;
    padding: 18px;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
}

/* Notice */
.payment-notice {
    background-color: rgba(16,185,129,0.06);
    color: #065f46;
    border: 1px solid rgba(16,185,129,0.15);
    padding: 12px 14px;
    border-radius: 0;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.45;
}

/* Form groups & labels */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display:block;
    font-weight:700;
    font-size:13px;
    margin-bottom:6px;
    color:#0f1720;
}

.checkout-container input,
.checkout-container select,
.checkout-container textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e6eef2;
    border-radius: 0;
    font-size: 15px;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.checkout-container input:focus,
.checkout-container select:focus,
.checkout-container textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 4px 18px rgba(16,185,129,0.06);
    background: #fff;
}

/* Cart summary lines */
.cart-summary {
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom: 16px;
}

.cart-summary .line {
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:14px;
    color:#374151;
}

.cart-summary .line strong {
    color:#0f1720;
    font-weight:700;
}

/* Totals emphasis */
.cart-grand-total {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:8px;
    border-top:1px dashed #e6eef2;
    margin-top:6px;
    font-size:16px;
    font-weight:800;
    color:#0f1720;
}

/* Buttons (keeps no-radius) */
.checkout-container button,
.checkout-summary .btn {
    display:inline-flex;
    align-items:center;
    gap:8px;
    justify-content:center;
    padding:12px 14px;
    font-weight:800;
    border-radius:0;
    border: none;
    cursor: pointer;
    transition: background .15s ease, transform .08s ease;
}

/* Primary (Pay Now) */
#payNowBtn {
    background: linear-gradient(90deg, #10b981, #059669);
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}
#payNowBtn:hover {
    filter:brightness(.95);
    transform: translateY(-2px);
}

/* Secondary (Pay On Delivery) */
#payOnDeliveryBtn {
    background: #111827;
    color: #fff;
    width: 100%;
    margin-top:10px;
}
#payOnDeliveryBtn:hover {
    background:#0b1220;
    transform: translateY(-2px);
}

/* Summary callout / small text */
.summary-note {
    font-size: 13px;
    color: #475569;
    margin-top: 8px;
}

/* Loading overlay (centered) */
.loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(8,8,8,0.35);
    z-index: 1400;
    gap: 12px;
    color: #fff;
}

.loading-overlay .spinner {
    width:48px;
    height:48px;
    border-radius:50%;
    border:4px solid rgba(255,255,255,0.18);
    border-top-color:#fff;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

/* Small helper / muted */
.helper {
    font-size: 13px;
    color:#6b7280;
}

/* Responsive: stack columns on narrow screens */
@media (max-width: 920px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .checkout-summary { order: -1; margin-bottom: 10px; }
    .checkout-container { padding:18px; margin: 20px auto; }
    .checkout-container h2 { text-align:left; margin-bottom:10px; }
}
