/* Store status banner and badge (DLCWEB-790), shared by both skins. Every token carries its own value as
   the fallback because the classic skin does not load tokens.css. Text is always ink or body; the
   status color lives on the icon only. */

/* Wrap only a row layout that holds a banner. Below 989px the title container is a column, and a
   wrapping column sizes its one line to the widest item, so a long title word would stretch the
   banner past the viewport. Open stores have no banner and keep their layout. */
@media (min-width: 989px) {
  .location-single .page-section-title-container:has(> .store-status) {
    flex-wrap: wrap;
  }
}

/* The hero overlay is only 71% white, so the banner brings its own white fill */
.location-single .page-section-title-container>.store-status {
  flex-basis: 100%;
  min-width: 0;
  order: 3;
}

.store-status {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 2px solid var(--ink, #0c0e13);
  background: var(--surface-raised, #fff);
  color: var(--body, #222);
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
}

.store-status__icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: var(--ink, #0c0e13);
}

.store-status__icon svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
}

.store-status--temporarily-closed .store-status__icon {
  color: var(--warning-ink, #8a7100);
}

.store-status--permanently-closed .store-status__icon {
  color: var(--error-ink, #c40a0a);
}

.store-status__label {
  margin: 0;
  color: var(--ink, #0c0e13);
  font-weight: 700;
}

/* A real border, not a shadow, so forced-colors keeps the ring around the lemon */
.store-status--coming-soon .store-status__label {
  padding: 0.125rem 0.5rem;
  border: 2px solid var(--ink, #0c0e13);
  background: var(--accent, #fff200);
}

.store-status__notice,
.store-status__date {
  flex: 1 1 14rem;
  min-width: 0;
  margin: 0;
  text-transform: none;
}

.store-status__link,
.store-status__apply {
  flex-basis: 100%;
  margin: 0;
}

.store-status__link a,
.store-status__apply a {
  color: var(--ink, #0c0e13);
  text-decoration: underline;
}

.store-status-badge {
  display: inline-block;
  overflow-wrap: anywhere;
  margin-inline-start: 0.5rem;
  padding: 0.125rem 0.5rem;
  border: 2px solid var(--ink, #0c0e13);
  background: var(--surface-raised, #fff);
  color: var(--ink, #0c0e13);
  font-size: var(--size-micro, 0.6875rem);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.store-status-badge svg {
  width: 1em;
  height: 1em;
  margin-inline-end: 0.25rem;
  vertical-align: -0.125em;
}

/* The classic sheet has no .screen-reader-text */
.store-status-badge .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}
