/* Cookie Consent Banner - Bottom Fixed Bar */
.cookie-consent-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none; /* Allow clicks through the overlay container */
}

.cookie-consent-banner {
    pointer-events: auto; /* Re-enable clicks on the banner itself */
    background: #ffffff;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0; /* Round top corners only */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.25rem 2rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    border-top: 4px solid #ff8c00;
}

.cookie-consent-overlay.show .cookie-consent-banner {
    transform: translateY(0);
}

.cookie-consent-header {
    flex-shrink: 0;
    margin-bottom: 0;
}

.cookie-consent-logo {
    height: 24px;
    width: auto;
    display: block;
    object-fit: contain;
}

.cookie-consent-content {
    flex: 1;
    margin-bottom: 0;
}

.cookie-consent-text {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #333;
    margin: 0;
}

.cookie-consent-text a {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.cookie-consent-text a:hover {
    color: #e67e00;
    border-bottom-color: #e67e00;
}

.cookie-consent-buttons {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.cookie-consent-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.cookie-consent-btn-primary {
    background: #ff8c00;
    color: #ffffff;
    min-width: 140px;
}

.cookie-consent-btn-primary:hover {
    background: #e67e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

.cookie-consent-btn-secondary {
    background: #151824;
    color: #ffffff;
}

.cookie-consent-btn-secondary:hover {
    background: #0f111a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 24, 36, 0.2);
}

.cookie-consent-btn-outline {
    background: transparent;
    color: #151824;
    border: 1px solid #d1d5db;
}

.cookie-consent-btn-outline:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Cookie Consent Modal (Settings) - Remains Centered */
.cookie-consent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.cookie-consent-modal-overlay.show {
    display: flex;
}

.cookie-consent-modal {
    background: #ffffff;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cookie-consent-modal-overlay.show .cookie-consent-modal {
    transform: scale(1);
}

.cookie-consent-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-consent-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #151824;
    margin: 0;
}

.cookie-consent-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cookie-consent-modal-close:hover {
    background: #f3f4f6;
    color: #151824;
}

.cookie-consent-modal-body {
    padding: 2rem;
}

.cookie-consent-category {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-consent-category:first-child {
    padding-top: 0;
}

.cookie-consent-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cookie-consent-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cookie-consent-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #151824;
    margin: 0;
}

.cookie-consent-category-description {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.cookie-consent-category-required {
    font-size: 0.75rem;
    color: #ff8c00;
    font-weight: 600;
    margin-left: 0.5rem;
    background: rgba(255, 140, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.cookie-consent-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-consent-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 34px;
}

.cookie-consent-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cookie-consent-switch input:checked + .cookie-consent-slider {
    background-color: #ff8c00;
}

.cookie-consent-switch input:checked + .cookie-consent-slider:before {
    transform: translateX(24px);
}

.cookie-consent-switch input:disabled + .cookie-consent-slider {
    background-color: #94a3b8;
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-consent-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

.cookie-consent-btn-save {
    background: #ff8c00;
    color: #ffffff;
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-consent-btn-save:hover {
    background: #e67e00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .cookie-consent-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.25rem;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .cookie-consent-header {
        width: 100%;
        display: flex;
        justify-content: flex-start; /* Left align on mobile too for consistency, or center */
        margin-bottom: 0.5rem;
    }

    .cookie-consent-logo {
        height: 20px;
    }
    
    .cookie-consent-content {
        width: 100%;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cookie-consent-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-consent-btn-primary {
        order: -1; /* Put Accept All on top on mobile */
    }

    .cookie-consent-modal {
        max-height: calc(100vh - 2rem);
    }

    .cookie-consent-modal-header {
        padding: 1.25rem;
    }

    .cookie-consent-modal-body {
        padding: 1.25rem;
    }

    .cookie-consent-modal-footer {
        padding: 1.25rem;
        flex-direction: column;
    }

    .cookie-consent-btn-save {
        width: 100%;
    }
}
