/* Cookie Banner Styles for Newarizona */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.cookie-banner-text p {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background-color: #2563eb;
    color: white;
}

.cookie-btn-primary:hover {
    background-color: #1d4ed8;
}

.cookie-btn-secondary {
    background-color: #6b7280;
    color: white;
}

.cookie-btn-secondary:hover {
    background-color: #4b5563;
}

.cookie-btn-outline {
    background-color: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.cookie-btn-outline:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

/* Cookie Customizer */
.cookie-customizer {
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.cookie-customizer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.cookie-customizer h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px 0;
}

.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-category:last-of-type {
    border-bottom: none;
    margin-bottom: 24px;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 12px;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #d1d5db;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider {
    background-color: #2563eb;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-slider {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"]:disabled ~ .cookie-toggle-label {
    cursor: not-allowed;
    color: #6b7280;
}

.cookie-toggle-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.cookie-category-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    margin-left: 56px;
}

.cookie-customizer-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Body adjustment when banner is visible */
body.cookie-banner-visible {
    padding-bottom: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px 16px;
    }

    .cookie-banner-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-btn {
        padding: 12px 16px;
        text-align: center;
    }

    .cookie-customizer-content {
        padding: 20px 16px;
    }

    .cookie-customizer-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-category-description {
        margin-left: 0;
        margin-top: 8px;
    }

    body.cookie-banner-visible {
        padding-bottom: 160px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-text h3 {
        font-size: 1rem;
    }

    .cookie-banner-text p {
        font-size: 0.8rem;
    }

    .cookie-btn {
        font-size: 0.8rem;
        padding: 10px 14px;
    }

    body.cookie-banner-visible {
        padding-bottom: 180px;
    }
}