#mrs-assistant-root{font-family:Arial,Helvetica,sans-serif;color:#181818}#mrs-assistant-root *{box-sizing:border-box}#mrs-assistant-root .mrs-trigger{position:fixed;left:28px;bottom:154px;z-index:999990;display:flex;align-items:center;gap:9px;border:1px solid #ffd400;border-radius:99px;padding:5px 14px 5px 5px;background:linear-gradient(145deg,#242424,#090909);color:white;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 0 8px #ffd400a0,0 0 21px #ffd40066,0 9px 24px #0005;animation:mrs-glow 3s ease-in-out infinite}#mrs-assistant-root .mrs-trigger img{width:43px;height:43px;border-radius:50%;object-fit:contain;background:#ffd400;padding:3px}#mrs-assistant-root .mrs-trigger strong{color:#ffd400}#mrs-assistant-root .mrs-trigger .arrow{color:#ffd400;font-size:20px}#mrs-assistant-root .mrs-panel{position:fixed;left:26px;bottom:224px;z-index:999991;width:min(380px,calc(100vw - 24px));height:min(610px,calc(100dvh - 245px));min-height:300px;background:#fff;border:1px solid #e6e6e6;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 15px 50px #0004}#mrs-assistant-root .mrs-panel[hidden]{display:none}#mrs-assistant-root .mrs-head{display:flex;align-items:center;gap:10px;background:#171717;color:#fff;padding:12px 14px}#mrs-assistant-root .mrs-head img{width:40px;height:40px;object-fit:contain;border-radius:50%;background:#ffcf00;padding:3px}#mrs-assistant-root .mrs-head b{color:#ffd000}#mrs-assistant-root .mrs-head small{display:block;color:#cfcfcf;font-size:11px;margin-top:3px}#mrs-assistant-root .mrs-close{margin-left:auto;border:0;background:none;color:white;font-size:26px;cursor:pointer}#mrs-assistant-root .mrs-messages{flex:1;overflow:auto;padding:14px;background:#fafafa;display:flex;flex-direction:column;gap:10px}#mrs-assistant-root .mrs-bubble{max-width:90%;padding:11px 12px;border-radius:13px;line-height:1.45;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}#mrs-assistant-root .mrs-bot{align-self:flex-start;background:white;border:1px solid #e4e4e4}#mrs-assistant-root .mrs-user{align-self:flex-end;background:#171717;color:#fff}#mrs-assistant-root .mrs-quick{display:flex;flex-wrap:wrap;gap:6px;padding:8px 10px;background:#fff;border-top:1px solid #eee}#mrs-assistant-root .mrs-quick button{font-size:11px;padding:7px 9px;border:1px solid #dedede;background:#fff;border-radius:30px;cursor:pointer}#mrs-assistant-root .mrs-quick button:hover{border-color:#e5b600;background:#fff8d7}#mrs-assistant-root .mrs-compose{display:flex;gap:6px;padding:9px;background:white;border-top:1px solid #eee}#mrs-assistant-root .mrs-compose input{flex:1;min-width:0;border:1px solid #ddd;border-radius:9px;padding:10px;font-size:13px;color:#222}#mrs-assistant-root .mrs-compose button,#mrs-assistant-root .mrs-action{background:#ffd000;color:#111;border:0;border-radius:9px;padding:10px 12px;font-weight:700;cursor:pointer}#mrs-assistant-root .mrs-form{padding:10px;display:grid;gap:8px;overflow:auto;background:white}#mrs-assistant-root .mrs-form[hidden]{display:none}#mrs-assistant-root .mrs-form input,#mrs-assistant-root .mrs-form textarea,#mrs-assistant-root .mrs-form select{width:100%;padding:9px;border:1px solid #ccc;border-radius:8px;font:inherit;font-size:13px;color:#222;background:white}#mrs-assistant-root .mrs-form label{font-size:12px}#mrs-assistant-root .mrs-form .mrs-consent{display:flex;align-items:start;gap:7px}#mrs-assistant-root .mrs-form .mrs-consent input{width:auto;margin-top:2px}#mrs-assistant-root .mrs-result{font-size:12px}#mrs-assistant-root .mrs-result a{color:#111;font-weight:bold}#mrs-assistant-root .mrs-honeypot{position:absolute;left:-9999px}@keyframes mrs-glow{0%,100%{box-shadow:0 0 7px #ffd4008a,0 0 17px #ffd40045,0 9px 24px #0004}50%{box-shadow:0 0 12px #ffd400e0,0 0 30px #ffd4008a,0 9px 24px #0004}}@media(max-width:600px){#mrs-assistant-root .mrs-trigger{left:10px;bottom:104px;padding-right:11px;font-size:12px}#mrs-assistant-root .mrs-trigger img{width:36px;height:36px}#mrs-assistant-root .mrs-panel{left:8px;bottom:164px;width:calc(100vw - 16px);height:min(570px,calc(100dvh - 180px));min-height:260px}}@media(prefers-reduced-motion:reduce){#mrs-assistant-root .mrs-trigger{animation:none}}

/* Desktop-only: compact trigger and position closer to WhatsApp. Mobile unchanged. */
@media (min-width: 601px) {
 #mrs-assistant-root .mrs-trigger { bottom: 112px; left: 28px; gap: 6px; padding: 3px 10px 3px 3px; font-size: 12px; }
 #mrs-assistant-root .mrs-trigger img { width: 35px; height: 35px; }
 #mrs-assistant-root .mrs-trigger .arrow { font-size: 16px; }
 #mrs-assistant-root .mrs-panel { bottom: 174px; }
}

