

/* Magical Art: compact checkout skin. Behaviour remains owned by Tilda ST100. */
.t706__cartwin {
  color: #132238;
  font-family: Montserrat, Arial, sans-serif;
}

.t706__cartwin-content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  opacity: 1 !important;
  width: min(780px, calc(100vw - 40px)) !important;
  max-width: 780px !important;
  margin: 24px auto !important;
  padding: 34px 38px 38px !important;
  border-radius: 24px !important;
  background: #fff !important;
  box-shadow: 0 24px 70px rgba(19, 34, 56, .16) !important;
  box-sizing: border-box;
}

.ma-cart-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 9999;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f8fafc;
  color: #132238;
  font: 400 31px/38px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(19, 34, 56, .08);
  transition: background-color .2s ease, transform .2s ease;
}

.ma-cart-close:hover {
  background: #eef2f6;
  transform: scale(1.04);
}

.t706__cartwin-heading {
  margin: 0 52px 22px 0 !important;
  color: #132238 !important;
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -.02em;
}

.t706__cartwin .t706__cartwin-close,
.t706__cartwin .t706__cartwin-close-wrapper {
  display: none !important;
}

.t706__cartwin-products {
  margin: 0 !important;
}

.t706__product {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) auto auto 22px;
  align-items: center !important;
  gap: 16px !important;
  min-height: 0 !important;
  margin: 0 0 12px !important;
  padding: 14px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-sizing: border-box;
}

.t706__cartwin .t706__product {
  height: auto !important;
}

.t706__product-thumb {
  width: 76px !important;
  height: 76px !important;
  padding: 0 !important;
}

.t706__product-imgdiv,
.t706__product-img {
  width: 76px !important;
  height: 76px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  object-fit: cover;
}

.t706__product-title {
  min-width: 0;
  padding: 0 !important;
  color: #132238 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
}

.t706__product-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.t706__product-plusminus {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  padding: 0 !important;
  white-space: nowrap;
}

.t706__product-minus,
.t706__product-plus {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 50% !important;
  background: #f8fafc !important;
  color: #132238 !important;
  line-height: 28px !important;
  transition: border-color .2s ease, background-color .2s ease;
}

.t706__product-minus:hover,
.t706__product-plus:hover {
  border-color: #005bff !important;
  background: #eef4ff !important;
}

.t706__product-quantity {
  min-width: 22px;
  padding: 0 !important;
  color: #132238 !important;
  font-size: 14px !important;
  line-height: 30px !important;
  text-align: center;
}

.t706__product-amount {
  padding: 0 !important;
  color: #132238 !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.t706__product-del {
  opacity: .55;
  transition: opacity .2s ease;
}

.t706__product-del:hover {
  opacity: 1;
}

.t706__product-del-wrapper {
  display: flex !important;
  grid-column: 5;
  align-items: center !important;
  justify-content: center;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  vertical-align: middle !important;
}

.t706__cartwin-bottom {
  margin: 18px 0 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #f8fafc !important;
}

