#gear-chat{--gc-red:#b62330;--gc-ink:#172635;position:fixed;right:22px;bottom:max(20px,env(safe-area-inset-bottom));z-index:9000;font:16px/1.45 Arial,sans-serif;color:var(--gc-ink);text-align:left;letter-spacing:normal}#gear-chat *{box-sizing:border-box}#gear-chat [hidden]{display:none!important}#gear-chat button,#gear-chat input,#gear-chat textarea{font:inherit;letter-spacing:normal;text-transform:none}#gear-chat button{cursor:pointer}#gear-chat button:focus-visible,#gear-chat input:focus-visible,#gear-chat textarea:focus-visible,#gear-chat a:focus-visible{outline:3px solid #418bdb;outline-offset:3px}#gear-chat .gc-launch{display:flex;align-items:center;gap:10px;border:0;border-radius:32px;background:var(--gc-red);color:white;padding:14px 20px;box-shadow:0 5px 20px #0003;font-weight:600}#gear-chat .gc-launch svg{width:23px;height:23px}#gear-chat .gc-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#b8c0c8;margin-right:6px}#gear-chat[data-online=true] .gc-dot{background:#80e2ac}#gear-chat .gc-panel{width:380px;height:min(640px,calc(100dvh - 40px));display:flex;flex-direction:column;border:1px solid #d7dde2;border-radius:18px;background:white;box-shadow:0 10px 45px #0003;overflow:hidden}#gear-chat .gc-header{display:flex;align-items:flex-start;gap:10px;background:#0c263e;color:white;padding:18px 18px 15px;flex-shrink:0}#gear-chat .gc-heading{flex:1}#gear-chat .gc-heading strong{font-size:19px;display:block}#gear-chat .gc-presence{font-size:14px;margin-top:5px;color:#e1e8ef}#gear-chat .gc-min{border:0;background:transparent;color:white;padding:0 4px;font-size:26px;line-height:1}#gear-chat .gc-log{flex:1;min-height:80px;overflow:auto;padding:16px;background:#f5f7fa;overscroll-behavior:contain}#gear-chat .gc-welcome{background:white;padding:13px;border:1px solid #e2e6eb;border-radius:12px;font-size:15px;margin:0 0 14px}#gear-chat .gc-msg{max-width:90%;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;background:white;border:1px solid #dbe2e8;border-radius:12px 12px 12px 3px;padding:10px 12px}#gear-chat .gc-msg[data-role=visitor]{margin-left:auto;background:#e9eef5;border-radius:12px 12px 3px 12px}#gear-chat .gc-msg b{display:block;font-size:13px;color:#566575;margin-bottom:4px}#gear-chat .gc-msg time{display:block;margin-top:5px;font-size:12px;color:#566575}#gear-chat .gc-compose{padding:12px 15px 14px;border-top:1px solid #e0e5eb;flex-shrink:0;max-height:60%;overflow:auto}#gear-chat .gc-contact{font-size:14px;margin-bottom:9px}#gear-chat .gc-contact summary{cursor:pointer;color:#314e6c}#gear-chat label{display:block;font-size:14px;margin-top:6px}#gear-chat input,#gear-chat textarea{display:block;width:100%;padding:8px 10px;border:1px solid #abb8c4;border-radius:7px;background:white;color:#172635;min-height:40px}#gear-chat textarea{resize:vertical;max-height:120px}#gear-chat .gc-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}#gear-chat .gc-contact-grid label:first-child{grid-column:1/-1}#gear-chat .gc-send{display:flex;align-items:center;gap:8px;margin-top:9px}#gear-chat .gc-send button{border:0;border-radius:8px;background:var(--gc-red);padding:10px 18px;color:white;font-weight:600}#gear-chat button:disabled{opacity:.6;cursor:wait}#gear-chat .gc-call{color:#284b6c;font-size:14px;margin-left:auto}#gear-chat .gc-notice{font-size:14px;margin:8px 0 0;color:#43586b}#gear-chat .gc-privacy{font-size:12px;color:#596a79;margin:7px 0 0}#gear-chat .gc-honey{position:absolute;left:-10000px;opacity:0}#gear-chat .gc-badge{background:white;color:#ad1c2b;padding:0 6px;border-radius:12px;font-size:13px}#gear-chat .gc-wait{font-size:14px;color:#4d6174;margin:10px 0}

#gear-chat .gc-launch { position: relative; }
#gear-chat .gc-launch-status { display: none; }
#gear-chat[data-online="true"] .gc-launch-status {
  position: absolute;
  inset-inline-end: 8px;
  inset-block-end: calc(100% + 13px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  border-end-end-radius: 6px;
  background: #e1f8e8;
  color: #135735;
  box-shadow: 0 5px 18px #0a131c43;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
}
#gear-chat .gc-launch-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25844a;
}
#gear-chat .gc-launch-status::after {
  content: "";
  position: absolute;
  inset-inline-end: 13px;
  inset-block-end: -5px;
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: inherit;
}

