:root {
  --sza-gold: #c6a15b;
  --sza-gold-soft: #ead7a4;
  --sza-brown: #5a3a29;
  --sza-dark: #382116;
  --sza-beige: #f4efe7;
  --sza-wine: #721827;
  --sza-line: #e5d8c6;
}
.sza-widget,
.sza-widget * {
  box-sizing: border-box;
  text-transform: none !important;
}
.sza-widget {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--sza-dark);
}
.sza-launcher {
  position: fixed;
  z-index: 999990;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 9px 17px 9px 9px;
  border: 1px solid var(--sza-gold);
  border-radius: 999px;
  background: linear-gradient(145deg, #5a3a29, #382116);
  color: #fff;
  box-shadow: 0 14px 35px rgba(56, 33, 22, 0.28);
  cursor: pointer;
}
.sza-launcher > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sza-gold);
  font:
    700 23px Georgia,
    serif;
}
.sza-launcher strong {
  font-size: 16px;
}
.sza-launcher i {
  position: absolute;
  right: -3px;
  top: -5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sza-wine);
  font-style: normal;
}
.sza-panel {
  overflow: hidden;
  border: 1px solid var(--sza-gold);
  border-radius: 23px;
  background: #fffdf9;
  box-shadow: 0 26px 80px rgba(45, 25, 15, 0.3);
}
.is-floating .sza-panel {
  position: fixed;
  z-index: 999991;
  right: 22px;
  bottom: 92px;
  width: min(410px, calc(100vw - 28px));
  max-height: min(720px, calc(100vh - 120px));
  overflow: auto;
}
.sza-panel[hidden] {
  display: none;
}
.sza-panel > header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 17px;
  background: linear-gradient(110deg, #382116, #6a432b);
  color: #fff;
}
.sza-panel > header > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sza-panel > header > div > span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--sza-gold);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.sza-panel header p {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.sza-panel header strong {
  color: #fff;
  font:
    700 19px Georgia,
    serif;
}
.sza-panel header small {
  margin-top: 3px;
  color: var(--sza-gold-soft);
  font-size: 13px;
}
.sza-panel > header > button,
.sza-contact > div button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 28px;
  cursor: pointer;
}
.sza-privacy {
  padding: 10px 15px;
  border-bottom: 1px solid var(--sza-line);
  background: #fff8e9;
  color: #6f5b4f;
  font-size: 13px;
  line-height: 1.45;
}
.sza-messages {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 230px;
  max-height: 350px;
  overflow: auto;
  padding: 17px;
  background: linear-gradient(180deg, #fffdf9, #f7f0e8);
}
.sza-messages article {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  max-width: 92%;
}
.sza-messages article > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #efe0c8;
}
.sza-messages article > div {
  padding: 11px 13px;
  border: 1px solid var(--sza-line);
  border-radius: 15px 15px 15px 4px;
  background: #fff;
}
.sza-messages article.is-user {
  align-self: flex-end;
}
.sza-messages article.is-user > div {
  border-color: #dec184;
  border-radius: 15px 15px 4px 15px;
  background: #f2dfb8;
}
.sza-messages p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
}
.sza-messages nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.sza-messages a,
.sza-messages article button {
  padding: 7px 9px;
  border: 1px solid var(--sza-gold);
  border-radius: 8px;
  background: #fff;
  color: var(--sza-wine);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.is-typing i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 2px;
  border-radius: 50%;
  background: #9c7b5e;
  animation: szaTyping 1.1s infinite;
}
.is-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.is-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes szaTyping {
  50% {
    transform: translateY(-4px);
    opacity: 0.45;
  }
}
.sza-quick {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 11px 14px;
  border-top: 1px solid var(--sza-line);
  background: #fff;
}
.sza-quick button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #dbc38f;
  border-radius: 999px;
  background: #fffaf0;
  color: var(--sza-brown);
  font-size: 13px;
  cursor: pointer;
}
.sza-ask {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--sza-line);
  background: #fff;
}
.sza-ask textarea {
  width: 100%;
  max-height: 100px;
  padding: 10px 12px;
  border: 1px solid #d8c7b5;
  border-radius: 12px;
  resize: none;
  font: 15px inherit;
}
.sza-ask button {
  border: 0;
  border-radius: 12px;
  background: var(--sza-wine);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.sza-contact {
  margin: 12px;
  padding: 15px;
  border: 1px solid var(--sza-gold);
  border-radius: 15px;
  background: #fff;
}
.sza-contact[hidden] {
  display: none;
}
.sza-contact > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sza-contact > div strong {
  color: var(--sza-brown);
  font:
    700 21px Georgia,
    serif;
}
.sza-contact > p {
  font-size: 14px;
  color: #76655b;
}
.sza-contact label {
  display: grid;
  gap: 5px;
  margin-top: 11px;
}
.sza-contact label > span {
  font-size: 14px;
  font-weight: 700;
}
.sza-contact select,
.sza-contact textarea {
  width: 100%;
  padding: 9px;
  border: 1px solid #d8c7b5;
  border-radius: 9px;
  background: #fff;
  font: 15px inherit;
}
.sza-contact .sza-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
}
.sza-consent input {
  margin-top: 3px;
}
.sza-contact > button {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: var(--sza-wine);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.sza-contact > a {
  display: block;
  margin-top: 10px;
  color: var(--sza-wine);
  font-size: 14px;
  text-align: center;
}
.sza-panel > footer {
  padding: 8px 14px;
  border-top: 1px solid var(--sza-line);
  background: #fff;
  color: #85746a;
  font-size: 12px;
}
.sza-page {
  max-width: 760px;
  margin: 28px auto;
}
.sza-page .sza-messages {
  max-height: 540px;
}
.sza-login {
  max-width: 650px;
  margin: 30px auto;
  padding: 28px;
  border: 1px solid var(--sza-gold);
  border-radius: 20px;
  background: #fffdf9;
  text-align: center;
}
.sza-login h2 {
  color: var(--sza-brown);
  font:
    700 34px Georgia,
    serif;
}
.sza-login a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--sza-wine);
  color: #fff;
  text-decoration: none;
}
@media (max-width: 520px) {
  .sza-launcher {
    right: 13px;
    bottom: 13px;
  }
  .is-floating .sza-panel {
    right: 8px;
    bottom: 79px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 92px);
  }
  .sza-messages {
    max-height: 43vh;
  }
  .sza-page {
    margin: 10px;
  }
  .sza-panel {
    border-radius: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-typing i {
    animation: none;
  }
}
