/* Credit Balance Display - Brand Colors: White and #54B459 */

.gls-credit-balance-display {
    background: linear-gradient(135deg, #54B459, #449a48);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(84, 180, 89, 0.2);
}

.gls-credit-balance h3 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: white;
}

.gls-credit-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.gls-credit-description {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
    color: white;
}

.gls-subscription-summary {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gls-subscription-summary h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: white;
}

.gls-subscription-summary p {
    color: white;
    margin: 0;
}

.gls-credit-breakdown {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: left;
}

.gls-credit-breakdown h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: white;
    text-align: center;
}

.gls-credit-sources {
    display: grid;
    gap: 10px;
}

.gls-credit-source {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.gls-source-type {
    font-weight: bold;
    color: white;
}

.gls-source-credits {
    color: white;
    font-weight: bold;
}

.gls-source-expiry {
    grid-column: 1 / -1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.gls-credit-history {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.gls-credit-history h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: white;
    text-align: center;
}

.gls-credit-history table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.gls-credit-history th {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
}

.gls-credit-history td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
}

.gls-credit-history tr:last-child td {
    border-bottom: none;
}

.gls-credit-positive {
    color: #90EE90 !important;
    font-weight: bold;
}

.gls-credit-negative {
    color: #FFB6C1 !important;
    font-weight: bold;
}

.gls-no-credits {
    background: white;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid #54B459;
    box-shadow: 0 2px 10px rgba(84, 180, 89, 0.1);
}

.gls-no-credits h4 {
    margin: 0 0 15px 0;
    color: #54B459;
    font-size: 20px;
}

.gls-no-credits p {
    color: #666;
    margin-bottom: 20px;
}

.gls-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.gls-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #54B459;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.gls-btn:hover {
    background: #449a48;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(84, 180, 89, 0.3);
}

.gls-btn-primary {
    background: #54B459;
}

.gls-btn-primary:hover {
    background: #449a48;
}

.gls-btn-secondary {
    background: white;
    color: #54B459;
    border: 2px solid #54B459;
}

.gls-btn-secondary:hover {
    background: #54B459;
    color: white;
}

.gls-booking-link {
    margin-top: 20px;
}

.gls-booking-note {
    margin-top: 15px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gls-credit-balance-display {
        padding: 20px;
        margin: 15px 0;
    }
    
    .gls-credit-number {
        font-size: 36px;
    }
    
    .gls-credit-balance h3 {
        font-size: 20px;
    }
    
    .gls-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .gls-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .gls-credit-history table {
        font-size: 12px;
    }
    
    .gls-credit-history th,
    .gls-credit-history td {
        padding: 8px 4px;
    }
    
    .gls-credit-source {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Container styling */
.gls-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}