/* 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_ks5q1_7 {
    position: fixed;
    inset: 0;
    background: rgba(51, 51, 51, 0.5);
    z-index: 1050;
    animation: _fadeIn_ks5q1_1 150ms ease;
}

._content_ks5q1_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;
    padding: 0;
    animation: _zoomIn_ks5q1_1 150ms ease;
}

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

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

._closeButton_ks5q1_47 {
    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_ks5q1_47:hover {
    background: #f3f4f6;
    color: #111827;
}

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

@keyframes _zoomIn_ks5q1_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 avoid magic values so migration is
   a straightforward find-and-replace. */

._form_1amxs_5,
._formBody_1amxs_6 {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

._formBody--success_1amxs_13 ._button_1amxs_13 {
  max-width: 200px;
  margin: 0 auto;
}

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

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

._label_1amxs_26 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

._requiredAsterisk_1amxs_33 {
    color: #dc2626;
    margin-left: 2px;
}

._optional_1amxs_38 {
    color: #6b7280;
    font-weight: 400;
    font-size: 13px;
}

/* ── Inputs ───────────────────────────────────────────────────────────────── */

._input_1amxs_46,
._inputError_1amxs_47 {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: white;
    outline: none;
}

._input_1amxs_46:focus,
._otpInput_1amxs_62:focus,
._textarea_1amxs_63:focus {
    border-color: #333333;
}
._input_1amxs_46:focus-visible,
._otpInput_1amxs_62:focus-visible,
._textarea_1amxs_63:focus-visible {
    outline-color: -webkit-focus-ring-color;
}

._inputError_1amxs_47 {
    border-color: #dc2626;
}

._inputError_1amxs_47:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px color-mix(in srgb, #dc2626 15%, transparent);
}

._textarea_1amxs_63,
._textareaError_1amxs_82 {
    width: 100%;
    box-sizing: border-box;
    min-height: 100px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: white;
    outline: none;
    resize: vertical;
}

._textareaError_1amxs_82 {
    border-color: #dc2626;
}

._textareaError_1amxs_82:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px color-mix(in srgb, #dc2626 15%, transparent);
}

._fieldHint_1amxs_106 {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

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

._otpSection_1amxs_114 {
    display: flex;
    flex-direction: column;
    gap: 0;
}

._otpHeading_1amxs_120 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

._otpHeadingNoSubtext_1amxs_127 {
    margin-bottom: 8px;
}

._otpSubtext_1amxs_131 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #374151;
}

._otpInput_1amxs_62 {
    width: 160px;
    box-sizing: border-box;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    font-family: monospace;
    letter-spacing: 1em;
    color: #111827;
    background: white;
    outline: none;
}

._fieldError_1amxs_152 {
    margin: 0;
    font-size: 13px;
    color: #dc2626;
}

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

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

._button_1amxs_13 {
    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_1amxs_13:hover:not(:disabled) {
    background: var(--color-intent-primary-hover, #1f2937);
}

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

._resendLink_1amxs_188 {
    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_1amxs_188:hover:not(:disabled) {
    color: var(--color-intent-link-primary-hover, #1d4ed8);
}

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

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

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

._recaptchaLogo_1amxs_217 {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 1px;
}

._recaptchaText_1amxs_224 {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

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

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

/* ── Success state ────────────────────────────────────────────────────────── */

._successBanner_1amxs_241 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
}

._successIcon_1amxs_251 {
    font-size: 18px;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 1px;
}

._successTitle_1amxs_258 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

._successSubtext_1amxs_265 {
    margin: 4px 0 0;
    font-size: 14px;
    color: #374151;
}

/* ── Error banner (inline, inside form) ──────────────────────────────────── */

._errorBanner_1amxs_273 {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    font-size: 14px;
    color: #991b1b;
    outline: none;
}

._errorBannerIcon_1amxs_287 {
    font-size: 16px;
    flex-shrink: 0;
    margin: 0;
}

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

._errorBannerClose_1amxs_298 {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #991b1b;
    flex-shrink: 0;
}

._errorBannerClose_1amxs_298:hover {
    color: #7f1d1d;
}

/* ── Resend success notice ────────────────────────────────────────────────── */

._successNotice_1amxs_315 {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    font-size: 14px;
    color: #166534;
    outline: none;
}

._successNoticeIcon_1amxs_329 {
    font-size: 16px;
    flex-shrink: 0;
    color: #16a34a;
}

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

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

._successNoticeClose_1amxs_340:hover {
    color: #14532d;
}
