html.last-lot-on {
  --last-lot-bar-h: 72px;
}

html.last-lot-on body {
  padding-bottom: calc(var(--last-lot-bar-h) + env(safe-area-inset-bottom));
}

.last-lot-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  min-height: var(--last-lot-bar-h);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  color: #ffffff;
  background: linear-gradient(90deg, #1b123d 0%, #3a1a0a 55%, #5a2a08 100%);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.32);
}

.last-lot-bar__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.last-lot-bar__eyebrow {
  color: #f49e12;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.last-lot-bar__timer {
  margin: 0;
  color: #28e5ee;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  line-height: 1;
}

.last-lot-bar__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 6px;
  color: #1b123d;
  background: #f49e12;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.last-lot-bar__cta:hover,
.last-lot-bar__cta:focus-visible {
  color: #1b123d;
  background: #ffb53a;
}

.last-lot-dialog {
  position: fixed;
  inset: 0;
  width: min(calc(100% - 32px), 460px);
  height: fit-content;
  max-height: min(calc(100dvh - 32px), calc(100vh - 32px));
  margin: auto;
  padding: 28px 24px 24px;
  overflow: auto;
  border: 0;
  border-radius: 14px;
  color: #1b123d;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.last-lot-dialog:not([open]) {
  display: none;
}

.last-lot-dialog::backdrop {
  background: rgba(12, 7, 28, 0.72);
}

.last-lot-dialog__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #1b123d;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}

.last-lot-dialog__close:hover,
.last-lot-dialog__close:focus-visible {
  color: #ffffff;
  background: #5219d6;
}

.last-lot-dialog__eyebrow {
  margin: 0 0 10px;
  color: #f49e12;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.last-lot-dialog__title {
  margin: 0;
  color: #1b123d;
  font-size: clamp(22px, 4.4vw, 28px);
  font-weight: 900;
  line-height: 1.15;
  text-wrap: balance;
}

.last-lot-dialog__text {
  margin: 12px 0 0;
  color: #3a3650;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
}

.last-lot-dialog__timer {
  margin: 18px 0 0;
  color: #5219d6;
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  text-align: center;
}

.last-lot-dialog__actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.last-lot-dialog__consultor,
.last-lot-dialog__enroll {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.last-lot-dialog__consultor {
  color: #ffffff;
  background: #25d366;
}

.last-lot-dialog__consultor:hover,
.last-lot-dialog__consultor:focus-visible {
  color: #ffffff;
  background: #1ebe5d;
}

.last-lot-dialog__enroll {
  color: #ffffff;
  background: #5219d6;
}

.last-lot-dialog__enroll:hover,
.last-lot-dialog__enroll:focus-visible {
  color: #ffffff;
  background: #6b45d9;
}

html.last-lot-on .es-wa,
html.last-lot-on typebot-bubble,
html.last-lot-on typebot-standard {
  bottom: calc(var(--last-lot-bar-h) + 16px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 767px) {
  html.last-lot-on {
    --last-lot-bar-h: 118px;
  }

  .last-lot-bar {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
  }

  .last-lot-bar__copy {
    flex: 1 1 180px;
    font-size: 13px;
  }

  .last-lot-bar__timer {
    font-size: 16px;
  }

  .last-lot-bar__cta {
    flex: 1 0 100%;
    min-height: 44px;
  }
}

@media (min-width: 768px) {
  .last-lot-bar {
    padding-inline: 24px;
  }

  .last-lot-bar__copy {
    font-size: 15px;
  }

  .last-lot-bar__cta {
    min-height: 44px;
    padding-inline: 20px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .last-lot-bar,
  .last-lot-dialog {
    animation: none;
  }
}

html.last-lot-final .last-lot-bar {
  background: linear-gradient(90deg, #7a0202 0%, #a70202 55%, #c40b0b 100%);
  box-shadow: 0 -8px 28px rgba(167, 2, 2, 0.4);
}

html.last-lot-final .last-lot-bar__eyebrow {
  color: #ffe08a;
}

html.last-lot-final .last-lot-bar__timer {
  color: #ffffff;
  font-size: 22px;
}

html.last-lot-final .last-lot-bar__cta {
  color: #1b123d;
  background: #f49e12;
}

html.last-lot-final .last-lot-dialog__eyebrow {
  color: #a70202;
}

html.last-lot-final .last-lot-dialog__timer {
  color: #a70202;
}

@media (max-width: 767px) {
  html.last-lot-final .last-lot-bar__timer {
    font-size: 20px;
  }
}

@media (min-width: 768px) {
  html.last-lot-final .last-lot-bar__timer {
    font-size: 26px;
  }
}
