/**
 * Google Customer Reviews Styling
 */

/* Google Reviews Opt-in Container */
.thankyou__google__reviews {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4285f4;
}

.thankyou__google__reviews .thankyou__main__heading {
    color: #1a73e8;
    margin-bottom: 1rem;
}

.thankyou__google__reviews .thankyou__main__text {
    color: #5f6368;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Google Reviews Opt-in Script Container */
.google-reviews-optin {
    margin: 1rem 0;
    text-align: center;
}

/* Google Reviews Badge Styling */
.google-reviews-badge {
    display: inline-block;
    margin: 1rem 0;
}

.google-reviews-badge-container {
    display: inline-block;
}

/* Badge positioning for different locations */
.site-header .google-reviews-badge,
.site-footer .google-reviews-badge {
    margin: 0.5rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .thankyou__google__reviews {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .thankyou__google__reviews .thankyou__main__heading {
        font-size: 1.2rem;
    }
}

/* Admin settings page styling enhancements */
.google-customer-reviews-admin .form-table th {
    width: 200px;
    font-weight: 600;
}

.google-customer-reviews-admin .form-table td .description {
    margin-top: 5px;
    font-style: italic;
    color: #666;
}

.google-customer-reviews-admin fieldset label {
    display: block;
    margin: 8px 0;
    font-weight: normal;
}

.google-customer-reviews-admin fieldset label strong {
    color: #23282d;
}

/* Status indicators */
.gcr-status-enabled {
    color: #00a32a;
    font-weight: 600;
}

.gcr-status-disabled {
    color: #d63638;
    font-weight: 600;
}

/* Integration notice styling */
.google-reviews-integration-notice {
    padding: 12px 16px;
    background: #e7f3ff;
    border-left: 4px solid #4285f4;
    margin: 16px 0;
}

.google-reviews-integration-notice p {
    margin: 0;
    color: #1a73e8;
}

/* Google API loading states */
.google-reviews-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.google-reviews-loading::after {
    content: "Loading Google Customer Reviews...";
    display: block;
    font-style: italic;
}

/* Hide elements when Google scripts are loading */
.google-reviews-optin:empty::after {
    content: "Loading review opt-in...";
    display: block;
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 4px;
}

.google-reviews-badge:empty::after {
    content: "Loading reviews badge...";
    display: inline-block;
    padding: 10px;
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

/* Error states */
.google-reviews-error {
    padding: 15px;
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
    margin: 16px 0;
}

/* Success confirmation for admin */
.google-reviews-success {
    padding: 15px;
    background: #e8f5e8;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
    margin: 16px 0;
}
