/**
 * Grosvenor+ Store Credit Styles
 * 
 * Styles for credit display on My Account dashboard
 * Following the style guide at /docs/style-guide.md
 */

/* ==========================================================================
   MY ACCOUNT DASHBOARD CREDIT WIDGET
   ========================================================================== */

.gplus-dashboard-credit {
    background: linear-gradient(135deg, #1a4d2e 0%, #0d2818 100%);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 25px;
    color: #ffffff;
}

.gplus-dashboard-credit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

.gplus-dashboard-credit-header svg {
    color: #edbe00;
}

.gplus-dashboard-credit-balance {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Ensure WooCommerce price elements are also white */
.gplus-dashboard-credit-balance .woocommerce-Price-amount,
.gplus-dashboard-credit-balance .woocommerce-Price-currencySymbol,
.gplus-dashboard-credit-balance bdi {
    color: #ffffff !important;
}

.gplus-dashboard-credit-balance .woocommerce-Price-currencySymbol {
    font-size: inherit;
    vertical-align: baseline;
}

.gplus-dashboard-credit-expiring {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Ensure WooCommerce price elements in expiring section are white */
.gplus-dashboard-credit-expiring .woocommerce-Price-amount,
.gplus-dashboard-credit-expiring .woocommerce-Price-currencySymbol,
.gplus-dashboard-credit-expiring bdi {
    color: #ffffff !important;
}

.gplus-dashboard-credit-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.gplus-dashboard-credit-btn {
    display: inline-block;
    background: #edbe00;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.gplus-dashboard-credit-btn:hover {
    background: #d4a903;
    color: #ffffff;
    transform: translateY(-1px);
}

.gplus-dashboard-credit-btn-secondary {
    background: transparent;
    border: 2px solid #edbe00;
    color: #edbe00;
}

.gplus-dashboard-credit-btn-secondary:hover {
    background: #edbe00;
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .gplus-dashboard-credit {
        padding: 15px 20px;
    }
    
    .gplus-dashboard-credit-balance {
        font-size: 1.75rem;
    }
}
