/**
 * Cookie Consent Banner Styles
 * Matching the website's Gold & Cream aesthetic
 */

/* ============================================================================
   BANNER OVERLAY
   ============================================================================ */

.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================================================
   BANNER CONTENT
   ============================================================================ */

.cookie-banner-content {
    background: #F9F5EF;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 32px;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-header {
    margin-bottom: 20px;
}

.cookie-banner-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.cookie-banner-body {
    margin-bottom: 24px;
}

.cookie-banner-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 12px 0;
    font-family: 'Inter', sans-serif;
}

.cookie-banner-links {
    font-size: 14px;
}

.cookie-banner-links a {
    color: #B8860B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.cookie-banner-links a:hover {
    color: #8B6914;
    text-decoration: underline;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

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

.cookie-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
}

.cookie-btn-primary {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #d4d4d4;
}

.cookie-btn-primary:hover {
    background: #f5f5f5;
    border-color: #B8860B;
}

.cookie-btn-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #d4d4d4;
}

.cookie-btn-secondary:hover {
    background: #f5f5f5;
    border-color: #B8860B;
}

.cookie-btn-tertiary {
    background: #ffffff;
    color: #1a1a1a;
    border: 2px solid #d4d4d4;
}

.cookie-btn-tertiary:hover {
    background: #f5f5f5;
    border-color: #B8860B;
}

/* ============================================================================
   SETTINGS MODAL
   ============================================================================ */

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.cookie-settings-content {
    background: #F9F5EF;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease-out;
}

.cookie-settings-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cookie-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

.cookie-settings-body {
    padding: 24px 32px;
    overflow-y: auto;
    flex: 1;
}

.cookie-settings-footer {
    padding: 24px 32px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
}

.cookie-settings-footer .cookie-btn {
    flex: 1;
}

/* ============================================================================
   COOKIE CATEGORIES
   ============================================================================ */

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-category-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Inter', sans-serif;
}

.cookie-category-info p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* ============================================================================
   TOGGLE SWITCH
   ============================================================================ */

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.cookie-slider {
    background-color: #B8860B;
}

input:checked+.cookie-slider:before {
    transform: translateX(24px);
}

input:disabled+.cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .cookie-banner {
        align-items: flex-end;
        padding: 0;
    }

    .cookie-banner-content {
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        padding: 24px;
    }

    .cookie-banner-header h2 {
        font-size: 20px;
    }

    .cookie-banner-body p {
        font-size: 14px;
    }

    .cookie-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .cookie-settings-content {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 20px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 20px;
    }

    .cookie-banner-header h2 {
        font-size: 18px;
    }

    .cookie-banner-body p {
        font-size: 13px;
    }

    .cookie-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.cookie-btn:focus,
.cookie-close-btn:focus {
    outline: 2px solid #B8860B;
    outline-offset: 2px;
}

.cookie-switch input:focus+.cookie-slider {
    box-shadow: 0 0 0 2px #B8860B;
}

/* Ensure banner is keyboard navigable */
.cookie-banner *:focus-visible {
    outline: 2px solid #B8860B;
    outline-offset: 2px;
}