/* Feedback / flash popup.
   A standalone COPY of the welcome popup (css/account/welcome-after-registration.css),
   used by flash-toast.js for all client success/error messages. Kept fully
   separate so the original welcome/login popup is never affected. */

.aq-feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Must sit above the client fixed header (reaches 2147483646 in Home/_Header.css). */
    z-index: 2147483647;
    display: none;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.aq-feedback-overlay.show {
    display: flex;
}

.aq-feedback-modal {
    position: relative;
    width: 480px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--Colors-Gray-White, white);
    border-radius: 24px;
    box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
}

.aq-feedback-overlay.show .aq-feedback-modal {
    display: inline-flex;
}

.aq-feedback-modal-close {
    position: absolute;
    top: 24px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .aq-feedback-modal-close {
    right: 24px;
    left: auto;
}

[dir="ltr"] .aq-feedback-modal-close {
    left: 24px;
    right: auto;
}

.aq-feedback-container {
    width: 100%;
    padding: 48px 24px 40px;
    background: var(--Colors-Gray-White, white);
    border-radius: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    display: inline-flex;
    box-sizing: border-box;
}

.aq-feedback-header {
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    display: flex;
    text-align: center;
}

.aq-feedback-icon {
    margin-bottom: 4px;
    line-height: 0;
}

.aq-feedback-title {
    align-self: stretch;
    color: var(--Colors-Gray-Darkest, #111111);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.aq-feedback-subtitle {
    align-self: stretch;
    color: var(--Colors-Gray-Dark, #666666);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    word-break: break-word;
}

/* Blank subtitle (single-line flash) takes no space. */
.aq-feedback-subtitle:empty {
    display: none;
}

.aq-feedback-button {
    align-self: stretch;
    padding: 14px 24px;
    background: var(--Primary-500, #6A5D8B);
    border-radius: 12px;
    border: none;
    cursor: pointer;
    margin-top: 8px;
}

.aq-feedback-button-text {
    color: var(--Colors-Gray-White, white);
    font-size: 16px;
    font-weight: 600;
}

.aq-feedback-button:hover {
    filter: brightness(0.95);
}

/* Keyboard focus visibility (WCAG 2.4.7) for the popup's interactive controls — brand primary outline. */
.aq-feedback-button:focus-visible,
.aq-feedback-modal-close:focus-visible {
    outline: 2px solid var(--Primary-500, #6A5D8B);
    outline-offset: 2px;
    border-radius: 8px;
}

@media (max-width: 520px) {
    .aq-feedback-container {
        padding: 40px 20px 32px;
    }

    .aq-feedback-title {
        font-size: 20px;
    }
}
