.cookies-form {
    overflow-y: hidden !important;
}

body.swal2-no-backdrop .swal2-container.cookies-form {
    background-color: rgba(0, 0, 0, 0) !important;
    pointer-events: none;
}

body.swal2-no-backdrop .swal2-container.cookies-form  .swal2-popup {
    pointer-events: all;
}

.user-consent .swal2-title,
.cookies-form .swal2-title,
.user-consent .swal2-html-container,
.cookies-form .swal2-html-container {
    text-align: left;
}

.user-consent .swal2-title,
.cookies-form .swal2-title {
    margin-top: 0;
}

.user-consent .swal2-html-container,
.cookies-form  .swal2-html-container {
    --swal-content-margin: 1rem 0 0 0;
}

.cookies-form .swal2-popup {
    display: grid!important;
    padding: 1rem;
}

.cookies-form .swal2-actions {
    padding: 0;
    margin-top: 1rem;
}

.cookies-form .swal2-actions > button + button {
    margin-left: 1.5rem;
}

.user-consent .swal2-popup {
    min-height: 480px;
    min-width: 320px;
    max-width: 640px;
    padding: 1.25rem;
}

.user-consent.swal2-container.swal2-center>.swal2-popup {
    display: flex!important;
    flex-direction: column;
}

.user-consent .swal2-content {
    position: relative;
    max-height: 300px;
    padding-right: .5rem;
    border: 0;
    margin-bottom: 1.25rem;
    overflow: auto;
    flex: 1;
}

.user-consent .swal2-header {
    padding-bottom: 1.25rem;
}

.user-consent .swal2-html-container {
    text-align: justify;
    overflow-y: auto;
    overflow-wrap: break-word;
    margin-top: 0;
    min-height: 100%;
}

.user-consent .swal2-actions {
    border-top: 1px solid #ddd;
    padding: 1.25rem 0 0 0;
}

.user-consent .swal2-actions > button + button {
    margin-left: calc(var(--spacer) * .5);
}

.user-consent .btn:focus-visible {
    box-shadow: none;
}

@media (max-width: 1200px) {
    .user-consent .swal2-popup {
        width: 100%!important;
        max-width: 50%;
    }

    .user-consent .swal2-content {
        max-height: 500px;
    }
}

@media (min-width: 1025px) {
    .cookies-form {
        padding: 1.25rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .user-consent .swal2-popup {
        max-width: none;
        width: calc(100% - 2rem)!important;
    }

    .swal2-container.cookies-form {
        --swal-margin-x: 0;
    }

    .cookies-form .swal2-popup {
        margin-bottom: 0;
        width: 100%!important;
    }

    .cookies-form .btn {
        flex-grow: 1;
    }
}

@media (max-width: 576px) {
    .cookies-form .btn {
        flex-grow: 0;
    }

    .cookies-form .swal2-actions {
        row-gap: 1rem;
    }

    .cookies-form .swal2-actions button {
        width: 100%;
    }

    .cookies-form .swal2-actions > button + button {
        margin-left: 0;
    }
}
