@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #431407;
    --accent: #ea580c;
    --bg: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --text: #334155;
    --green: #16a34a;
    --phonepe: #5f259f;
    --paytm: #00baf2;
    --red: #ef4444;
}

body { font-family: 'Inter', sans-serif; background: var(--bg); margin: 0; padding-bottom: 50px; color: var(--text); }
a { text-decoration: none; }

/* HEADER */
.checkout-header {
    background: var(--white); padding: 15px 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border); box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    position: sticky; top: 0; z-index: 100;
}
.secure-badge { font-size: 11px; font-weight: 700; color: var(--green); display: flex; align-items: center; gap: 4px; background: #dcfce7; padding: 5px 10px; border-radius: 50px; }

/* TIMER */
.timer-bar { background: #fff7ed; color: #c2410c; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; border-bottom: 1px solid #ffedd5; }

/* CONTAINER */
.container { max-width: 500px; margin: 0 auto; padding: 20px; }

/* SUMMARY */
.summary-card {
    background: var(--white); border-radius: 12px; padding: 15px;
    border: 1px solid var(--border); display: flex; gap: 15px; align-items: center;
    margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.prod-img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; border: 1px solid #eee; }
.prod-details h3 { margin: 0 0 5px; font-size: 15px; font-weight: 700; color: #1e293b; }
.prod-price { font-size: 18px; font-weight: 800; color: #0f172a; }
.saved-badge { font-size: 11px; background: var(--green); color: white; padding: 2px 6px; border-radius: 4px; margin-left: 8px; }

/* FORM */
.form-section { background: var(--white); padding: 20px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.section-title { font-size: 14px; font-weight: 700; color: #64748b; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; display: flex; justify-content: space-between; align-items: center; }

.input-group { position: relative; margin-bottom: 15px; }
.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 18px; }
.form-control {
    width: 100%; padding: 14px 14px 14px 45px;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 15px; font-family: inherit; color: #0f172a;
    box-sizing: border-box; transition: 0.2s; background: #f8fafc;
}
.form-control:focus { border-color: var(--primary); outline: none; background: #fff; }

/* PAYMENT BUTTONS */
.pay-options { display: flex; flex-direction: column; gap: 12px; }
.pay-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--white); cursor: pointer; transition: 0.2s;
    position: relative; overflow: hidden;
}
.pay-btn:active { transform: scale(0.98); background: #f8fafc; }

/* PhonePe Specific */
.pay-btn.phonepe { border: 1px solid var(--phonepe); background: #fdfbff; }
.pay-btn.phonepe .pay-text { color: var(--phonepe); }
.recommended-tag { position: absolute; top: 0; right: 0; background: var(--phonepe); color: white; font-size: 9px; padding: 3px 8px; border-bottom-left-radius: 6px; font-weight: 700; }

/* Paytm Specific */
.pay-btn.paytm { border: 1px solid var(--paytm); background: #f0faff; }
.pay-btn.paytm .pay-text { color: #002e6e; }

/* Scan QR Button */
.pay-btn.scan-qr { border: 1px dashed #64748b; background: #f8fafc; justify-content: center; gap: 10px; }
.pay-btn.scan-qr .pay-text { color: #475569; }

/* COD DISABLED STYLE */
.pay-btn.cod-disabled {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: not-allowed;
    opacity: 0.7;
}
.cod-warning {
    font-size: 10px;
    color: var(--red);
    font-weight: 700;
    margin-top: 2px;
}

.app-logo { height: 28px; width: auto; object-fit: contain; }
.pay-text { font-weight: 700; font-size: 15px; }
.arrow { color: #cbd5e1; font-size: 20px; }

/* QR Modal Area */
.qr-area { text-align: center; padding: 15px; background: white; border: 1px solid #ddd; border-radius: 12px; margin-top: 15px; animation: fadeIn 0.3s; }
.qr-img { width: 180px; border: 1px solid #eee; border-radius: 8px; }

/* FOOTER TRUST */
.trust-icons { text-align: center; margin-top: 30px; opacity: 0.7; }
.trust-icons img { height: 25px; margin: 0 8px; grayscale: 100%; }
.safe-footer { text-align: center; margin-top: 10px; font-size: 11px; color: #94a3b8; }

.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }