/* Gold Wallet Redemption — Checkout Styles
   Theme: Deep Maroon + Gold — Manira Jewels */

.gwr-wallet-box {
    background: linear-gradient(135deg, #3d0a14 0%, #6b1526 100%);
    border: 1px solid #d4a017;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(107, 21, 38, 0.35);
}

/* ── Header ── */
.gwr-wallet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.gwr-wallet-box.gwr-open .gwr-wallet-header {
    border-bottom-color: rgba(212, 160, 23, 0.4);
}

.gwr-wallet-icon { font-size: 1.3rem; }

.gwr-wallet-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f5d78e;
    flex: 1;
    letter-spacing: 0.02em;
}

.gwr-toggle {
    background: none;
    border: 1px solid #d4a017;
    border-radius: 4px;
    color: #d4a017;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.gwr-toggle:hover {
    background: #d4a017;
    color: #3d0a14;
}

/* ── Body ── */
.gwr-wallet-body {
    padding: 18px 20px 20px;
    background: rgba(0, 0, 0, 0.15);
}

/* ── Balance Grid ── */
.gwr-balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.gwr-balance-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: 6px;
    padding: 10px 14px;
    text-align: center;
}

.gwr-balance-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 5px;
}

.gwr-balance-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.gwr-balance-value.gwr-gold { color: #f5d78e; }

/* ── Input Row ── */
.gwr-input-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.gwr-input-row label {
    font-weight: 600;
    color: #f5d78e;
    white-space: nowrap;
    font-size: 0.9rem;
}

.gwr-input-row input[type="number"] {
    width: 130px !important;
    padding: 8px 10px !important;
    border: 1px solid #d4a017 !important;
    border-radius: 4px !important;
    font-size: 0.95rem !important;
    text-align: center;
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
}

.gwr-input-row input[type="number"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.gwr-input-row input[type="number"]:focus {
    outline: none !important;
    border-color: #f5d78e !important;
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.3) !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

.gwr-btn-apply {
    background: #d4a017 !important;
    border: none !important;
    border-radius: 4px !important;
    color: #3d0a14 !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    transition: background 0.2s !important;
    letter-spacing: 0.02em !important;
}

.gwr-btn-apply:hover {
    background: #f5d78e !important;
    color: #3d0a14 !important;
}

.gwr-btn-remove {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    transition: all 0.2s !important;
}

.gwr-btn-remove:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
}

/* ── Preview ── */
.gwr-preview {
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.5);
    border-radius: 5px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.gwr-preview-label {
    font-weight: 600;
    color: #f5d78e;
    font-size: 0.9rem;
}

.gwr-preview-value {
    font-weight: 700;
    color: #f5d78e;
    font-size: 1rem;
}

.gwr-preview-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
}

/* ── Message ── */
.gwr-message {
    font-size: 0.88rem;
    min-height: 1.2em;
    padding: 2px 0;
}

.gwr-message.gwr-error   { color: #fca5a5; font-weight: 600; }
.gwr-message.gwr-success { color: #86efac; }
.gwr-message.gwr-info    { color: rgba(255, 255, 255, 0.6); }

/* ── Mobile ── */
@media (max-width: 600px) {
    .gwr-balance-grid { grid-template-columns: 1fr 1fr; }
    .gwr-input-row { flex-direction: column; align-items: flex-start; }
    .gwr-input-row input[type="number"] { width: 100% !important; }
    .gwr-btn-apply,
    .gwr-btn-remove { width: 100% !important; text-align: center !important; }
}
