/* 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_105r4_5,
._formBody_105r4_6 {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

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

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

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

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

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

._input_105r4_41,
._inputError_105r4_42 {
    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_105r4_41:focus {
    border-color: var(--color-intent-primary-default, #6b7280);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-intent-primary-default, #6b7280) 15%, transparent);
}

._inputError_105r4_42 {
    border-color: #dc2626;
}

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

._textarea_105r4_70,
._textareaError_105r4_71 {
    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;
}

._textarea_105r4_70:focus {
    border-color: var(--color-intent-primary-default, #6b7280);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-intent-primary-default, #6b7280) 15%, transparent);
}

._textareaError_105r4_71 {
    border-color: #dc2626;
}

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

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

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

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

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

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

._otpInput_105r4_127 {
    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: 0.15em;
    color: #111827;
    background: white;
    outline: none;
}

._otpInput_105r4_127:focus {
    border-color: var(--color-intent-primary-default, #6b7280);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-intent-primary-default, #6b7280) 15%, transparent);
}

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

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

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

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

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

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

._resendLink_105r4_183:hover:not(:disabled) {
    color: var(--site-design-link-color-hover, #1d4ed8);
}

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

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

._recaptchaNotice_105r4_205 {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

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

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

._recaptchaLink_105r4_224 {
    color: var(--site-design-link-color, #2563eb);
    text-decoration: underline;
}

._recaptchaLink_105r4_224:hover {
    color: var(--site-design-link-color-hover, #1d4ed8);
}

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

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

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

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

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

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

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

._errorBannerIcon_105r4_280 {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

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

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

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