.promo-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto 18px;
}

.promo-ribbon article {
  border: 1px solid rgba(7, 6, 4, 0.14);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(154, 132, 87, 0.12), rgba(255, 253, 247, 0.88)),
    #fffdf8;
  box-shadow: 0 12px 28px rgba(7, 6, 4, 0.06);
}

.promo-ribbon strong {
  display: block;
  font-size: 15px;
}

.promo-ribbon p {
  margin: 8px 0 0;
  color: #6b6254;
  font-size: 14px;
  line-height: 1.45;
}

.assistant-widget {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  width: min(380px, calc(100vw - 36px));
  font-family: "TT Common Pro", "TT Commons Pro", "Avenir Next", "Segoe UI", sans-serif;
}

body.age-pending .assistant-widget,
body.age-denied .assistant-widget,
body.app-splash-active .assistant-widget,
body.app-age-pending .assistant-widget,
body.app-age-denied .assistant-widget,
body.app-product-open .assistant-widget-app {
  display: none;
}

.assistant-widget-site {
  bottom: 20px;
  text-align: right;
}

.assistant-widget-site .assistant-panel {
  text-align: left;
}

.assistant-widget-app {
  right: auto;
  left: 50%;
  bottom: calc(96px + var(--app-safe-bottom, env(safe-area-inset-bottom)));
  transform: translateX(-50%);
  width: calc(100vw - 36px);
  max-width: 390px;
}

.assistant-widget-app.is-open {
  top: 184px !important;
  bottom: 136px !important;
}

.assistant-toggle {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(7, 6, 4, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 250, 240, 0.96);
  box-shadow: 0 16px 40px rgba(7, 6, 4, 0.12);
  color: #34280d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(18px);
}

.assistant-toggle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4a380f;
  box-shadow: 0 0 0 6px rgba(154, 132, 87, 0.18);
}

.assistant-panel {
  overflow: hidden;
  min-width: 0;
  margin-top: 12px;
  border: 1px solid rgba(7, 6, 4, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(244, 237, 220, 0.96)),
    #fffdf8;
  box-shadow: 0 22px 60px rgba(7, 6, 4, 0.16);
  backdrop-filter: blur(20px);
}

.assistant-widget-app .assistant-panel {
  display: flex;
  max-height: min(640px, calc(100dvh - 224px));
  flex-direction: column;
}

.assistant-panel[hidden],
.assistant-widget-app .assistant-panel[hidden],
.assistant-toggle[hidden] {
  display: none !important;
}

.assistant-widget-app.is-open .assistant-panel {
  height: 100%;
  max-height: none;
  margin-top: 0;
}

.assistant-widget-app.is-open .assistant-toggle {
  display: none;
}

.assistant-head {
  display: flex;
  flex: 0 0 auto;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 10px;
  background: rgba(255, 250, 240, 0.8);
  backdrop-filter: blur(16px);
}

.assistant-head > div {
  min-width: 0;
}

.assistant-kicker {
  margin: 0 0 8px;
  color: #b58a20;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.assistant-head h2 {
  margin: 0;
  font-family: "TT Common Pro", "TT Commons Pro", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 0.98;
  overflow-wrap: anywhere;
}

.assistant-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(7, 6, 4, 0.14);
  border-radius: 999px;
  background: #fffdfa;
  color: #34280d;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.assistant-promos {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  padding: 0 16px 12px;
}

.assistant-promo-card {
  border: 1px solid rgba(7, 6, 4, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 253, 247, 0.76);
}

.assistant-promo-card strong {
  display: block;
  font-size: 14px;
}

.assistant-promo-card p {
  margin: 6px 0 0;
  color: #6b6254;
  font-size: 13px;
  line-height: 1.4;
}

.assistant-messages {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 0;
  max-height: 240px;
  overflow: auto;
  padding: 0 16px 12px;
}

.assistant-widget-app .assistant-messages {
  max-height: none;
}

