
.gbo-chatbox,
.gbo-chatbox * {
  box-sizing: border-box;
}

.gbo-chatbox {
  --gbo-bg: #07111c;
  --gbo-bg-2: #0c1724;
  --gbo-card: rgba(255,255,255,0.052);
  --gbo-card-2: rgba(31,156,231,0.10);
  --gbo-primary: #1f9ce7;
  --gbo-primary-2: #58c8ff;
  --gbo-text: #f6fbff;
  --gbo-muted: #a9bbcc;
  --gbo-border: rgba(255,255,255,0.105);
  --gbo-shadow: 0 24px 70px rgba(0,0,0,0.32);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gbo-text);
  z-index: 999999;
}

.gbo-chatbox button,
.gbo-chatbox input {
  font-family: inherit;
}

.gbo-chatbox--floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
}

.gbo-chatbox__launcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 218px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 7px 14px 7px 7px;
  background: linear-gradient(145deg, #06111d, #122334 65%, #16466b);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 42px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gbo-chatbox__launcher:hover {
  transform: translateY(-2px);
  border-color: rgba(88,200,255,.38);
  box-shadow: 0 22px 52px rgba(0,0,0,.34);
}

.gbo-chatbox__launcher-logo,
.gbo-chatbox__brand-logo {
  object-fit: cover;
  background: #fff;
  border-radius: 50%;
  flex: 0 0 auto;
}

.gbo-chatbox__launcher-logo {
  width: 44px;
  height: 44px;
}

.gbo-chatbox__launcher-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.gbo-chatbox__launcher-copy strong {
  font-size: 14px;
  font-weight: 900;
}

.gbo-chatbox__launcher-copy small {
  margin-top: 2px;
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 600;
}

.gbo-chatbox__launcher-pulse {
  position: absolute;
  top: 7px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3ee28d;
  box-shadow: 0 0 0 0 rgba(62,226,141,.62);
  animation: gboPulseRing 1.9s infinite;
}

@keyframes gboPulseRing {
  0% { box-shadow: 0 0 0 0 rgba(62,226,141,.60); }
  70% { box-shadow: 0 0 0 10px rgba(62,226,141,0); }
  100% { box-shadow: 0 0 0 0 rgba(62,226,141,0); }
}

.gbo-chatbox__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(372px, calc(100vw - 28px));
  height: min(570px, calc(100vh - 118px));
  max-height: 570px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--gbo-border);
  background:
    radial-gradient(circle at 88% 4%, rgba(88,200,255,.14), transparent 25%),
    linear-gradient(180deg, rgba(7,17,28,.985), rgba(11,22,34,.985));
  box-shadow: var(--gbo-shadow);
  backdrop-filter: blur(12px);
}

.gbo-chatbox.is-open .gbo-chatbox__panel {
  display: flex;
  animation: gboPanelIn .22s ease-out;
}

@keyframes gboPanelIn {
  from { opacity: 0; transform: translateY(10px) scale(.988); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gbo-chatbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(255,255,255,.032);
}

.gbo-chatbox__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.gbo-chatbox__brand-logo {
  width: 38px;
  height: 38px;
}

.gbo-chatbox__brand strong {
  display: block;
  font-size: 14.5px;
  line-height: 1.12;
  font-weight: 900;
}

.gbo-chatbox__brand small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gbo-muted);
  font-size: 10.8px;
  font-weight: 700;
}

.gbo-chatbox__online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ee28d;
}

.gbo-chatbox__header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gbo-chatbox__header-link,
.gbo-chatbox__close,
.gbo-chatbox__reset {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  background: rgba(255,255,255,.052);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.gbo-chatbox__header-link:hover,
.gbo-chatbox__close:hover,
.gbo-chatbox__reset:hover {
  background: rgba(31,156,231,.16);
  border-color: rgba(88,200,255,.30);
  transform: translateY(-1px);
}

.gbo-chatbox__close { font-size: 22px; line-height: 1; }
.gbo-chatbox__reset { font-size: 15px; }

.gbo-chatbox__starter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 11px 13px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.gbo-chatbox.is-conversing .gbo-chatbox__starter {
  display: none;
}

.gbo-chatbox__intro-card {
  padding: 12px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.056), rgba(255,255,255,.028)),
    radial-gradient(circle at 100% 0%, rgba(31,156,231,.13), transparent 34%);
  border: 1px solid rgba(255,255,255,.085);
}

