.gox-web-chat__panel[hidden] {
  display: none !important;
}

.gox-web-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  font-family: Inter, system-ui, sans-serif;
}

.gox-web-chat__fab {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: #008D36;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 77, 32, 0.35);
}

.gox-web-chat__panel {
  position: absolute;
  right: 0;
  bottom: 4.25rem;
  width: min(360px, calc(100vw - 2rem));
  height: min(520px, calc(100vh - 6rem));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.gox-web-chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #004D20;
  color: #fff;
}

.gox-web-chat__close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.gox-web-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  background: #f7faf8;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gox-web-chat__bubble {
  max-width: 85%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.gox-web-chat__bubble--visitor {
  align-self: flex-end;
  background: #008D36;
  color: #fff;
}

.gox-web-chat__bubble--bot,
.gox-web-chat__bubble--admin {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #111;
}

.gox-web-chat__bubble a {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}

.gox-web-chat__bubble--visitor a {
  color: #e8ffe8;
}

.gox-web-chat__menus {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.gox-web-chat__menu-btn {
  border: 1px solid #008D36;
  background: #f0faf4;
  color: #004D20;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.gox-web-chat__form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.gox-web-chat__form input {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}

.gox-web-chat__form button {
  border: none;
  border-radius: 10px;
  background: #008D36;
  color: #fff;
  padding: 0.55rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
