/* Anahata v2 — flash-sale bar. Figma: home "Flash Sale" row (green gradient). */

.flash-sale {
  background: var(--a-gradient-brand);
}

.flash-sale__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--a-space-3) var(--a-space-4);
  flex-wrap: wrap;
}

.flash-sale__text {
  display: flex;
  align-items: baseline;
  gap: var(--a-space-3);
  min-width: 0;
}

.flash-sale__title {
  font-family: var(--a-font-body);
  font-weight: 700;
  font-style: italic;
  font-size: var(--a-fs-body-l);
  line-height: 1.2;
  color: var(--a-flash-title);
}

.flash-sale__subtitle {
  font-family: var(--a-font-body);
  font-weight: 700;
  font-size: var(--a-fs-tiny);
  color: var(--a-surface);
}

@media screen and (max-width: 400px) {
  .flash-sale__title {
    font-size: var(--a-fs-body-m);
  }

  .flash-sale__subtitle {
    font-size: var(--a-fs-caption);
  }
}

/* theme editor only: an expired / switched-off sale stays visible there so it
   can be edited, dimmed and labelled */
.flash-sale--inactive {
  opacity: 0.5;
}

.flash-sale__editor-note {
  margin: var(--a-space-2) auto 0;
  font-family: var(--a-font-body);
  font-size: var(--a-fs-label);
  color: var(--a-on-dark);
}

.flash-sale[hidden] {
  display: none;
}
