/* Cookie Consent Banner Styles */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: #0d6efd;
    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #0d6efd;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: #0b5ed7;
}

.cookie-btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.cookie-btn-secondary:hover {
    background: #5c636a;
}

.cookie-btn-outline {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.cookie-btn-outline:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

/* Customize Panel */
#cookie-consent-customize {
    display: none;
}

.cookie-categories {
    margin: 20px 0;
    display: grid;
    gap: 15px;
}

.cookie-category {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
}

.cookie-category-info p {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.cookie-category-toggle {
    display: flex;
    align-items: center;
}

/* Custom Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #0d6efd;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(26px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-category-required {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Customize Actions */
.cookie-customize-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 15px;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-category {
        flex-direction: column;
    }

    .cookie-customize-actions {
        flex-direction: column;
    }
}

/* Accessibility */
.cookie-btn:focus,
.cookie-toggle input:focus + .cookie-toggle-slider {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    #cookie-consent-banner {
        background: #212529;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }

    .cookie-consent-text h3,
    .cookie-category-info h4 {
        color: #ffffff;
    }

    .cookie-consent-text p,
    .cookie-category-info p,
    .cookie-category-required {
        color: #adb5bd;
    }

    .cookie-category {
        background: #343a40;
    }

    .cookie-btn-outline {
        color: #adb5bd;
        border-color: #495057;
    }

    .cookie-btn-outline:hover {
        background: #343a40;
        border-color: #6c757d;
    }
}
