/* Scope every rule to the widget so existing forms and Elementor sections retain their styles. */
#mtmedi-widget {
  --ink: #153348;
  --muted: #455f6d;
  --teal: #076864;
  --line: #d3e1e3;
  --navy: #112f41;
  --mtmedi-edge: clamp(14px, 2vw, 30px);
  --mtmedi-bottom: var(--mtmedi-dock-offset, max(var(--mtmedi-edge),env(safe-area-inset-bottom,0px)));
  position: fixed; inset: 0; pointer-events: none; z-index: 99990;
  background: transparent; color: var(--ink);
  font: 400 16px/1.5 Inter, "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  container: medi / inline-size;
}
#mtmedi-widget.mtmedi-framed {position: absolute;}
#mtmedi-widget *, #mtmedi-widget *::before, #mtmedi-widget *::after {box-sizing: border-box;}
#mtmedi-widget [hidden] {display: none !important;}
#mtmedi-widget button {
  -webkit-appearance:none; appearance:none; margin:0; font:inherit;
  text-transform:none; letter-spacing:normal; cursor:pointer; line-height:1.3;
}
#mtmedi-widget button:focus-visible, #mtmedi-widget input:focus-visible {
  outline: 3px solid #cb941a; outline-offset: 2px;
}
#mtmedi-widget .mtmedi-icon {
  display:block; width:19px; height:19px; flex:0 0 auto;
  fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}