.assistant-message {
  max-width: 92%;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.assistant-message-assistant {
  background: rgba(154, 132, 87, 0.14);
  color: #34280d;
}

.assistant-message-user {
  justify-self: end;
  background: #4a380f;
  color: #fffdfa;
}

.assistant-quick {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 16px 12px;
  scrollbar-width: none;
}

.assistant-quick::-webkit-scrollbar,
.assistant-messages::-webkit-scrollbar {
  display: none;
}

.assistant-chip {
  flex: 0 0 auto;
  max-width: min(260px, 72vw);
  min-height: 38px;
  border: 1px solid rgba(7, 6, 4, 0.14);
  border-radius: 999px;
  padding: 0 12px;
  background: #fffdfa;
  color: #34280d;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-form {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 0 16px 16px;
  background: rgba(255, 250, 240, 0.82);
  backdrop-filter: blur(16px);
}

.assistant-input {
  min-width: 0;
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(7, 6, 4, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  background: #fffdfa;
  color: #34280d;
  font-size: 15px;
}

.assistant-send {
  min-width: 112px;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: #4a380f;
  color: #fffdfa;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.assistant-hide {
  min-width: 86px;
  min-height: 50px;
  border: 1px solid rgba(7, 6, 4, 0.14);
  border-radius: 8px;
  padding: 0 14px;
  background: #fffdfa;
  color: #34280d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .promo-ribbon {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .promo-ribbon {
    gap: 10px;
    margin-bottom: 14px;
  }

  .assistant-widget-site {
    right: 14px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    width: auto;
    max-width: calc(100vw - 28px);
  }

  .assistant-widget-app {
    top: auto;
    bottom: calc(92px + var(--app-safe-bottom, env(safe-area-inset-bottom)));
    width: calc(100vw - 36px);
    max-width: 390px;
  }

  .assistant-widget-app.is-open {
    top: 184px !important;
    bottom: 136px !important;
  }

  .assistant-widget-site .assistant-toggle {
    width: auto;
    max-width: min(220px, calc(100vw - 28px));
    min-height: 48px;
    justify-content: flex-start;
    margin-left: auto;
    padding: 0 16px;
  }

  .assistant-widget-site .assistant-toggle-label {
    display: block;
    max-width: 144px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .assistant-widget-site .assistant-panel {
    width: min(360px, calc(100vw - 28px));
    margin-left: auto;
  }

  .assistant-widget-app .assistant-toggle {
    width: 100%;
    justify-content: center;
  }

  .assistant-head h2 {
    font-size: 22px;
  }

  .assistant-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .assistant-input {
    grid-column: 1 / -1;
  }

  .assistant-send {
    min-width: 0;
    width: 100%;
  }

  .assistant-hide {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 390px) {
  .assistant-widget-app {
    width: calc(100vw - 28px);
  }

  .assistant-head,
  .assistant-promos,
  .assistant-messages,
  .assistant-quick {
    padding-right: 12px;
    padding-left: 12px;
  }

  .assistant-head h2 {
    font-size: 21px;
  }
}

@media (min-width: 431px) {
  .assistant-widget-app.is-open {
    top: 184px !important;
  }
}

@media (max-height: 740px) {
  .assistant-widget-app.is-open {
    top: 168px !important;
    bottom: 118px !important;
  }

  .assistant-head {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .assistant-head h2 {
    font-size: 22px;
  }
}

@media (max-width: 460px) {
  .assistant-widget-site {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .assistant-widget-site .assistant-toggle {
    max-width: min(182px, calc(100vw - 28px));
    padding: 0 14px;
  }

  .assistant-widget-site .assistant-toggle-label {
    max-width: 112px;
    font-size: 13px;
  }
}

body[data-language="en"] .assistant-head h2 {
  font-weight: 400;
}

body[data-language="en"] :where(
  .promo-ribbon strong,
  .assistant-toggle,
  .assistant-kicker,
  .assistant-promo-card strong,
  .assistant-chip,
  .assistant-send,
  .assistant-hide
) {
  font-weight: 500;
}
