:root {
  --amazon-navy: #131921;
  --amazon-blue: #232f3e;
  --amazon-orange: #ff6200;
  --amazon-orange-deep: #ff7701;
  --amazon-gold: #ff9946;
  color-scheme: light;
  font-family: "Source Sans 3", Arial, sans-serif;
  background: #151515;
  color: #151920;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 0; }

.page-shell {
  align-items: center;
  background: #111;
  display: flex;
  justify-content: center;
  min-height: 100svh;
  overflow: auto;
  padding: clamp(10px, 3vw, 24px);
  position: relative;
}

.amazon-backdrop {
  display: block;
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.amazon-backdrop img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.screen-shade {
  background: rgba(8, 12, 16, .58);
  inset: 0;
  opacity: 1;
  position: absolute;
  transition: opacity .22s ease;
}

.offer-modal {
  background: #fff;
  border: 4px solid var(--amazon-gold);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.46);
  max-height: calc(100dvh - 20px);
  max-width: 528px;
  min-height: 0;
  opacity: 1;
  overflow: auto;
  padding: 19px 45px 16px;
  position: relative;
  text-align: center;
  transform: translateY(0) scale(1);
  transition: opacity .22s ease, transform .22s ease;
  width: min(100%, 528px);
  z-index: 2;
}

.offer-modal.is-hidden, .screen-shade.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.offer-modal.is-hidden { transform: translateY(12px) scale(.98); }

.dismiss {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  height: 50px;
  padding: 10px;
  position: absolute;
  right: 12px;
  top: 9px;
  width: 50px;
}

.dismiss span {
  background: var(--amazon-blue);
  border-radius: 2px;
  height: 4px;
  left: 11px;
  position: absolute;
  top: 23px;
  transform: rotate(45deg);
  width: 28px;
}

.dismiss span:last-child { transform: rotate(-45deg); }
.dismiss:focus-visible, .cta:focus-visible { outline: 3px solid #2169e8; outline-offset: 3px; }

.brand {
  display: inline-flex;
  margin: 0 0 12px;
}

.brand-logo {
  display: block;
  height: auto;
  max-width: 100%;
  width: 200px;
}

h1 { color: var(--amazon-navy); font-family: "Montserrat", Arial, sans-serif; font-size: clamp(1.75rem, 5vw, 2.8rem); font-weight: 900; letter-spacing: -2px; line-height: 1; margin: 0 0 14px; overflow-wrap: anywhere; }
h1 span { color: var(--amazon-orange); display: inline-block; }

.discount-banner {
  align-items: center;
  background: var(--amazon-gold);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
  display: flex;
  flex-wrap: wrap;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.3rem, 3.8vw, 2.12rem);
  font-weight: 900;
  gap: .1em .34em;
  justify-content: center;
  line-height: 1;
  margin: 0 auto 14px;
  min-height: 55px;
  padding: 10px 28px;
  width: min(100%, 416px);
  animation: discount-flash .92s ease-in-out infinite;
}

.discount-banner > * { flex: 0 0 auto; white-space: nowrap; }
.discount-banner strong { font-weight: 900; }

@keyframes discount-flash {
  0%, 100% {
    filter: brightness(1);
    opacity: 1;
  }
  50% {
    filter: brightness(1.23);
    opacity: .68;
  }
}

.intro { color: var(--amazon-blue); font-size: clamp(1rem, 2.1vw, 1.12rem); line-height: 1.2; margin: 0 auto 16px; max-width: 420px; }

.cta {
  align-items: center;
  background: linear-gradient(180deg, var(--amazon-gold), var(--amazon-orange-deep) 52%, var(--amazon-orange));
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255,255,255,.45), 0 7px 15px rgba(255,153,0,.24);
  color: var(--amazon-navy);
  display: inline-flex;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1rem, 2.6vw, 1.24rem);
  font-weight: 800;
  gap: 14px;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  padding: 10px 35px;
  position: relative;
  text-decoration: none;
  transition: transform .16s ease, filter .16s ease;
  animation: cta-flash 1.05s ease-in-out infinite;
}

.cta:hover { filter: brightness(1.035); transform: translateY(-2px); }
.cta-chevron { border-right: 4px solid currentColor; border-top: 4px solid currentColor; height: 15px; transform: rotate(45deg); width: 15px; }

