.cookie-consent-hidden {
    display: none;
}

.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(173, 216, 230, 0.3);
    backdrop-filter: blur(2px);
    z-index: 999998;
}

.cookie-consent-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(100, 181, 246, 0.25);
    border: 2px solid #B3E5FC;
    z-index: 999999;
    padding: 28px;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-consent-content h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    color: #1565C0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.cookie-consent-content p {
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.7;
    color: #42A5F5;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(100, 181, 246, 0.2);
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    color: #fff;
    border: 2px solid #90CAF9;
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.4);
}

.cookie-btn-secondary {
    background: #E1F5FE;
    color: #1976D2;
    border: 2px solid #B3E5FC;
}

.cookie-btn-secondary:hover {
    background: #B3E5FC;
    transform: translateY(-2px);
}

.cookie-btn-tertiary {
    background: #E1F5FE;
    color: #1976D2;
    border: 2px solid #81D4FA;
}

.cookie-btn-tertiary:hover {
    background: #B3E5FC;
    border-color: #64B5F6;
    transform: translateY(-2px);
}

.cookie-modal-hidden {
    display: none;
}

.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(173, 216, 230, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1000000;
}

.cookie-modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(100, 181, 246, 0.3);
    border: 2px solid #B3E5FC;
    z-index: 1000001;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.cookie-modal-header {
    padding: 24px;
    border-bottom: 2px solid #B3E5FC;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 14px 14px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: #1565C0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.cookie-close-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid #B3E5FC;
    border-radius: 50%;
    font-size: 28px;
    color: #42A5F5;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 36px;
    height: 36px;
    transition: all 0.3s ease;
}

.cookie-close-btn:hover {
    background: #B3E5FC;
    color: #1565C0;
}

.cookie-modal-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 2px solid #B3E5FC;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: #81D4FA;
    transform: translateX(4px);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cookie-category-header h4 {
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 600;
    color: #1565C0;
}

.cookie-category-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #42A5F5;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #B3E5FC 0%, #E1F5FE 100%);
    transition: 0.3s;
    border-radius: 28px;
    border: 2px solid #81D4FA;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background: linear-gradient(135deg, #fff 0%, #E3F2FD 100%);
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(100, 181, 246, 0.3);
}

input:checked + .cookie-slider {
    background: linear-gradient(135deg, #64B5F6 0%, #42A5F5 100%);
    border-color: #42A5F5;
}

input:checked + .cookie-slider:before {
    transform: translateX(24px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

input:disabled + .cookie-slider {
    opacity: 0.6;
    cursor: not-allowed;
    background: linear-gradient(135deg, #CFD8DC 0%, #ECEFF1 100%);
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 2px solid #B3E5FC;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 0 14px 14px;
}

.cookie-modal-footer .cookie-btn {
    width: 100%;
}

@media (max-width: 600px) {
    .cookie-consent-container {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        border-radius: 16px 16px 0 0;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}