/* Dana top bar: what the three designs share (the template's .tf-topbar,
 * styles.css 7719-7949, 19745-19750, 20053-20058, 21265-21275; measured on
 * index, electronic, ergonic-chair, baby, book and travel at 1440, 1024,
 * 768 and 390). From 1200px a 42px bar (40px for design 3) of three zones;
 * under 1200px the ticker alone, 7px above and below its 18px line (32px).
 * White words on the bar's own colour (#313030 on the fashion design); on a
 * light bar the words are dark and a 1px line runs under it.
 *
 * The ticker is core.css's .dana-marquee (ui.js fills it), in a box with
 * faded ends 30px wide in the bar's own colour; each message 10px in from
 * its neighbours with a 4px dot 20px after it (countdown messages have
 * none). The words are 14/18 in the page's font: the template sets them in
 * DM Sans, which Dana loads only when an identity picks it (a recorded
 * difference). One sheet for both directions. */
.dana-topbar {
  position: relative;
  z-index: 2;
  padding-block: 7px;
  background-color: var(--dana-topbar-bg, #313030);
  color: var(--dana-topbar-text, #ffffff);
  font-size: 14px;
  line-height: 18px;
}
.dana-topbar--light { border-block-end: 1px solid var(--dana-line); }
.dana-topbar *, .dana-topbar *::before, .dana-topbar *::after { box-sizing: border-box; }
:where(.dana-topbar) a { color: inherit; text-decoration: none; }
:where(.dana-topbar) p, :where(.dana-topbar) ul { margin: 0; padding: 0; list-style: none; }
:where(.dana-topbar) button { font-family: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.dana-topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.dana-topbar__side { display: none; flex: none; align-items: center; }

/* ---- The ticker ----------------------------------------------------------- */
.dana-topbar__ticker { position: relative; flex: 1 1 auto; min-inline-size: 0; overflow: hidden; }
.dana-topbar__ticker::before, .dana-topbar__ticker::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: 5;
  inline-size: 30px;
  pointer-events: none;
}
.dana-topbar__ticker::before { inset-inline-start: 0; }
.dana-topbar__ticker::after { inset-inline-end: 0; }
[dir="ltr"] .dana-topbar__ticker::before, [dir="rtl"] .dana-topbar__ticker::after { background-image: linear-gradient(to right, var(--dana-topbar-bg, #313030), transparent); }
[dir="ltr"] .dana-topbar__ticker::after, [dir="rtl"] .dana-topbar__ticker::before { background-image: linear-gradient(to left, var(--dana-topbar-bg, #313030), transparent); }
/* A bar with no ground of its own fades into the page's. */
.dana-topbar__item { display: flex; align-items: center; flex: none; padding-inline: 10px; white-space: nowrap; }
.dana-topbar__item[hidden] { display: none; }
.dana-topbar__item::after { content: ""; flex: none; inline-size: 4px; block-size: 4px; margin-inline-start: 20px; border-radius: 50%; background-color: currentColor; }
.dana-topbar__item--timer::after { content: none; }
/* A countdown message is a 20px line (.marquee-child-item with js-countdown
   is a flex row: ergonic-chair's bar is 34px under 1200px); design 3 keeps
   its 12px words' 15.72px. */
.dana-topbar:not(.dana-topbar--d3) .dana-topbar__item--timer { line-height: 20px; }
.dana-topbar:not(.dana-topbar--d3) .dana-topbar__item--timer .dana-topbar__text { line-height: 20px; }
.dana-topbar__text { font-size: 14px; line-height: 18px; font-weight: 400; }
.dana-topbar__text a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .3s ease-in-out, opacity .3s ease-in-out; }
.dana-topbar__text a:hover, .dana-topbar__text a:focus-visible { text-decoration-color: currentColor; }
/* The countdown after its message: «10 DAYS : 10 HOURS : ...», each value
   17px at least and set to its end (.countdown__value), numbers that do
   not shift the line as they change. */
.dana-topbar__count { display: inline-flex; align-items: baseline; margin-inline-start: 4px; font-variant-numeric: tabular-nums; }
.dana-topbar__count [data-dana-timer-days], .dana-topbar__count [data-dana-timer-hours],
.dana-topbar__count [data-dana-timer-minutes], .dana-topbar__count [data-dana-timer-seconds] { display: inline-block; min-inline-size: 17px; text-align: end; }
.dana-topbar__unit { white-space: pre; text-transform: uppercase; }
[dir="rtl"] .dana-topbar__unit { text-transform: none; }
/* Nothing left to move (every countdown message ended): no empty band. The
   ticker's place stays while a side still holds the social accounts, the
   region button or the links (from 1200px); with nothing on either side
   (always on design 2) the bar goes at every width. Read from the markup
   itself, so it holds before scripts run too (a countdown message is drawn
   hidden). header.js then measures the header again. */
.dana-topbar--empty .dana-topbar__ticker { visibility: hidden; }
.dana-topbar:not(:has(.dana-topbar__item:not([hidden]))):not(:has(.dana-topbar__side > *)) { display: none; }
@media (max-width: 1199px) {
  .dana-topbar--empty, .dana-topbar:not(:has(.dana-topbar__item:not([hidden]))) { display: none; }
}
/* The starter's announcement bar kept by a store, its animation off: its
   one message still, in the middle, with no dot and no faded ends. */
.dana-topbar__ticker--still::before, .dana-topbar__ticker--still::after { content: none; }
.dana-topbar__ticker--still .dana-marquee__track { inline-size: auto; animation: none; }
.dana-topbar__ticker--still .dana-marquee__run { flex: 1 1 auto; justify-content: center; min-inline-size: 0; }
.dana-topbar__ticker--still .dana-topbar__item { flex: 0 1 auto; min-inline-size: 0; white-space: normal; text-align: center; }
.dana-topbar__ticker--still .dana-topbar__item::after { content: none; }
/* A message link reached by the keyboard: the loop stops at its start, so
   the link is on screen while it has focus (the moving copies after it are
   out of the keyboard's reach: header.js). */
.dana-topbar__ticker:has(:focus-visible) .dana-marquee__track { animation: none; }

/* ---- Links, social, country and language -------------------------------- */
.dana-topbar__link { display: inline-flex; align-items: center; font-weight: 500; white-space: nowrap; transition: opacity .3s ease-in-out, text-decoration-color .3s ease-in-out; }
.dana-topbar__link:hover, .dana-topbar__link:focus-visible { opacity: .75; }
.dana-topbar__social { display: flex; flex-wrap: nowrap; gap: 8px; }
/* .tf-social-icon .social-item on the bar: 28px circles, a 1px line (the
   line colour on a coloured bar, the words' colour on a light one), a 12px
   glyph (10px for X). On hover the circle fills with
   the words' colour and the glyph takes the bar's (the template turns
   them coral, which vanished on a coral or red bar). */
.dana-topbar__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 28px;
  block-size: 28px;
  border: 1px solid var(--dana-line);
  border-radius: 50%;
  font-size: 12px;
  transition: background-color .3s ease-in-out, color .3s ease-in-out, border-color .3s ease-in-out;
}
.dana-topbar__social-link--x { font-size: 10px; }
.dana-topbar--light .dana-topbar__social-link { border-color: currentColor; }
.dana-topbar__social-link:hover, .dana-topbar__social-link:focus-visible { background-color: var(--dana-topbar-text, #ffffff); border-color: var(--dana-topbar-text, #ffffff); color: var(--dana-topbar-bg, #313030); }
.dana-topbar--light .dana-topbar__social-link:hover, .dana-topbar--light .dana-topbar__social-link:focus-visible { color: var(--dana-topbar-bg, #ffffff); }
.dana-topbar__region:hover, .dana-topbar__region:focus-visible { color: inherit; opacity: .75; }

@media (min-width: 1200px) {
  .dana-topbar { display: flex; align-items: center; block-size: 42px; }
  .dana-topbar__side { display: flex; }
}
@media (min-width: 1440px) {
  .dana-topbar__row { gap: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .dana-topbar__ticker::before, .dana-topbar__ticker::after { display: none; }
}