#mtmedi-widget .mtmedi-avatar {
  width:42px; height:42px; display:block; flex:0 0 auto; object-fit:cover;
  border-radius:50%; background:#eaf5f3; border:1px solid #cbe5e0;
}
#mtmedi-widget .mtmedi-initial {display:grid;place-items:center;font-size:16px;font-weight:700;color:#133f49;}
#mtmedi-widget .mtmedi-launch {
  position:absolute;right:max(var(--mtmedi-edge),env(safe-area-inset-right,0px));bottom:var(--mtmedi-bottom);
  transition-property:background-color,border-color,box-shadow,color;
  display:flex;align-items:center;gap:9px;padding:5px 17px 5px 6px;
  max-width:calc(100% - 24px);min-height:47px;pointer-events:auto;
  color:#fff;text-align:left;border:1px solid #a1c6c5;border-radius:99px;
  background:linear-gradient(110deg,#103747 0%,#125151 100%);box-shadow:0 4px 18px #08263828;
}
#mtmedi-widget .mtmedi-launch:hover {background:#164948;}
#mtmedi-widget .mtmedi-launch-copy {min-width:0;}
#mtmedi-widget .mtmedi-launch .mtmedi-avatar {width:36px;height:36px;}
#mtmedi-widget .mtmedi-launch-copy strong {display:block;font-size:.89rem;font-weight:660;line-height:1.22;letter-spacing:0;color:white;}
#mtmedi-widget .mtmedi-panel {
  position:absolute;right:max(var(--mtmedi-edge),env(safe-area-inset-right,0px));bottom:var(--mtmedi-bottom);
  display:flex;flex-direction:column;isolation:isolate;overflow:hidden;pointer-events:auto;
  margin:0;padding:0;width:min(410px,calc(100% - 28px));height:min(650px,calc(100% - var(--mtmedi-bottom) - 10px));
  border:1px solid #a6c2c4;border-radius:20px;background:#fff;
  box-shadow:0 16px 55px -10px #173c4a52;
}
#mtmedi-widget .mtmedi-head {
  display:flex;align-items:center;gap:12px;flex:none;padding:15px 17px;
  border:0; border-bottom:3px solid #52a69e; border-radius:0;
  background:linear-gradient(110deg,#123548,#174a4d);color:#fff;
}
#mtmedi-widget .mtmedi-identity {display:flex;min-width:0; flex:1;flex-direction:column;gap:1px;}
#mtmedi-widget .mtmedi-identity strong {font-size:1.02rem;font-weight:650;letter-spacing:-.025em;line-height:1.3;color:#fff;}
#mtmedi-widget .mtmedi-identity small {font-size:.8rem;color:#d1e8e5;line-height:1.35;}
#mtmedi-widget .mtmedi-close {
  display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border:1px solid #86abae88;background:transparent;color:#fff;border-radius:12px;
}
#mtmedi-widget .mtmedi-close:hover {background:#ffffff18;}
#mtmedi-widget .mtmedi-scroll {flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 19px 15px;scrollbar-width:thin;}
#mtmedi-widget .mtmedi-welcome h2 {
  padding:0;margin:0 0 7px;color:var(--ink);font:650 1.36rem/1.18 Inter,"Segoe UI",Arial,sans-serif;letter-spacing:-.036em;
}
#mtmedi-widget .mtmedi-welcome p {margin:0;color:var(--muted);font-size:.94rem;line-height:1.52;}
#mtmedi-widget .mtmedi-starters {display:grid;gap:7px;margin:19px 0 4px;}
#mtmedi-widget .mtmedi-topic {
  display:flex;align-items:center;gap:11px;min-height:44px;width:100%;padding:8px 12px;border-radius:10px;
  border:1px solid var(--line);background:#f9fbfb;color:#1b4a55;text-align:left;
  font-size:.91rem;font-weight:590;box-shadow:none;
}
#mtmedi-widget .mtmedi-topic:hover {background:#edf6f4;border-color:#9bbfb9;}
#mtmedi-widget .mtmedi-topic .mtmedi-icon {color:#26766e;width:18px;height:18px;}
#mtmedi-widget .mtmedi-log {display:grid;gap:10px;}
#mtmedi-widget .mtmedi-log:not(:empty){margin-top:18px;}
#mtmedi-widget .mtmedi-msg {max-width:95%;overflow-wrap:anywhere;padding:10px 12px; border:1px solid var(--line);}
#mtmedi-widget .mtmedi-msg > small {display:block;margin-bottom:4px;color:#345b63;font-size:.73rem;line-height:1.2;font-weight:700;}
#mtmedi-widget .mtmedi-msg p {margin:0;color:var(--ink);font-size:.925rem;line-height:1.48;white-space:pre-wrap;}
#mtmedi-widget .mtmedi-bot {justify-self:start;background:#f2f6f7;border-radius:2px 11px 11px;}
#mtmedi-widget .mtmedi-user {justify-self:end;background:#e4f2ed;border-color:#c3dcd5;border-radius:11px 2px 11px 11px;}
#mtmedi-widget .mtmedi-consent {display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;border-top:1px solid var(--line);padding-top:10px;}
#mtmedi-widget .mtmedi-consent p {font-size:.83rem;width:100%;}
#mtmedi-widget .mtmedi-option {background:#fff;border:1px solid #a7bfc0;color:#195c58;border-radius:6px;padding:6px 8px;font-size:.8rem;}
#mtmedi-widget .mtmedi-wait {margin:0;color:var(--muted);font-size:.84rem;}
#mtmedi-widget .mtmedi-foot {flex:none; padding:12px 16px 11px;border-top:1px solid var(--line);background:#fff;}
#mtmedi-widget .mtmedi-contact {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:3px 8px;margin:0 0 7px;padding:6px 9px;border-radius:8px;background:#edf5f3;
}
#mtmedi-widget .mtmedi-contact-info {display:grid;gap:1px;margin:0;color:var(--muted);font-size:.74rem;line-height:1.2;}
#mtmedi-widget .mtmedi-contact-team {color:var(--ink);font-size:.82rem;font-weight:650;}
#mtmedi-widget .mtmedi-contact-phone {
  flex:none;width:16ch;max-width:100%;min-width:0;height:auto;margin:0;padding:1px 0;
  border:0;border-radius:0;background:transparent;box-shadow:none;color:#164d50;
  font:600 16px/1.25 Inter,"Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums;text-align:left;
  -webkit-appearance:none;appearance:none;cursor:text;
}
#mtmedi-widget .mtmedi-formlink {
  display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:42px;
  padding:9px 12px;margin:0 0 9px; border:1px solid #056761;border-radius:9px;
  background:#086760;color:#fff;font-weight:630;font-size:.92rem;box-shadow:none;
}
#mtmedi-widget .mtmedi-formlink:hover {background:#08544f;}
#mtmedi-widget .mtmedi-compose {display:flex;align-items:center;gap:4px;border:1px solid #adc2c6;border-radius:10px;margin:0;padding:3px 4px 3px 11px;background:#fff;}
#mtmedi-widget .mtmedi-compose:focus-within {border-color:var(--teal);box-shadow:0 0 0 2px #08746b1f;}
#mtmedi-widget .mtmedi-input {width:0;min-width:0;height:38px; flex:1;padding:4px 0; margin:0;color:var(--ink);background:transparent;border:0;border-radius:0;box-shadow:none;font:inherit;font-size:16px;}
#mtmedi-widget .mtmedi-input:focus-visible {outline:none;}
#mtmedi-widget .mtmedi-input::placeholder {color:#637780;opacity:1;}
#mtmedi-widget .mtmedi-send {display:grid;place-items:center;flex:none;width:38px;height:38px;border:0;border-radius:7px;background:#e5f0ec;color:#0c625b;padding:0;}
#mtmedi-widget .mtmedi-send:hover {background:#cfe6de;}
#mtmedi-widget .mtmedi-privacy {display:flex;align-items:flex-start;gap:6px;margin:7px 0 0;font-size:.735rem;line-height:1.35;color:#4a646c;}
#mtmedi-widget .mtmedi-privacy .mtmedi-icon {width:12px;height:12px;margin-top:2px;}
@container medi (max-width: 680px) {
  #mtmedi-widget .mtmedi-launch {
    right:max(12px,env(safe-area-inset-right,0px));bottom:var(--mtmedi-dock-offset,max(12px,env(safe-area-inset-bottom,0px)));
    min-height:44px;
  }
  #mtmedi-widget .mtmedi-panel {
    --mtmedi-bottom:var(--mtmedi-dock-offset,max(6px,env(safe-area-inset-bottom,0px)));
    right:max(6px,env(safe-area-inset-right,0px));left:max(6px,env(safe-area-inset-left,0px));width:auto;max-width:none;
    height:min(648px,calc(100% - var(--mtmedi-bottom) - 10px));border:1px solid #b5cbce;border-radius:15px;
  }
  #mtmedi-widget .mtmedi-head {padding:12px 14px;}
  #mtmedi-widget .mtmedi-scroll {padding:17px 14px 13px;}
  #mtmedi-widget .mtmedi-foot {padding:10px 12px max(9px,env(safe-area-inset-bottom));}
}
@media (max-height: 480px) {
  #mtmedi-widget .mtmedi-panel {height:calc(100% - var(--mtmedi-bottom) - 6px);max-height:none;}
  #mtmedi-widget .mtmedi-head {padding:5px 12px;}
  #mtmedi-widget .mtmedi-head .mtmedi-avatar {width:31px;height:31px;}
  #mtmedi-widget .mtmedi-close {height:34px;width:34px;}
  #mtmedi-widget .mtmedi-foot {padding-block:5px;}
  #mtmedi-widget .mtmedi-contact {padding-block:3px;margin-bottom:4px;}
  #mtmedi-widget .mtmedi-formlink {min-height:33px;padding:5px 8px;margin-bottom:5px;}
  #mtmedi-widget .mtmedi-privacy {margin-top:3px;}
}
