/* SmartWallet Frontend — My Account + Checkout */

/* ── My Account page ──────────────────────────────────────────── */
.sw-account { font-family: inherit; max-width: 680px; }

.sw-bal-card {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; border-radius: 12px; padding: 24px 28px; margin-bottom: 24px;
}
.sw-bal-label  { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; opacity: .8; margin-bottom: 6px; }
.sw-bal-amount { font-size: 36px; font-weight: 700; letter-spacing: -1px; }

.sw-section {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 20px; margin-bottom: 16px;
}
.sw-section h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.sw-section p  { font-size: 13px; color: #6b7280; margin: 0 0 14px; }

.sw-coupon-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sw-field {
    flex: 1; min-width: 160px; padding: 10px 14px;
    border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px;
    text-transform: uppercase; letter-spacing: .5px; font-family: monospace;
    transition: border-color .2s;
}
.sw-field:focus { border-color: #4f46e5; outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.sw-acc-btn {
    padding: 10px 20px; background: #4f46e5; color: #fff; border: none;
    border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
    transition: background .15s; white-space: nowrap;
}
.sw-acc-btn:hover { background: #4338ca; }

#sw-coupon-msg { font-size: 13px; }
#sw-coupon-msg.ok  { color: #16a34a; font-weight: 600; }
#sw-coupon-msg.err { color: #dc2626; }

.sw-rules-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sw-rules-table th { padding: 8px 12px; background: #f9fafb; text-align: left; font-size: 11px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid #e5e7eb; }
.sw-rules-table td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; }
.sw-rules-table tr:last-child td { border-bottom: none; }

/* ── Checkout credit box ──────────────────────────────────────── */
.sw-checkout-box {
    background: #fff; border: 2px solid #e5e7eb; border-radius: 10px;
    padding: 16px 18px; margin-bottom: 20px; font-family: inherit;
}
.sw-co-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sw-co-title { font-weight: 700; font-size: 14px; color: #1a1a2e; }
.sw-co-bal   { font-size: 13px; color: #6b7280; }
.sw-co-bal strong { color: #4f46e5; }
.sw-co-msg-txt { font-size: 13px; color: #374151; margin: 0 0 10px; }
.sw-co-msg-txt strong { color: #16a34a; }
.sw-co-applied { font-size: 13px; font-weight: 600; color: #16a34a; background: #dcfce7; padding: 6px 12px; border-radius: 6px; margin: 0 0 10px; }
.sw-co-locked { color: #d97706; background: #fffbeb; border: 1px solid #fde68a; padding: 8px 10px; border-radius: 6px; }
.sw-co-btn { width: 100%; padding: 10px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all .15s; }
.sw-co-apply  { background: #4f46e5; color: #fff; }
.sw-co-apply:hover  { background: #4338ca; }
.sw-co-remove { background: transparent; border: 1px solid #fca5a5; color: #dc2626; }
.sw-co-remove:hover { background: #fef2f2; }

.sw-co-rules { margin-top: 12px; }
.sw-co-rules summary { font-size: 12px; color: #9ca3af; cursor: pointer; }
.sw-co-rules summary:hover { color: #4f46e5; }
.sw-co-rules-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.sw-co-rules-table th { padding: 5px 8px; background: #f9fafb; text-align: left; font-size: 11px; color: #9ca3af; text-transform: uppercase; }
.sw-co-rules-table td { padding: 5px 8px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.sw-co-rules-table tr:last-child td { border-bottom: none; }
