/**
 * Chat Widget Styles — T2W Intelligence Layer Phase 2
 *
 * FAB + bottom sheet chat interface.
 * Uses existing design tokens from variables.css.
 *
 * @since 45.2.0
 */

/* ─── Brand token bridge (S177 빠른수정 ①) ───────────────
   위젯은 footer 끝(.t2w-home 바깥)에서 출력돼 홈의 --hp-primary를 상속받지 못해
   파랑(#2563eb) 폴백으로 떨어졌다. 위젯 컨테이너에 브랜드 골드 토큰을 직접 정의해 복구.
   (하드코딩 hex 금지 — variables.css :root 토큰 참조) */
.t2w-chat-fab,
.t2w-chat-overlay,
.t2w-chat-sheet,
.t2w-chat-widget {
    --hp-primary: var(--color-primary);
    --hp-primary-hover: var(--color-primary-dark);
}

/* ─── Hero Chat CTA ───────────────────────── */
.t2w-hero-dark__chat-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px auto 4px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--t2w-r,12px);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.t2w-hero-dark__chat-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.t2w-hero-dark__chat-cta .material-symbols-outlined {
    font-size: 16px;
}

/* ─── FAB ─────────────────────────────────── */
.t2w-chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9000;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--hp-primary, #2563eb);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.t2w-chat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.t2w-chat-fab:active {
    transform: scale(0.95);
}

.t2w-chat-fab .material-symbols-outlined {
    font-size: 28px;
}

.t2w-chat-fab--hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

/* ─── Overlay ─────────────────────────────── */
.t2w-chat-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.t2w-chat-overlay--open {
    opacity: 1;
    pointer-events: auto;
}

/* ─── Bottom Sheet ────────────────────────── */
.t2w-chat-sheet {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9999;
    width: 100%;
    max-width: 420px;
    height: 70vh;
    max-height: 600px;
    background: var(--hp-surface, #fff);
    border-radius: var(--t2w-r,12px) var(--t2w-r,12px) 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
}

.t2w-chat-sheet--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ─── Header ──────────────────────────────── */
.t2w-chat-sheet__header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-light, #e5e7eb);
    flex-shrink: 0;
}

.t2w-chat-sheet__handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: var(--color-border-medium, #d1d5db);
    border-radius: var(--t2w-r-sm,8px);
}

.t2w-chat-sheet__title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.t2w-chat-sheet__title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--t2w-ink, #152A47);
}

