.gp-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  font-family: Arial, sans-serif;
  color: #221d18;
}

.gp-chat * {
  box-sizing: border-box;
}

.gp-chat__button {
  border: 0;
  border-radius: 999px;
  background: #194227;
  color: #fff;
  min-height: 48px;
  padding: 0 18px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  font-size: 15px;
  font-weight: 700;
}

.gp-chat__panel {
  display: none;
  width: min(380px, calc(100vw - 24px));
  max-height: min(680px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid rgba(25, 66, 39, 0.16);
  border-radius: 12px;
  background: #fbf8f2;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.gp-chat_open .gp-chat__panel {
  display: flex;
  flex-direction: column;
}

.gp-chat_open .gp-chat__button {
  display: none;
}

.gp-chat__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  background: #194227;
  color: #fff;
}

.gp-chat__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.gp-chat__subtitle {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.35;
}

.gp-chat__close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.gp-chat__messages {
  flex: 1;
  min-height: 210px;
  overflow-y: auto;
  padding: 14px;
}

.gp-chat__bubble {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.42;
}

.gp-chat__bubble_bot {
  background: #fff;
  border: 1px solid #ebe2d6;
}

.gp-chat__bubble_user {
  margin-left: auto;
  background: #194227;
  color: #fff;
}

.gp-chat__quick {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 14px 12px;
}

.gp-chat__quick button,
.gp-chat__actions button,
.gp-chat__actions a {
  white-space: nowrap;
  border: 1px solid #d8ccbd;
  border-radius: 999px;
  background: #fff;
  color: #194227;
  padding: 8px 10px;
  font-size: 12px;
  text-decoration: none;
}

.gp-chat__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}

.gp-chat__lead {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #ebe2d6;
  background: #f5f0e8;
}

.gp-chat__lead input {
  width: 100%;
  border: 1px solid #d8ccbd;
  border-radius: 8px;
  background: #fff;
  padding: 10px 11px;
  font-size: 14px;
}

.gp-chat__lead button,
.gp-chat__form button {
  border: 0;
  border-radius: 8px;
  background: #194227;
  color: #fff;
  padding: 10px 12px;
  font-weight: 700;
}

.gp-chat__note {
  color: #6f665e;
  font-size: 11px;
  line-height: 1.35;
}

.gp-chat__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid #ebe2d6;
  background: #fff;
}

.gp-chat__form textarea {
  min-height: 42px;
  max-height: 110px;
  resize: vertical;
  border: 1px solid #d8ccbd;
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 14px;
}

.gp-chat_booking {
  bottom: 86px;
}

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

  .gp-chat_booking {
    bottom: 76px;
  }

  .gp-chat__panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .gp-chat__button {
    min-height: 46px;
    padding: 0 14px;
  }
}
