/**
 * 2026 Ilyess Mechlaoui.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 *
 * @author    Ilyess Mechlaoui <https://www.ilyessmechlaoui.com>
 * @copyright 2026 Ilyess Mechlaoui
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 * @version   1.0.0
 */
.account-verification-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.fad-notice-box.alert,
.fad-notice-box.free-shipping-message {
    border-radius: 5px;
}

.fad-login-notice {
    width: 100%;
    clear: both;
    margin-bottom: 16px;
}

.fad-login-notice .alert {
    margin-bottom: 10px;
    overflow-wrap: break-word;
}

/* ── Domain restriction inline error ── */

/* Red border on the email input when domain is blocked */
input.fad-domain-invalid,
input.fad-domain-invalid:focus,
input.fad-email-format-invalid,
input.fad-email-format-invalid:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.18) !important;
    outline: none;
}

/* Keep feedback in the input column; inherit the theme's native alert style. */
.fad-domain-error {
    display: block;
    width: 100%;
    flex: 0 0 100%;
    clear: both;
    margin: 4px 0 8px;
}

.fad-email-format-error {
    display: block;
    width: 100%;
    flex: 0 0 100%;
    clear: both;
    margin: 4px 0 8px;
}

.fad-domain-error .fad-domain-error-list,
.fad-email-format-error .fad-email-format-error-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fad-domain-error .alert,
.fad-email-format-error .alert {
    margin-bottom: 0;
}

.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;
    }
}