@media (max-width: 650px) {
  #gear-chat {
    --gc-dock: max(12px, env(safe-area-inset-bottom));
    --gc-red: var(--accent, #a9212c);
    --gc-ink: #171c24;
    right: 12px;
    bottom: var(--gc-dock);
    left: 12px;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
  }
  body:has(.mobile-actions) #gear-chat {
    --gc-dock: calc(60px + env(safe-area-inset-bottom));
  }
  #gear-chat > * { pointer-events: auto; }
  #gear-chat .gc-launch {
    gap: 8px;
    min-height: 44px;
    padding: 9px 15px;
    font-size: 15px;
    box-shadow: 0 4px 16px #161c253d;
  }
  #gear-chat .gc-launch svg { width: 20px; height: 20px; }
  #gear-chat .gc-panel {
    width: min(360px, 100%);
    height: min(415px, 60vh);
    height: min(415px, 60dvh);
    border-color: #21283424;
    border-radius: 16px;
    box-shadow: 0 16px 42px #10141b44, 0 3px 9px #10141b26;
  }
  #gear-chat:not([data-keyboard=true]) .gc-panel:has(.gc-messages:empty):not(:has(.gc-contact[open])) {
    height: min(270px, 60vh);
    height: min(270px, 60dvh);
  }
  #gear-chat .gc-panel:focus { outline: none; }
  #gear-chat[data-keyboard=true] {
    bottom: calc(var(--gc-keyboard-offset) + 8px);
  }
  #gear-chat[data-keyboard=true] .gc-panel {
    height: min(415px, max(180px, calc(var(--gc-viewport-height) * .6)),
      calc(var(--gc-viewport-height) - 16px));
  }
  #gear-chat .gc-header {
    align-items: center;
    gap: 8px;
    padding: 7px 8px 7px 14px;
    background: #161c25;
  }
  #gear-chat .gc-heading { min-width: 0; }
  #gear-chat .gc-heading strong { font-size: 17px; line-height: 1.25; }
  #gear-chat .gc-presence {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    color: #e1e6ed;
    font-size: 14px;
    line-height: 1.3;
  }
  #gear-chat .gc-dot { flex: 0 0 7px; width: 7px; height: 7px; margin: 0; }
  #gear-chat[data-online=false] .gc-dot { background: #d9b77c; }
  #gear-chat .gc-min {
    flex: 0 0 44px;
    min-height: 44px;
    border-radius: 50%;
    background: #ffffff12;
    font-size: 25px;
  }
  #gear-chat .gc-min:hover { background: #ffffff21; }
  #gear-chat .gc-log { min-height: 0; padding: 10px 14px; background: #f2f4f6; }
  #gear-chat .gc-welcome {
    margin: 0 0 6px;
    width: fit-content;
    max-width: 100%;
    padding: 7px 10px;
    border: 0;
    border-radius: 4px 12px 12px 12px;
    background: #fff;
    font-size: 15px;
  }
  #gear-chat .gc-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
    max-height: 65%;
    padding: 0 12px 9px;
    border-top-color: #dbe0e7;
    background: #fff;
    overscroll-behavior: contain;
  }
  #gear-chat[data-keyboard=true] .gc-log { padding-block: 0; }
  #gear-chat[data-keyboard=true] .gc-welcome { margin-top: 8px; }
  #gear-chat[data-keyboard=true] .gc-compose { max-height: min(65%, calc(100% - 58px)); }
  #gear-chat .gc-contact {
    grid-area: 1 / 1;
    margin: 0;
  }
  #gear-chat .gc-contact[open] { grid-column: 1 / -1; }
  #gear-chat .gc-contact summary {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    width: fit-content;
    color: #394656;
    line-height: 1.2;
    font-weight: 600;
    list-style: none;
  }
  #gear-chat .gc-contact summary::-webkit-details-marker { display: none; }
  #gear-chat .gc-contact summary::before { content: '+'; font-size: 18px; }
  #gear-chat .gc-contact[open] summary::before { content: '−'; }
  #gear-chat .gc-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 8px;
    padding-bottom: 6px;
  }
  #gear-chat .gc-compose > label:not(.gc-honey) {
    grid-area: 2 / 1;
    min-width: 0;
    margin: 0;
    font-size: 14px;
  }
  #gear-chat .gc-message-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #gear-chat input, #gear-chat textarea { font-size: 16px; }
  #gear-chat textarea {
    height: 56px;
    padding: 7px 10px;
    border-color: #b9c3cf;
    border-radius: 9px;
    background: #f8fafb;
    line-height: 1.25;
    resize: none;
  }
  #gear-chat textarea::placeholder { color: #556170; }
  #gear-chat .gc-send { display: contents; }
  #gear-chat .gc-send button {
    grid-area: 2 / 2;
    align-self: stretch;
    min-width: 64px;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 15px;
  }
  #gear-chat .gc-send button:hover:not(:disabled) { background: #881d26; }
  #gear-chat .gc-call {
    grid-area: 1 / 2;
    align-self: start;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 4px;
    margin: 0;
    color: var(--gc-red);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
  }
  #gear-chat .gc-call:hover { text-decoration: underline; }
  #gear-chat .gc-notice, #gear-chat .gc-privacy { grid-column: 1 / -1; margin: 0; }
  #gear-chat .gc-notice:empty { display: none; }
}
