/* Modern Compact Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 380px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    backdrop-filter: blur(15px);
    color: white;
    padding: 1.25rem;
    z-index: 10000;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateX(120%) scale(0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.cookie-banner.show {
    transform: translateX(0) scale(1);
    opacity: 1;
}

.cookie-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.1) 100%);
    border-radius: 16px;
    pointer-events: none;
}

.cookie-content {
    position: relative;
    z-index: 1;
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cookie-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.cookie-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.cookie-text p {
    margin: 0 0 1.25rem 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
}

.cookie-btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.cookie-btn.primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.cookie-btn.primary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.cookie-btn.secondary {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: 2px solid #f39c12;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.cookie-btn.secondary:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-color: #e67e22;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.cookie-btn.tertiary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 0.8rem;
    padding: 0.5rem;
}

.cookie-btn.tertiary:hover {
    color: white;
    text-decoration: underline;
}

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

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

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

.cookie-modal-header h3 {
    color: #2c3e50;
    margin: 0;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.cookie-close:hover {
    background: #f8f9fa;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-category h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
}

.cookie-category p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

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

.cookie-toggle input:checked + .cookie-slider {
    background-color: #27ae60;
}

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

.cookie-toggle input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.cookie-modal-actions .cookie-btn {
    min-width: 100px;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        transform: translateY(120%) scale(0.9);
    }
    
    .cookie-banner.show {
        transform: translateY(0) scale(1);
    }
    
    .cookie-modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
        padding: 1.5rem;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
    
    .cookie-modal-actions .cookie-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 1rem;
        bottom: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        border-radius: 12px;
    }
    
    .cookie-buttons {
        gap: 0.375rem;
    }
    
    .cookie-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
}