/* Cookie Banner Overlay */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cookie-overlay.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Cookie Banner Box */
.cookie-banner {
    background: white;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Cookie Header */
.cookie-header {
    padding: 30px 30px 20px;
    border-bottom: 2px solid #f0f0f0;
}

.cookie-header h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
    font-weight: 700;
}

.cookie-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Cookie Content */
.cookie-content {
    padding: 20px 30px;
}

.cookie-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cookie-section:last-child {
    border-bottom: none;
}

.cookie-section h3 {
    grid-column: 1 / 2;
    margin: 0 0 5px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-section p {
    grid-column: 1 / -1;
    margin: 5px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

.required-badge {
    background: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.optional-badge {
    background: #2196F3;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Toggle Switch */
.cookie-toggle {
    grid-column: 2 / 3;
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.cookie-toggle.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

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

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}

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

.cookie-toggle input:checked + .toggle-slider {
    background-color: #2196F3;
}

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

.cookie-toggle.disabled input:checked + .toggle-slider {
    background-color: #4CAF50;
}

/* Cookie Footer */
.cookie-footer {
    padding: 20px 30px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 2px solid #f0f0f0;
}

.btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #2196F3;
    color: white;
}

.btn-primary:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-secondary {
    background: #4CAF50;
    color: white;
}

.btn-secondary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-tertiary {
    background: #f0f0f0;
    color: #333;
}

.btn-tertiary:hover {
    background: #e0e0e0;
}

.btn-warning {
    background: #FF9800;
    color: white;
}

.btn-warning:hover {
    background: #F57C00;
}

.privacy-link {
    width: 100%;
    text-align: center;
    color: #2196F3;
    text-decoration: none;
    font-size: 13px;
    padding: 5px;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Cookie Popup (Warning) */
.cookie-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cookie-popup.hidden {
    display: none;
}

.popup-content {
    background: white;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.popup-content h3 {
    margin: 0 0 15px;
    font-size: 20px;
    color: #333;
}

.popup-content p {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.6;
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.booking-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #FF9800;
}

.booking-info p {
    margin: 5px 0;
    font-size: 14px;
}

.booking-info strong {
    color: #333;
}

/* Floating Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2196F3;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    z-index: 999998;
}

.cookie-settings-btn:hover {
    transform: scale(1.1) rotate(20deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cookie-settings-btn.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        width: 95%;
        max-height: 95vh;
    }
    
    .cookie-header,
    .cookie-content,
    .cookie-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookie-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .cookie-toggle {
        grid-column: 1 / 2;
        justify-self: start;
        margin-top: 10px;
    }
    
    .cookie-footer {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    .cookie-settings-btn {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* Print Styles */
@media print {
    .cookie-overlay,
    .cookie-popup,
    .cookie-settings-btn {
        display: none !important;
    }
}

/* Accessibility */
.btn:focus,
.cookie-toggle:focus,
.cookie-settings-btn:focus {
    outline: 3px solid #2196F3;
    outline-offset: 2px;
}

/* Animations for better UX */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn:active {
    animation: pulse 0.3s ease;
}
