/* Golf Lesson Subscriptions - Bookly Integration Styles */

/* Service Subscription Info */
.gls-service-subscription-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.gls-subscription-notice {
    text-align: center;
    padding: 20px;
}

.gls-subscription-notice h4 {
    margin: 0 0 10px 0;
    color: #dc3545;
    font-size: 16px;
}

.gls-subscription-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.gls-login-btn,
.gls-subscribe-btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.gls-login-btn {
    background: #6c757d;
    color: white;
}

.gls-login-btn:hover {
    background: #545b62;
    color: white;
}

.gls-subscribe-btn {
    background: #0073aa;
    color: white;
}

.gls-subscribe-btn:hover {
    background: #005a87;
    color: white;
}

/* Credits Available */
.gls-credits-available {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
}

.gls-credits-available h4 {
    margin: 0 0 10px 0;
    color: #155724;
    font-size: 16px;
}

.gls-credits-available p {
    margin: 0 0 10px 0;
    color: #155724;
}

.gls-subscription-info {
    font-size: 13px;
    color: #0c5460;
    font-style: italic;
}

/* No Credits */
.gls-no-credits {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
}

.gls-no-credits h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 16px;
}

.gls-no-credits p {
    margin: 0 0 15px 0;
    color: #856404;
}

.gls-purchase-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gls-package-btn {
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    background: #28a745;
    color: white;
    transition: all 0.3s ease;
}

.gls-package-btn:hover {
    background: #218838;
    color: white;
}

/* Credit Balance Display in Booking Form */
.gls-credit-balance-display {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.gls-credit-balance-display h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.gls-credit-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.gls-available-credits {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.gls-manage-link {
    color: white;
    text-decoration: underline;
    font-size: 14px;
}

.gls-manage-link:hover {
    color: #cce7ff;
}

/* No Credits Display */
.gls-no-credits-display {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.gls-no-credits-display p {
    margin: 0 0 15px 0;
    color: #721c24;
    font-weight: bold;
}

.gls-no-credits-display .gls-purchase-options {
    justify-content: center;
}

/* Subscription Required Notice */
.gls-subscription-required {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

.gls-notice {
    margin: 0 0 10px 0;
    color: #856404;
    font-weight: bold;
}

.gls-subscribe-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.gls-subscribe-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Admin Customer Info */
.gls-admin-customer-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.gls-admin-customer-info h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.gls-subscription-details {
    width: 100%;
    border-collapse: collapse;
}

.gls-subscription-details td {
    padding: 8px 12px;
    border-bottom: 1px solid #dee2e6;
}

.gls-subscription-details td:first-child {
    width: 120px;
    font-weight: bold;
    color: #666;
}

.gls-status-active {
    color: #28a745;
    font-weight: bold;
}

.gls-status-canceled {
    color: #dc3545;
    font-weight: bold;
}

.gls-status-past_due {
    color: #ffc107;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gls-subscription-actions,
    .gls-purchase-options {
        flex-direction: column;
    }
    
    .gls-credit-info {
        text-align: center;
    }
    
    .gls-subscription-details {
        font-size: 14px;
    }
    
    .gls-subscription-details td {
        padding: 6px 8px;
    }
}

/* Integration with Bookly Styles */
.bookly-form .gls-service-subscription-info {
    margin: 15px 0 20px 0;
}

.bookly-form .gls-credit-balance-display {
    margin: 20px 0;
}

.bookly-form .gls-no-credits-display {
    margin: 20px 0;
}

/* Bookly Service List Integration */
.bookly-service-item .gls-subscription-required {
    margin-top: 10px;
}

.bookly-service-item .gls-notice {
    font-size: 12px;
    margin-bottom: 5px;
}

.bookly-service-item .gls-subscribe-link {
    font-size: 12px;
}