/* Cookie banner. Scoped so it stays a modal on pages that do not load legacy app-add.css. */
#popupCookie.popup-auth {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#popupCookie.popup-auth.active {
    opacity: 1;
    visibility: visible;
}

#popupCookie .popup-auth__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: rgba(46, 46, 46, 0.7);
    backdrop-filter: blur(10px);
}

#popupCookie .popup-auth__container {
    position: relative;
    z-index: 1;
    margin: 0 20px;
    overflow: hidden;
    overflow-y: auto;
    max-height: calc(100dvh - 40px);
    max-width: 768px;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#popupCookie.popup-auth.active .popup-auth__container {
    transform: scale(1);
}

#popupCookie .popup-auth__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(90deg, #017CA2, #B4007C);
    color: #fff;
    padding: 20px 20px 19px;
    text-align: center;
}

#popupCookie .popup-auth__title {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 400;
}

#popupCookie .popup-auth__dismiss {
    align-self: center;
    padding: 0 20px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

#popupCookie .popup-auth__content {
    margin: 0 auto;
    max-width: 640px;
    padding: 95px 20px 20px;
}

#popupCookie .popup-auth__message {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 24px;
}

#popupCookie .popup-auth__message a {
    color: #8C0060;
}

#popupCookie .popup-auth__buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 45px;
}

#popupCookie .popup-auth__button--yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border: 0;
    border-radius: 8px;
    background: #8C0060;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

#popupCookie .popup-auth__logo {
    display: block;
    margin: 0 auto;
    max-width: 100px;
    height: auto;
}

@media (min-width: 768px) {
    #popupCookie .popup-auth__dismiss {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    #popupCookie .popup-auth__content {
        padding: 24px 16px 20px;
    }

    #popupCookie .popup-auth__message {
        font-size: 14px;
    }

    #popupCookie .popup-auth__buttons {
        margin-bottom: 20px;
    }
}
