tonerivo-support {
  --ink: #102536;
  --muted: #506472;
  --paper: #fbfbf8;
  position: fixed;
  z-index: 44;
  left: max(20px,env(safe-area-inset-left));
  bottom: max(20px,env(safe-area-inset-bottom));
  color: var(--ink);
  color-scheme: light;
  font: 15px/1.45 "Inter", "Segoe UI", Arial, sans-serif;
  text-align: left;
}
tonerivo-support *, tonerivo-support *::before, tonerivo-support *::after { box-sizing: border-box; }
tonerivo-support button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
tonerivo-support button:focus-visible, tonerivo-support textarea:focus-visible { outline: 3px solid #1981c6; outline-offset: 2px; }
tonerivo-support .support-toggle {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  height: 52px; padding: 0 20px 0 15px; border-radius: 28px;
  border: 1px solid #ffffff40; background: var(--ink); color: white;
  box-shadow: 0 6px 18px #142c3e30, inset 0 1px #ffffff15;
  font-weight: 650; font-size: 15px;
}
tonerivo-support .support-toggle-icon { display: grid; place-items: center; }
tonerivo-support .support-toggle-icon svg { width: 24px; height: 24px; }
tonerivo-support #support-panel {
  display: flex; flex-direction: column; isolation: isolate;
  position: absolute; bottom: calc(100% + 12px); left: 0;
  width: min(370px,calc(100vw - 40px)); height: min(482px,calc(100dvh - 104px));
  border: 1px solid #ccd4d9; border-radius: 22px; overflow: hidden;
  background: var(--paper); box-shadow: 0 18px 54px #0924392e, 0 3px 10px #09243918;
  transform-origin: bottom left;
}
tonerivo-support #support-panel[hidden] { display: none; }
tonerivo-support .support-head {
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 16px 18px;
  color: white; background: #102536;
}
tonerivo-support .support-head::before {
  content: ""; position: absolute; inset: 0 0 0 54%; z-index: -1; opacity: .22;
  background: repeating-radial-gradient(ellipse at 120% 115%, transparent 0 8px,#86bbcd 9px,transparent 10px 16px);
}
tonerivo-support .support-head::after {
  content: ""; position: absolute; bottom: 0; left: 20px; width: 42px; height: 3px;
  background: linear-gradient(90deg,#18bfdf 0 33.33%,#eb3988 33.33% 66.67%,#ffd04b 66.67%);
}
tonerivo-support .support-head img { display: block; width: 42px; height: 42px; padding: 4px; border-radius: 11px; background: white; }
tonerivo-support .support-head strong, tonerivo-support .support-head span { display: block; }
tonerivo-support .support-head strong { font-size: 19px; line-height: 1.15; letter-spacing: -.55px; color: white; }
tonerivo-support .support-head span { margin-top: 3px; font-size: 12px; color: #c5d5df; }
tonerivo-support .support-close { margin-left: auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: white; background: #152f40; border: 1px solid #7794a399; }
tonerivo-support .support-hours { flex: none; margin: 0; padding: 8px 16px; background: #eff5f6; color: #28444e; border-bottom: 1px solid #d9e5e7; font-size: 12px; line-height: 1.45; }
tonerivo-support .support-history { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 18px; }
tonerivo-support .support-welcome { padding: 2px 1px; }
tonerivo-support .support-welcome h2 { margin: 0; font: 690 32px/1.04 "Inter","Segoe UI",Arial,sans-serif; letter-spacing: -1.45px; color: var(--ink); }
tonerivo-support .support-welcome p { margin: 9px 0 17px; font-size: 13px; color: var(--muted); }
tonerivo-support .support-topic {
  display: flex; width: 100%; align-items: center; gap: 12px; padding: 8px 12px 8px 8px;
  margin-top: 8px; min-height: 46px; border-radius: 13px; background: #fff;
  border: 1px solid #d7dfe1; text-align: left; font-weight: 600; font-size: 14px; color: var(--ink);
}
tonerivo-support .support-topic-icon { display: grid; place-items: center; height: 31px; width: 31px; background: #e7f3f5; color: #216873; border-radius: 9px; }
tonerivo-support .support-topic:last-child .support-topic-icon { color: #905126; background: #fbefdd; }
tonerivo-support .support-topic > svg { width: 14px; margin-left: auto; color: #637581; }
tonerivo-support .support-line { display: flex; flex-direction: column; align-items: flex-start; margin: 0 0 13px; }
tonerivo-support .support-line.customer { align-items: flex-end; }
tonerivo-support .support-bubble {
  width: fit-content; max-width: 90%; padding: 10px 14px; margin: 0;
  border: 1px solid #d9e1e3; border-radius: 16px 16px 16px 4px;
  background: #fff; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px;
}
tonerivo-support .customer .support-bubble { border-color: #173c52; border-radius: 16px 16px 4px 16px; background: #173c52; color: #fff; }
tonerivo-support .support-line small { margin: 4px 3px 0; font-size: 11px; color: var(--muted); }
tonerivo-support .support-compose {
  display: flex; flex: none; align-items: flex-end; gap: 8px; margin: 0 12px 12px; padding: 6px;
  border: 1px solid #c7d2d6; border-radius: 15px; background: white;
}
tonerivo-support .support-compose:focus-within { border-color: #6092a7; box-shadow: 0 0 0 2px #24759519; }
tonerivo-support .support-compose textarea {
  flex: 1; min-width: 0; height: 42px; max-height: 90px; resize: none; margin: 0; padding: 11px 6px;
  border: 0; border-radius: 8px; font: 16px/20px "Inter","Segoe UI",Arial,sans-serif; background: white; color: var(--ink);
}
tonerivo-support textarea::placeholder { color: #61717b; }
tonerivo-support .support-compose button { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--ink); color: white; }
tonerivo-support .support-compose button:disabled { background: #e4eaeb; color: #687a83; cursor: default; }
tonerivo-support .support-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
tonerivo-support .support-status { flex: none; margin: 0; color: #814225; font-size: 13px; }
tonerivo-support .support-status:not(:empty) { padding: 4px 18px 9px; }
@media (hover:hover) {
  tonerivo-support .support-toggle:hover, tonerivo-support .support-compose button:not(:disabled):hover { background: #204b62; }
  tonerivo-support .support-topic:hover { border-color: #8daeb8; background: #f5fafb; }
}
@media (prefers-reduced-motion:no-preference) {
  tonerivo-support #support-panel:not([hidden]) { animation: support-appear .16s ease-out both; }
  @keyframes support-appear { from {opacity:0; transform:translateY(6px) scale(.985)} to {opacity:1; transform:none} }
}
@media(max-width:1000px) {
  tonerivo-support { left: max(12px,env(safe-area-inset-left)); bottom: calc(78px + env(safe-area-inset-bottom,0px)); }
  tonerivo-support .support-toggle { width: 48px; height: 48px; padding: 0; }
  tonerivo-support .support-toggle-label { display: none; }
  tonerivo-support #support-panel { width: min(370px,calc(100vw - 24px)); height: min(452px,calc(100dvh - 150px - env(safe-area-inset-bottom,0px))); }
}
@media(max-height:540px) {
  tonerivo-support .support-head { min-height: 50px; padding: 5px 12px; }
  tonerivo-support .support-head img { width: 36px; height: 36px; }
  tonerivo-support .support-history { padding: 10px 14px; }
}
@media print { tonerivo-support { display: none; } }

tonerivo-support .support-end {
  margin-left:auto; min-height:36px; padding:5px 10px; border:1px solid #7794a399; border-radius:9px;
  background:#152f40; color:white; font-size:12px; white-space:nowrap;
}
tonerivo-support .support-end:not([hidden]) + .support-close { margin-left:0; flex-shrink:0; }
tonerivo-support .support-finished {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin:0 12px 12px; padding:10px 12px; border:1px solid #c7d2d6; border-radius:14px;
  background:white; color:var(--ink); font-size:14px;
}
tonerivo-support .support-finished button { padding:8px 12px; border:0; border-radius:9px; background:var(--ink); color:white; }
tonerivo-support .support-finished[hidden], tonerivo-support .support-compose[hidden], tonerivo-support .support-end[hidden] { display:none; }
@media(max-width:400px){tonerivo-support .support-head{gap:7px;padding-inline:10px} tonerivo-support .support-head img{width:34px;height:34px}}
