/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.95);
    color: #fff;
    padding: 24px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 800px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-banner-content a {
    color: #d4a017;
    /* Accent color */
    text-decoration: underline;
}

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

.cookie-btn {
    padding: 10px 24px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.2s;
}

.cookie-btn-primary {
    background: #d4a017;
    color: #fff;
}

.cookie-btn-primary:hover {
    background: #b58913;
}

.cookie-btn-secondary {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-text {
    background: transparent;
    color: #ccc;
    text-decoration: underline;
    padding: 10px;
}

.cookie-btn-text:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cookie-modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

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

.cookie-modal-overlay.visible .cookie-modal {
    transform: scale(1);
}

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

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.cookie-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
}

.cookie-option-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Switch Toggle */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 16px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    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: #d4a017;
}

input:focus+.slider {
    box-shadow: 0 0 1px #d4a017;
}

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

input:disabled+.slider {
    background-color: #aaa;
    /* darker grey for locked */
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-modal-footer {
    padding: 16px 24px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}