@keyframes cta-flash {
  0%, 100% {
    box-shadow: inset 0 1px rgba(255,255,255,.45), 0 7px 15px rgba(255,153,0,.24);
    filter: brightness(1);
    opacity: 1;
  }
  50% {
    box-shadow: inset 0 1px rgba(255,255,255,.58), 0 8px 23px rgba(255,98,0,.5);
    filter: brightness(1.16);
    opacity: .86;
  }
}

.spark { background: var(--amazon-orange); border-radius: 999px; height: 22px; position: absolute; right: 60px; top: 54px; transform: rotate(16deg); width: 7px; }
.spark-two { right: 41px; top: 70px; transform: rotate(43deg); }
.spark-three { right: 79px; top: 72px; transform: rotate(-12deg); }

.shopping-bags { display: none; }
.bag { border-radius: 4px 4px 10px 10px; bottom: 0; display: block; height: 86px; position: absolute; width: 69px; }
.bag::before { border: 4px solid currentColor; border-bottom: 0; border-radius: 50% 50% 0 0; content: ""; height: 35px; left: 16px; position: absolute; top: -24px; width: 33px; }
.bag-pink { background: #ed1a5f; color: #ed1a5f; left: 5px; transform: rotate(-3deg); }
.bag-gold { background: #ffc038; color: #ffc038; left: 64px; transform: rotate(-9deg); }

.gift { display: none; }
.gift::before { background: #e42227; content: ""; height: 100%; left: 53px; position: absolute; width: 16px; }
.gift i { background: #fbf8ef; border-radius: 9px 9px 3px 3px; height: 24px; left: -5px; position: absolute; top: -15px; width: 135px; }
.gift i::before { background: #e42227; content: ""; height: 24px; left: 58px; position: absolute; width: 16px; }
.gift b, .gift em { background: #e42227; border-radius: 50% 50% 6px 50%; height: 34px; position: absolute; top: -43px; transform: rotate(-28deg); width: 43px; }
.gift b { left: 41px; }.gift em { right: 41px; transform: rotate(28deg) scaleX(-1); }

.notice { color: #5a616b; font-size: .78rem; line-height: 1.25; margin: 11px auto 0; max-width: 400px; }

@media (max-width: 560px) {
  .page-shell { align-items: center; padding: 10px; }
  .offer-modal { border-radius: 18px; border-width: 3px; max-height: calc(100dvh - 20px); padding: 18px 18px 15px; }
  .dismiss { height: 44px; right: 1px; top: 0; width: 44px; }
  .brand { margin-bottom: 10px; }.brand-logo { width: 160px; }
  h1 { font-size: clamp(1.7rem, 10.3vw, 2.25rem); letter-spacing: -1.5px; margin-bottom: 12px; }
  .discount-banner { font-size: clamp(1.05rem, 6.5vw, 1.55rem); gap: .12em .3em; min-height: 49px; padding: 9px 22px; }
  html[lang="es"] .discount-banner, html[lang="pt"] .discount-banner { font-size: clamp(1rem, 6vw, 1.42rem); }
  .intro { font-size: 1rem; margin-bottom: 14px; }.cta { font-size: 1rem; min-height: 48px; padding: 10px 27px; }
  .spark { right: 29px; top: 45px; transform: scale(.62) rotate(16deg); }.spark-two { right: 13px; top: 58px; }.spark-three { right: 46px; top: 59px; }
  .notice { font-size: .72rem; margin-top: 10px; }
}

@media (max-width: 355px) { .shopping-bags, .gift, .spark { display: none; }.notice { padding: 0; }.discount-banner { padding-inline: 16px; } }

@media (max-height: 560px) and (orientation: landscape) {
  .page-shell { align-items: flex-start; height: 100dvh; min-height: 100dvh; padding: 6px; }
  .offer-modal { margin: 6px auto; padding-block: 13px; }
  .shopping-bags, .gift, .spark { display: none; }
  .brand { margin-bottom: 7px; }.brand-logo { width: 120px; }
  h1 { font-size: 1.55rem; margin-bottom: 8px; }.discount-banner { font-size: 1.2rem; margin-bottom: 8px; min-height: 40px; }.intro { font-size: .9rem; margin-bottom: 9px; }.cta { min-height: 43px; }.notice { font-size: .65rem; margin-top: 7px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
