@import url('./site-scrollbars.css?v=20261016-r57');
@import url('./contact-image-viewer.css?v=20261005-image-zoom-1');
.contact-widget{max-width:960px;margin:32px auto;padding:28px;background:var(--surface,#fffaf4);border:1px solid #e8d7c8;border-radius:24px;min-width:0}
.contact-widget h2{font-size:clamp(1.5rem,4vw,2rem);margin:0 0 16px}
.contact-history{display:flex;flex-direction:column;gap:14px;max-height:480px;overflow-y:auto;overscroll-behavior:contain;padding:12px;min-height:100px;background-color:#fffaf4;background-image:url('./contact-chat-background.svg?v=20261004-chat-background-2');background-size:300px auto;background-position:center top;background-repeat:repeat}
.contact-bubble{padding:12px 16px;border-radius:18px;max-width:78%;min-width:0;border:1px solid #decabc;overflow-wrap:anywhere;background:var(--surface,#fffdf9)}
.contact-bubble p{white-space:pre-wrap;margin:0}.contact-bubble time{display:block;font-size:.75rem;opacity:.7}.contact-bubble img{display:block;max-width:100%;max-height:280px;object-fit:contain;margin:8px 0}
.contact-date-separator{align-self:center;flex-shrink:0;padding:5px 12px;border-radius:14px;background:#f5eee4;border:1px solid #e8d7c8;color:#70645b;font:500 .75rem/1.3 system-ui,sans-serif}
.contact-customer{align-self:flex-end;background:#f5e5db}.contact-restaurant{align-self:flex-start}
.contact-controls{display:flex;gap:8px;flex-wrap:wrap}.contact-widget button{font:inherit;cursor:pointer;border:1px solid #decabc;border-radius:12px;background:var(--surface,#fffdf9);color:inherit;padding:9px 12px}.contact-widget button:disabled{opacity:.6;cursor:default}
.contact-composer{display:flex;flex-direction:column;gap:12px;margin-top:20px}.contact-composer label{display:flex;flex-direction:column;gap:6px}.contact-composer input,.contact-composer textarea{min-width:0;box-sizing:border-box;width:100%;padding:12px;font:inherit;color:inherit;background:var(--surface,#fffdf9);border:1px solid #decabc;border-radius:12px}.contact-composer textarea{resize:vertical;max-height:300px;min-height:100px}
.contact-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.contact-widget .contact-send{align-self:flex-end;background:#ac2d23;color:#fff;min-width:160px}.contact-notice{font-size:.95rem}.contact-trap{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0}.contact-widget [hidden]{display:none!important}
.contact-widget a{color:inherit}.contact-widget :focus-visible{outline:2px solid #ac2d23;outline-offset:3px}
html[data-color-scheme=dark] .contact-widget{background:#28221e;border-color:#685d50}
html[data-color-scheme=dark] .contact-customer{background:#443229;color:#f5ede3}
html[data-color-scheme=dark] .contact-history{background-color:#28221e;background-blend-mode:soft-light}
html[data-color-scheme=dark] .contact-date-separator{background:#3b322c;border-color:#685d50;color:#e1d6ca}
html[data-color-scheme=dark] .contact-widget button,html[data-color-scheme=dark] .contact-composer input,html[data-color-scheme=dark] .contact-composer textarea,html[data-color-scheme=dark] .contact-restaurant{background:#29231e;color:#f5ede3;border-color:#685d50}
html[data-color-scheme=dark] .contact-widget .contact-send{background:#ac2d23}
html[data-color-scheme=dark] .contact-attachments-hint{color:#c5b7a8}
@media(max-width:600px){.contact-widget{padding:16px;border-radius:20px}.contact-bubble{max-width:88%}.contact-fields{grid-template-columns:1fr}.contact-controls button{font-size:.8rem;padding:8px}.contact-history{padding:4px}}
.contact-message-meta{display:flex;justify-content:flex-end;align-items:center;gap:7px;margin-top:8px}.contact-ticks{font:700 15px/1 system-ui,sans-serif;letter-spacing:-5px;padding-right:5px;color:var(--muted,#80756a)}.contact-ticks.is-read{color:#237b49}
.contact-composer .contact-input-row{display:flex;align-items:flex-end;gap:6px;border:1px solid #decabc;border-radius:18px;padding:4px;background:var(--surface,#fffdf9)}.contact-input-row label{flex:1;min-width:0}.contact-input-row textarea{border:0;background:transparent;resize:none;min-height:46px;max-height:156px;line-height:22px;padding:12px;overflow-y:auto}.contact-widget .contact-input-row .contact-send{min-width:0;min-height:46px;padding:10px 14px;font-weight:750;flex-shrink:0}.contact-widget .contact-paperclip{display:grid;place-items:center;flex:0 0 44px;min-height:46px;padding:0;border:0;background:transparent;font-size:24px}.contact-composer>.contact-attachments:empty{display:none}.contact-composer .contact-attachments{margin:0}.contact-composer>a{font-size:.8rem}.contact-notice:empty{display:none}.contact-image-placeholder{min-height:90px;min-width:160px;max-width:100%}
.contact-chat-head{display:none}.contact-chat-dialog{padding:0;border:0}.contact-chat-dialog:not([open]){display:none}.contact-widget .contact-chat-open-button{background:#ac2d23;color:white;font-weight:750}
.contact-chat-launch-icon{display:none}
.contact-widget.is-docked{margin:0;padding:0;border:0;background:transparent;max-width:none}
.contact-widget.is-docked>h2{display:none}
.contact-widget.is-docked .contact-chat-open-button{position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom));z-index:70;display:grid;place-items:center;width:58px;height:58px;padding:0;border:2px solid var(--surface,var(--paper,#fffdf9));border-radius:50%;background:var(--red,#ac2d23);color:#fff;box-shadow:0 8px 28px #241a1533}
.contact-widget .contact-chat-open-button[data-unread-chat=true]::after{content:'';position:absolute;right:0;top:0;width:12px;height:12px;border:2px solid var(--surface,var(--paper,#fffdf9));border-radius:50%;background:#2b9b55;box-sizing:content-box;pointer-events:none}
.is-docked .contact-chat-launch-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.is-docked .contact-chat-launch-icon{position:relative;display:block;width:26px;height:21px;border:2px solid currentColor;border-radius:7px}
.is-docked .contact-chat-launch-icon::before{content:'';position:absolute;bottom:-5px;left:4px;width:7px;height:7px;border-left:2px solid currentColor;background:var(--red,#ac2d23);transform:skewY(-35deg)}
.is-docked .contact-chat-launch-icon::after{content:'';position:absolute;left:5px;top:7px;width:3px;height:3px;border-radius:50%;background:currentColor;box-shadow:5px 0 currentColor,10px 0 currentColor}
.is-docked .contact-chat-dialog[open]{position:fixed;z-index:71;inset:auto 24px 96px auto;margin:0;box-sizing:border-box;width:420px;max-width:calc(100vw - 48px);height:min(620px,calc(100dvh - 124px));max-height:none;overflow:hidden;border:1px solid var(--line,#e8d7c8);border-radius:24px;background:var(--surface,var(--paper,#fffdf9));color:var(--ink,#2a211b);box-shadow:0 18px 55px #241a1533}
.is-docked .contact-chat-panel{display:flex;flex-direction:column;height:100%;min-height:0}
.is-docked .contact-chat-head{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--line,#e8d7c8);background:var(--cream,var(--card,#f5efe6))}
.is-docked .contact-chat-head h2{font:1.45rem/1.2 Georgia,serif;margin:0}
.contact-widget.is-docked .contact-chat-close{display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:50%;color:inherit;background:var(--surface,var(--paper,#fffdf9));border-color:var(--line,#e8d7c8)}
.is-docked .contact-chat-panel>.contact-notice{margin:10px 16px;font-size:.85rem}
.is-docked .contact-chat-panel>.contact-controls{padding:8px 12px;flex-shrink:0}
.is-docked .contact-controls:has(>[data-chat-older][hidden]){display:none}
.is-docked .contact-chat-panel>.contact-history{flex:1;max-height:none;min-height:0;padding:16px;font-size:.875rem}
.is-docked .contact-chat-panel>.contact-composer{flex:0 0 auto;margin:0;padding:12px;gap:6px;border-top:1px solid var(--line,#e8d7c8);background:inherit}
.is-docked .contact-chat-panel>.contact-composer>a{align-self:center}
.is-docked .contact-chat-panel.is-guest>.contact-composer{min-height:0;overflow-y:auto;flex:1}
.is-docked .contact-chat-panel>.contact-notice~a{margin:0 16px 8px}
.is-docked .contact-fields{grid-template-columns:1fr;font-size:.875rem;gap:10px}
.is-docked .contact-chat-panel .contact-attachments-list{flex-wrap:nowrap;overflow-x:auto;max-height:110px}
.is-docked .contact-chat-panel .contact-attachments-list li{flex:0 0 80px}
.is-docked .contact-chat-panel .contact-attachments-list img{height:60px;width:100%}
.is-docked .contact-chat-panel .contact-attachments-list span{white-space:nowrap;max-height:1.4em}
@media(max-width:600px){.contact-widget.is-docked .contact-chat-open-button{right:16px;bottom:calc(16px + env(safe-area-inset-bottom))}.is-docked .contact-chat-dialog[open]{inset:var(--chat-top,0px) 0 auto;width:100%;max-width:100%;height:var(--chat-height,100dvh);border:0;border-radius:0}.is-docked .contact-chat-head{padding:calc(12px + env(safe-area-inset-top)) 16px 12px}.is-docked .contact-chat-panel>.contact-composer{padding-bottom:calc(12px + env(safe-area-inset-bottom))}}
html[data-color-scheme=dark] .contact-input-row{background:#29231e;border-color:#685d50}html[data-color-scheme=dark] .contact-ticks.is-read{color:#73d599}
.contact-widget .contact-chat-close{position:relative;flex-shrink:0;font-size:0!important;line-height:0!important}.contact-chat-close::before,.contact-chat-close::after{content:'';position:absolute;left:50%;top:50%;width:17px;height:2px;background:currentColor;border-radius:2px;transform:translate(-50%,-50%) rotate(45deg)}.contact-chat-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
@media(max-width:600px){body.contact-chat-open{overflow:hidden}.contact-chat-dialog[open]{position:fixed;inset:var(--chat-top,0px) 0 auto;margin:0;box-sizing:border-box;width:100%;max-width:100%;height:var(--chat-height,100dvh);max-height:none;background:var(--surface,var(--paper,#fffdf9));color:var(--ink,#2a211b);border-radius:0;overflow:hidden}.contact-chat-dialog::backdrop{background:#241a15a6}.contact-chat-panel{display:flex;flex-direction:column;height:100%;min-height:0}.contact-chat-head{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:12px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;border-bottom:1px solid #decabc}.contact-chat-head h2{font:750 1.15rem/1.3 system-ui,sans-serif;margin:0}.contact-widget .contact-chat-close{display:grid;place-items:center;width:42px;height:42px;padding:0;border-radius:50%;font:28px/1 system-ui,sans-serif}.contact-chat-panel>.contact-notice{margin:8px 16px;font-size:.85rem}.contact-chat-panel>.contact-controls{padding:8px 12px;flex-shrink:0}.contact-chat-panel>.contact-history{flex:1;max-height:none;min-height:0;padding:12px}.contact-chat-panel>.contact-composer{flex:0 0 auto;margin:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:6px;border-top:1px solid #decabc;background:inherit}.contact-chat-panel .contact-attachments-list{flex-wrap:nowrap;overflow-x:auto;max-height:110px}.contact-chat-panel .contact-attachments-list li{flex:0 0 80px}.contact-chat-panel .contact-attachments-list img{height:60px;width:100%}.contact-chat-panel .contact-attachments-list span{white-space:nowrap;max-height:1.4em}.contact-input-row textarea{font-size:16px}.contact-widget .contact-input-row .contact-send{font-size:.8rem;padding:10px}.contact-chat-panel .contact-composer>a{align-self:center}}

.contact-composer .contact-input-row textarea{display:block;resize:none;min-height:46px;max-height:156px;overflow-y:hidden;scrollbar-gutter:auto}

/* Presence stays beside the title; the close control keeps the far-right position. */
.contact-chat-head .contact-chat-close{order:1}

/* The mobile launcher belongs beside the published phone inside the drawer. */
.site-drawer-chat-slot:empty{display:none}
@media(max-width:620px){
 .site-drawer .site-drawer-footer:has(.is-drawer-launcher){display:flex;align-items:center;justify-content:space-between;gap:10px}
 .site-drawer-footer:has(.is-drawer-launcher) .site-drawer-phone{flex:1;min-width:0;width:auto;gap:8px;min-height:44px;font-size:clamp(14px,4vw,17px)}
 .site-drawer-footer:has(.is-drawer-launcher) .site-drawer-phone svg{width:20px;height:20px}
 .site-drawer-chat-slot{flex:none}
 .site-drawer .site-drawer-chat-slot .contact-chat-open-button{position:relative;inset:auto;display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;background:var(--drawer-accent);color:#fff;cursor:pointer;box-shadow:none}
 .site-drawer-chat-slot .contact-chat-open-button[hidden]{display:none!important}
 .site-drawer-chat-slot .contact-chat-launch-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .site-drawer-chat-slot .contact-chat-launch-icon{position:relative;display:block;width:26px;height:21px;box-sizing:border-box;border:2px solid currentColor;border-radius:7px}
 .site-drawer-chat-slot .contact-chat-launch-icon::before{content:'';position:absolute;bottom:-5px;left:4px;width:7px;height:7px;border-left:2px solid currentColor;background:var(--drawer-accent);transform:skewY(-35deg)}
 .site-drawer-chat-slot .contact-chat-launch-icon::after{content:'';position:absolute;left:5px;top:7px;width:3px;height:3px;border-radius:50%;background:currentColor;box-shadow:5px 0 currentColor,10px 0 currentColor}
 .site-drawer-chat-slot .contact-chat-open-button[data-unread-chat=true]::after{content:'';position:absolute;right:0;top:0;width:12px;height:12px;border:2px solid var(--drawer-bg);border-radius:50%;background:#2b9b55;box-sizing:content-box;pointer-events:none}
 .is-docked .contact-chat-dialog[open]{inset:var(--chat-top,0px) 0 auto;width:100%;max-width:100%;height:var(--chat-height,100dvh);border:0;border-radius:0}
}
