/* Walmart store branding overrides */
:root {
  --wm-blue: #0071CE;
  --wm-blue-dark: #004F9A;
  --wm-blue-header: #0071DC;
  --wm-yellow: #FFC220;
  --wm-yellow-dark: #E5A800;
  --wm-ink: #041E42;
  --wm-gray: #6B7280;
  --wm-bg: #F8F8F8;
}

html,
body {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif !important;
  background: var(--wm-bg);
  color: var(--wm-ink);
  height: auto !important;
  min-height: 100%;
  display: block !important;
  overflow-x: hidden;
  overflow-y: auto !important;
  max-width: 100vw;
}

.wrapper {
  overflow: visible !important;
  min-height: 100vh;
}

@supports (padding: max(0px)) {
  .store-header__inner {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-top: max(10px, env(safe-area-inset-top));
  }
}

/* Store header — mobile first */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100000;
  width: 100%;
  background: var(--wm-blue-header) !important;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  margin-bottom: 0 !important;
  text-align: left !important;
}

.store-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  width: 100%;
  box-sizing: border-box;
}

.store-header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  pointer-events: none;
  margin-right: 0;
}

.store-header__logo img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

.store-header__search {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  height: 40px;
  pointer-events: none;
}

.store-header__search span {
  flex: 1;
  padding: 0 14px;
  font-size: 14px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-header__search-btn {
  flex: 0 0 44px;
  height: 40px;
  border: 0;
  background: var(--wm-yellow);
  color: var(--wm-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-header__icons {
  display: none;
  gap: 8px;
  flex: 0 0 auto;
}

.store-header__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

@media (min-width: 640px) {
  .store-header__inner {
    padding: 12px 20px;
    min-height: 64px;
    gap: 10px;
  }
  .store-header__logo img {
    height: 32px;
    width: auto;
    max-width: 150px;
  }
  .store-header__search {
    height: 44px;
  }
  .store-header__search-btn {
    height: 44px;
    width: 48px;
    flex-basis: 48px;
  }
  .store-header__icons {
    display: flex;
  }
}

@media (max-width: 360px) {
  .store-header__logo img {
    height: 24px;
    width: auto;
    max-width: 110px;
  }
  .store-header__search span {
    font-size: 12px;
    padding: 0 10px;
  }
  .store-header__inner {
    padding: 8px 8px;
    gap: 6px;
    min-height: 52px;
  }
}

/* Expires bar — flush under store header (no collapsed h1 margin gap) */
.expires-bar {
  background: #041E42;
  width: 100%;
  text-align: center;
  margin: 0 0 12px;
  padding: 8px 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expires-bar .page__title {
  font-size: clamp(16px, 4.5vw, 28px) !important;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 !important;
  padding: 0;
  color: #fff;
}

.page__subtitle {
  color: var(--wm-ink);
}

.page__offer {
  color: var(--wm-ink);
  font-weight: 700;
}

.button_red {
  background: linear-gradient(180deg, #2A8FE8 0%, var(--wm-blue) 100%) !important;
  border-color: var(--wm-blue-dark) !important;
}

.button_red:hover {
  background: linear-gradient(180deg, var(--wm-blue) 0%, var(--wm-blue-dark) 100%) !important;
}

.button_green {
  background: linear-gradient(180deg, #FFE066 0%, var(--wm-yellow) 100%) !important;
  color: var(--wm-ink) !important;
  text-shadow: none !important;
  border-color: var(--wm-yellow-dark) !important;
}

.button_green:hover {
  background: linear-gradient(180deg, var(--wm-yellow) 0%, var(--wm-yellow-dark) 100%) !important;
  color: var(--wm-ink) !important;
}

.page__btn-group {
  column-gap: 16px;
  max-width: min(400px, 100%);
  padding: 0 8px;
  box-sizing: border-box;
}

.page__button {
  font-size: clamp(18px, 5vw, 26px) !important;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page__image {
  max-width: min(450px, 92vw);
}

.page__rules {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 12px;
}

/* Store footer */
.store-footer {
  background: #041E42;
  color: #fff;
  padding: 28px 16px 36px;
  margin-top: auto;
}

.store-footer__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.store-footer__logo {
  height: 28px;
  width: auto;
  margin: 0 auto 14px;
  display: block;
  filter: brightness(0) invert(1);
}

.store-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 14px;
  font-size: 13px;
}

.store-footer__links a {
  color: #fff;
  opacity: 0.9;
  text-decoration: underline;
  pointer-events: none;
}

.store-footer__copy {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  margin: 0 auto;
}

.footer {
  display: none !important;
}
