body:has(.pmbm-chat[open]) {overflow:hidden}
.pmbm-chat {
 --pmbm-chat-top:clamp(76px,10.2vh,112px);
 --pmbm-chat-green:#075741;
 --pmbm-chat-ink:#132733;
 position:fixed;inset:var(--pmbm-chat-top) 26px auto auto;margin:0;
 width:min(780px,calc(100vw - 36px));max-width:none;
 height:min(945px,calc(100dvh - var(--pmbm-chat-top) - 24px));max-height:none;
 border:2px solid #f5fbf7;border-radius:27px;overflow:hidden;
 color:var(--pmbm-chat-ink);background:#f8fbf9;
 box-shadow:0 16px 54px #072f2b35,0 1px 8px #2b5c4d35;
}
.pmbm-chat[open] {display:grid;grid-template-rows:auto minmax(0,1fr)}
.pmbm-chat::backdrop {background:#062d240a;backdrop-filter:none}
.pmbm-chat-header {
 display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;
 position:relative;isolation:isolate;overflow:hidden;gap:clamp(12px,1.8vw,28px);
 min-height:136px;padding:15px 20px 24px 26px;color:#fff;
 background:radial-gradient(ellipse at 82% 0%,#3b986e,transparent 65%),linear-gradient(118deg,#034836,#0c6d4e);
}
.pmbm-chat-header::after {
 content:'';position:absolute;z-index:-1;right:-7%;bottom:-56px;
 width:35%;height:96px;border-top:5px solid #f4cb63;border-radius:65% 0 0;
 background:linear-gradient(150deg,#edbf58,#ffde86 58%,#bfd29c);transform:rotate(-17deg);
}
.pmbm-chat-mascot {display:block;object-fit:contain;width:clamp(68px,7.6vw,107px);height:auto}
.pmbm-chat-heading h2 {
 display:flex;align-items:center;gap:8px;margin:0;color:#fff;
 font-size:clamp(22px,2.45vw,33px);font-weight:800;line-height:1.16;letter-spacing:-.026em;
}
.pmbm-chat-heading h2 .icon {width:26px;height:26px;flex:none;color:#ffdf82}
.pmbm-chat-heading p {margin:5px 0 0;color:#f1faf4;font-size:clamp(12px,1.3vw,17px);line-height:1.42}
.pmbm-chat-close {
 align-self:start;display:grid;place-items:center;width:46px;height:46px;padding:0;
 border:1px solid #f1fffa;border-radius:50%;background:#f8fffb;color:#123f34;cursor:pointer;
 box-shadow:0 3px 9px #163b3b30;
}
.pmbm-chat-close .icon {width:22px;height:22px}
.pmbm-chat-content {
 position:relative;z-index:1;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;
 min-width:0;min-height:0;margin-top:-12px;border-radius:25px 25px 0 0;
 background:linear-gradient(#fff 61%,#f3f9f5);
}
.pmbm-chat-topics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:22px 22px 12px}
.pmbm-chat-topics button {
 display:flex;justify-content:center;align-items:center;gap:8px;min-height:46px;min-width:0;
 padding:7px 6px;border:1px solid #bfdecd;border-radius:15px;background:#fbfffc;color:var(--pmbm-chat-green);
 box-shadow:0 1px 2px #134a2920;font:inherit;font-size:clamp(12px,1.13vw,16px);font-weight:800;line-height:1.2;text-align:center;cursor:pointer;
}
.pmbm-chat-topics button:hover,.pmbm-chat-template:hover {background:#e8f7ee}
.pmbm-chat-topics button .icon {width:21px;height:21px;flex:none}
.pmbm-chat-day {
 display:flex;align-items:center;gap:10px;padding:3px 22px 7px;color:#445361;font-size:12px;line-height:1.35;
}
.pmbm-chat-day::before,.pmbm-chat-day::after {content:'';height:1px;flex:1;background:#dce5e8}
.pmbm-chat-day span {padding:4px 14px;border-radius:999px;background:#eef1f1}
.pmbm-chat-log {
 grid-row:3;display:flex;flex-direction:column;gap:16px;min-width:0;min-height:0;
 margin:0 8px;padding:10px 15px 16px;overflow:auto;overscroll-behavior:contain;
 scrollbar-width:thin;scrollbar-color:#c5d5ca transparent;
}
.pmbm-chat-turn {display:flex;align-items:flex-start;gap:12px;min-width:0}
.pmbm-chat-turn.is-user {flex-direction:row-reverse}
.pmbm-chat-avatar {
 display:grid;place-items:center;width:45px;height:45px;flex:none;overflow:hidden;
 margin-top:3px;border-radius:50%;background:#e5f4e7;color:#287568;
}
.pmbm-chat-avatar img {width:35px;height:35px;object-fit:contain}
.is-user .pmbm-chat-avatar {background:#e5efee}
.pmbm-chat-avatar .icon {width:22px;height:22px}
.pmbm-chat-message {max-width:min(78%,555px);min-width:0}
.pmbm-chat-bubble {
 margin:0;padding:12px 14px;border-radius:16px 16px 16px 5px;
 background:#e8f4ea;white-space:pre-wrap;overflow-wrap:anywhere;color:#132733;
 font-size:clamp(13px,1.2vw,16px);line-height:1.46;
}
.is-user .pmbm-chat-bubble {border:1px solid #e0e9e7;background:#fcfefd;border-radius:16px 16px 5px 16px}
.pmbm-chat-stamp {display:flex;align-items:center;gap:5px;margin:3px 3px 0;color:#50616b;font-size:11px;line-height:1.3}
.is-user .pmbm-chat-stamp {justify-content:flex-end}
.pmbm-chat-stamp .icon {width:13px;height:13px;color:#076445}
.pmbm-chat-progress {grid-row:4;margin:0;padding:4px 22px;color:#426558;font-size:12px}
.pmbm-chat-composer {
 grid-row:5;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:11px;
 padding:12px 17px max(14px,env(safe-area-inset-bottom));border-top:1px solid #e2ebe5;
}
.pmbm-composer-field {
 display:flex;align-items:center;min-width:0;min-height:54px;padding-inline:10px;
 border:1px solid #8dc6b7;border-radius:14px;background:#fbfefd;
}
.pmbm-composer-field:focus-within {border-color:#188067;box-shadow:0 0 0 2px #16856945}
.pmbm-chat-composer textarea {
 display:block;flex:1;min-width:0;min-height:50px;max-height:min(128px,24dvh);width:100%;padding:14px 4px;
 border:0;resize:none;outline:0;background:none;color:#132733;font:inherit;font-size:16px;line-height:1.38;overflow:auto;
 field-sizing:content;
}
.pmbm-chat .pmbm-chat-composer textarea:focus-visible {outline:none}
.pmbm-chat-composer textarea::placeholder {color:#506272}
.pmbm-chat-template,.pmbm-chat-send {
 display:grid;place-items:center;flex:none;cursor:pointer;
}
.pmbm-chat-template {width:42px;height:42px;padding:0;margin-right:7px;border:0;border-right:1px solid #dbeae4;background:none;color:#145e49;border-radius:6px 0 0 6px}
.pmbm-chat-template .icon {width:22px;height:22px}
.pmbm-chat-send {
 width:55px;height:55px;padding:0;border:1px solid #0d694f;border-radius:50%;color:#fff;
 background:linear-gradient(135deg,#138164,#034a38);box-shadow:0 5px 10px #1c70522a;
}
.pmbm-chat-send .icon {width:25px;height:25px}
.pmbm-chat-send:hover {background:#085b44}
.pmbm-chat :is(button, .pmbm-chat-log):focus-visible {outline:2px solid #236954;outline-offset:2px}
.pmbm-chat button:disabled {opacity:.6;cursor:wait}
.pmbm-chat-sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

@media(max-width:700px) {
 .pmbm-chat {
  inset:var(--pmbm-chat-visual-top,0) 0 auto;margin:0;width:100%;
  height:var(--pmbm-chat-visual-height,100dvh);border:0;border-radius:0;
 }
 .pmbm-chat-header {gap:9px;min-height:102px;padding:max(10px,env(safe-area-inset-top)) 12px 19px 12px}
 .pmbm-chat-mascot {width:50px}
 .pmbm-chat-heading h2 {font-size:21px}
 .pmbm-chat-heading h2 .icon {width:17px;height:17px}
 .pmbm-chat-heading p {font-size:11.5px}
 .pmbm-chat-close {width:42px;height:42px}
 .pmbm-chat-content {margin-top:-9px;border-radius:18px 18px 0 0}
 .pmbm-chat-topics {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:11px 11px 8px}
 .pmbm-chat-topics button {min-height:41px;font-size:13px;border-radius:12px}
 .pmbm-chat-topics button .icon {width:17px;height:17px}
 .pmbm-chat-day {padding:3px 12px 5px}
 .pmbm-chat-log {margin-inline:4px;padding:8px 8px 10px;gap:12px}
 .pmbm-chat-turn {gap:7px}
 .pmbm-chat-avatar {width:34px;height:34px}
 .pmbm-chat-avatar img {width:27px;height:27px}
 .pmbm-chat-avatar .icon {width:17px;height:17px}
 .pmbm-chat-message {max-width:calc(100% - 60px)}
 .pmbm-chat-bubble {font-size:13.5px;padding:9px 11px}
 .pmbm-chat-composer {gap:7px;padding:8px 10px max(9px,env(safe-area-inset-bottom))}
 .pmbm-composer-field {min-height:47px;padding-inline:7px}
 .pmbm-chat-composer textarea {min-height:44px;padding:10px 3px}
 .pmbm-chat-send {width:46px;height:46px}
 .pmbm-chat-template {width:35px;height:37px;margin-right:5px}
 .pmbm-chat-send .icon {width:21px;height:21px}
}
@media(max-height:440px) {
 .pmbm-chat-header {min-height:0;padding-block:9px 16px}
 .pmbm-chat-mascot {width:43px}
 .pmbm-chat-heading p {display:none}
 .pmbm-chat-day {display:none}
}
