.ae-offer-widget {
  --offer-ink: #1A1026;
  --offer-purple: #291238;
  --offer-orange: #F3A000;
  position: fixed;
  z-index: 1100;
  right: 20px;
  bottom: 20px;
  width: 290px;
  color: #fff;
  font-family: 'Google Sans', 'Poppins', Arial, sans-serif;
  line-height: 1.35;
}
.ae-offer-widget *,
.ae-offer-widget *::before,
.ae-offer-widget *::after { box-sizing: border-box; }
.ae-offer-widget [hidden] { display: none !important; }
.ae-offer-widget[data-state="collapsed"] {
  right: 0;
  bottom: 18vh;
  width: 54px;
}
.ae-offer-widget__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 23px 22px 19px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 187, 82, .13), transparent 23%),
    linear-gradient(155deg, #32153C, #200D2B 72%);
  box-shadow: 0 12px 36px rgba(23, 10, 32, .28);
  animation: ae-offer-enter .35s ease-out both;
}
.ae-offer-widget__panel::before {
  position: absolute;
  top: 16px;
  right: 48px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FFE7BD;
  box-shadow: 0 0 24px 5px rgba(255, 199, 112, .25);
  content: "";
}
.ae-offer-widget__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 6px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  cursor: pointer;
}
.ae-offer-widget__close:hover,
.ae-offer-widget__close:focus-visible { background: rgba(255, 255, 255, .25); }
.ae-offer-widget__close:focus-visible,
.ae-offer-widget__tab:focus-visible,
.ae-offer-widget__code:focus-visible,
.ae-offer-widget__cta:focus-visible { outline: 2px solid #FFD28A; outline-offset: 3px; }
.ae-offer-widget__close svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}
.ae-offer-widget__eyebrow {
  position: relative;
  z-index: 1;
  padding-right: 38px;
  color: #FFC46F;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.7px;
}
.ae-offer-widget__title {
  position: relative;
  z-index: 1;
  margin: -5px 0 0;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
}
.ae-offer-widget__discount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--offer-ink);
}
.ae-offer-widget__discount strong {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .2px;
}
.ae-offer-widget__discount span { font-size: 10px; }
.ae-offer-widget__countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}
.ae-offer-widget__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 31px;
  color: #fff;
  text-align: center;
}
.ae-offer-widget__time > span {
  min-width: 31px;
  padding: 3px 4px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .16);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}
.ae-offer-widget__time small {
  color: #D8CBE3;
  font-size: 8px;
  font-weight: 600;
}
.ae-offer-widget__colon {
  padding-top: 3px;
  color: #E5DCEC;
  font-size: 12px;
  font-weight: 800;
}
.ae-offer-widget__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 31px;
  padding: 5px 10px;
  border: 1px dashed rgba(255, 196, 111, .62);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.ae-offer-widget__code:hover { background: rgba(255, 255, 255, .08); }
.ae-offer-widget__code-label {
  color: #CFC1DA;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}
.ae-offer-widget__code strong {
  color: #FF9D2E;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
}
.ae-offer-widget__code > svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #D8CBE3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.ae-offer-widget__copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.ae-offer-widget__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(100deg, #F5A900, #E65D00);
  color: #1C1224;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.ae-offer-widget__cta:hover {
  color: #1C1224;
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.ae-offer-widget__cta img,
.ae-offer-widget__tab img {
  display: block;
  flex: none;
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.ae-offer-widget__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 54px;
  min-height: 318px;
  padding: 12px 7px 10px;
  border: 0;
  border-radius: 15px 0 0 15px;
  background: linear-gradient(180deg, #FFBD38 0%, #E46A00 68%, #21102C 68%, #21102C 100%);
  color: #21102C;
  box-shadow: 0 8px 24px rgba(23, 10, 32, .22);
  cursor: pointer;
  animation: ae-offer-enter .3s ease-out both;
}
.ae-offer-widget__tab-label {
  flex: 1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.ae-offer-widget__tab-discount {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}
.ae-offer-widget__tab-discount small {
  font-size: 8px;
  letter-spacing: 1px;
}
@keyframes ae-offer-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .ae-offer-widget {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(290px, calc(100vw - 24px));
  }
  .ae-offer-widget[data-state="collapsed"] {
    right: 0;
    bottom: 14vh;
    width: 54px;
  }
  .ae-offer-widget__panel { padding: 21px 18px 17px; }
  .ae-offer-widget__tab { min-height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
  .ae-offer-widget *,
  .ae-offer-widget *::before,
  .ae-offer-widget *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
