.store-holiday-notice {
  flex: none;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  text-align: center;
}

.store-holiday-notice p {
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.4;
}

.store-holiday-notice strong {
  color: var(--brand-ink);
}

.store-holiday-notice a {
  color: var(--brand-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  white-space: nowrap;
}

.store-holiday-notice .store-holiday-notice-compact {
  display: none;
}

@media (max-width: 760px) {
  .store-holiday-notice {
    padding: 0;
  }

  .store-holiday-notice .store-holiday-notice-full {
    display: none;
  }

  .store-holiday-notice .store-holiday-notice-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 12px;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    white-space: normal;
  }

  .store-holiday-notice-compact .store-holiday-notice-ordering {
    color: var(--text);
  }

  .store-holiday-notice-compact strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .store-holiday-notice-compact span {
    flex: none;
  }

  .store-holiday-notice-compact span:last-child {
    text-decoration: underline;
    text-underline-offset: 0.18em;
  }
}

@media (max-width: 340px) {
  .store-holiday-notice .store-holiday-notice-compact {
    gap: 8px;
    padding-inline: 8px;
    font-size: 13px;
  }
}

@media (max-width: 760px) and (orientation: portrait) {
  /* Use the Battery view's vertical clearance for the announcement while it is visible. */
  body.home-dark[data-energy-banner-mode="header"]:has(.store-holiday-notice:not([hidden]))
    .ex-stage.ex-mobile.ex-ready.ex-has-banner:not(.ex-overview-open) .ex-cell[data-cell="storage"] {
    padding-top: 76px;
    padding-bottom: calc(61px + env(safe-area-inset-bottom));
  }

  body.home-dark[data-energy-banner-mode="header"]:has(.store-holiday-notice:not([hidden]))
    .ex-stage.ex-mobile.ex-ready.ex-has-banner:not(.ex-overview-open) .ex-cell[data-cell="storage"] .ex-media {
    margin-block: 3px 5px;
  }
}

@media (max-width: 340px) and (max-height: 600px) and (orientation: portrait) {
  /* Preserve clearance between the Battery artwork and its Details button. */
  body.home-dark[data-energy-banner-mode="header"]:has(.store-holiday-notice:not([hidden]))
    .ex-stage.ex-mobile.ex-ready.ex-has-banner:not(.ex-overview-open) .ex-cell[data-cell="storage"] .ex-copy h3 {
    margin-bottom: 7px;
  }

  body.home-dark[data-energy-banner-mode="header"]:has(.store-holiday-notice:not([hidden]))
    .ex-stage.ex-mobile.ex-ready.ex-has-banner:not(.ex-overview-open) .ex-cell[data-cell="storage"] .ex-prod {
    margin-bottom: 5px;
  }

  body.home-dark[data-energy-banner-mode="header"]:has(.store-holiday-notice:not([hidden]))
    .ex-stage.ex-mobile.ex-ready.ex-has-banner:not(.ex-overview-open) .ex-cell[data-cell="storage"] .ex-mobile-intro {
    margin-bottom: 1px;
  }

  body.home-dark[data-energy-banner-mode="header"]:has(.store-holiday-notice:not([hidden]))
    .ex-stage.ex-mobile.ex-ready.ex-has-banner:not(.ex-overview-open) .ex-cell[data-cell="storage"] .ex-media {
    margin-bottom: 14px;
  }
}

.news-modal-open .store-holiday-notice {
  visibility: hidden;
}

.store-holiday-details {
  margin-bottom: 24px;
  scroll-margin-top: 88px;
}

.support-page .store-holiday-details p {
  margin-top: 8px;
}
