/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    color: #183354;
    padding: 0.75rem 0;
    box-shadow: 0 -2px 14px rgba(14, 30, 50, 0.12);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 2px solid #1BB087;
}

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

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 250px;
}

.cookie-consent-icon {
    font-size: 1.5rem;
    color: #1BB087;
    flex-shrink: 0;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-description {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    color: #183354;
}

.cookie-consent-link {
    color: #0E1E32;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 0.25rem;
}

.cookie-consent-link:hover {
    color: #1BB087;
}

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

.cookie-consent-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-cookie-settings {
    background: #f8f9fa;
    color: #183354;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

.btn-cookie-settings:hover {
    background: #e9ecef;
}

.btn-cookie-settings i {
    font-size: 1rem;
}

.btn-cookie-reject {
    background: #f8f9fa;
    color: #183354;
    border: 1px solid #dee2e6;
}

.btn-cookie-reject:hover {
    background: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
}

.btn-cookie-accept {
    background: #1BB087;
    color: #ffffff;
}

.btn-cookie-accept:hover {
    background: #0E1E32;
}

/* Cookie Preferences Modal */
.cookie-preferences-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-preferences-modal.show {
    display: flex;
}

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

.cookie-preferences-content {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 8px 28px rgba(14, 30, 50, 0.2);
    animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    background: #0E1E32;
    color: #ffffff;
    border-radius: 12px 12px 0 0;
}

.cookie-preferences-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.cookie-preferences-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cookie-preferences-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.cookie-preferences-body {
    padding: 1rem;
}

.cookie-category {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.cookie-category:hover {
    border-color: #1BB087;
    box-shadow: 0 2px 8px rgba(27, 176, 135, 0.1);
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem;
    background: #f8f9fa;
}

.cookie-category-info {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    flex: 1;
}

.cookie-category-icon {
    font-size: 1.25rem;
    color: #1BB087;
}

.cookie-category-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #183354;
}

.cookie-category-desc {
    font-size: 0.8125rem;
    color: #6c757d;
    margin: 0;
}

.cookie-category-toggle {
    flex-shrink: 0;
}

.cookie-always-active {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1BB087;
    background: rgba(27, 176, 135, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

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

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #1BB087;
}

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

.cookie-preferences-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.btn-cookie-save-preferences {
    width: 100%;
    padding: 0.75rem;
    background: #1BB087;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cookie-save-preferences:hover {
    background: #0E1E32;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .cookie-consent-content {
        min-width: 100%;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-consent-actions button {
        flex: 1;
    }

    .btn-cookie-settings {
        /* order: 3; */
        width: 100%;
    }

    .cookie-preferences-content {
        max-height: 90vh;
        margin: 0.5rem;
    }

    .cookie-category-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .cookie-category-toggle {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 0.625rem 0;
    }

    .cookie-consent-icon {
        font-size: 1.25rem;
    }

    .cookie-consent-description {
        font-size: 0.8125rem;
    }

    .cookie-consent-actions button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .btn-cookie-settings i {
        font-size: 0.875rem;
    }
}
