/* Shared KYRO chat styling from the customer implementation. */
.contact-thread{flex:1;min-height:260px;display:flex;flex-direction:column;align-items:stretch;gap:11px;padding:16px 2px 20px}
.contact-empty{margin:auto 0;text-align:center;color:#666666;display:grid;justify-items:center;gap:11px}
.contact-empty p{font-size:13px;font-weight:400;margin:0}
.contact-empty-icon{width:52px;height:52px;display:grid;place-items:center;color:#666666}
.contact-empty-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.3}
.contact-message{max-width:86%;align-self:flex-start;min-width:0;background:#f7f7f7;border:1px solid #dedede;border-radius:19px 19px 19px 5px;padding:11px 14px;font-size:14px;line-height:1.5;color:#151515;overflow-wrap:anywhere}
.contact-message.mine{align-self:flex-end;background:#151515;border-color:#151515;color:#ffffff;border-radius:19px 19px 5px 19px}
.contact-message time{display:block;font-size:10px;line-height:1.2;color:#666666;text-align:right;margin-top:5px}
.contact-message.mine time{color:#888888}
.contact-composer{
 position:fixed;left:50%;bottom:var(--kyro-chat-bottom,0px);top:auto;transform:translateX(-50%);
 z-index:40;display:flex;align-items:center;gap:9px;
 width:min(calc(100% - 32px),588px);
 padding:10px 2px max(12px,env(safe-area-inset-bottom,0px));
 background:transparent;
}
/* iOS Safari: use the visible viewport, not sticky positioning inside the scrolling page. */
body:is(.contact-home,[data-page="chat"]).contact-keyboard-open .contact-composer{
 top:var(--kyro-contact-compose-top);bottom:auto;
 padding-bottom:8px;
}

.contact-composer input{flex:1;min-width:0;min-height:48px;border:1px solid #c5c5c5;border-radius:24px;padding:12px 17px;background:#fafafa;color:#151515;font-size:16px;outline:0}
.contact-composer input::placeholder{color:#757575}
.contact-composer button{flex:0 0 48px;height:48px;display:grid;place-items:center;border:0;border-radius:50%;background:#151515;color:#ffffff}
.contact-composer button:disabled{opacity:.5}
.contact-composer button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6}
.contact-thread::-webkit-scrollbar{display:none}
.contact-stack{display:flex;flex-direction:column;flex:none;gap:11px;min-width:0;margin-top:auto}
.contact-row{display:flex;flex:none;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.contact-row.mine{flex-direction:row-reverse}
.contact-row .contact-message{flex:0 1 auto;align-self:auto;min-width:0;max-width:calc(100% - 48px);white-space:pre-wrap;overflow-wrap:anywhere}
.contact-row time{flex:none;min-width:34px;color:#888;font-size:11px;line-height:1.2;font-variant-numeric:tabular-nums;text-align:right}
.contact-row.mine time{text-align:left}
.contact-flight-portal{position:fixed;inset:0;z-index:90;pointer-events:none;overflow:visible;isolation:isolate}
.contact-flight-portal .contact-flight{position:absolute;display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;max-width:none;min-width:0;margin:0;padding-block:0;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;transform:none;pointer-events:none;will-change:top,left,width,height,border-radius}
.contact-flight-portal .contact-flight>span{display:block;min-width:0;max-width:100%;overflow:hidden;overflow-wrap:anywhere}


body:is(.contact-home,[data-page="chat"]) .app{display:flex;flex-direction:column;height:var(--kyro-contact-content-height,100dvh);min-height:0;overflow:hidden;overflow-anchor:none;padding-bottom:0}
body:is(.contact-home,[data-page="chat"]) .contact-thread{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:none;overflow-anchor:none;scrollbar-width:none;touch-action:pan-y;padding:var(--kyro-chat-thread-top,68px) 2px 6px;gap:0;scroll-behavior:auto;-webkit-overflow-scrolling:touch}
body:is(.contact-home,[data-page="chat"]) .contact-thread::after{content:"";display:block;flex:0 0 var(--kyro-contact-composer-height,70px);pointer-events:none}
body.keyboard-scroll-locked #contact-thread{touch-action:none!important}
