.modal .modal-header {
    background: rgba(0, 56, 176, 1);
    background: linear-gradient(90deg,
        var(--theme-primary, rgba(0, 56, 176, 1)),
        var(--theme-primary-dark, rgba(57, 32, 179, 1))) !important;
    color: var(--theme-on-primary, #fff) !important;
}

.modal .modal-header > :not(.close),
.modal .modal-header > :not(.close) * {
    color: var(--theme-on-primary, #fff) !important;
}

.modal .modal-header > button.close {
    align-items: center;
    align-self: center;
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 4px;
    color: var(--theme-on-primary-dark, #fff) !important;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 0 !important;
    height: 34px;
    justify-content: center;
    margin: 0 0 0 auto;
    opacity: .9;
    padding: 0;
    position: relative;
    text-shadow: none;
    transition: background-color .15s ease, opacity .15s ease;
    width: 34px;
}

.modal .modal-header > button.close::before,
.modal .modal-header > button.close::after {
    background: currentColor;
    border-radius: 1px;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    top: 50%;
    width: 14px;
}

.modal .modal-header > button.close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal .modal-header > button.close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal .modal-header > button.close > * {
    display: none !important;
}

.modal .modal-header > button.close:hover,
.modal .modal-header > button.close:focus {
    background: rgba(255, 255, 255, .24);
    color: var(--theme-on-primary-dark, #fff) !important;
    opacity: 1;
}

.modal .modal-header > button.close:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .34) !important;
}

@media (max-width: 575.98px) {
    .modal .modal-header > button.close {
        flex-basis: 32px;
        height: 32px;
        width: 32px;
    }
}
