/* Cookie Consent System - Premium Styles */

:root {
    --cc-primary: #3f5a73;
    /* RoutePassenger slate blue */
    --cc-bg: rgba(255, 255, 255, 0.95);
    --cc-text: #333;
    --cc-text-light: #666;
    --cc-border: rgba(0, 0, 0, 0.1);
    --cc-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    --cc-radius: 12px;
}

/* Banner: a slim bar along the bottom edge, never over the page content */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f1e33;
    color: #e2e8f0;
    padding: 14px 24px;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cc-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cc-banner-text h4 {
    margin: 0 0 8px 0;
    color: var(--cc-primary);
    font-weight: 700;
}

.cc-banner-text { flex: 1 1 420px; max-width: 760px; }

.cc-banner-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #cbd5e1;
}

.cc-banner-text a { color: #fff; text-decoration: underline; }

.cc-banner-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cc-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.cc-btn-accept {
    background: var(--cc-primary);
    color: #fff;
}

.cc-btn-accept:hover {
    background: #2f465b;
}

.cc-btn-reject {
    background: #f5f5f5;
    color: #333;
}

.cc-btn-reject:hover {
    background: #eeeeee;
}

.cc-btn-settings {
    background: transparent;
    color: var(--cc-primary);
    border: 1px solid var(--cc-primary);
}

.cc-btn-settings:hover {
    background: rgba(63, 90, 115, 0.06);
}

/* On the dark banner */
.cc-banner .cc-btn-accept { background: #fff; color: #0f1e33; }
.cc-banner .cc-btn-accept:hover { background: #e2e8f0; }
.cc-banner .cc-btn-reject { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cc-banner .cc-btn-reject:hover { background: rgba(255, 255, 255, 0.18); }
.cc-banner .cc-btn-settings { color: #cbd5e1; border-color: rgba(255, 255, 255, 0.35); }

/* Modal Overlay */
.cc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cc-modal-overlay.show {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.cc-modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: var(--cc-radius);
    padding: 32px;
    position: relative;
    overflow-y: auto;
    box-shadow: var(--cc-shadow);
}

.cc-modal-header {
    margin-bottom: 24px;
}

.cc-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--cc-primary);
}

.cc-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.cc-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cc-border);
}

.cc-category:last-child {
    border-bottom: none;
}

.cc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cc-category-title {
    font-weight: 700;
    font-size: 16px;
}

.cc-category-desc {
    font-size: 13px;
    color: var(--cc-text-light);
    line-height: 1.4;
}

/* Toggle Switch */
.cc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

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

input:checked+.cc-slider {
    background-color: var(--cc-primary);
}

input:focus+.cc-slider {
    box-shadow: 0 0 1px var(--cc-primary);
}

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

input:disabled+.cc-slider {
    background-color: #f1f1f1;
    cursor: not-allowed;
}

/* Footer Link */
#cc-open-settings {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

#cc-open-settings:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .cc-banner {
        padding: 14px 16px;
    }

    .cc-banner-btns {
        width: 100%;
    }

    .cc-banner .cc-btn {
        flex: 1 1 auto;
    }
}