.tooto-product-carousel {
  --tooto-carousel-ratio: 1 / 1;
  --tooto-carousel-fit: contain;
  --tooto-carousel-arrow-size: 36px;
  --tooto-carousel-arrow-gap: 16px;
  --tooto-carousel-arrow-color: #fff;
  --tooto-carousel-arrow-background: rgb(255 255 255 / 16%);
  --tooto-carousel-arrow-border: rgb(223 223 223 / 19%);
  --tooto-carousel-arrow-hover: #e71f22;
  position: relative;
  width: 100%;
  min-width: 0;
  background: #000;
  isolation: isolate;
}
.tooto-product-carousel .swiper { width: 100%; aspect-ratio: var(--tooto-carousel-ratio); overflow: hidden; }
.tooto-product-carousel .swiper-wrapper { height: 100%; }
.tooto-product-carousel .swiper-slide { height: 100%; }
.tooto-product-carousel .tooto-product-carousel__image-link { display: block; width: 100%; height: 100%; }
.tooto-product-carousel .tooto-product-carousel__image { display: block; width: 100%; height: 100%; max-height: none; object-fit: var(--tooto-carousel-fit); }
.tooto-product-carousel__controls { position: absolute; inset: auto 0 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px 32px 38px; pointer-events: none; }
.tooto-product-carousel__counter { display: inline-flex; align-items: baseline; color: #fff; font-size: 24px; font-weight: 200; font-style: italic; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tooto-product-carousel__current { display: inline-grid; position: relative; overflow: hidden; color: #e71f22; padding-inline: .06em; margin-inline: -.06em; }
.tooto-product-carousel__current > span { display: block; grid-area: 1 / 1; }
.tooto-product-carousel__arrows { display: flex; align-items: center; gap: max(0px, calc(var(--tooto-carousel-arrow-gap) - max(0px, 44px - var(--tooto-carousel-arrow-size)))); pointer-events: auto; margin: -4px; }
.tooto-product-carousel .tooto-product-carousel__arrow { appearance: none; display: grid; place-items: center; flex: none; width: max(44px, var(--tooto-carousel-arrow-size)); height: max(44px, var(--tooto-carousel-arrow-size)); min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--tooto-carousel-arrow-color); box-shadow: none; cursor: pointer; opacity: 1; }
.tooto-product-carousel__arrow-face { display: grid; place-items: center; width: var(--tooto-carousel-arrow-size); height: var(--tooto-carousel-arrow-size); border: 1px solid var(--tooto-carousel-arrow-border); border-radius: 50%; background: var(--tooto-carousel-arrow-background); transition: background-color 160ms; }
.tooto-product-carousel__arrow-icon { display: block; width: 15px; height: 12px; background: currentColor; mask: url('./icons/carousel-arrow.svg') center / contain no-repeat; }
.tooto-product-carousel__prev .tooto-product-carousel__arrow-icon { transform: rotate(180deg); }
.tooto-product-carousel .tooto-product-carousel__arrow:disabled { opacity: .3; cursor: default; }
.tooto-product-carousel:focus-visible,
.tooto-product-carousel .tooto-product-carousel__arrow:focus-visible { outline: 2px solid var(--theme-palette-color-1, #e71f22); outline-offset: 2px; }
.tooto-product-carousel .tooto-product-carousel__image-link:focus-visible { outline: 2px solid var(--theme-palette-color-1, #e71f22); outline-offset: -4px; }
.tooto-product-carousel__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (hover: hover) and (pointer: fine) {
  .tooto-product-carousel__arrow:not(:disabled):hover .tooto-product-carousel__arrow-face { background: var(--tooto-carousel-arrow-hover); }
}
@media (prefers-reduced-motion: reduce) {
  .tooto-product-carousel__arrow-face { transition: none; }
}