/* v1.0.2: Mobile-only positioning and full-screen-fit conversation panel. */
@media (max-width: 600px) {
  #mrs-assistant-root .mrs-trigger {
    left: auto; right: 12px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 24px);
  }
  #mrs-assistant-root .mrs-panel {
    left: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top, 0px));
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    width: auto; height: auto; min-height: 0; max-height: none;
    border-radius: 14px;
  }
  #mrs-assistant-root .mrs-head { flex-shrink: 0; }
  #mrs-assistant-root .mrs-messages { min-height: 0; overscroll-behavior: contain; }
  #mrs-assistant-root .mrs-quick,
  #mrs-assistant-root .mrs-compose { flex-shrink: 0; }
  #mrs-assistant-root .mrs-form { min-height: 0; overscroll-behavior: contain; }
}

/* v1.0.3 — iOS Safari mobile viewport and keyboard fix. */
@media (max-width: 600px) {
  #mrs-assistant-root .mrs-panel {
    position: fixed !important;
    left: 0 !important; right: auto !important; top: 0 !important; bottom: auto !important;
    width: 100vw !important; max-width: 100vw !important;
    height: var(--mrs-visual-height, 100dvh) !important;
    max-height: var(--mrs-visual-height, 100dvh) !important;
    min-height: 0 !important;
    border: 0 !important; border-radius: 0 !important;
    transform: translate3d(var(--mrs-visual-left, 0px), var(--mrs-visual-top, 0px), 0);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden !important;
    overscroll-behavior: contain;
  }
  #mrs-assistant-root .mrs-head { padding: 12px 14px; min-width: 0; }
  #mrs-assistant-root .mrs-head > div { min-width: 0; font-size: 17px; }
  #mrs-assistant-root .mrs-head small { font-size: 11px; overflow-wrap: anywhere; }
  #mrs-assistant-root .mrs-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #mrs-assistant-root .mrs-quick { max-height: 94px; overflow-y: auto; flex: 0 0 auto; }
  #mrs-assistant-root .mrs-compose { flex: 0 0 auto; padding: 8px; }
  #mrs-assistant-root .mrs-compose input,
  #mrs-assistant-root .mrs-form input,
  #mrs-assistant-root .mrs-form textarea,
  #mrs-assistant-root .mrs-form select { font-size: 16px !important; line-height: 1.35; }
  #mrs-assistant-root .mrs-compose button { flex: 0 0 auto; }
  #mrs-assistant-root .mrs-form { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  #mrs-assistant-root .mrs-trigger { right: 12px; bottom: 104px; left: auto; }
  body.mrs-asistan-open { overflow: hidden !important; }
}

/* v1.0.4: Mobile launcher aligns above the existing left WhatsApp button. */
@media (max-width: 600px) {
  #mrs-assistant-root .mrs-trigger {
    left: 12px !important;
    right: auto !important;
    bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    padding: 3px 10px 3px 3px !important;
    gap: 6px !important;
    font-size: 12px !important;
  }
  #mrs-assistant-root .mrs-trigger img { width: 35px !important; height: 35px !important; }
  #mrs-assistant-root .mrs-trigger .arrow { font-size: 16px !important; }
}

/* v1.0.5: Mobile launcher on the RIGHT, directly above the WhatsApp row.
   Keep full-screen chat panel and iOS keyboard fixes untouched. */
@media (max-width: 600px) {
  #mrs-assistant-root .mrs-trigger {
    position: fixed !important;
    left: auto !important;
    right: 12px !important;
    bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
    width: max-content !important;
    max-width: calc(100vw - 24px) !important;
    padding: 3px 10px 3px 3px !important;
    gap: 6px !important;
    font-size: 12px !important;
  }
}

/* v1.0.6: Move mobile launcher down to bottom-right, keep full-screen panel. */
@media (max-width: 600px) {
 #mrs-assistant-root .mrs-trigger { left:auto !important; right:12px !important; bottom:calc(18px + env(safe-area-inset-bottom, 0px)) !important; top:auto !important; }
}

/* v1.0.7 — compact offer view and mobile keyboard-safe layout */
@media (max-width: 767px) {
 #mrs-assistant-root .mrs-panel { box-sizing:border-box; height:var(--mrs-visual-height,100dvh)!important; max-height:var(--mrs-visual-height,100dvh)!important; padding-bottom:0!important; }
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-messages,
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-quick,
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-compose { display:none!important; }
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-form { display:flex!important; flex-direction:column; flex:1 1 auto; min-height:0; overflow-y:auto!important; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:14px 14px calc(20px + env(safe-area-inset-bottom,0px)); gap:12px; scroll-padding-bottom:24px; }
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-form[hidden] {display:none!important;}
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-form label {display:block;flex-shrink:0;line-height:1.5;}
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-form .mrs-consent {display:flex;}
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-form input:not([type=checkbox]),
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-form select,
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-form textarea {display:block; margin-top:5px; min-height:44px;}
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-form textarea {min-height:100px;}
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-form .mrs-honeypot {position:absolute;left:-9999px;}
 #mrs-assistant-root .mrs-panel.mrs-offer-mode .mrs-form button {min-height:44px;flex-shrink:0;}
 #mrs-assistant-root .mrs-panel.mrs-keyboard-open .mrs-head {padding:7px 12px;}
 #mrs-assistant-root .mrs-panel.mrs-keyboard-open .mrs-head img {width:32px;height:32px;}
 #mrs-assistant-root .mrs-panel.mrs-keyboard-open .mrs-form {padding-bottom:12px;}
}
