/* GlobaPlace 3.3 Batch E: Universal Chat Shell */

:root {
  --gp-chat-yellow: #f3c80f;
  --gp-chat-ink: #151611;
  --gp-chat-muted: rgba(21,22,17,.66);
  --gp-chat-line: rgba(21,22,17,.14);
  --gp-chat-card: #ffffff;
  --gp-chat-soft: #f7f4e7;
  --gp-chat-shadow: 0 24px 70px rgba(21,22,17,.20);
}

.gp-chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  display: grid;
  gap: 10px;
  justify-items: end;
  font-family: inherit;
}

.gp-chat-button {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: var(--gp-chat-yellow);
  color: var(--gp-chat-ink);
  box-shadow: var(--gp-chat-shadow);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
}

.gp-chat-button:focus-visible,
.gp-chat-panel a:focus-visible,
.gp-chat-panel button:focus-visible {
  outline: 3px solid rgba(21,22,17,.72);
  outline-offset: 3px;
}

.gp-chat-dot {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #1d7f47;
  border: 2px solid #fff;
}

.gp-chat-panel {
  width: min(390px, calc(100vw - 24px));
  max-height: min(680px, calc(100vh - 104px));
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--gp-chat-line);
  background: var(--gp-chat-card);
  box-shadow: var(--gp-chat-shadow);
  color: var(--gp-chat-ink);
  display: none;
}

.gp-chat-launcher[data-open="1"] .gp-chat-panel {
  display: block;
}

.gp-chat-head {
  padding: 16px 16px 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(243,200,15,.35), transparent 34%),
    linear-gradient(135deg, #ffffff, #fff8d2);
  border-bottom: 1px solid var(--gp-chat-line);
}

.gp-chat-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(243,200,15,.5);
  background: rgba(255,255,255,.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.gp-chat-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-top: 10px;
}

.gp-chat-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.gp-chat-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--gp-chat-line);
  background: #fff;
  color: var(--gp-chat-ink);
  cursor: pointer;
  font-weight: 900;
}

.gp-chat-sub {
  margin: 8px 0 0;
  color: var(--gp-chat-muted);
  font-size: 13px;
  line-height: 1.45;
}

.gp-chat-body {
  padding: 14px;
  display: grid;
  gap: 10px;
  max-height: calc(min(680px, calc(100vh - 104px)) - 145px);
  overflow: auto;
}

.gp-chat-route {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--gp-chat-line);
  border-radius: 16px;
  background: #fff;
  color: var(--gp-chat-ink);
  text-decoration: none;
}

.gp-chat-route:hover {
  background: var(--gp-chat-soft);
}

.gp-chat-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--gp-chat-yellow);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.gp-chat-route strong {
  display: block;
  font-size: 14px;
  line-height: 1.15;
}

.gp-chat-route span {
  display: block;
  margin-top: 4px;
  color: var(--gp-chat-muted);
  font-size: 12px;
  line-height: 1.36;
}

.gp-chat-note {
  padding: 11px 12px;
  border-radius: 15px;
  background: #fff8d7;
  border: 1px solid rgba(243,200,15,.45);
  color: rgba(21,22,17,.76);
  font-size: 12px;
  line-height: 1.45;
}

.gp-chat-mini-composer {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #f7f7f1;
  border: 1px solid var(--gp-chat-line);
}

.gp-chat-mini-composer textarea {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid var(--gp-chat-line);
  padding: 10px;
  font: inherit;
  color: var(--gp-chat-ink);
  background: #fff;
  box-sizing: border-box;
}

.gp-chat-mini-composer button {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: var(--gp-chat-yellow);
  color: var(--gp-chat-ink);
  font-weight: 900;
  cursor: not-allowed;
  opacity: .72;
}

.gp-chat-center-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff3bf;
  border: 1px solid rgba(243,200,15,.45);
  color: #5c460b;
  font-weight: 900;
  font-size: 12px;
}

@media (max-width: 680px) {
  .gp-chat-launcher {
    right: 12px;
    bottom: 12px;
  }

  .gp-chat-button {
    width: 54px;
    height: 54px;
  }

  .gp-chat-panel {
    width: calc(100vw - 24px);
    border-radius: 20px;
  }

  .gp-chat-title {
    font-size: 21px;
  }
}
