/**
 * Fluent Booking - GamiPress Points Payment
 * Frontend Styles
 */

/* Points Checkout UI Container */
.fbgp-checkout-ui {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Points Summary Card */
.fbgp-points-summary {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

/* Header */
.fbgp-summary-header {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fbgp-star {
    font-size: 18px;
}

.fbgp-title {
    font-weight: 600;
    font-size: 16px;
}

/* Body */
.fbgp-summary-body {
    padding: 20px;
}

.fbgp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.fbgp-row:first-child {
    padding-top: 0;
}

.fbgp-label {
    color: #666;
    font-size: 14px;
}

.fbgp-value {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.fbgp-required {
    color: #7c3aed;
}

.fbgp-balance {
    color: #059669;
}

/* Divider */
.fbgp-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin: 8px 0;
}

/* Status */
.fbgp-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    margin-top: 5px;
}

.fbgp-status-icon {
    font-size: 18px;
    font-weight: bold;
}

.fbgp-status-text {
    font-weight: 500;
    font-size: 14px;
}

/* Sufficient Status */
.fbgp-sufficient .fbgp-status {
    background: #ecfdf5;
    color: #059669;
}

.fbgp-sufficient .fbgp-status-icon {
    color: #10b981;
}

/* Insufficient Status */
.fbgp-insufficient .fbgp-status {
    background: #fef2f2;
    color: #dc2626;
}

.fbgp-insufficient .fbgp-status-icon {
    color: #ef4444;
}

/* Confirm Note */
.fbgp-confirm-note {
    padding: 12px 20px;
    background: white;
    border-top: 1px solid #e9d5ff;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}

.fbgp-confirm-note .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #a855f7;
}

/* Insufficient Note */
.fbgp-insufficient-note {
    padding: 15px 20px;
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 14px;
    line-height: 1.5;
}

/* Login Required UI */
.fbgp-login-required {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.fbgp-login-required .fbgp-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.fbgp-login-required h4 {
    margin: 0 0 10px 0;
    color: #92400e;
    font-size: 18px;
}

.fbgp-login-required p {
    margin: 0 0 20px 0;
    color: #a16207;
    font-size: 14px;
}

.fbgp-login-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fbgp-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    color: white !important;
}

/* Disabled Submit Button */
.fbgp-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Loading State */
.fbgp-loading {
    text-align: center;
    padding: 30px;
    color: #7c3aed;
}

.fbgp-loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e9d5ff;
    border-top-color: #7c3aed;
    border-radius: 50%;
    animation: fbgp-spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes fbgp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Animation */
.fbgp-success {
    text-align: center;
    padding: 30px;
}

.fbgp-success-icon {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 15px;
    animation: fbgp-bounce 0.5s ease;
}

@keyframes fbgp-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.fbgp-success-message {
    color: #065f46;
    font-weight: 500;
    font-size: 16px;
}

/* Hide native payment elements when using points */
.fbgp-active .fcal_payment_methods,
.fbgp-active .fluent_booking_payment_methods,
.fbgp-active .fcal_payment_field[data-field-type="payment"],
.fbgp-active .fcal_payment_summary_currency {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .fbgp-points-summary {
        border-radius: 8px;
    }
    
    .fbgp-summary-header {
        padding: 12px 15px;
    }
    
    .fbgp-summary-body {
        padding: 15px;
    }
    
    .fbgp-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .fbgp-value {
        font-size: 16px;
    }
}
