/* Cookie Banner Layer 1 */
#cookie-banner-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    padding: 1.5rem;
    display: none;
    align-items: center;
    border-top: 4px solid var(--gold, #C9A227);
    font-family: inherit;
}

#cookie-banner-container.visible {
    display: flex;
    flex-direction: column;
}

@media (min-width: 900px) {
    #cookie-banner-container.visible {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.5rem 3rem;
    }
}

.cookie-banner-text {
    flex-grow: 1;
    margin-bottom: 1rem;
}

@media (min-width: 900px) {
    .cookie-banner-text {
        margin-bottom: 0;
        margin-right: 2rem;
    }
}

.cookie-banner-title {
    font-weight: 700;
    color: #10243F;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.cookie-banner-msg {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-cookie-accept {
    background: #10243F;
    color: #fff;
}
.btn-cookie-accept:hover {
    background: #1e3a5f;
}

.btn-cookie-reject {
    background: #e2e8f0;
    color: #475569;
}
.btn-cookie-reject:hover {
    background: #cbd5e1;
}

.btn-cookie-config {
    background: transparent;
    color: #10243F;
    text-decoration: underline;
    padding: 0.6rem 0.5rem;
}

/* Modal Layer 2 */
#cookie-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(16, 36, 63, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#cookie-modal-overlay.visible {
    display: flex;
}

.cookie-modal {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.cookie-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cookie-modal-header h2 {
    margin: 0;
    color: #10243F;
    font-size: 1.25rem;
    font-weight: bold;
}
.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    line-height: 1;
    padding: 0;
}
.cookie-modal-close:hover {
    color: #10243F;
}

.cookie-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.cookie-modal-desc {
    color: #475569;
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.cookie-category {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #10243F;
}
.cookie-category-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 1rem;
}
.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #16a34a;
}
input:disabled + .slider {
    background-color: #10243F; /* always on for necessary */
    cursor: not-allowed;
}
input:disabled:checked + .slider:before {
    transform: translateX(20px);
}
input:checked + .slider:before {
    transform: translateX(20px);
}

.cookie-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #f8fafc;
}
