.fad-popup-overlay,
.fad-popup-overlay * {
    box-sizing: border-box;
}

.fad-popup-overlay {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .68);
    opacity: 0;
    transition: opacity .18s ease;
}

.fad-popup-overlay[hidden] {
    display: none !important;
}

.fad-popup-overlay.is-visible {
    opacity: 1;
}

.fad-popup-dialog {
    position: relative;
    width: min(700px, 100%);
    max-height: calc(100vh - 48px);
    overflow: visible;
    padding: 14px;
    border: 1px solid #e7e7e7;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
    transform: translateY(8px);
    transition: transform .18s ease;
}

.fad-popup-overlay.is-visible .fad-popup-dialog {
    transform: translateY(0);
}

.fad-popup-message {
    display: flex;
    width: 100%;
    max-height: calc(100vh - 90px);
    min-height: 52px;
    overflow: auto;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border: 1px solid;
    border-radius: 2px;
    background: #fde7e9;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.fad-popup-message-text {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    text-align: center;
}

.fad-popup-close {
    position: absolute;
    z-index: 1;
    top: -13px;
    right: -13px;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #252525;
    color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
    font: 700 20px/1 Arial, sans-serif;
    cursor: pointer;
}

.fad-popup-close:hover,
.fad-popup-close:focus-visible {
    background: #111;
}

.fad-popup-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .fad-popup-overlay {
        padding: 20px;
    }

    .fad-popup-dialog {
        padding: 10px;
    }

    .fad-popup-message {
        min-height: 48px;
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fad-popup-overlay,
    .fad-popup-dialog {
        transition: none;
    }
}
