/* Cookie Consent Banner */

:root {
    --primary: #7dad3d;
    --primary-dark: #7dad3d;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #2ecc71;
    --cookie-bg: rgba(255, 255, 255, 0.98);
    --cookie-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    --cookie-border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-consent {
    position: fixed;
    bottom: 0px;
    left: 0;
    right: 0;
    background-color: var(--cookie-bg);
    box-shadow: var(--cookie-shadow);
    border-top: var(--cookie-border);
    padding: 20px;
    z-index: 1050;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text h5 {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-text h5 i {
    color: var(--primary);
}

.cookie-consent-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--secondary);
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-settings-panel {
    background-color: var(--light);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.cookie-settings-panel.show {
    display: block;
}

.cookie-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.cookie-type-info {
    flex: 1;
}

.cookie-type-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.cookie-type-description {
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 0;
}

.form-check-input:checked {
    background-color: #7bb031 !important;
    border-color: #7bb031 !important;
}

.form-switch .form-check-input {
    width: 2.5em;
    height: 1.25em;
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.cookie-consent-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie-primary {
    background-color: #7bb031;
    border-color: #7bb031;
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 25px;
}

.btn-cookie-primary:hover {
    background-color: #12564b;
    border-color: #12564b;
    color: white;
    transform: translateY(-1px);
}

.btn-cookie-outline {
    background-color: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    line-height: 25px;
}

.btn-cookie-outline:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-1px);
}

.btn-cookie-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s;
}

.btn-cookie-link:hover {
    color: var(--dark);
}

/* Cookie Confirmation Toast */
.cookie-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1060;
}

.cookie-toast {
    background-color: #7dad3d;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

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

.cookie-toast-icon {
    width: 32px;
    height: 32px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-toast-icon i {
    color: var(--success);
    font-size: 16px;
}

.cookie-toast-content {
    flex: 1;
}

.cookie-toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.cookie-toast-message {
    font-size: 0.85rem;
    color: var(--light);
    margin-bottom: 0;
}

.cookie-toast-close {
    color: var(--secondary);
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.cookie-toast-close:hover {
    opacity: 1;
}

/* Floating Cookie Settings Button */
.cookie-settings-floating {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 1040;
    transition: all 0.2s;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.cookie-settings-floating.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.cookie-settings-floating:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.cookie-settings-floating i {
    color: var(--primary);
    font-size: 24px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .cookie-consent-compact {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-consent-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .cookie-consent-footer {
        justify-content: space-between;
    }
    
    .cookie-settings-panel {
        padding: 15px;
    }
}
