/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    z-index: 9999;
    padding: 25px 0;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: slideUp 0.3s ease-out;
}

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

.cookie-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.cookie-text {
    flex: 1;
    max-width: 70%;
}

.cookie-text h4 {
    margin: 0 0 15px 0;
    font-weight: 600;
    color: white;
    font-size: 20px;
}

.cookie-text p {
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

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

.cookie-link {
    color: #4A90E2;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-link:hover {
    color: #357ABD;
    text-decoration: underline;
}

.cookie-partners-info,
.cookie-manage-info,
.cookie-essential-info {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* Primary button styling */
.cookie-actions .btn-primary {
    background-color: #0066CC;
    border-color: #0066CC;
    color: white;
}

.cookie-actions .btn-primary:hover {
    background-color: #0052A3;
    border-color: #0052A3;
    transform: translateY(-1px);
}

/* Outline light buttons */
.cookie-actions .btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: transparent;
}

.cookie-actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: white;
    transform: translateY(-1px);
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.cookie-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease-out;
}

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

.cookie-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.cookie-modal-body {
    padding: 25px 30px;
}

.cookie-modal-body > p {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #fafafa;
}

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

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

.cookie-category-header h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.cookie-always-on {
    background-color: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

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

/* Toggle Switch Styles */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
}

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

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

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #0066CC;
}

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

.cookie-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px 25px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.cookie-modal-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.cookie-modal-footer .btn-primary {
    background-color: #0066CC;
    border-color: #0066CC;
    color: white;
}

.cookie-modal-footer .btn-primary:hover {
    background-color: #0052A3;
    border-color: #0052A3;
    transform: translateY(-1px);
}

.cookie-modal-footer .btn-outline-primary {
    color: #0066CC;
    border-color: #0066CC;
    background-color: transparent;
}

.cookie-modal-footer .btn-outline-primary:hover {
    background-color: #0066CC;
    border-color: #0066CC;
    color: white;
    transform: translateY(-1px);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .cookie-text {
        max-width: 100%;
    }
    
    .cookie-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-banner {
        padding: 20px 0;
    }
    
    .cookie-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookie-category {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cookie-toggle {
        align-self: flex-end;
    }
}