/* Temporary styles for the Dialog shim.
 * Remove this file and LocalDialog.tsx when SquareKit's dual-React issue is resolved,
 * then update the import in StaffMessageWidget.tsx to:
 *   import { Dialog, DialogContent, ... } from '@parentsquare/squarekit/components/ui/dialog'
 */

._overlay_4m4pm_7 {
    position: fixed;
    inset: 0;
    background: rgba(51, 51, 51, 0.5);
    z-index: 1050;
    animation: _fadeIn_4m4pm_1 150ms ease;
}

._content_4m4pm_15 {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    z-index: 1051;
    width: calc(100% - 2rem);
    max-width: 76rem;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    animation: _zoomIn_4m4pm_1 150ms ease;
}

._header_4m4pm_35 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

._title_4m4pm_44 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    margin: 0;
}

._closeButton_4m4pm_52 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.25rem;
    line-height: 1;
}

._closeButton_4m4pm_52:hover {
    background: #f3f4f6;
    color: #111827;
}

@keyframes _fadeIn_4m4pm_1 {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes _zoomIn_4m4pm_1 {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
/* Temporary styles — will be replaced by SquareKit/Tailwind when the dual-React
   issue is resolved. Keep selectors flat and tokens centralized so migration is
   a straightforward find-and-replace. */

._form_1w8zb_5,
._formBody_1w8zb_6 {
    --alert-success-bg: #DFF0D8;
    --alert-success-border: #D0E6BF;
    --alert-success-fg: #4C6B00;

    --alert-error-bg: #F2DEDE;
    --alert-error-border: #EBCCD1;
    --alert-error-fg: #930009;

    --color-text-primary: #111827;
    --color-text-secondary: #374151;
    --color-text-muted: #6b7280;

    --color-form-label: #191919;
    --color-form-input-border: #767676;
    --color-form-input-border-focus: #333333;
    --color-field-error-text: #dc2626;

    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    flex: 1 1 auto;
}

._formBody--success_1w8zb_32 ._button_1w8zb_32 {
    max-width: 200px;
    margin: 0 auto;
}

/* ── Field groups ─────────────────────────────────────────────────────────── */

._fieldGroup_1w8zb_39 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

._label_1w8zb_45 {
    margin: 0;
    font-size: 14px;
    font-weight: 400 !important;
    color: var(--color-form-label);
}

._requiredAsterisk_1w8zb_52 {
    color: var(--alert-error-fg);
    margin-left: 2px;
}

._optional_1w8zb_57 {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 13px;
}

/* ── Form fields — one base, modifiers for textarea / OTP / error ────────── */

._field_1w8zb_39 {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--color-form-input-border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-text-primary);
    background: white;
    outline: none;
}

._field_1w8zb_39:focus {
    border-color: var(--color-form-input-border-focus);
}

._field--textarea_1w8zb_83 {
    height: auto;
    min-height: 100px;
    resize: vertical;
}

._field--otp_1w8zb_89 {
    width: 160px;
    font-family: monospace;
    letter-spacing: 1em;
}

._field--error_1w8zb_95,
._field--error_1w8zb_95:focus {
    border-color: var(--color-field-error-text);
}

._field--error_1w8zb_95:focus {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-field-error-text) 15%, transparent);
}

._fieldHint_1w8zb_104 {
    margin: 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

._fieldError_1w8zb_110 {
    margin: 0;
    font-size: 13px;
    color: var(--color-field-error-text);
}

/* ── OTP section ──────────────────────────────────────────────────────────── */

._otpSection_1w8zb_118 {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

._otpHeading_1w8zb_124 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
}

._otpSubtext_1w8zb_131 {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ── Actions row ──────────────────────────────────────────────────────────── */

._actions_1w8zb_139 {
    display: flex;
    align-items: center;
    gap: 16px;
}

._button_1w8zb_32 {
    padding: 8px 16px;
    background: var(--color-intent-primary-default, #111827);
    color: var(--color-intent-on-primary-default, #ffffff);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
}

._button_1w8zb_32:hover:not(:disabled) {
    background: var(--color-intent-primary-hover, #1f2937);
}

._button_1w8zb_32:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

._resendLink_1w8zb_167 {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-family: inherit;
    color: var(--color-intent-link-primary, #2563eb);
    cursor: pointer;
    text-decoration: underline;
}

._resendLink_1w8zb_167:hover:not(:disabled) {
    color: var(--color-intent-link-primary-hover, #1d4ed8);
}

._resendLink_1w8zb_167:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

._resendCountdown_1w8zb_187 {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ── reCAPTCHA notice ─────────────────────────────────────────────────────── */

._recaptchaNotice_1w8zb_194 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

._recaptchaLogo_1w8zb_201 {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

._recaptchaText_1w8zb_207 {
    margin: 0;
    font-size: 12px;
    color: var(--color-text-muted);
}

._recaptchaLink_1w8zb_213 {
    color: var(--color-intent-link-primary, #2563eb);
    text-decoration: underline;
}

._recaptchaLink_1w8zb_213:hover {
    color: var(--color-intent-link-primary-hover, #1d4ed8);
}

/* ── Alerts — one component, two variants (success/error) ────────────────── */

._alert_1w8zb_224 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--alert-bg);
    border: 1px solid var(--alert-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--alert-fg);
    outline: none;
}

._alert--success_1w8zb_238 {
    --alert-bg: var(--alert-success-bg);
    --alert-border: var(--alert-success-border);
    --alert-fg: var(--alert-success-fg);
}

._alert--error_1w8zb_244 {
    --alert-bg: var(--alert-error-bg);
    --alert-border: var(--alert-error-border);
    --alert-fg: var(--alert-error-fg);
}

/* Larger spacing for the standalone success state. */
._alert--lg_1w8zb_251 {
    gap: 12px;
}

._alertIcon_1w8zb_255 {
    font-size: 16px;
    flex-shrink: 0;
    color: var(--alert-fg);
}

._alert--lg_1w8zb_251 ._alertIcon_1w8zb_255 {
    font-size: 18px;
}

._alertMessage_1w8zb_265 {
    flex: 1;
    font-weight: 500;
}

._alertTitle_1w8zb_270 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--alert-fg);
}

._alertSubtext_1w8zb_277 {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--alert-fg);
}

._alertClose_1w8zb_283 {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: currentColor;
    flex-shrink: 0;
}

._alertClose_1w8zb_283:hover {
    color: color-mix(in srgb, currentColor 85%, black);
}