.t706__cartwin-prodamount-wrap,
.t706__cartwin-prodamount {
  color: #132238 !important;
  font-size: 18px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.t706__orderform {
  margin-top: 22px !important;
}

.t706__orderform .t-form__inputsbox {
  display: grid;
  gap: 14px;
}

.t706__orderform .t-input-group {
  margin: 0 !important;
  padding: 0 !important;
}

.t706__orderform .t-input-title,
.t706__orderform .t-input-subtitle {
  margin: 0 0 7px !important;
  color: #667085 !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}

.t706__orderform .t-input,
.t706__orderform .t-input-block input,
.t706__orderform .t-input-block textarea,
.t706__orderform .t-input-block select {
  width: 100% !important;
  height: 50px !important;
  padding: 0 15px !important;
  border: 1px solid #dfe3e8 !important;
  border-radius: 11px !important;
  outline: none !important;
  background: #fff !important;
  color: #132238 !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 48px !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.t706__orderform .t-input-block textarea {
  min-height: 96px !important;
  height: auto !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  line-height: 1.45 !important;
  resize: vertical;
}

.t706__orderform .t-input:focus,
.t706__orderform .t-input-block input:focus,
.t706__orderform .t-input-block textarea:focus,
.t706__orderform .t-input-block select:focus {
  border-color: #005bff !important;
  box-shadow: 0 0 0 3px rgba(0, 91, 255, .10) !important;
}

.t706__orderform input::placeholder,
.t706__orderform textarea::placeholder {
  color: #98a2b3 !important;
  opacity: 1;
}

.t706__orderform .t-select__wrapper:after {
  right: 16px !important;
}

.t706__orderform .t-form__errorbox-middle,
.t706__orderform .t-form__successbox {
  margin: 4px 0 0 !important;
  border-radius: 11px !important;
}

.t706__orderform .t-form__submit {
  margin-top: 4px !important;
}

.t706__orderform .t-submit {
  width: 100% !important;
  min-height: 54px !important;
  padding: 14px 22px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #132238 !important;
  color: #fff !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 20px rgba(19, 34, 56, .14) !important;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.t706__orderform .t-submit:hover {
  background: #005bff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 91, 255, .20) !important;
}

/* Ozon Delivery visually belongs to the same checkout, without changing its JS. */
.ma-ozon {
  margin: 2px 0 0;
  padding: 18px;
  border: 1px solid #dce7ff;
  border-radius: 14px;
  background: #f8fafc;
  color: #132238;
  font-family: Montserrat, Arial, sans-serif;
}

.ma-ozon-title {
  margin-bottom: 8px;
  color: #132238;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}

.ma-ozon-status {
  margin: 7px 0 12px;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.ma-ozon-status--error { color: #a32222; }
.ma-ozon-status--warning { color: #8a5b00; }
.ma-ozon-status--success { color: #176b3a; }
.ma-ozon-status--loading { color: #005bff; }

.ma-ozon-primary,
.ma-ozon-point {
  cursor: pointer;
  font-family: Montserrat, Arial, sans-serif;
}

.ma-ozon-primary {
  min-height: 46px;
  padding: 11px 16px;
  border: 0;
  border-radius: 11px;
  background: #005bff;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}

.ma-ozon-primary:hover {
  background: #004ad1;
  transform: translateY(-1px);
}

.ma-ozon-primary:disabled,
.ma-ozon-point:disabled {
  opacity: .55;
  cursor: wait;
}

.ma-ozon-help {
  margin: 14px 0 8px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.ma-ozon-address {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}

.ma-ozon-address-input {
  flex: 1;
  min-width: 0;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  border: 1px solid #dfe3e8;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #132238;
  font: 14px Montserrat, Arial, sans-serif;
  box-sizing: border-box;
}

.ma-ozon-address-input:focus {
  border-color: #005bff;
  box-shadow: 0 0 0 3px rgba(0, 91, 255, .10);
}

.ma-ozon-address-button {
  height: 46px;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  background: #005bff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}

.ma-ozon-suggest {
  max-height: 300px;
  margin: -4px 0 10px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(19, 34, 56, .12);
}

.ma-ozon-suggest[hidden] { display: none; }

.ma-ozon-suggest-item {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 4px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
  color: #132238;
  text-align: left;
  cursor: pointer;
}

.ma-ozon-suggest-item:last-child { border-bottom: 0; }
.ma-ozon-suggest-item:hover { background: #f2f7ff; }
.ma-ozon-suggest-item strong { font-size: 14px; }

.ma-ozon-suggest-item span,
.ma-ozon-suggest-empty {
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.ma-ozon-suggest-empty { padding: 12px 13px; }

.ma-ozon-map {
  height: 320px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #edf2f7;
}

.ma-ozon-points {
  display: grid;
  gap: 8px;
  max-height: 260px;
  margin-top: 10px;
  overflow: auto;
}

.ma-ozon-point {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 11px;
  background: #fff;
  color: #132238;
  text-align: left;
}

.ma-ozon-point:hover {
  border-color: #005bff;
  background: #f8fbff;
}

.ma-ozon-point span { font-size: 13px; }

.ma-ozon-choose {
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: #005bff;
  color: #fff;
  font: 700 14px Montserrat, Arial, sans-serif;
  cursor: pointer;
}

.ma-ozon-choose:hover { background: #004ad1; }
.ma-ozon-choose:disabled { opacity: .55; cursor: wait; }

.ma-ozon-point.is-selected {
  border: 2px solid #005bff;
  background: #f8fbff;
  box-shadow: 0 0 0 2px rgba(0, 91, 255, .08);
}

.ma-ozon-choose.is-selected,
.ma-ozon-choose.is-selected:hover {
  min-width: 72px;
  padding: 12px 18px;
  background: #005bff;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: default;
}

.ma-ozon-choose.is-selected:disabled { opacity: 1; }

.ma-ozon-selection {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  color: #132238;
  white-space: pre-wrap;
  font: 13px/1.5 Montserrat, Arial, sans-serif;
}

.ma-ozon-empty {
  padding: 10px;
  color: #667085;
  font-size: 13px;
}

.ma-ozon-count {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  font-weight: 700;
}

.ma-ozon-picker[hidden] { display: none; }

@media (max-width: 640px) {
  .t706__cartwin {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  .t706__cartwin-content {
    width: calc(100vw - 16px) !important;
    margin: 8px auto !important;
    padding: 24px 16px 26px !important;
    border-radius: 18px !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  .t706__cartwin-heading {
    margin: 0 46px 18px 0 !important;
    font-size: 23px !important;
  }

  .ma-cart-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    font-size: 29px;
    line-height: 34px;
  }

  .t706__product {
    grid-template-columns: 64px minmax(0, 1fr) auto 22px !important;
    grid-template-rows: auto auto;
    gap: 10px !important;
    padding: 12px !important;
  }

  .t706__cartwin .t706__product {
    min-height: 116px !important;
  }

  .t706__product-thumb,
  .t706__product-imgdiv,
  .t706__product-img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 10px !important;
  }

  .t706__product-thumb {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .t706__product-title {
    font-size: 14px !important;
  }

  .t706__product-plusminus {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .t706__product-amount {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 14px !important;
  }

  .t706__product-del-wrapper {
    grid-column: 4;
    grid-row: 1 / span 2;
  }

  .t706__product-minus,
  .t706__product-plus {
    width: 28px !important;
    height: 28px !important;
    line-height: 26px !important;
  }

  .t706__cartwin-bottom {
    margin-top: 14px !important;
    padding: 14px !important;
  }

  .t706__orderform {
    margin-top: 18px !important;
  }

  .t706__orderform .t-input,
  .t706__orderform .t-input-block input,
  .t706__orderform .t-input-block select {
    height: 48px !important;
    font-size: 16px !important;
    line-height: 46px !important;
  }

  .ma-ozon {
    padding: 14px;
    border-radius: 12px;
  }

  .ma-ozon-map { height: 270px; }
  .ma-ozon-primary { width: 100%; }

  .ma-ozon-address {
    flex-direction: column;
  }

  .ma-ozon-address-button { width: 100%; }
}

/* Future AI chat trigger: deliberately independent from the checkout widget. */
.ma-ai-flame-trigger {
  --ma-ai-flame-tilt: 0deg;
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 9998;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(238, 231, 216, .20);
  border-radius: 50%;
  background: rgba(20, 20, 19, .96);
  color: #e9dfce;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .24);
  -webkit-tap-highlight-color: transparent;
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), border-radius .38s cubic-bezier(.22, 1, .36, 1), border-color .28s ease, background-color .28s ease;
}

.ma-ai-flame-trigger::after {
  position: absolute;
  inset: 8px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(225, 208, 177, .10) 0%, rgba(225, 208, 177, 0) 68%);
  content: '';
  pointer-events: none;
  animation: ma-ai-flame-micro-pulse 10.4s ease-in-out infinite;
}

.ma-ai-flame-trigger__glow {
  position: absolute;
  z-index: -1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 219, 187, .22) 0%, rgba(209, 181, 135, .07) 40%, rgba(209, 181, 135, 0) 72%);
  pointer-events: none;
  animation: ma-ai-flame-glow 4.7s ease-in-out infinite alternate;
}

.ma-ai-flame-trigger__svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 36px;
  overflow: visible;
  transition: transform .42s cubic-bezier(.22, 1, .36, 1);
}

.ma-ai-flame-trigger__outer,
.ma-ai-flame-trigger__core {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.ma-ai-flame-trigger__outer {
  fill: #d9c9ad;
  opacity: .92;
  animation: ma-ai-flame-outer 4.1s ease-in-out infinite alternate;
}

.ma-ai-flame-trigger__core {
  fill: #f1e9da;
  opacity: .88;
  animation: ma-ai-flame-core 2.7s ease-in-out infinite alternate;
}

.ma-ai-flame-trigger__tooltip {
  position: absolute;
  right: calc(100% + 13px);
  top: 50%;
  width: max-content;
  max-width: 190px;
  padding: 9px 12px;
  border: 1px solid rgba(238, 231, 216, .14);
  border-radius: 9px;
  background: rgba(22, 22, 21, .94);
  color: rgba(255, 255, 255, .88);
  font: 500 13px/1.25 Montserrat, Arial, sans-serif;
  letter-spacing: .01em;
  opacity: 0;
  pointer-events: none;
  transform: translate(5px, -50%);
  transition: opacity .24s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
  white-space: nowrap;
}

.ma-ai-flame-trigger__tooltip::after {
  position: absolute;
  right: -5px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(238, 231, 216, .14);
  border-top: 1px solid rgba(238, 231, 216, .14);
  background: rgba(22, 22, 21, .94);
  content: '';
  transform: translateY(-50%) rotate(45deg);
}

.ma-ai-flame-trigger:hover {
  border-color: rgba(241, 233, 218, .32);
  background: rgba(26, 26, 24, .98);
  transform: scale(1.05);
}

.ma-ai-flame-trigger:hover .ma-ai-flame-trigger__svg {
  transform: translateY(-2px) rotate(var(--ma-ai-flame-tilt)) scaleY(1.08);
}

.ma-ai-flame-trigger:hover .ma-ai-flame-trigger__glow { opacity: 1; transform: scale(1.12); }
.ma-ai-flame-trigger:hover .ma-ai-flame-trigger__tooltip { opacity: 1; transform: translate(0, -50%); }

.ma-ai-flame-trigger:focus-visible {
  outline: 2px solid rgba(241, 233, 218, .72);
  outline-offset: 4px;
}

.ma-ai-flame-trigger.is-shell-open {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px) scale(1.08);
}

.ma-ai-chat-shell {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 9998;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 1px solid rgba(238, 231, 216, .20);
  border-radius: 50%;
  background: rgba(20, 20, 19, .97);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .30);
  color: rgba(255, 255, 255, .91);
  opacity: 0;
  pointer-events: none;
  transform-origin: 100% 100%;
  visibility: hidden;
  transition: width .5s cubic-bezier(.22, 1, .36, 1), height .5s cubic-bezier(.22, 1, .36, 1), border-radius .46s cubic-bezier(.22, 1, .36, 1), opacity .18s ease, border-color .28s ease;
}

.ma-ai-chat-shell.is-visible { visibility: visible; }

.ma-ai-chat-shell.is-open {
  width: 380px;
  height: 540px;
  border-color: rgba(241, 233, 218, .20);
  border-radius: 22px;
  opacity: 1;
  pointer-events: auto;
}

.ma-ai-chat-shell.is-closing { pointer-events: none; }

.ma-ai-chat-shell__glow {
  position: absolute;
  left: 11px;
  top: 9px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 219, 187, .18) 0%, rgba(209, 181, 135, .05) 47%, rgba(209, 181, 135, 0) 73%);
  opacity: .74;
  pointer-events: none;
  transition: left .5s cubic-bezier(.22, 1, .36, 1), top .5s cubic-bezier(.22, 1, .36, 1), transform .5s cubic-bezier(.22, 1, .36, 1), opacity .32s ease;
}

.ma-ai-chat-shell__flame {
  position: absolute;
  left: 15px;
  top: 12px;
  z-index: 2;
  display: block;
  width: 30px;
  height: 36px;
  transition: left .5s cubic-bezier(.22, 1, .36, 1), top .5s cubic-bezier(.22, 1, .36, 1), width .5s cubic-bezier(.22, 1, .36, 1), height .5s cubic-bezier(.22, 1, .36, 1);
}

.ma-ai-chat-shell__flame .ma-ai-flame-trigger__svg {
  width: 100%;
  height: 100%;
}

.ma-ai-chat-shell__header {
  position: relative;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 0 56px;
  border-bottom: 1px solid rgba(238, 231, 216, .11);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .22s ease .16s, transform .28s cubic-bezier(.22, 1, .36, 1) .16s;
}

.ma-ai-chat-shell__identity { display: grid; gap: 2px; }
.ma-ai-chat-shell__identity span { color: #f1e9da; font: 500 15px/1.1 Montserrat, Arial, sans-serif; letter-spacing: .01em; }
.ma-ai-chat-shell__identity small { color: rgba(235, 231, 221, .54); font: 400 11px/1.2 Montserrat, Arial, sans-serif; }

.ma-ai-chat-shell__close {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(238, 231, 216, .12);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .80);
  cursor: pointer;
  font: 300 25px/1 Arial, sans-serif;
  opacity: 0;
  transform: scale(.88);
  transition: opacity .22s ease .2s, transform .28s cubic-bezier(.22, 1, .36, 1) .2s, background-color .2s ease;
}

.ma-ai-chat-shell__close:hover { background: rgba(255, 255, 255, .07); }
.ma-ai-chat-shell__close:focus-visible { outline: 2px solid rgba(241, 233, 218, .72); outline-offset: 3px; }

.ma-ai-chat-shell__body {
  display: flex;
  height: calc(100% - 73px);
  min-height: calc(100% - 73px);
  flex-direction: column;
  justify-content: space-between;
  padding: 23px 18px 16px;
  box-sizing: border-box;
}

.ma-ai-welcome__title {
  max-width: 300px;
  margin: 0;
  color: #f3ede2;
  font: 500 22px/1.22 Montserrat, Arial, sans-serif;
  letter-spacing: -.025em;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .28s ease .22s, transform .34s cubic-bezier(.22, 1, .36, 1) .22s;
}

.ma-ai-welcome__subtitle {
  margin: 11px 0 0;
  color: rgba(235, 231, 221, .65);
  font: 400 13px/1.52 Montserrat, Arial, sans-serif;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .28s ease .28s, transform .34s cubic-bezier(.22, 1, .36, 1) .28s;
}

.ma-ai-welcome {
  max-height: 390px;
  overflow: hidden;
  transition: max-height .28s ease, opacity .2s ease, transform .24s ease;
}

.ma-ai-welcome__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 21px;
}

.ma-ai-welcome__action {
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid rgba(238, 231, 216, .13);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
  color: rgba(247, 243, 236, .86);
  cursor: pointer;
  font: 500 12px/1.25 Montserrat, Arial, sans-serif;
  text-align: left;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .26s ease, transform .32s cubic-bezier(.22, 1, .36, 1), border-color .2s ease, background-color .2s ease;
}

.ma-ai-welcome__action:hover {
  border-color: rgba(238, 231, 216, .26);
  background: rgba(238, 231, 216, .055);
}

.ma-ai-welcome__action:focus-visible,
.ma-ai-reading-action:focus-visible {
  outline: 2px solid rgba(241, 233, 218, .72);
  outline-offset: 3px;
}

.ma-ai-reading-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  margin-top: 15px;
  padding: 7px 2px;
  border: 0;
  border-bottom: 1px solid rgba(238, 231, 216, .24);
  background: transparent;
  color: rgba(229, 216, 192, .82);
  cursor: pointer;
  font: 500 12px/1.2 Montserrat, Arial, sans-serif;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .26s ease .61s, transform .32s cubic-bezier(.22, 1, .36, 1) .61s, border-color .2s ease, color .2s ease;
}

.ma-ai-reading-action:hover,
.ma-ai-reading-action.is-selected {
  border-color: rgba(238, 231, 216, .45);
  color: #f1e9da;
}

.ma-ai-reading-action svg { width: 13px; height: 16px; fill: #d9c9ad; }
.ma-ai-reading-action svg path:last-child { fill: #f1e9da; }

.ma-ai-reading-note {
  margin: 8px 0 0;
  color: rgba(235, 231, 221, .56);
  font: 400 11px/1.4 Montserrat, Arial, sans-serif;
}

.ma-ai-composer {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px 0 14px;
  border: 1px solid rgba(238, 231, 216, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  color: rgba(235, 231, 221, .44);
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .28s ease .68s, transform .34s cubic-bezier(.22, 1, .36, 1) .68s;
}

.ma-ai-composer:focus-within { border-color: rgba(238, 231, 216, .32); }
.ma-ai-composer__input {
  display: block;
  width: 100%;
  min-height: 20px;
  max-height: 92px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: rgba(247, 243, 236, .91);
  font: 400 12px/1.4 Montserrat, Arial, sans-serif;
}

.ma-ai-composer__input::placeholder { color: rgba(235, 231, 221, .44); opacity: 1; }
.ma-ai-composer__send {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(225, 208, 177, .11);
  color: rgba(241, 233, 218, .72);
  cursor: pointer;
  font: 400 18px/1 Arial, sans-serif;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
}

.ma-ai-composer__send:not(:disabled):hover { background: rgba(225, 208, 177, .20); transform: translateY(-1px); }
.ma-ai-composer__send:disabled { cursor: default; opacity: .36; }
.ma-ai-composer__send:focus-visible { outline: 2px solid rgba(241, 233, 218, .72); outline-offset: 3px; }

.ma-ai-conversation {
  display: flex;
  min-height: 0;
  max-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 11px;
  overflow-x: hidden;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  scrollbar-color: rgba(238, 231, 216, .22) transparent;
  scrollbar-width: thin;
  transition: opacity .2s ease .08s, max-height .26s ease;
}

.ma-ai-conversation::-webkit-scrollbar { width: 4px; }
.ma-ai-conversation::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(238, 231, 216, .22); }

.ma-ai-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 13px;
  font: 400 13px/1.5 Montserrat, Arial, sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ma-ai-message p { margin: 0; }
.ma-ai-message--user {
  align-self: flex-end;
  border: 1px solid rgba(238, 231, 216, .12);
  border-bottom-right-radius: 4px;
  background: rgba(238, 231, 216, .09);
  color: rgba(255, 255, 255, .91);
}

.ma-ai-message--assistant {
  align-self: flex-start;
  padding-left: 1px;
  border-radius: 0;
  background: transparent;
  color: rgba(245, 241, 234, .84);
}

.ma-ai-message--assistant.is-error { color: rgba(235, 224, 204, .72); }

.ma-ai-product-list { display: grid; gap: 8px; margin-top: 11px; }
.ma-ai-product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 12px;
  padding: 12px;
  border: 1px solid rgba(238, 231, 216, .16);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018));
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.ma-ai-product-card:hover { border-color: rgba(238, 231, 216, .29); background: rgba(255, 255, 255, .055); transform: translateY(-1px); }
.ma-ai-product-card__details { display: grid; min-width: 0; gap: 5px; }
.ma-ai-product-card strong { color: #f1e9da; font: 500 12px/1.38 Montserrat, Arial, sans-serif; overflow-wrap: anywhere; }
.ma-ai-product-card p { margin: 0; color: rgba(235, 231, 221, .60); font: 400 11px/1.42 Montserrat, Arial, sans-serif; overflow-wrap: anywhere; }
.ma-ai-product-card__price { color: rgba(241, 233, 218, .82); font: 500 11px/1.3 Montserrat, Arial, sans-serif; }
.ma-ai-product-card__image { grid-row: span 2; width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.ma-ai-product-card.has-image { grid-template-columns: 46px minmax(0, 1fr) auto; }
.ma-ai-product-card a {
  align-self: end;
  width: fit-content;
  padding: 6px 0;
  color: rgba(229, 216, 192, .90);
  font: 500 11px/1.2 Montserrat, Arial, sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(238, 231, 216, .35);
  transition: color .2s ease, border-color .2s ease;
}
.ma-ai-product-card a:hover { color: #f1e9da; border-color: rgba(241, 233, 218, .74); }
.ma-ai-product-card a:focus-visible { outline: 2px solid rgba(241, 233, 218, .72); outline-offset: 3px; }

.ma-ai-typing {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 6px 1px;
}

.ma-ai-typing__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 16px;
}

.ma-ai-typing__dots i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(235, 231, 221, .72);
  animation: ma-ai-typing-dot 1.15s ease-in-out infinite;
}

.ma-ai-typing__dots i:nth-child(2) { animation-delay: .14s; }
.ma-ai-typing__dots i:nth-child(3) { animation-delay: .28s; }

.ma-ai-chat-shell.has-conversation .ma-ai-welcome {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px);
}

.ma-ai-chat-shell.has-conversation .ma-ai-conversation {
  max-height: 100%;
  margin-bottom: 12px;
  opacity: 1;
  pointer-events: auto;
}

.ma-ai-chat-shell.is-open .ma-ai-chat-shell__glow { left: 10px; top: 8px; opacity: .94; transform: scale(1.16); }
.ma-ai-chat-shell.is-open .ma-ai-chat-shell__flame { left: 17px; top: 17px; width: 22px; height: 27px; }
.ma-ai-chat-shell.is-open .ma-ai-chat-shell__header,
.ma-ai-chat-shell.is-open .ma-ai-chat-shell__close { opacity: 1; transform: translateY(0) scale(1); }
.ma-ai-chat-shell.is-open .ma-ai-welcome__title,
.ma-ai-chat-shell.is-open .ma-ai-welcome__subtitle,
.ma-ai-chat-shell.is-open .ma-ai-welcome__action,
.ma-ai-chat-shell.is-open .ma-ai-reading-action,
.ma-ai-chat-shell.is-open .ma-ai-composer { opacity: 1; transform: translateY(0); }
.ma-ai-chat-shell.is-open .ma-ai-welcome__action:nth-child(1) { transition-delay: .36s; }
.ma-ai-chat-shell.is-open .ma-ai-welcome__action:nth-child(2) { transition-delay: .41s; }
.ma-ai-chat-shell.is-open .ma-ai-welcome__action:nth-child(3) { transition-delay: .46s; }
.ma-ai-chat-shell.is-open .ma-ai-welcome__action:nth-child(4) { transition-delay: .51s; }
.ma-ai-chat-shell.is-open .ma-ai-welcome__action:nth-child(5) { transition-delay: .56s; }
.ma-ai-chat-shell.is-open .ma-ai-welcome__action:nth-child(6) { transition-delay: .61s; }

@keyframes ma-ai-typing-dot {
  0%, 60%, 100% { opacity: .32; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

@keyframes ma-ai-flame-outer {
  0% { transform: translateY(1px) rotate(-2deg) scaleX(.97) scaleY(.98); }
  55% { transform: translateY(-1px) rotate(1.8deg) scaleX(1.025) scaleY(1.04); }
  100% { transform: translateY(0) rotate(-.8deg) scaleX(.99) scaleY(1.01); }
}

@keyframes ma-ai-flame-core {
  0% { transform: translateY(2px) rotate(1.4deg) scale(.94); }
  65% { transform: translateY(-1px) rotate(-1deg) scale(1.035, 1.08); }
  100% { transform: translateY(1px) rotate(.4deg) scale(.98); }
}

@keyframes ma-ai-flame-glow {
  0% { opacity: .58; transform: scale(.92); }
  100% { opacity: .82; transform: scale(1.07); }
}

@keyframes ma-ai-flame-micro-pulse {
  0%, 82%, 100% { opacity: .42; transform: scale(.96); }
  89% { opacity: .72; transform: scale(1.16); }
}

@media (max-width: 640px) {
  .ma-ai-flame-trigger {
    right: 20px;
    bottom: 20px;
    width: 52px;
    height: 52px;
  }

  .ma-ai-flame-trigger__svg { width: 27px; height: 33px; }
  .ma-ai-flame-trigger__tooltip { display: none; }

  .ma-ai-chat-shell {
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .ma-ai-chat-shell.is-open {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    height: min(72vh, 540px);
    border-radius: 20px;
  }

  .ma-ai-chat-shell__body { padding: 18px 14px 12px; }
  .ma-ai-welcome__title { font-size: 20px; }
  .ma-ai-welcome__subtitle { margin-top: 8px; font-size: 12px; }
  .ma-ai-welcome__actions { gap: 7px; margin-top: 16px; }
  .ma-ai-welcome__action { min-height: 40px; padding: 7px 9px; font-size: 11.5px; }
  .ma-ai-reading-action { min-height: 34px; margin-top: 10px; }
  .ma-ai-composer { min-height: 48px; }
  .ma-ai-product-card { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ma-ai-product-card.has-image { grid-template-columns: 42px minmax(0, 1fr); }
  .ma-ai-product-card__image { grid-row: span 1; width: 42px; height: 42px; }
  .ma-ai-product-card a { justify-self: start; }
  .ma-ai-product-card.has-image a { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .ma-ai-flame-trigger,
  .ma-ai-flame-trigger__svg,
  .ma-ai-flame-trigger__tooltip,
  .ma-ai-chat-shell,
  .ma-ai-chat-shell__flame,
  .ma-ai-chat-shell__glow,
  .ma-ai-chat-shell__header,
  .ma-ai-chat-shell__close,
  .ma-ai-welcome__title,
  .ma-ai-welcome__subtitle,
  .ma-ai-welcome__action,
  .ma-ai-reading-action,
  .ma-ai-composer { transition-duration: .16s; transition-delay: 0s !important; }

  .ma-ai-flame-trigger::after,
  .ma-ai-flame-trigger__glow,
  .ma-ai-flame-trigger__outer,
  .ma-ai-flame-trigger__core,
  .ma-ai-typing__dots i { animation: none; }

  .ma-ai-chat-shell { transition-property: opacity, transform; transform: scale(.97); }
  .ma-ai-chat-shell.is-open { transform: scale(1); }
}

/* Original witch artwork on a transparent background, independent of the flame. */
.ma-ai-witch-trigger {
  position: fixed;
  /* The artwork is wider than its click target; keep its transparent edges inside the viewport. */
  right: 26px;
  bottom: 24px;
  z-index: 9997;
  display: block;
  width: 130px;
  height: 180px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: auto;
  transform-origin: 50% 100%;
  will-change: transform;
  /* The first animation introduces the assistant; the second remains active afterwards. */
  animation: ma-ai-witch-arrive .62s cubic-bezier(.22, 1, .36, 1) both, ma-ai-witch-idle 3.8s ease-in-out .72s infinite;
}

.ma-ai-witch-trigger__image {
  position: absolute;
  left: 50%;
  top: 0;
  display: block;
  width: 180px;
  height: 180px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1);
}

.ma-ai-witch-trigger__hint {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 5px 7px;
  border-radius: 9px;
  background: rgba(31, 25, 31, .86);
  color: #fff6e9;
  font: 600 9px/1 Montserrat, Arial, sans-serif;
  letter-spacing: .01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}

.ma-ai-witch-trigger:hover,
.ma-ai-witch-trigger:focus-visible {
  border: 0;
  background: transparent;
}
.ma-ai-witch-trigger:hover .ma-ai-witch-trigger__image,
.ma-ai-witch-trigger:focus-visible .ma-ai-witch-trigger__image {
  transform: translateX(-50%) translateY(-2px) rotate(1.2deg) scale(1.025);
}
.ma-ai-witch-trigger:hover .ma-ai-witch-trigger__hint,
.ma-ai-witch-trigger:focus-visible .ma-ai-witch-trigger__hint { opacity: 1; transform: translateY(0); }

.ma-ai-witch-greeting {
  position: fixed;
  right: 144px;
  bottom: 154px;
  z-index: 9999;
  width: min(264px, calc(100vw - 144px));
  padding: 14px 37px 13px 15px;
  border: 1px solid rgba(75, 42, 64, .16);
  border-radius: 15px;
  background: #fffaf4;
  box-shadow: 0 10px 30px rgba(39, 21, 35, .18);
  color: #352235;
  font-family: Montserrat, Arial, sans-serif;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .28s ease, transform .34s cubic-bezier(.22, 1, .36, 1);
}
.ma-ai-witch-greeting.is-visible { opacity: 1; transform: translateY(0); }
.ma-ai-witch-greeting::after {
  position: absolute;
  right: -6px;
  bottom: 20px;
  width: 12px;
  height: 12px;
  background: #fffaf4;
  content: '';
  transform: rotate(45deg);
}
.ma-ai-witch-greeting p { position: relative; z-index: 1; margin: 0 0 10px; font: 500 13px/1.42 Montserrat, Arial, sans-serif; }
.ma-ai-witch-greeting__action {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: #4a263f;
  color: #fff9ef;
  cursor: pointer;
  font: 600 12px/1.2 Montserrat, Arial, sans-serif;
}
.ma-ai-witch-greeting__close {
  position: absolute;
  right: 9px;
  top: 7px;
  z-index: 2;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(53, 34, 53, .62);
  cursor: pointer;
  font: 24px/1 Arial, sans-serif;
}
.ma-ai-witch-greeting__action:focus-visible,
.ma-ai-witch-greeting__close:focus-visible { outline: 2px solid #4a263f; outline-offset: 2px; }

.ma-ai-chat-shell__witch {
  position: absolute;
  left: -16px;
  top: -16px;
  z-index: 2;
  width: 86px;
  height: 86px;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}
.ma-ai-chat-shell__header { padding-left: 56px; }

@keyframes ma-ai-witch-arrive {
  from { opacity: 0; transform: translateY(12px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ma-ai-witch-idle {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg) scale(1); }
  30% { transform: translate3d(0, -5px, 0) rotate(.9deg) scale(1.014, .992); }
  58% { transform: translate3d(0, -2px, 0) rotate(.35deg) scale(.996, 1.01); }
  80% { transform: translate3d(0, -4px, 0) rotate(-.65deg) scale(1.008, .996); }
}

@media (max-width: 640px) {
  .ma-ai-witch-trigger { right: 29px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 110px; height: 165px; }
  .ma-ai-witch-trigger__image { width: 165px; height: 165px; top: 0; }
  .ma-ai-witch-greeting { right: 116px; bottom: calc(142px + env(safe-area-inset-bottom)); width: min(248px, calc(100vw - 136px)); }
}

@media (prefers-reduced-motion: reduce) {
  .ma-ai-witch-trigger { animation: none; will-change: auto; }
  .ma-ai-witch-trigger__image { transition: none; }
  .ma-ai-witch-greeting { transition-duration: .16s; }
}
