.reception-launcher {
  position: fixed;
  z-index: 54;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 17px;
  border: 1px solid #56524c;
  border-radius: 999px;
  background: #191815;
  color: #fff9ee;
  box-shadow: 0 10px 28px #0005;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.page-home .reception-launcher { bottom: max(82px, calc(env(safe-area-inset-bottom) + 60px)); }
.reception-launcher:hover { background: #30251f; border-color: var(--accent-soft); }
.reception-launcher[hidden], .reception [hidden] { display: none; }
.reception-mark { width: 18px; height: 16px; fill: var(--accent-soft); flex: none; }

.reception {
  width: min(430px, calc(100% - 28px));
  max-width: none;
  max-height: min(690px, calc(100dvh - 32px));
  inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) auto;
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 1px solid #5d554b;
  border-radius: 19px;
  background: #f8f5ef;
  color: #1b1714;
  color-scheme: light;
  box-shadow: 0 22px 84px #0007;
  font: 400 15px/1.55 var(--sans);
}
.reception::backdrop { background: #140f0c72; }
.reception-header, .reception-input, .reception-switcher, .reception-suggestions, .reception-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reception-header { min-height: 65px; padding: 11px 15px; background: #181613; color: #fff9ee; gap: 10px; }
.reception-header h2 { margin: 0; font-size: 16px; line-height: 1.28; letter-spacing: 0; flex: 1; }
.reception-logo { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid #61534a; border-radius: 9px; }
.reception button { min-height: 38px; padding: 6px 12px; border: 1px solid #d4cac0; border-radius: 9px; background: #fff; color: #241b16; cursor: pointer; font-weight: 560; font-size: 13px; }
.reception button:hover { border-color: #a84127; }
.reception button:disabled { cursor: wait; opacity: .6; }
.reception .reception-close { background: transparent; border-color: #686057; color: #fff9ee; width: 38px; min-height: 38px; font-size: 23px; line-height: 1; padding: 0; }
.reception-panel { padding: 15px; }
.reception-log { display: grid; gap: 9px; min-height: 135px; max-height: min(310px, 40dvh); overflow: auto; overscroll-behavior: contain; padding: 1px 1px 8px; }
.reception-message { max-width: 93%; width: fit-content; padding: 10px 12px; border-radius: 3px 12px 12px; background: #ece6df; overflow-wrap: anywhere; }
.reception-message p + p, .reception-message a + p { margin-top: 7px; }
.reception-message a { display: inline-block; margin-top: 4px; color: #9e351d; text-decoration: underline; text-underline-offset: 2px; }
.reception-message-visitor { justify-self: end; background: #fae5d9; border-radius: 12px 3px 12px 12px; }
.reception-suggestions { flex-wrap: wrap; gap: 6px; margin: 9px 0 12px; }
.reception-input input, .reception-lead input:not([type=checkbox]), .reception-lead select, .reception-lead textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #bdb2a7;
  border-radius: 8px;
  background: #fff;
  color: #221a15;
  font-size: 16px;
}
.reception .reception-primary { background: #9e361e; color: #fff; border-color: #9e361e; flex: none; }
.reception .reception-primary:hover { background: #7b2817; }
.reception-input button { min-height: 45px; }
.reception-switcher { flex-wrap: wrap; padding: 10px 15px 13px; border-top: 1px solid #e1d7cc; }
.reception-switcher button { flex: 1 1 auto; }
.reception-switcher button[aria-pressed=true] { background: #eeded1; border-color: #c2937c; }
.reception-lead { display: grid; gap: 9px; }
.reception-lead label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.reception-lead textarea { resize: vertical; min-height: 75px; }
.reception-fields { display: grid; grid-template-columns: minmax(95px, .8fr) minmax(0, 1.2fr); align-items: end; gap: 8px; }
.reception-lead .reception-consent { display: flex; align-items: flex-start; gap: 6px; font-weight: 400; }
.reception-consent input { accent-color: #9e361e; margin-top: 4px; }
.reception-hint { color: #60534b; font-size: 12px; }
.reception-result { font-size: 13px; color: #82311e; }
.reception-result:empty { display: none; }
.reception-wechat { text-align: center; }
.reception-wechat .qr { margin: 0 auto 12px; color: #201a18; }
.reception-wechat .qr-frame { margin: 0 auto; }
.reception-wechat .qr figcaption span { color: #554947; }
.reception-wechat .qr-save { color: #81321f; }

@media (max-width: 520px) {
  .reception { width: calc(100% - 16px); inset-inline: 8px; max-height: calc(100dvh - 20px); }
  .reception-launcher { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
}
