.assistant-toggle {
  position: fixed;
  z-index: 18;
  right: 22px;
  bottom: 78px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d4c8b2;
  border-radius: 999px;
  padding: 10px 15px;
  background: #f5f2ec;
  color: #272824;
  box-shadow: 0 5px 18px rgba(20, 22, 19, 0.15);
  font-size: 11px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.assistant-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 22, 19, 0.2);
}

.assistant-toggle-icon {
  color: #9b7944;
  font-size: 15px;
}

.assistant-panel {
  position: fixed;
  z-index: 18;
  right: 22px;
  bottom: 132px;
  display: flex;
  flex-direction: column;
  width: min(350px, calc(100vw - 28px));
  height: min(430px, calc(100vh - 165px));
  min-height: 300px;
  overflow: hidden;
  border: 1px solid #dfdbd2;
  border-radius: 12px;
  background: #fbfaf7;
  color: #252622;
  box-shadow: 0 16px 50px rgba(20, 22, 19, 0.2);
}

.assistant-panel[hidden] {
  display: none;
}

.assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  background: #292b27;
  color: #fff;
}

.assistant-header>div {
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: center;
  column-gap: 9px;
  row-gap: 4px;
}

.assistant-header strong {
  font: 500 13px var(--sans, Arial, sans-serif);
}

.assistant-header small {
  grid-column: 2;
  color: #d3d0c8;
  font-size: 9px;
}

.assistant-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9a16f;
}

.assistant-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.assistant-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 16px 13px 10px;
}

.assistant-message {
  max-width: 88%;
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-line;
}

.assistant-reply {
  align-self: flex-start;
  border: 1px solid #e8e4dc;
  background: #f2efe9;
}

.assistant-question {
  align-self: flex-end;
  background: #343731;
  color: #fff;
}

.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
}

.assistant-suggestions button {
  border: 1px solid #d8d1c3;
  border-radius: 999px;
  padding: 6px 9px;
  background: transparent;
  color: #4c4c45;
  font-size: 9px;
  cursor: pointer;
}

.assistant-suggestions button:hover {
  background: #efebe2;
}

.assistant-form {
  display: flex;
  gap: 8px;
  border-top: 1px solid #e8e4dc;
  padding: 10px 12px;
}

.assistant-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #252622;
  font: 11px var(--sans, Arial, sans-serif);
}

.assistant-form button {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 0;
  border-radius: 50%;
  background: #292b27;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .assistant-toggle {
    right: 14px;
    bottom: 70px;
    padding: 9px 12px;
    font-size: 10px;
  }

  .assistant-panel {
    right: 14px;
    bottom: 126px;
    height: min(430px, calc(100vh - 160px));
  }
}
