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

._content_1ifu2_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_1ifu2_1 150ms ease;
}

._header_1ifu2_30 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 32px 16px 16px;
    border-bottom: 1px solid #e5e7eb;
}

._title_1ifu2_38 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    margin: 0;
}

._closeButton_1ifu2_46 {
    position: absolute;
    top: 10px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.25rem;
    line-height: 1;
}

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

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

@keyframes _zoomIn_1ifu2_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_a14ov_5,
._formBody_a14ov_6 {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

._fieldGroup_a14ov_15 {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

._label_a14ov_21 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

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

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

._input_a14ov_35,
._inputError_a14ov_36 {
    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_a14ov_35: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_a14ov_36 {
    border-color: #dc2626;
}

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

._textarea_a14ov_64,
._textareaError_a14ov_65 {
    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_a14ov_64: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_a14ov_65 {
    border-color: #dc2626;
}

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

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

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

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

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

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

._otpInput_a14ov_121 {
    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_a14ov_121: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_a14ov_141 {
    margin: 0;
    font-size: 13px;
    color: #dc2626;
}

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

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

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

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

._resendLink_a14ov_177 {
    background: none;
    border: none;
    padding: 0;
    font-size: 14px;
    font-family: inherit;
    color: #16a34a;
    cursor: pointer;
    text-decoration: underline;
}

._resendLink_a14ov_177:hover:not(:disabled) {
    color: #15803d;
}

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

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

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

._recaptchaText_a14ov_199 a {
    color: #6b7280;
}

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

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

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

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

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

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

._errorBanner_a14ov_243 {
    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_a14ov_256 {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

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

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

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