/* chat-widget.css — website chat (2026-11-18). Bottom-LEFT, so it never
   covers the call/text/email FAB stack on the right. Inputs are 16px (no iOS zoom). */
.pswc { --pswc-o: #ff6800; --pswc-ink: #141313; --pswc-mid: #555; --pswc-line: #e6e2de; --pswc-bg: #fff; --pswc-soft: #f6f3f0; }
.pswc-launch {
    position: fixed; left: 16px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 950;
    display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px;
    border: 0; border-radius: 999px; background: rgba(255, 104, 0, .85); color: #fff;
    font-weight: 600; font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25); transition: background .2s ease, transform .2s ease;
}
/* same see-through orange and hover as the call/text/email buttons (.fab a) */
.pswc-launch:hover { background: var(--pswc-o); transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) { .pswc-launch:hover { transform: none; } }
/* white ring + dark halo: visible on the orange button and on light or dark pages (11/18 pen test L6) */
.pswc-launch:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--pswc-ink), 0 2px 10px rgba(0, 0, 0, .25); animation: none; }
/* fades out while it overlaps a page button or link, and lets taps through (L7) */
.pswc-launch.pswc-dodge { opacity: 0; pointer-events: none; }
/* blue outline + soft glow pulse so the chat is noticeable (Derin 11/18; --blue #007dff from main.css) */
.pswc-launch { outline: 2px solid #007dff; outline-offset: 0; }
@media (prefers-reduced-motion: no-preference) { .pswc-launch { animation: pswc-pulse 2.8s ease-in-out infinite; } }
@media (prefers-reduced-motion: reduce) { .pswc-launch { box-shadow: 0 0 10px 1px rgba(0, 125, 255, .45), 0 2px 10px rgba(0, 0, 0, .25); } }
@keyframes pswc-pulse {
    0%, 100% { box-shadow: 0 0 4px 0 rgba(0, 125, 255, .35), 0 2px 10px rgba(0, 0, 0, .25); }
    50%      { box-shadow: 0 0 14px 4px rgba(0, 125, 255, .55), 0 2px 10px rgba(0, 0, 0, .25); }
}
.pswc-launch { transition: background .2s ease, transform .2s ease, opacity .3s ease; }
.pswc-launch.pswc-dodge:focus-visible { opacity: 1; pointer-events: auto; }
.pswc-open .pswc-launch { display: none; }
.pswc-panel {
    position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 960;
    width: 380px; max-width: calc(100vw - 32px); height: min(580px, calc(100dvh - 96px));
    display: flex; flex-direction: column; background: var(--pswc-bg); color: var(--pswc-ink);
    border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); overflow: hidden;
}
.pswc-panel[hidden] { display: none; }
.pswc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 16px; background: var(--pswc-ink); color: #fff; }
.pswc-title { display: flex; flex-direction: column; gap: 2px; }
.pswc-title strong { font-size: 15px; }
.pswc-title span { font-size: 12px; opacity: .75; }
.pswc-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.pswc-close:focus-visible { outline: 2px solid var(--pswc-o); }
.pswc-headbtns { display: flex; align-items: center; gap: 4px; }
.pswc-text { height: 34px; padding: 0 12px; border: 1.5px solid var(--pswc-o); border-radius: 999px; background: transparent; color: #fff; font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; }
.pswc-text:hover, .pswc-text:focus-visible { background: var(--pswc-o); outline: none; }
button.pswc-cta { font-family: inherit; cursor: pointer; }
/* "Text us" confirm sheet: sits over the bottom of the panel */
.pswc-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--pswc-line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .15); border-radius: 16px 16px 0 0; }
.pswc-sheet[hidden] { display: none; }
.pswc-sheet-title { display: block; font-size: 16px; margin-bottom: 6px; }
.pswc-sheet p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.4; color: var(--pswc-ink); }
.pswc-sheet .pswc-sheet-fine { font-size: 13px; color: var(--pswc-mid); }
.pswc-name { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; font-size: 13px; font-weight: 600; color: var(--pswc-mid); }
.pswc-name input { height: 42px; padding: 0 12px; border: 1px solid var(--pswc-line); border-radius: 10px; font-size: 16px; font-family: inherit; color: var(--pswc-ink); background: #fff; }
.pswc-name input:focus { outline: 2px solid var(--pswc-o); border-color: transparent; }
.pswc-sheet-btns { display: flex; gap: 8px; margin-top: 12px; }
.pswc-sheet-go, .pswc-sheet-no { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; font-size: 15px; font-weight: 700; font-family: inherit; text-decoration: none; cursor: pointer; }
.pswc-sheet-go { border: 0; background: var(--pswc-o); color: #fff; }
.pswc-sheet-no { border: 1.5px solid var(--pswc-line); background: #fff; color: var(--pswc-ink); }
.pswc-sheet-go:focus-visible, .pswc-sheet-no:focus-visible { outline: 3px solid var(--pswc-ink); outline-offset: 2px; }
.pswc-log { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--pswc-soft); }
.pswc-msg { display: flex; flex-direction: column; max-width: 86%; }
.pswc-bot { align-self: flex-start; }
.pswc-me { align-self: flex-end; }
.pswc-bubble { padding: 10px 12px; border-radius: 14px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.pswc-bot .pswc-bubble { background: #fff; border: 1px solid var(--pswc-line); border-bottom-left-radius: 4px; }
.pswc-me .pswc-bubble { background: var(--pswc-o); color: #fff; border-bottom-right-radius: 4px; }
.pswc-typing .pswc-bubble { color: var(--pswc-mid); letter-spacing: 2px; }
.pswc-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pswc-cta { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--pswc-o); border-radius: 999px; color: var(--pswc-o); background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.pswc-cta:hover, .pswc-cta:focus-visible { background: var(--pswc-o); color: #fff; }
.pswc-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--pswc-line); background: #fff; }
.pswc-input { flex: 1; resize: none; min-height: 40px; max-height: 96px; padding: 9px 12px; border: 1px solid var(--pswc-line); border-radius: 12px; font-size: 16px; line-height: 1.35; font-family: inherit; color: var(--pswc-ink); background: #fff; }
.pswc-input:focus { outline: 2px solid var(--pswc-o); outline-offset: 0; border-color: transparent; }
.pswc-send { height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--pswc-o); color: #fff; font-weight: 700; font-size: 15px; font-family: inherit; cursor: pointer; }
.pswc-send:disabled { opacity: .5; cursor: default; }
.pswc-foot { padding: 6px 12px 10px; font-size: 11.5px; line-height: 1.35; color: var(--pswc-mid); background: #fff; }
.pswc-foot a { color: inherit; text-decoration: underline; }
@media (max-width: 600px) {
    .pswc-panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: min(86dvh, 640px); border-radius: 16px 16px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .pswc-open .fab { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .pswc-panel { animation: pswc-in .18s ease-out; } }
@keyframes pswc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