.gbo-chatbox__hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(31,156,231,.16);
  color: #dff5ff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.gbo-chatbox__intro-card h3 {
  margin: 9px 0 6px;
  font-size: 21px;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.gbo-chatbox__intro-card p {
  margin: 0;
  color: #dce8f4;
  font-size: 12.3px;
  line-height: 1.38;
}

.gbo-chatbox__hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.gbo-chatbox__hero-highlights span,
.gbo-chatbox__chips button,
.gbo-chatbox__suggestions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.105);
  background: rgba(255,255,255,.046);
  color: #eff8ff;
  font-size: 11.2px;
  font-weight: 800;
}

.gbo-chatbox__quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gbo-chatbox__quick-actions button {
  min-height: 76px;
  padding: 10px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.048), rgba(31,156,231,.07));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.gbo-chatbox__quick-actions button:hover,
.gbo-chatbox__chips button:hover,
.gbo-chatbox__suggestions button:hover,
.gbo-chatbox__send:hover {
  transform: translateY(-1px);
  border-color: rgba(88,200,255,.34);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(31,156,231,.12));
}

.gbo-chatbox__quick-actions span { font-size: 17px; }
.gbo-chatbox__quick-actions em { font-style: normal; font-size: 12.6px; font-weight: 900; }
.gbo-chatbox__quick-actions small { color: var(--gbo-muted); font-size: 10.6px; font-weight: 700; }

.gbo-chatbox__chips,
.gbo-chatbox__suggestions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gbo-chatbox__chips { padding-bottom: 2px; }
.gbo-chatbox__chips button, .gbo-chatbox__suggestions button { white-space: nowrap; cursor: pointer; }

.gbo-chatbox__messages {
  flex: 1;
  min-height: 104px;
  padding: 11px 13px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.20) transparent;
}

.gbo-chatbox__messages::-webkit-scrollbar,
.gbo-chatbox__chips::-webkit-scrollbar,
.gbo-chatbox__suggestions::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.gbo-chatbox__messages::-webkit-scrollbar-thumb,
.gbo-chatbox__chips::-webkit-scrollbar-thumb,
.gbo-chatbox__suggestions::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

.gbo-chatbox__message { display: flex; animation: gboMsgIn .18s ease-out; }
@keyframes gboMsgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.gbo-chatbox__message--bot { justify-content: flex-start; }
.gbo-chatbox__message--user { justify-content: flex-end; }

.gbo-chatbox__message > div {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 17px;
  font-size: 13.25px;
  line-height: 1.47;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.gbo-chatbox__message--bot > div {
  background: rgba(255,255,255,.060);
  border: 1px solid rgba(255,255,255,.08);
}

.gbo-chatbox__message--user > div {
  background: linear-gradient(135deg, #1378ba, #2ab3ff);
  color: #fff;
}

.gbo-chatbox__typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 2px;
  background: #c5d4e2;
  border-radius: 50%;
  animation: gboTyping 1s infinite ease-in-out;
}
.gbo-chatbox__typing span:nth-child(2) { animation-delay: .15s; }
.gbo-chatbox__typing span:nth-child(3) { animation-delay: .30s; }
@keyframes gboTyping { 0%,80%,100% { opacity:.4; transform: translateY(0); } 40% { opacity:1; transform: translateY(-3px); } }

.gbo-chatbox__suggestions { flex-wrap: wrap; }

.gbo-chatbox__cta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -2px;
}

.gbo-chatbox__cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(31,156,231,.15);
  border: 1px solid rgba(31,156,231,.30);
  color: #eff8ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.gbo-chatbox__mini-form {
  margin-top: 4px;
  padding: 11px;
  border-radius: 17px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.085);
}

.gbo-chatbox__mini-form strong { display: block; margin-bottom: 4px; font-size: 13.5px; }
.gbo-chatbox__mini-form p { margin: 0 0 9px; color: var(--gbo-muted); font-size: 11.7px; line-height: 1.36; }
.gbo-chatbox__mini-form label { display: block; margin-bottom: 7px; font-size: 11.7px; color: #dbe7f4; }

.gbo-chatbox__mini-form input {
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255,255,255,.055);
  color: #fff;
}

.gbo-chatbox__mini-form button {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #1171b2, #27a6ef);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.gbo-chatbox__form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 13px 8px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.12);
}

