/* etick-carousel.css — CR-P008 T-B
 *
 * The layout half of the Splide replacement. Plain CSS on purpose: this plugin
 * has no build step (its charter says so), and adding a second, competing one
 * is not this task's job.
 *
 * Slide width lives here rather than in the script. Each carousel prints
 * --etick-per and --etick-gap beside its own markup, with media queries for its
 * breakpoints, so the row is the right shape in the first paint. Splide wrote
 * pixel widths onto every slide after mount, which made the row re-lay itself
 * once the script ran.
 */

.etick-carousel {
  position: relative;
  --etick-per: 1;
  --etick-gap: 0px;
}

.etick-carousel__track {
  overflow: hidden;
}

.etick-carousel__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.etick-carousel__slide {
  flex: 0 0 auto;
  box-sizing: border-box;
  margin-right: var(--etick-gap);
  width: calc(
    (100% - (var(--etick-gap) * (var(--etick-per) - 1))) / var(--etick-per)
  );
}

/* --- arrows ------------------------------------------------------------
   Same shape and placement Splide drew: a grey circle at the vertical
   middle, one against each edge of the track, sitting above the slides. */

.etick-carousel__arrows[hidden] {
  display: none;
}

.etick-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--etick-arrow-size, 2em);
  height: var(--etick-arrow-size, 2em);
  padding: 0;
  border: 0;
  border-radius: var(--etick-arrow-radius, 50%);
  background: var(--etick-arrow-bg, #ccc);
  color: var(--etick-arrow-color, #000);
  opacity: 0.7;
  cursor: pointer;
}

.etick-carousel__arrow:hover:not(:disabled) {
  opacity: 0.9;
}

.etick-carousel__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.etick-carousel__arrow:focus-visible {
  outline: 3px solid #0bf;
  outline-offset: 3px;
}

/* Half the button, however big the button was set to be, so the mark keeps its
   proportion instead of rattling around inside a larger circle. */
.etick-carousel__arrow svg {
  width: var(--etick-arrow-size, 2em);
  height: var(--etick-arrow-size, 2em);
  scale: 0.6;
}

.etick-carousel__arrow--prev {
  left: 0;
}

.etick-carousel__arrow--next {
  right: 0;
}
