/* Views/Shared/_CookieConsent.cshtml - moved out of the view; edit here, not in the .cshtml */

.cookie-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1049;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 280px;
}

.cookie-icon {
    font-size: 2rem;
    color: #2e7d32;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.cookie-desc {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-cookie-accept {
    background: #2e7d32;
    color: #fff;
    border: 2px solid #2e7d32;
}

.btn-cookie-accept:hover {
    background: #1b5e20;
    border-color: #1b5e20;
    color: #fff;
}

.btn-cookie-reject {
    background: #fff;
    color: #333;
    border: 2px solid #ccc;
}

.btn-cookie-reject:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #111;
}

.btn-cookie-settings {
    background: transparent;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.btn-cookie-settings:hover {
    background: #e8f5e9;
    color: #1b5e20;
}

/* Modal */
.cookie-modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.cookie-modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
}

.cookie-modal-header .modal-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.cookie-modal-body {
    padding: 20px 24px;
}

.cookie-modal-desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-category {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 10px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a1a1a;
}

.cookie-category-desc {
    font-size: 0.82rem;
    color: #777;
    margin-top: 6px;
    margin-bottom: 0;
    display: none;
}

.badge-always {
    font-size: 0.78rem;
    font-weight: 600;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 4px;
}

.cookie-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
}

.cookie-category .form-check-input:checked {
    background-color: #2e7d32;
    border-color: #2e7d32;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
        text-align: center;
    }
}