.gbo-chatbox__input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.055);
}

.gbo-chatbox__input-icon { color: rgba(255,255,255,.62); }
.gbo-chatbox__input { flex: 1; min-width: 0; border: 0; outline: none; padding: 10px 0; background: transparent; color: #fff; }
.gbo-chatbox__input::placeholder { color: rgba(255,255,255,.52); }

.gbo-chatbox__send {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 9.5px 14px;
  background: linear-gradient(135deg, #1273b7, #2ab2ff);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.gbo-chatbox__form button:disabled,
.gbo-chatbox__input:disabled { opacity: .65; cursor: not-allowed; }

.gbo-chatbox__footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 13px 12px;
  color: var(--gbo-muted);
  font-size: 11.3px;
}

.gbo-chatbox__footer a { color: #e6f5ff; text-decoration: none; font-weight: 800; }
.gbo-chatbox__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 560px) {
  .gbo-chatbox--floating {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .gbo-chatbox__launcher {
    min-width: auto;
    width: 60px;
    height: 60px;
    padding: 7px;
    justify-content: center;
  }

  .gbo-chatbox__launcher-copy { display: none; }
  .gbo-chatbox__launcher-logo { width: 47px; height: 47px; }

  .gbo-chatbox__panel {
    right: 0;
    bottom: 70px;
    width: min(350px, calc(100vw - 24px));
    height: min(500px, calc(100vh - 128px));
    max-height: min(500px, calc(100vh - 128px));
    border-radius: 22px;
  }

  @supports (height: 100dvh) {
    .gbo-chatbox__panel {
      height: min(500px, calc(100dvh - 128px));
      max-height: min(500px, calc(100dvh - 128px));
    }
  }

  .gbo-chatbox__header { padding: 11px 12px; }
  .gbo-chatbox__brand-logo { width: 36px; height: 36px; }
  .gbo-chatbox__brand strong { font-size: 14px; }
  .gbo-chatbox__brand small { font-size: 10.4px; }
  .gbo-chatbox__header-link, .gbo-chatbox__close, .gbo-chatbox__reset { width: 30px; height: 30px; }

  .gbo-chatbox__starter { padding: 9px 11px 8px; gap: 8px; }
  .gbo-chatbox__intro-card { padding: 11px; border-radius: 17px; }
  .gbo-chatbox__hero-badge { padding: 4px 8px; font-size: 9.6px; }
  .gbo-chatbox__intro-card h3 { font-size: 18px; margin-top: 7px; }
  .gbo-chatbox__intro-card p { font-size: 11.7px; }

  .gbo-chatbox__hero-highlights { gap: 5px; margin-top: 8px; }
  .gbo-chatbox__hero-highlights span { padding: 5px 7px; font-size: 10.2px; }

  .gbo-chatbox__quick-actions {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    scroll-snap-type: x proximity;
  }

  .gbo-chatbox__quick-actions button {
    min-width: 122px;
    min-height: 66px;
    flex: 0 0 auto;
    padding: 9px;
    scroll-snap-align: start;
  }

  .gbo-chatbox__quick-actions span { font-size: 16px; }
  .gbo-chatbox__quick-actions em { font-size: 12px; }
  .gbo-chatbox__quick-actions small { font-size: 10px; }
  .gbo-chatbox__chips button, .gbo-chatbox__suggestions button { padding: 6px 8px; font-size: 10.8px; }

  .gbo-chatbox__messages { min-height: 70px; padding: 9px 11px; }
  .gbo-chatbox__message > div { max-width: 92%; font-size: 12.9px; }
  .gbo-chatbox__form { padding: 9px 11px calc(9px + env(safe-area-inset-bottom, 0px)); }
  .gbo-chatbox__input { padding: 9.5px 0; }
  .gbo-chatbox__send { padding: 9px 12px; }
  .gbo-chatbox__footer { padding-bottom: calc(11px + env(safe-area-inset-bottom, 0px)); font-size: 10.8px; }
}

@media (max-width: 380px) {
  .gbo-chatbox__panel {
    width: calc(100vw - 20px);
    height: min(470px, calc(100vh - 122px));
    max-height: min(470px, calc(100vh - 122px));
  }

  @supports (height: 100dvh) {
    .gbo-chatbox__panel {
      height: min(470px, calc(100dvh - 122px));
      max-height: min(470px, calc(100dvh - 122px));
    }
  }
}
