.hy-assistant{position:fixed;bottom:90px;right:24px;z-index:10000;font:14px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;color:#16263b}.hy-assistant *{box-sizing:border-box}.hy-assistant-launch{background:#14263e;color:#f6e3b5;border:1px solid #d7b56d;border-radius:999px;box-shadow:0 6px 24px #0003;padding:12px 17px;font-weight:700;cursor:pointer}.hy-assistant-dialog{position:absolute;bottom:57px;right:0;width:min(370px,calc(100vw - 24px));max-height:min(570px,calc(100dvh - 170px));background:#fff;border:1px solid #cdd5df;border-radius:16px;box-shadow:0 12px 50px #0004;overflow:hidden;display:flex;flex-direction:column}.hy-assistant-dialog[hidden]{display:none}.hy-assistant-dialog header{display:flex;justify-content:space-between;align-items:center;background:#14263e;color:#fff;padding:14px 16px}.hy-assistant-dialog header small{display:block;color:#cbd5e1;font-size:11px}.hy-assistant-dialog header button{background:transparent;border:0;color:#fff;cursor:pointer;font-size:20px}.hy-assistant-body{padding:14px;overflow-y:auto;min-height:130px;max-height:300px;background:#f4f6f9}.hy-msg{border-radius:12px;padding:10px 12px;margin:0 0 10px;white-space:pre-wrap;overflow-wrap:anywhere}.hy-bot{background:white;border:1px solid #e1e5ec}.hy-user{background:#14263e;color:#fff;margin-left:35px}.hy-assistant-quick{display:flex;gap:6px;flex-wrap:wrap;padding:10px 12px}.hy-assistant-quick button{border:1px solid #d7b56d;border-radius:20px;background:#fff8e8;color:#14263e;padding:7px 9px;cursor:pointer;font-size:12px}.hy-assistant form{display:flex;padding:8px 12px;gap:6px}.hy-assistant input{flex:1;min-width:0;border:1px solid #aab6c5;border-radius:9px;padding:10px;color:#14263e;background:#fff}.hy-assistant form button{border:0;border-radius:9px;background:#d7b56d;color:#14263e;padding:0 15px;cursor:pointer}.hy-assistant footer{font-size:10px;color:#566478;padding:4px 12px 12px}.hy-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:600px){.hy-assistant{right:12px;bottom:83px}.hy-assistant-launch{padding:11px}.hy-assistant-dialog{right:0;max-height:calc(100dvh - 155px)}}

/* Unified Ask Heyaansh: ERW Legacy Assistant placement and visual language */
.hy-assistant{left:16px!important;right:auto!important;bottom:18px!important;z-index:99990!important}
.hy-assistant-launch{background:#0f172a!important;color:#fff!important;border:2px solid #f59e0b!important;box-shadow:0 12px 32px rgba(15,23,42,.35)!important;font-weight:800!important}
.hy-assistant-dialog{left:0!important;right:auto!important;bottom:64px!important;width:min(420px,calc(100vw - 32px))!important;border:1px solid #cbd5e1!important;border-radius:18px!important;box-shadow:0 24px 60px rgba(15,23,42,.38)!important}
.hy-assistant-dialog header{background:#0f172a!important}
.hy-assistant-dialog .hy-assistant-quick button{border-color:#f59e0b!important;background:#fffbeb!important;color:#78350f!important;font-weight:700!important}
.hy-assistant form button{background:#f59e0b!important;color:#0f172a!important;font-weight:800!important}
@media(max-width:640px){.hy-assistant{left:12px!important;right:auto!important;bottom:12px!important}.hy-assistant-dialog{left:0!important;right:auto!important;max-height:76vh!important}}

/* v19: independent scrolling, usable fixed dialog on mobile */
.hy-assistant-dialog{height:min(680px,calc(100dvh - 115px));max-height:calc(100dvh - 115px);overflow:hidden;display:flex;flex-direction:column}
.hy-assistant-messages{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#hy-stock-choices,#hy-rfq-panel{flex-shrink:0;scrollbar-width:thin}
#hy-assistant-form{flex-shrink:0}
@media(max-width:600px){.hy-assistant-dialog{height:calc(100dvh - 105px);max-height:calc(100dvh - 105px);width:calc(100vw - 18px)}#hy-stock-choices{max-height:30vh!important}#hy-rfq-panel{max-height:38vh!important}}

/* v20: prominent RFQ submission and full-height action buttons */
#hy-rfq-panel .hy-rfq-send{display:block!important;width:100%!important;min-height:46px!important;padding:12px 16px!important;margin:10px 0!important;border:0!important;border-radius:10px!important;background:#b45309!important;color:#fff!important;font-size:14px!important;line-height:1.3!important;font-weight:800!important;white-space:normal!important;cursor:pointer!important;flex:none!important}
#hy-rfq-panel .hy-rfq-send:disabled{opacity:.6!important;cursor:wait!important}
#hy-assistant-form{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:8px!important}
#hy-assistant-form #hy-send-request{display:block!important;width:100%!important;flex:1 0 100%!important;min-height:46px!important;padding:12px 16px!important;line-height:1.35!important;font-size:14px!important;font-weight:800!important;border-radius:10px!important;white-space:normal!important;cursor:pointer!important}
#hy-assistant-form textarea,#hy-assistant-form input{min-height:42px!important}

/* v21: clear, persistent post-submission confirmation inside assistant */
#hy-assistant-dialog{position:fixed}
#hy-rfq-success{position:absolute;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(10,27,45,.88);overflow-y:auto}
#hy-rfq-success .hy-rfq-success-card{width:100%;max-width:390px;background:#fff;color:#13263c;border-radius:16px;padding:24px 18px;text-align:center;box-shadow:0 10px 40px rgba(0,0,0,.22)}
#hy-rfq-success .hy-rfq-success-mark{display:flex;align-items:center;justify-content:center;margin:0 auto 14px;width:58px;height:58px;border-radius:50%;background:#e7f6ed;color:#137b43;font-size:36px;font-weight:800}
#hy-rfq-success h3{font-size:20px;line-height:1.3;margin:0 0 10px;color:#12243a}
#hy-rfq-success p{font-size:14px;line-height:1.5;margin:8px 0 18px;color:#37465a}
#hy-rfq-success .hy-rfq-success-actions{display:flex;flex-direction:column;gap:10px}
#hy-rfq-success button{width:100%;min-height:48px;border-radius:10px;padding:12px 14px;font-weight:800;font-size:15px;border:1px solid #b45309;background:#b45309;color:white;cursor:pointer}
#hy-rfq-success button+button{background:#fff;color:#17334e;border-color:#17334e}

/* v22: explicit opt-in to remember contact details */
.hy-remember-row{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.4;cursor:pointer}.hy-remember-row input{width:18px;height:18px;flex:none}.hy-contact-tools{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:8px 12px;border-bottom:1px solid #dce3eb;font-size:12px}.hy-contact-tools[hidden]{display:none!important}.hy-contact-tools span{flex:1 1 100%;color:#43546a}.hy-contact-tools button{border:1px solid #c5cfdb;background:#fff;border-radius:7px;padding:7px 10px;color:#17334e;font-size:12px;cursor:pointer}

/* v24: normal-sized visitor Continue button; scope only to identity form. */
#hy-assistant-identity button[type="submit"]{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:48px!important;
  height:auto!important;
  padding:12px 18px!important;
  line-height:1.4!important;
  font-size:16px!important;
  font-weight:700!important;
  border-radius:10px!important;
  flex:0 0 auto!important;
  box-sizing:border-box!important;
}
