/* Cookie Modal Styles */
.cookie-modal {
    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: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #00A650 0%, #2CE886 100%);
    color: white !important;
    border-radius: 12px 12px 0 0;
}

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white !important;
}

.cookie-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.cookie-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.cookie-modal-body {
    padding: 25px;
}

.cookie-terms-content h4 {
    color: #00A650;
    margin-bottom: 15px;
    font-weight: 600;
}

.cookie-terms-content h5 {
    color: #333;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.cookie-terms-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

.cookie-terms-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.cookie-terms-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #555;
}

.cookie-terms-content a {
    color: #00A650;
    text-decoration: none;
    font-weight: 500;
}

.cookie-terms-content a:hover {
    text-decoration: underline;
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.cookie-modal-footer .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.cookie-modal-footer .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.cookie-modal-footer .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.cookie-modal-footer .btn-primary {
    background-color: #00A650;
    border-color: #00A650;
}

.cookie-modal-footer .btn-primary:hover {
    background-color: #008f45;
    border-color: #008f45;
}

/* Cookie Settings Styles */
.cookie-settings {
    max-height: 400px;
    overflow-y: auto;
}

.cookie-setting-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

.cookie-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-setting-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.cookie-setting-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #00A650;
}

.cookie-setting-title {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.cookie-setting-required {
    background-color: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.cookie-setting-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-modal {
        padding: 10px;
    }
    
    .cookie-modal-content {
        max-width: 100%;
        margin: 0;
    }
    
    .cookie-modal-header {
        padding: 15px 20px;
    }
    
    .cookie-modal-header h3 {
        font-size: 1.3rem;
        color: white !important;
    }
    
    .cookie-modal-body {
        padding: 20px;
    }
    
    .cookie-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .cookie-modal-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .cookie-setting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-setting-required {
        align-self: flex-start;
    }
}

/* Modal Open State */
body.modal-open {
    overflow: hidden;
}

/* Scrollbar styling for cookie settings */
.cookie-settings::-webkit-scrollbar {
    width: 6px;
}

.cookie-settings::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cookie-settings::-webkit-scrollbar-thumb {
    background: #00A650;
    border-radius: 3px;
}

.cookie-settings::-webkit-scrollbar-thumb:hover {
    background: #008f45;
} 