.form-status {
  grid-column: 1 / -1;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 11px;
  background: #e2eee4;
  color: #245f35;
  font-size: 13px;
  line-height: 1.5;
}

.form-status.error {
  background: #f7dfd8;
  color: #7e2f1f;
}

.reviews-controls {
  display: none;
}

.tunari-chat-button {
  position: fixed;
  z-index: 110;
  right: 22px;
  bottom: 22px;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: #2b2b2d;
  color: #fffdf9;
  box-shadow: 0 18px 48px rgba(34, 29, 26, .3);
}

.tunari-chat-button span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b86b51;
  font-family: Georgia, serif;
  font-size: 22px;
}

.tunari-chat-button b {
  font-size: 13px;
  letter-spacing: .02em;
}

.tunari-chat {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 92px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(650px, calc(100dvh - 120px));
  display: grid;
  grid-template-rows: auto minmax(150px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(43, 43, 45, .14);
  border-radius: 25px;
  background: #fffdf9;
  color: #2b2b2d;
  box-shadow: 0 28px 80px rgba(28, 23, 20, .28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.98);
  transform-origin: right bottom;
  transition: .22s ease;
}

.tunari-chat.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.tunari-chat header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 17px 14px 20px;
  background: #2b2b2d;
  color: #fffdf9;
}

.tunari-chat header strong,
.tunari-chat header span {
  display: block;
}

.tunari-chat header strong {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.tunari-chat header span {
  margin-top: 3px;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
}

.tunari-chat header button {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 29px;
}

.tunari-chat-body {
  min-height: 220px;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 100% 0, rgba(184, 107, 81, .1), transparent 35%),
    #f7f4ee;
}

.tunari-chat-message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 16px 16px 16px 5px;
  background: #fffdf9;
  box-shadow: 0 6px 22px rgba(42, 35, 31, .07);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.tunari-chat-message.user {
  margin-left: auto;
  border-radius: 16px 16px 5px 16px;
  background: #b86b51;
  color: #fff;
}

.tunari-chat-message.success {
  background: #e2eee4;
  color: #245f35;
}

.tunari-chat-message.error {
  background: #f7dfd8;
  color: #7e2f1f;
}

.tunari-chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 230px;
  padding: 14px;
  overflow-y: auto;
  border-top: 1px solid rgba(43, 43, 45, .12);
  background: #fffdf9;
}

.tunari-chat-actions > button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(43, 43, 45, .15);
  border-radius: 999px;
  background: #fff;
  color: #2b2b2d;
  font-size: 12px;
  text-align: left;
}

.tunari-chat-actions > button.cta {
  border-color: #b86b51;
  background: #b86b51;
  color: #fff;
}

.tunari-chat-form {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.tunari-chat-form input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(43, 43, 45, .18);
  border-radius: 12px;
  background: #f7f4ee;
}

.tunari-chat-form button {
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background: #b86b51;
  color: #fff;
}

.tunari-chat-form small {
  grid-column: 1 / -1;
  color: #6e6a65;
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 699px) {
  .reviews-grid {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .reviews-grid::-webkit-scrollbar {
    display: none;
  }

  .review-card {
    flex: 0 0 calc(100% - 34px);
    scroll-snap-align: start;
  }

  .reviews-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
  }

  .reviews-controls button {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(43, 43, 45, .14);
    border-radius: 50%;
    background: #fffdf9;
    color: #2b2b2d;
    font-size: 22px;
  }

  .reviews-position {
    min-width: 54px;
    text-align: center;
    color: #6e6a65;
    font-size: 11px;
  }

  .tunari-chat-button {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .tunari-chat-button b {
    display: none;
  }

  .tunari-chat-button {
    padding: 6px;
  }

  .tunari-chat {
    right: 14px;
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 78px));
    max-height: calc(100dvh - 105px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tunari-chat {
    transition: none;
  }
}
