/* Charbonnel Shop Tools: announcement bar. Colours come from the settings (--cwab-bg, --cwab-ink). */
/* Above everything on the page (menus, sticky headers) but just below the WordPress toolbar (99999) and the promo pop-up. */
.cwab { position: relative; z-index: 99998; width: 100%; background: var(--cwab-bg, #ae9a64); color: var(--cwab-ink, #fff); font-size: 16px; line-height: 1.4; }
.cwab[hidden] { display: none; }
.cwab-inner { position: relative; display: flex; align-items: center; justify-content: center; max-width: 1200px; min-height: 40px; margin: 0 auto; padding: 0 44px; box-sizing: border-box; }
.cwab .cwab-list { display: grid; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; text-align: center; }
/* All messages share one spot, so the bar keeps the height of the longest and never jumps. */
.cwab .cwab-msg { grid-area: 1 / 1; align-self: center; margin: 0; padding: 10px 6px; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.cwab .cwab-msg.is-on { opacity: 1; visibility: visible; transition: opacity .5s; }
.cwab .cwab-msg[data-off] { display: none; }
.cwab--caps .cwab-msg { text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.cwab .cwab-msg a, .cwab .cwab-msg a:visited { color: inherit; text-decoration: none; }
.cwab .cwab-cta { margin-left: 6px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cwab .cwab-msg a:hover, .cwab .cwab-msg a:hover .cwab-cta { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cwab button { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; cursor: pointer; font: inherit; line-height: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.cwab .cwab-arrow { position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; opacity: .85; }
.cwab .cwab-prev { left: 6px; }
.cwab .cwab-next { right: 6px; }
.cwab .cwab-arrow:hover, .cwab .cwab-close:hover { opacity: 1; }
.cwab.has-close .cwab-next { right: 38px; }
.cwab.has-close .cwab-inner { padding-right: 76px; }
.cwab .cwab-close { position: absolute; top: 50%; right: 6px; width: 32px; height: 32px; margin-top: -16px; opacity: .85; }
/* Pause control: only seen by keyboard users (hover already pauses for mouse users). */
.cwab .cwab-pause { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cwab .cwab-pause:focus-visible { left: 44px; top: 50%; width: auto; height: auto; margin-top: -10px; padding: 3px 8px; overflow: visible; font-size: 11px; outline: 1px solid currentColor; }
.cwab .cwab-pause::after { content: 'Pause'; }
.cwab .cwab-pause[aria-pressed="true"]::after { content: 'Play'; }
.cwab button:focus-visible, .cwab a:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
@media (max-width: 600px) {
  .cwab-inner { padding: 0 36px; }
  .cwab .cwab-prev { left: 2px; }
  .cwab .cwab-next { right: 2px; }
  .cwab.has-close .cwab-next { right: 30px; }
  .cwab.has-close .cwab-inner { padding-right: 62px; }
  .cwab .cwab-close { right: 2px; }
  .cwab { font-size: 14px; }
  .cwab--caps .cwab-msg { font-size: 12px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  .cwab .cwab-msg, .cwab .cwab-msg.is-on { transition: none; }
}
