.picnic-chat {
  --picnic-chat-black: #05100b;
  --picnic-chat-yellow: #ddbf28;
  --picnic-chat-soft: #fffaf1;
  --picnic-chat-line: rgba(5, 16, 11, 0.12);
  --picnic-chat-muted: #666666;
  bottom: 22px;
  color: var(--picnic-chat-black);
  font-family: var(--rs-ff-body, "Urbanist", Arial, sans-serif);
  position: fixed;
  right: 22px;
  z-index: 9998;
}

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

.picnic-chat__toggle {
  align-items: center;
  background: var(--picnic-chat-black);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  gap: 10px;
  min-height: 58px;
  padding: 0 22px;
}

.picnic-chat__toggle-icon {
  align-items: center;
  background: var(--picnic-chat-yellow);
  border-radius: 50%;
  color: var(--picnic-chat-black);
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 18px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.picnic-chat__panel {
  background: #ffffff;
  border: 1px solid var(--picnic-chat-line);
  border-radius: 8px;
  bottom: 76px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  max-height: min(680px, calc(100vh - 115px));
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(390px, calc(100vw - 32px));
}

.picnic-chat.is-open .picnic-chat__panel {
  display: flex;
}

.picnic-chat__header {
  align-items: center;
  background: var(--picnic-chat-black);
  color: #ffffff;
  display: flex;
  gap: 12px;
  padding: 16px;
}

.picnic-chat__avatar {
  align-items: center;
  background: var(--picnic-chat-yellow);
  border-radius: 50%;
  color: var(--picnic-chat-black);
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 20px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.picnic-chat__title {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.picnic-chat__subtitle {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.3;
  margin: 2px 0 0;
}

.picnic-chat__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  margin-left: auto;
  width: 34px;
}

.picnic-chat__messages {
  background: #fbfaf9;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  overflow-y: auto;
  padding: 16px;
}

.picnic-chat__message {
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.45;
  max-width: 88%;
  overflow-wrap: anywhere;
  padding: 11px 13px;
  white-space: pre-line;
}

.picnic-chat__message a {
  color: #8a6f00;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.picnic-chat__message--bot {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid var(--picnic-chat-line);
}

.picnic-chat__message--user {
  align-self: flex-end;
  background: var(--picnic-chat-yellow);
  color: var(--picnic-chat-black);
  font-weight: 700;
}

.picnic-chat__quick {
  background: #ffffff;
  border-top: 1px solid var(--picnic-chat-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
}

.picnic-chat__quick button {
  background: var(--picnic-chat-soft);
  border: 1px solid rgba(221, 191, 40, 0.42);
  border-radius: 999px;
  color: var(--picnic-chat-black);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 8px 10px;
}

.picnic-chat__form {
  align-items: flex-end;
  background: #ffffff;
  border-top: 1px solid var(--picnic-chat-line);
  display: flex;
  gap: 8px;
  padding: 12px;
}

.picnic-chat__input {
  border: 1px solid var(--picnic-chat-line);
  border-radius: 8px;
  color: var(--picnic-chat-black);
  flex: 1;
  font: inherit;
  font-size: 15px;
  max-height: 112px;
  min-height: 44px;
  outline: 0;
  padding: 10px 12px;
  resize: none;
}

.picnic-chat__input:focus {
  border-color: var(--picnic-chat-yellow);
  box-shadow: 0 0 0 3px rgba(221, 191, 40, 0.22);
}

.picnic-chat__send {
  align-items: center;
  background: var(--picnic-chat-black);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 19px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.picnic-chat__status {
  color: var(--picnic-chat-muted);
  font-size: 12px;
  padding: 0 16px 12px;
}

@media (max-width: 575px) {
  .picnic-chat {
    bottom: 14px;
    right: 14px;
  }

  .picnic-chat__toggle {
    min-height: 54px;
    padding: 0 14px 0 10px;
  }

  .picnic-chat__panel {
    bottom: 68px;
    max-height: calc(100vh - 92px);
    width: calc(100vw - 28px);
  }
}