.t2w-chat-sheet__icon {
    color: var(--hp-primary, #2563eb);
    font-size: 22px;
}

.t2w-chat-sheet__close,
.t2w-chat-sheet__settings {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--t2w-ink-3, #6B7280);
    border-radius: var(--t2w-r-sm,8px);
    transition: background 0.15s, color 0.15s;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.t2w-chat-sheet__close:hover,
.t2w-chat-sheet__settings:hover {
    background: rgba(0, 0, 0, 0.05);
}

.t2w-chat-sheet__settings[aria-expanded="true"] {
    color: var(--hp-primary, #2563eb);
    background: rgba(var(--color-primary-rgb), 0.08);
}

/* ─── Engagement panel (AI 참여 방식 설정) ── */
.t2w-chat-engagement {
    padding: 12px 16px 14px;
    border-bottom: 1px solid var(--hp-border, #e5e7eb);
    background: var(--hp-bg-subtle, #fffbeb);
    animation: t2wChatEngagementSlide 0.18s ease-out;
}

@keyframes t2wChatEngagementSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.t2w-chat-engagement[hidden] {
    display: none;
}

.t2w-chat-engagement__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--t2w-ink-3, #6B7280);
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0.02em;
}

.t2w-chat-engagement__options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.t2w-chat-engagement__option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    border: 1px solid var(--hp-border, #e5e7eb);
    border-radius: var(--t2w-r-sm,8px);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
    text-align: center;
    min-height: 64px;
    position: relative;
}

.t2w-chat-engagement__option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.t2w-chat-engagement__option:hover {
    border-color: var(--hp-primary, #2563eb);
    transform: translateY(-1px);
}

.t2w-chat-engagement__option:has(input:checked) {
    border-color: var(--hp-primary, #2563eb);
    background: rgba(var(--color-primary-rgb), 0.06);
}

.t2w-chat-engagement__emoji {
    font-size: 20px;
    line-height: 1;
}

.t2w-chat-engagement__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--t2w-ink, #152A47);
}

.t2w-chat-engagement__desc {
    font-size: 13px;
    color: var(--t2w-ink-3, #6B7280);
    line-height: 1.2;
}

@media (max-width: 480px) {
    .t2w-chat-engagement__desc {
        font-size: 12px;
    }
    .t2w-chat-engagement__label {
        font-size: 13px;
    }
}

/* ─── Messages area ───────────────────────── */
.t2w-chat-sheet__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}

/* ─── Chat bubbles ────────────────────────── */
.t2w-chat-bubble {
    display: flex;
    max-width: 85%;
}

.t2w-chat-bubble--with-source-state {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.t2w-chat-bubble--user {
    align-self: flex-end;
}

.t2w-chat-bubble--assistant {
    align-self: flex-start;
}

.t2w-chat-bubble__content {
    padding: 10px 14px;
    border-radius: var(--t2w-r,12px);
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.t2w-chat-bubble--user .t2w-chat-bubble__content {
    background: var(--hp-primary, #2563eb);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.t2w-chat-bubble--assistant .t2w-chat-bubble__content {
    background: var(--color-border-light, #fffbeb);
    color: var(--t2w-ink, #152A47);
    border-bottom-left-radius: 4px;
}

.t2w-chat-source-state {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: var(--t2w-r-pill,999px);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.t2w-chat-source-state--grounded {
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--hp-primary, #2563eb);
}

.t2w-chat-source-state--boundary {
    background: rgba(180, 83, 9, 0.1);
    color: #92400e;
}

.t2w-chat-source-state--default {
    background: rgba(17, 24, 39, 0.08);
    color: var(--t2w-ink-3, #6B7280);
}

/* ─── Markdown rendering ──────────────────── */
.t2w-chat-bubble__content .t2w-chat-h2 {
    display: block;
    font-size: 16px;
    margin: 8px 0 4px;
}

.t2w-chat-bubble__content .t2w-chat-h3 {
    display: block;
    font-size: 15px;
    margin: 6px 0 2px;
}

.t2w-chat-bubble__content .t2w-chat-list {
    margin: 4px 0;
    padding-left: 18px;
}

.t2w-chat-bubble__content .t2w-chat-list li {
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.5;
}

.t2w-chat-bubble__content em {
    font-style: italic;
    opacity: 0.85;
}

/* ─── Answer fade-in animation ────────────── */
.t2w-chat-bubble--animate {
    animation: t2w-bubble-in 0.4s ease-out;
}

@keyframes t2w-bubble-in {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Typing indicator ────────────────────── */
.t2w-chat-bubble--typing {
    display: flex;
    gap: 4px;
    padding: 12px 18px;
}

.t2w-chat-bubble--typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hp-text-secondary, #9ca3af);
    animation: t2w-typing 1.4s infinite ease-in-out;
}

.t2w-chat-bubble--typing span:nth-child(2) { animation-delay: 0.2s; }
.t2w-chat-bubble--typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes t2w-typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ─── Source citations ────────────────────── */
.t2w-chat-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.t2w-chat-source {
    font-size: 13px;
    padding: 3px 8px;
    background: rgba(var(--color-primary-rgb), 0.08);
    color: var(--hp-primary, #2563eb);
    border-radius: var(--t2w-r-sm,8px);
    border: none;
    cursor: default;
}

/* ─── Suggestion chips ────────────────────── */
.t2w-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0;
}

.t2w-chat-chip {
    font-size: 15px;
    padding: 6px 12px;
    border-radius: var(--t2w-r,12px);
    border: 1px solid var(--color-border-light, #e5e7eb);
    background: var(--hp-surface, #fff);
    color: var(--t2w-ink-2, #4B5563);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.t2w-chat-chip:hover {
    background: var(--color-border-light, #fffbeb);
    border-color: var(--hp-primary, #2563eb);
}

/* ─── Input area ──────────────────────────── */
.t2w-chat-sheet__input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--color-border-light, #e5e7eb);
    flex-shrink: 0;
    background: var(--hp-surface, #fff);
}

.t2w-chat-sheet__input-field {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border-light, #e5e7eb);
    border-radius: var(--t2w-r,12px);
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
    background: var(--hp-surface, #fff);
    color: var(--t2w-ink, #152A47);
}

.t2w-chat-sheet__input-field:focus {
    border-color: var(--hp-primary, #2563eb);
}

.t2w-chat-sheet__image-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--t2w-ink-3, #6B7280);
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.t2w-chat-sheet__image-btn:hover {
    color: var(--hp-primary, #2563eb);
    background: rgba(var(--color-primary-rgb), 0.08);
}

.t2w-chat-sheet__image-btn .material-symbols-outlined {
    font-size: 24px;
}

.t2w-chat-sheet__send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--hp-primary, #2563eb);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.t2w-chat-sheet__send:hover {
    background: var(--hp-primary-hover, #1d4ed8);
}

.t2w-chat-sheet__send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.t2w-chat-sheet__send .material-symbols-outlined {
    font-size: 22px;
}

/* ─── Planner CTA button ──────────────────── */
.t2w-chat-planner-cta {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.t2w-chat-planner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--hp-primary, #2563eb);
    color: #fff;
    border-radius: var(--t2w-r,12px);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.t2w-chat-planner-btn:hover {
    background: var(--hp-primary-hover, #1d4ed8);
    color: #fff;
}

.t2w-chat-planner-btn .material-symbols-outlined {
    font-size: 16px;
}

/* ─── Mobile (full width) ─────────────────── */
@media (max-width: 480px) {
    .t2w-chat-sheet {
        max-width: 100%;
        height: calc(100vh - 68px); /* Full height minus bottom nav */
        max-height: none;
        bottom: 68px; /* Sit above bottom nav */
        border-radius: var(--t2w-r,12px) var(--t2w-r,12px) 0 0;
    }

    .t2w-chat-fab {
        bottom: 152px; /* Above .t2w-float-bar (80px) which occupies 80-138 + 14px gap */
        right: 16px;
    }
    /* Empty state — float-bar faded or absent → FAB drops to standard mobile position */
    body:has(.t2w-float-bar.t2w-float-bar--fade) .t2w-chat-fab,
    body:not(:has(.t2w-float-bar)) .t2w-chat-fab {
        bottom: 88px;
    }
}

@media (max-width: 768px) {
    .t2w-chat-fab {
        bottom: 152px; /* Above .t2w-float-bar (80px) + 14px gap */
    }
    body:has(.t2w-float-bar.t2w-float-bar--fade) .t2w-chat-fab,
    body:not(:has(.t2w-float-bar)) .t2w-chat-fab {
        bottom: 88px;
    }

    .t2w-chat-sheet {
        bottom: 68px;
        height: calc(100vh - 68px);
        max-height: none;
    }

    /* Tour detail already has a fixed CTA above the bottom navigation. */
    body:has(.t2w-tour-detail) .t2w-chat-fab {
        bottom: calc(152px + env(safe-area-inset-bottom, 0px));
    }
}

/* ─── Desktop (positioned right) ──────────── */
@media (min-width: 768px) {
    .t2w-chat-sheet {
        bottom: 16px;
        right: 16px;
        border-radius: var(--t2w-r,12px);
        height: 560px;
    }

    .t2w-chat-sheet__handle {
        display: none;
    }
}

/* ─── S59 L2 mutating action confirm — inline buttons ─── */
.t2w-chat-action-confirm {
    border-left: 3px solid var(--t2w-accent, #FFB700);
    background: rgba(255, 183, 0, 0.06);
}

.t2w-chat-action-controls {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.t2w-chat-action-btn {
    flex: 1;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--t2w-r-sm,8px);
    cursor: pointer;
    transition: transform 80ms ease, opacity 200ms ease;
}

.t2w-chat-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.t2w-chat-action-apply {
    background: var(--t2w-accent, #FFB700);
    color: var(--t2w-ink, #152A47);
}
.t2w-chat-action-apply:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.t2w-chat-action-cancel {
    background: rgba(0, 0, 0, 0.06);
    color: var(--t2w-ink-3, #6B7280);
}
.t2w-chat-action-cancel:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.1);
}

.t2w-chat-action-applied {
    border-left-color: #4CAF50;
    background: rgba(76, 175, 80, 0.06);
}
.t2w-chat-action-cancelled {
    opacity: 0.6;
}

.t2w-chat-action-status {
    flex: 1;
    text-align: center;
    font-size: 15px;
    color: var(--t2w-ink-3, #6B7280);
    padding: 8px 0;
}

/* ─── S60 #2: Day picker (다중 occurrence) ─── */
.t2w-chat-day-picker__label {
    font-size: 15px;
    color: var(--t2w-ink-2, #4B5563);
    margin-bottom: 8px;
    line-height: 1.4;
}

.t2w-chat-day-picker__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.t2w-chat-day-pick {
    flex: 0 0 auto;
    min-width: 72px;
    background: #fff;
    color: var(--t2w-ink, #152A47);
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.t2w-chat-day-pick:hover:not(:disabled) {
    background: rgba(255, 183, 0, 0.12);
    border-color: var(--t2w-accent, #FFB700);
}

.t2w-chat-day-pick-all {
    flex: 0 0 auto;
    min-width: 60px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--t2w-ink-2, #4B5563);
    border: 1px dashed rgba(0, 0, 0, 0.25);
}
.t2w-chat-day-pick-all:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.1);
}

/* ─── S60 #3: Undo prompt ─── */
.t2w-chat-undo-prompt {
    border-left: 3px solid #4CAF50;
    background: rgba(76, 175, 80, 0.06);
}

.t2w-chat-action-undo {
    background: rgba(76, 175, 80, 0.15);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.4);
}
.t2w-chat-action-undo:hover:not(:disabled) {
    background: rgba(76, 175, 80, 0.25);
}

/* ─── 모바일 (≤768px) — touch target 44px ─── */
@media (max-width: 768px) {
    .t2w-chat-day-pick,
    .t2w-chat-day-pick-all,
    .t2w-chat-action-undo {
        min-height: 44px;
        font-size: 15px;
    }
    .t2w-chat-day-picker__buttons {
        gap: 8px;
    }
}

/* ─── AI 비서 (결정 023) — 안내 한 줄 · 답 속 주소 · 문의 칸 ─── */
.t2w-chat-typing[hidden],
.t2w-chat-inquiry[hidden],
.t2w-chat-sheet__input[hidden],
.t2w-chat-suggestions[hidden],
.t2w-chat-inquiry__error[hidden] {
    display: none;
}

.t2w-chat-notice {
    margin: 0;
    padding: 8px 16px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text-muted, #5F7085);
    background: var(--color-bg-gray, #F7F7F5);
    border-bottom: 1px solid var(--color-border-light, #E1E7EE);
    flex-shrink: 0;
}

.t2w-chat-bubble__content {
    white-space: pre-line;
}

.t2w-chat-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    white-space: normal;
}

.t2w-chat-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--t2w-r-sm, 8px);
    background: var(--hp-surface, #fff);
    border: 1px solid var(--color-border-light, #E1E7EE);
    color: var(--color-primary-text, #b45309);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.t2w-chat-link::after {
    content: "›";
    margin-left: auto;
    padding-left: 8px;
    color: var(--color-text-muted, #5F7085);
}

.t2w-chat-link:hover,
.t2w-chat-link:focus-visible {
    border-color: var(--color-primary, #FFB700);
}

.t2w-chat-bubble__content > .t2w-chat-chip--inquiry {
    display: flex;
    align-items: center;
    width: fit-content;
    margin-top: 10px;
}

.t2w-chat-chip {
    min-height: 44px;
}

.t2w-chat-chip--inquiry {
    border-color: var(--color-primary, #FFB700);
    color: var(--t2w-ink, #152A47);
    font-weight: 600;
}

.t2w-chat-inquiry {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--color-border-light, #E1E7EE);
    border-radius: var(--t2w-r, 12px);
    background: var(--hp-surface, #fff);
    flex-shrink: 0;
}

.t2w-chat-inquiry__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 15px;
    color: var(--t2w-ink, #152A47);
}

.t2w-chat-inquiry__back {
    min-height: 44px;
    padding: 0 4px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    color: var(--color-text-muted, #5F7085);
    text-decoration: underline;
    cursor: pointer;
}

.t2w-chat-inquiry__lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text-muted, #5F7085);
}

.t2w-chat-inquiry__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t2w-ink, #152A47);
}

.t2w-chat-inquiry__field em {
    font-style: normal;
    font-weight: 400;
    color: var(--color-text-muted, #5F7085);
}

.t2w-chat-inquiry__field input,
.t2w-chat-inquiry__field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-border-medium, #D1D5DB);
    border-radius: var(--t2w-r-sm, 8px);
    font: inherit;
    font-size: 16px; /* 휴대폰에서 칸을 누를 때 화면이 커지지 않게 */
    font-weight: 400;
    color: var(--t2w-ink, #152A47);
    background: var(--hp-surface, #fff);
    box-sizing: border-box;
}

.t2w-chat-inquiry__field textarea {
    resize: vertical;
}

.t2w-chat-inquiry__field input:focus,
.t2w-chat-inquiry__field textarea:focus {
    outline: none;
    border-color: var(--color-primary, #FFB700);
}

.t2w-chat-inquiry__field [aria-invalid="true"] {
    border-color: var(--color-error, #EF4444);
}

.t2w-chat-inquiry__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.t2w-chat-inquiry__error {
    margin: 0;
    font-size: 13px;
    color: var(--color-error, #EF4444);
}

.t2w-chat-inquiry__submit {
    min-height: 48px;
    border: 0;
    border-radius: var(--t2w-r, 12px);
    background: var(--color-primary, #FFB700);
    color: var(--t2w-ink, #152A47);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.t2w-chat-inquiry__submit:disabled {
    opacity: 0.6;
    cursor: default;
}
