.cookie-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cookie-popup {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 25px;
    position: relative;
}

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

.cookie-popup-header h2 {
    font-size: 20px;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.cookie-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.cookie-popup-close:hover {
    color: #333;
}

.cookie-popup-content {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.cookie-popup-content p {
    margin: 0 0 10px 0;
}

.cookie-popup-content a {
    color: #0066cc;
    text-decoration: underline;
}

.cookie-popup-content a:hover {
    color: #004499;
}

.cookie-popup-withdraw {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.cookie-popup-withdraw strong {
    color: #333;
}

.cookie-popup-custom {
    display: none;
    margin-bottom: 15px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.cookie-popup-custom.show {
    display: block;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.cookie-option-label {
    flex: 1;
    padding-right: 15px;
}

.cookie-option-label h4 {
    font-size: 13px;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.cookie-option-label p {
    font-size: 11px;
    color: #666;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.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%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #6c757d;
}

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

.cookie-popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-popup-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #6c757d;
    color: #ffffff;
    flex: 1;
    min-width: 120px;
}

.cookie-popup-btn:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.cookie-popup-btn:active {
    transform: translateY(0);
}

.cookie-popup-btn-secondary {
    background-color: #6c757d;
}

.cookie-popup-btn-save {
    background-color: #6c757d;
}

.cookie-footer-btn {
    display: inline-block;
}

.cookie-footer-btn a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.cookie-footer-btn a:hover {
    color: #8ea9e2;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .cookie-popup {
        padding: 20px;
        max-width: 100%;
        border-radius: 0;
    }
    
    .cookie-popup-header h2 {
        font-size: 18px;
    }
    
    .cookie-popup-buttons {
        flex-direction: column;
    }
    
    .cookie-popup-btn {
        width: 100%;
    }
}
