.shopper-page {
  --shopper-navy: #062d55;
  --shopper-blue: #0b4a7a;
  --shopper-gold: #f4b840;
  --shopper-ink: #112238;
  --shopper-muted: #dbe5ef;
  box-sizing: border-box;
  min-width: 320px;
  margin: 0;
  padding: 0;
  background: var(--shopper-navy);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.shopper-page *,
.shopper-page *::before,
.shopper-page *::after {
  box-sizing: inherit;
}

.shopper-page .shopper-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: #ffffff;
}

.shopper-page .shopper-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.shopper-page .shopper-brand img {
  display: block;
  width: auto;
  height: 40px;
}

.shopper-page .shopper-language {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shopper-page .shopper-language a {
  display: inline-grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border-radius: 999px;
  color: var(--shopper-blue);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.shopper-page .shopper-language a[aria-current="page"] {
  background: var(--shopper-blue);
  color: #ffffff;
}

.shopper-page .shopper-main {
  width: min(100% - 24px, 1080px);
  margin: 0 auto;
  padding: 32px 0 max(40px, env(safe-area-inset-bottom));
}

.shopper-page .shopper-intro {
  margin-bottom: 20px;
}

.shopper-page .shopper-eyebrow {
  margin: 0 0 8px;
  color: var(--shopper-gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.shopper-page .shopper-intro h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
}

.shopper-page .shopper-intro > p:not(.shopper-eyebrow) {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--shopper-muted);
  line-height: 1.5;
}

.shopper-page .shopper-pdf-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.shopper-page .shopper-instruction {
  position: sticky;
  top: 12px;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--shopper-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  transition: opacity 160ms ease, transform 160ms ease;
}

.shopper-page .shopper-instruction[hidden] {
  display: none;
}

.shopper-page .shopper-pages {
  display: grid;
  gap: 24px;
}

.shopper-page .shopper-sheet {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

.shopper-page .shopper-sheet img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shopper-page .shopper-hotspot {
  position: absolute;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  padding: 0;
}

.shopper-page .shopper-hotspot:disabled {
  cursor: default;
}

.shopper-page.shopper-debug .shopper-hotspot {
  z-index: 2;
  border: 2px solid rgba(244, 184, 64, 0.95);
  background: rgba(244, 184, 64, 0.16);
}

.shopper-page.shopper-debug .shopper-hotspot::after {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 100%;
  padding: 1px 3px;
  overflow: hidden;
  background: rgba(6, 45, 85, 0.9);
  color: #ffffff;
  content: attr(data-product-id);
  font-size: clamp(0.4375rem, 1vw, 0.6875rem);
  line-height: 1.2;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopper-page .shopper-sheet-error {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  margin: 0;
  padding: 24px;
  background: #ffffff;
  color: var(--shopper-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.shopper-page .shopper-sheet-error-message {
  margin: 0;
}

.shopper-page .shopper-sheet-retry {
  min-height: 44px;
  padding: 8px 20px;
  border: 2px solid var(--shopper-navy);
  border-radius: 999px;
  background: var(--shopper-navy);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
}

.shopper-page .shopper-sheet-error[hidden],
.shopper-page .shopper-sheet--error .shopper-hotspot {
  display: none;
}

.shopper-page .shopper-hotspot:focus-visible {
  z-index: 3;
  outline: 0;
  box-shadow:
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 6px var(--shopper-navy);
}

.shopper-page .shopper-brand:focus-visible,
.shopper-page .shopper-language a:focus-visible,
.shopper-page .shopper-sheet-retry:focus-visible {
  outline: 3px solid var(--shopper-navy);
  outline-offset: 3px;
}

.shopper-page .shopper-pdf-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@media (forced-colors: active) {
  .shopper-page .shopper-hotspot:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: -3px;
    box-shadow: none;
  }
}

.shopper-page .shopper-error {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--shopper-ink);
  font-weight: 700;
}

.shopper-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shopper-page .product-modal {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #ffffff;
}

.shopper-page .product-modal[open] {
  display: grid;
  place-items: center;
}

.shopper-page .product-modal::backdrop {
  background: rgba(1, 20, 38, 0.78);
}

.shopper-page .product-modal-frame {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  grid-template-rows: 52px minmax(0, 1fr);
  gap: 8px 12px;
  width: min(94vw, 980px);
  max-width: 100%;
  height: 100%;
  min-height: 0;
  margin: auto;
}

.shopper-page .product-modal-close,
.shopper-page .product-modal-nav {
  display: inline-grid;
  width: 48px;
  min-width: 44px;
  height: 48px;
  min-height: 44px;
  place-items: center;
  align-self: center;
  justify-self: center;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #ffffff;
  color: var(--shopper-navy);
  font-family: inherit;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.shopper-page .product-modal-close {
  grid-column: 3;
  grid-row: 1;
}

.shopper-page .product-modal-prev {
  grid-column: 1;
  grid-row: 2;
}

.shopper-page .product-modal-next {
  grid-column: 3;
  grid-row: 2;
}

.shopper-page .product-modal-close:focus-visible,
.shopper-page .product-modal-nav:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.shopper-page .product-modal-nav:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.shopper-page .product-modal-media {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-column: 2;
  grid-row: 2;
  place-items: center;
  overflow: hidden;
  touch-action: pan-y;
}

.shopper-page .product-modal-media > * {
  grid-column: 1;
  grid-row: 1;
}

.shopper-page .product-modal-media p {
  max-width: min(90%, 440px);
  margin: 0;
  padding: 12px 16px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--shopper-ink);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.shopper-page .product-modal-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.shopper-page .product-modal-media img[hidden],
.shopper-page .product-modal-media p[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .shopper-page .shopper-main {
    padding-top: 24px;
  }

  .shopper-page .product-modal-frame {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .shopper-page .product-modal-close,
  .shopper-page .product-modal-nav {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .shopper-page .product-modal-close {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .shopper-page .product-modal-media {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .shopper-page .product-modal-prev {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
  }

  .shopper-page .product-modal-next {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shopper-page *,
  .shopper-page *::before,
  .shopper-page *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}
