/* Cookie banner (resources/views/front/layouts/partials/cookie-consent.blade.php) */
.cookie-consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 1080;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    color: #ffffff;
    background-color: #171b21;
    border: 1px solid #163973;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent:focus {
    outline: none;
}

.cookie-consent:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.cookie-consent__content {
    flex: 1 1 420px;
}

.cookie-consent__title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.cookie-consent__text {
    margin: 0;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.cookie-consent__text a {
    color: #ffffff;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.75rem;
}

/* Accept and Reject look exactly the same: no option is pushed over the other */
.cookie-consent__button {
    min-width: 120px;
    min-height: 44px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #163973;
    border: 1px solid #ffffff;
    border-radius: 8px;
    cursor: pointer;
}

.cookie-consent__button:hover {
    background-color: #1d4a94;
}

.cookie-consent__button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 575.98px) {
    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__button {
        flex: 1 1 0;
    }
}

/* Footer "Cookie preferences": a button that looks like the other footer links */
.cookie-preferences-button {
    display: block;
    margin-bottom: 0.6rem;
    padding: 0;
    font-size: 0.95rem;
    color: inherit;
    text-align: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

.cookie-preferences-button:hover {
    color: #CECECE;
}

@media (max-width: 991.98px) {
    footer .cookie-preferences-button {
        width: 100%;
        text-align: center;
    }
}
