/* Charbonnel Shop Tools: homepage slider. The same look as the theme's slider (.slider-section / .page-slider),
   repeated here so it also works where the theme's styles aren't loaded. */
.cwhs { position: relative; }
.cwhs-slides:not(.slick-initialized) .cwhs-slide:not(:first-child) { display: none; }
.cwhs-slides:not(.slick-initialized) .cwhs-slide[data-cwhs-off] { display: none; }
.cwhs .cwhs-slide > a, .cwhs .cwhs-slide > .cwhs-nolink { display: block; color: inherit; text-decoration: none; }
.cwhs .cwhs-slide:focus { outline: none; }

/* Full-width picture slides */
.cwhs .fwi img { display: block; width: 100%; height: auto; margin: 0; }
.cwhs .slider-mobile-image { display: none !important; }

/* Words left, picture right */
.cwhs .hthi { display: flex; }
.cwhs .hthi .text-block { flex: 1 1 0%; display: flex; justify-content: center; align-items: center; flex-direction: column; padding: 50px; text-align: center; color: #666 !important; }
.cwhs .hthi .text-block h2 { text-align: center; }
.cwhs .hthi .img { flex: 1 1 0%; width: 100%; height: 100%; min-height: 500px; background-size: cover; background-repeat: no-repeat; background-position: center center; }
.cwhs .slider-section-button { position: relative; display: inline-block; margin-top: 28px; padding: 8px 30px; border: 1px solid #b3b3c2; font-size: 18px; font-weight: normal; color: #06062d; background: transparent; text-decoration: none; transition: .5s; }
.cwhs .slider-section-button::before { content: ""; display: block; position: absolute; width: 1px; height: 28px; bottom: 100%; left: 50%; background: #b3b3c2; }
.cwhs a:hover .slider-section-button { background: #06062d; color: #fff; transition: .3s; }

/* Dots, as the theme's */
.cwhs .slick-dots { display: flex; justify-content: center; margin: 0; padding: 1rem 0; list-style-type: none; position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 0); }
.cwhs .slick-dots li { margin: 0 .25rem; }
.cwhs .slick-dots button { display: block; width: 1rem; height: 1rem; padding: 0; border-radius: 100%; background: transparent; border: 1px solid #06062d; text-indent: -9999px; cursor: pointer; }
.cwhs .slick-dots li.slick-active button { background: #06062d; }
.cwhs .slick-dots button:focus-visible { outline: 2px solid #ae9a64; outline-offset: 2px; }

/* Arrows (off by default, as the theme hides them) */
.cwhs .slick-prev, .cwhs .slick-next { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #06062d; font-size: 0; cursor: pointer; }
.cwhs .slick-prev { left: 16px; }
.cwhs .slick-next { right: 16px; }
.cwhs .slick-prev::before, .cwhs .slick-next::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; }
.cwhs .slick-prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.cwhs .slick-next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.cwhs.cwhs--no-arrows .slick-prev, .cwhs.cwhs--no-arrows .slick-next { display: none !important; }
.cwhs:not(.cwhs--no-arrows) .slick-prev, .cwhs:not(.cwhs--no-arrows) .slick-next { display: block !important; }

/* Sizes, as the theme's .page-slider */
@media screen and (min-width: 1001px) {
  .cwhs .slick-list { height: auto !important; }
  .cwhs .cwhs-slide { aspect-ratio: 1920 / 700; overflow: hidden; height: auto !important; }
  .cwhs .cwhs-slide > a, .cwhs .cwhs-slide > .cwhs-nolink { height: 100%; }
  .cwhs .hthi, .cwhs .fwi { height: 100%; }
  .cwhs .hthi .img { min-height: 0; height: auto; }
  .cwhs .hthi .text-block { min-height: 0; overflow: hidden; }
  .cwhs .fwi img { width: 100%; height: 100%; object-fit: cover; }
}
@media screen and (min-width: 1001px) and (max-width: 1200px) {
  .cwhs .hthi .text-block { padding: 20px 40px; }
}
@media screen and (max-width: 1000px) {
  .cwhs .slider-desktop-image { display: none !important; }
  .cwhs .slider-mobile-image { display: block !important; max-width: 100% !important; transform: unset !important; }
  .cwhs .hthi { flex-direction: column-reverse; }
  .cwhs .hthi .img { min-height: 200px; }
  .cwhs .slick-dots { display: none !important; }
  .cwhs .slick-list { height: auto !important; }
  .cwhs .cwhs-slide { overflow: hidden; height: calc(230px + 65vw) !important; }
  .cwhs .cwhs-slide > a, .cwhs .cwhs-slide > .cwhs-nolink { height: 100%; }
  .cwhs .hthi, .cwhs .fwi { height: 100%; }
  .cwhs .fwi img { width: 100%; height: 100%; object-fit: cover; }
}

/* Full browser width, even inside a narrower column (--cwhs-sb is the scrollbar's width, set by the script). */
section.cwhs.cwhs--full.slider-section { box-sizing: border-box; width: calc(100vw - var(--cwhs-sb, 0px)) !important; max-width: none !important; margin-left: calc(50% - (100vw - var(--cwhs-sb, 0px)) / 2) !important; margin-right: 0 !important; }

/* Smoother fade (1.23.1): every slide has a solid background, so the white beside the words fades in together with
   the picture, and the leaving slide stays put underneath until the new one has fully appeared. */
.cwhs .cwhs-slide { background: #fff; }
.cwhs .slick-slide.cwhs-leaving { opacity: 1 !important; z-index: 997 !important; transition: none !important; }
.cwhs .slick-slide.slick-active { z-index: 1000 !important; }

/* Words side colours chosen for a slide (1.23.1). */
.cwhs .cwhs-slide--bg .hthi .text-block, .cwhs .cwhs-slide--bg { background: var(--cwhs-bg) !important; }
.cwhs .cwhs-slide--ink .hthi .text-block, .cwhs .cwhs-slide--ink .hthi .text-block h2, .cwhs .cwhs-slide--ink .hthi .text-block p, .cwhs .cwhs-slide--ink .slider-section-button { color: var(--cwhs-ink) !important; }
.cwhs .cwhs-slide--ink .slider-section-button { border-color: var(--cwhs-ink) !important; }
.cwhs .cwhs-slide--ink .slider-section-button::before { background: var(--cwhs-ink) !important; }
.cwhs .cwhs-slide--ink a:hover .slider-section-button { background: var(--cwhs-ink) !important; color: var(--cwhs-bg, #fff) !important; }

/* Video slides (1.24.0): fill the slide like the pictures do. */
.cwhs .fwv { position: relative; height: 100%; background: #000; }
.cwhs .fwv video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 700; object-fit: cover; margin: 0; }
@media screen and (min-width: 1001px) {
  .cwhs .fwv video { height: 100%; aspect-ratio: auto; }
}
@media screen and (max-width: 1000px) {
  .cwhs .fwv video { height: 100%; aspect-ratio: auto; }
}

/* The indicator across the top (1.25.0): one segment per slide; the current one fills as it plays. */
.cwhs .cwhs-progress { position: absolute; top: 0; left: 0; right: 0; z-index: 1001; display: flex; gap: 6px; padding: 14px max(24px, calc((100% - 1200px) / 2)) 0; pointer-events: none; }
.cwhs .cwhs-seg { flex: 1; position: relative; height: 18px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: pointer; pointer-events: auto; }
.cwhs .cwhs-seg::before, .cwhs .cwhs-seg-fill { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 3px; border-radius: 2px; }
.cwhs .cwhs-seg::before { background: rgba(255, 255, 255, .55); box-shadow: 0 0 3px rgba(6, 6, 45, .25); }
.cwhs .cwhs-seg-fill { display: block; background: #ae9a64; transform: scaleX(0); transform-origin: 0 50%; }
.cwhs .cwhs-seg:hover::before { background: rgba(255, 255, 255, .85); }
.cwhs .cwhs-seg:focus-visible { outline: 2px solid #ae9a64; outline-offset: 2px; }
.cwhs.cwhs--bar .slick-dots { display: none !important; }
@media screen and (max-width: 1000px) {
  .cwhs .cwhs-progress { padding: 10px 16px 0; gap: 4px; }
}

/* 1.25.1: the indicator sits right on the top edge, and words-and-picture slides split exactly 50/50 on desktop,
   so the picture starts at the middle of the screen. */
.cwhs .cwhs-progress { padding-top: 0 !important; }
.cwhs .cwhs-seg { height: 14px; }
.cwhs .cwhs-seg::before, .cwhs .cwhs-seg-fill { top: 0; border-radius: 0 0 2px 2px; }
@media screen and (min-width: 1001px) {
  .cwhs .hthi .text-block, .cwhs .hthi .img { flex: 0 0 50% !important; width: 50% !important; max-width: 50% !important; min-width: 0 !important; box-sizing: border-box !important; }
}

/* 1.25.2: the indicator runs along the bottom edge, edge to edge, as one joined line with fine keylines
   between the slides' parts. */
.cwhs .cwhs-progress { top: auto !important; bottom: 0; padding: 0 !important; gap: 0 !important; align-items: flex-end; }
.cwhs .cwhs-seg { height: 16px; }
.cwhs .cwhs-seg::before, .cwhs .cwhs-seg-fill { top: auto; bottom: 0; height: 4px; border-radius: 0; }
.cwhs .cwhs-seg::before { background: rgba(255, 255, 255, .6); box-shadow: none; }
.cwhs .cwhs-seg + .cwhs-seg::after { content: ""; position: absolute; left: 0; bottom: 0; z-index: 1; width: 1px; height: 4px; background: rgba(6, 6, 45, .55); }
.cwhs .cwhs-seg:focus-visible { outline-offset: -2px; }

/* 1.25.4: gold fill on a light grey line (#f2f2f2), one smooth line with no breaks marked between the slides. */
.cwhs .cwhs-seg::before { background: #f2f2f2 !important; }
.cwhs .cwhs-seg:hover::before { background: #e4e4e4 !important; }
.cwhs .cwhs-seg-fill { background: #ae9a64 !important; }
.cwhs .cwhs-seg + .cwhs-seg::after { display: none !important; content: none !important; }
.cwhs .cwhs-seg:focus-visible { outline-color: #ae9a64; }

/* 1.25.5: arrows (when switched on) only appear while the mouse is over the slider, or when it has keyboard
   focus, and their circle is softer. Touch screens use swiping instead. */
.cwhs:not(.cwhs--no-arrows) .slick-prev, .cwhs:not(.cwhs--no-arrows) .slick-next { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s, background-color .2s; background: rgba(255, 255, 255, .4); }
.cwhs:not(.cwhs--no-arrows):hover .slick-prev, .cwhs:not(.cwhs--no-arrows):hover .slick-next,
.cwhs:not(.cwhs--no-arrows):focus-within .slick-prev, .cwhs:not(.cwhs--no-arrows):focus-within .slick-next { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s, background-color .2s; }
.cwhs:not(.cwhs--no-arrows) .slick-prev:hover, .cwhs:not(.cwhs--no-arrows) .slick-next:hover { background: rgba(255, 255, 255, .8); }
@media (hover: none) {
  .cwhs:not(.cwhs--no-arrows) .slick-prev, .cwhs:not(.cwhs--no-arrows) .slick-next { display: none !important; }
}

/* 1.26.1: phones. Words-and-picture slides were squeezing the picture to a thin strip under the site's big
   heading styles. Now the slide is a little taller, the picture takes the top 56% and the words are sized to fit
   the rest. !important so the theme's own slider styles (e.g. square pictures) can't undo it. */
@media screen and (max-width: 1000px) {
  .cwhs .cwhs-slide { height: calc(250px + 70vw) !important; }
  .cwhs .hthi { display: flex !important; flex-direction: column-reverse !important; height: 100% !important; }
  .cwhs .hthi .img { flex: 0 0 56% !important; width: 100% !important; max-width: none !important; height: 56% !important; min-height: 0 !important; aspect-ratio: auto !important; }
  .cwhs .hthi .text-block { flex: 1 1 0% !important; width: 100% !important; max-width: none !important; min-height: 0 !important; padding: 16px 24px 20px !important; justify-content: center !important; overflow: hidden; box-sizing: border-box; }
  .cwhs .hthi .text-block h2 { margin: 0 0 6px !important; padding: 0 !important; font-size: clamp(24px, 6.6vw, 30px) !important; line-height: 1.2 !important; }
  .cwhs .hthi .text-block p { margin: 0 !important; padding: 0 !important; font-size: 15px !important; line-height: 1.4 !important; }
  .cwhs .hthi .slider-section-button { margin-top: 20px !important; padding: 6px 22px !important; font-size: 16px !important; }
  .cwhs .hthi .slider-section-button::before { height: 20px !important; }
}

/* 1.26.2: big desktop screens. The words grow with the screen instead of staying at the theme's fixed sizes
   (36px heading, 18px text and button), so they stay in proportion with the slide. Nothing gets smaller than
   the theme's sizes; it starts growing from about 1550px wide and stops at very large sizes. */
@media screen and (min-width: 1001px) {
  .cwhs .hthi .text-block { padding: clamp(50px, 3.6vw, 140px) !important; }
  .cwhs .hthi .text-block h2 { font-size: clamp(36px, 2.35vw, 84px) !important; line-height: 1.2 !important; margin: 0 0 .5em !important; max-width: 16em; }
  .cwhs .hthi .text-block p { font-size: clamp(18px, 1.15vw, 34px) !important; line-height: 1.45 !important; margin: .9em 0 1.4em !important; max-width: 30em; }
  .cwhs .hthi .slider-section-button { font-size: clamp(18px, 1.15vw, 32px) !important; line-height: 1.6 !important; padding: .42em 1.65em !important; margin-top: clamp(28px, 1.8vw, 60px) !important; }
  .cwhs .hthi .slider-section-button::before { height: clamp(28px, 1.8vw, 60px) !important; }
}
