/**
 * Utility Components
 *
 * Loading states, error messages, banners, sticky elements
 *
 * @package MattressProtectorReviews
 * @version 1.0.0
 */

/* Loading State */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loading.hidden {
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-300);
    border-top-color: var(--blue-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-text {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: var(--gray-700);
}

/* Error State */
.error-message {
    padding: 2rem;
    background-color: #FEE2E2;
    border: 2px solid var(--red-600);
    border-radius: 6px;
    color: var(--red-600);
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
}

/* FTC Disclosure Banner */
.ftc-disclosure-banner {
    background-color: #FFFBEB;
    border-bottom: 2px solid #F59E0B;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.ftc-disclosure-banner strong {
    color: var(--gray-900);
}

/* Mobile Sticky CTA Bar - Styles moved to sticky-cta.css */
