.wp-block-rolnik-product-slider.rolnik-product-slider {
  --rolnik-product-slider-accent: #c21e50;
  --rolnik-product-slider-large-overlay-width: calc(623 * var(--scaled-px));
  --rolnik-product-slider-card-height: calc(799 * var(--scaled-px));
  --rolnik-product-slider-container-width: calc(1732 * var(--scaled-px));
  color: #fff;
  padding-block: var(--rolnik-product-slider-padding-top, 0px) var(--rolnik-product-slider-padding-bottom, 0px);
  position: relative;
}

.rolnik-product-slider__pagination {
  display: none;
}

.rolnik-product-slider__viewport {
  overflow: hidden;
  width: 100%;
}

.rolnik-product-slider .rolnik-product-slider__swiper {
  --rolnik-product-slider-gap: calc(22 * var(--scaled-px));
  --rolnik-product-slider-small-width: calc((100% - calc(44 * var(--scaled-px))) / 3);
  --rolnik-product-slider-large-width: calc((200% - calc(22 * var(--scaled-px))) / 3);
  margin: 0 auto;
  max-width: var(--rolnik-product-slider-container-width);
  overflow: visible;
  width: calc(100% - calc(48 * var(--scaled-px)));
}

.rolnik-product-slider__swiper .rolnik-product-slider__slide {
  flex: 0 0 var(--rolnik-product-slider-small-width);
  height: var(--rolnik-product-slider-card-height);
  width: var(--rolnik-product-slider-small-width);
}

.rolnik-product-slider__swiper .rolnik-product-slider__slide--large {
  flex-basis: var(--rolnik-product-slider-large-width);
  width: var(--rolnik-product-slider-large-width);
}

.rolnik-product-slider__card {
  background: var(--rolnik-product-slider-accent);
  border-radius: calc(40 * var(--scaled-px));
  height: 100%;
  overflow: hidden;
}

.rolnik-product-slider__card--large {
  display: block;
  position: relative;
}

.rolnik-product-slider__image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.rolnik-product-slider__card--large .rolnik-product-slider__image {
  bottom: 0;
  left: var(--rolnik-product-slider-large-overlay-width);
  object-position: center center;
  position: absolute;
  right: auto;
  top: 0;
  width: calc(100% - var(--rolnik-product-slider-large-overlay-width));
  z-index: 0;
}

.rolnik-product-slider__content {
  background: var(--rolnik-product-slider-accent);
  background-image: var(--rolnik-featured-card-background, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.rolnik-product-slider__content--without-button {
  justify-content: center;
}

.rolnik-product-slider__card--large .rolnik-product-slider__content {
  border-radius: calc(40 * var(--scaled-px)) 0 0 calc(40 * var(--scaled-px));
  height: 100%;
  min-height: 0;
  padding: calc(60 * var(--scaled-px)) calc(81 * var(--scaled-px)) calc(34 * var(--scaled-px)) calc(57 * var(--scaled-px));
  position: relative;
  width: var(--rolnik-product-slider-large-overlay-width);
  z-index: 1;
}

.rolnik-product-slider__meta {
  align-items: flex-start;
  display: flex;
  gap: calc(18 * var(--scaled-px));
  justify-content: space-between;
}

.rolnik-product-slider__card--large .rolnik-product-slider__meta {
  padding-right: calc(20 * var(--scaled-px));
}

.rolnik-product-slider__category,
.rolnik-product-slider__volume {
  font-family: var(--rolnik-font, Arial, sans-serif);
  font-size: calc(21 * var(--scaled-px));
  font-weight: 400;
  line-height: .952381;
  margin: 0;
}

.rolnik-product-slider__volume {
  flex: 0 0 auto;
  text-align: right;
}

.rolnik-product-slider__title {
  font-family: "yorkten-slab-condensed", "Yorkten Slab", "Roboto Slab", Georgia, serif;
  font-size: calc(45 * var(--scaled-px));
  font-stretch: condensed;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  margin: calc(138 * var(--scaled-px)) 0 0;
}

.rolnik-product-slider__description {
  font-family: var(--rolnik-font, Arial, sans-serif);
  font-size: calc(23 * var(--scaled-px));
  font-weight: 400;
  line-height: 1.12;
  margin-top: calc(76 * var(--scaled-px));
}

.rolnik-product-slider__card--large .rolnik-product-slider__content--without-meta .rolnik-product-slider__title {
  margin-top: 0;
}

.rolnik-product-slider__card--large .rolnik-product-slider__content--without-meta .rolnik-product-slider__description {
  margin-top: calc(58 * var(--scaled-px));
}

.rolnik-product-slider__button {
  align-self: flex-start;
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: calc(999 * var(--scaled-px));
  box-sizing: border-box;
  color: var(--rolnik-product-slider-accent);
  display: inline-flex;
  flex-shrink: 0;
  font-family: var(--rolnik-font, Arial, sans-serif);
  font-size: calc(24 * var(--scaled-px));
  font-weight: 400;
  height: calc(73 * var(--scaled-px));
  justify-content: center;
  line-height: 1;
  margin-top: auto;
  max-width: 100%;
  min-height: 2.75rem;
  min-width: calc(220 * var(--scaled-px));
  padding: 0 calc(34 * var(--scaled-px));
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
  width: fit-content;
}

.rolnik-product-slider__card--large .rolnik-product-slider__button {
  margin-left: 0;
}

.rolnik-product-slider__button:hover,
.rolnik-product-slider__button:focus-visible {
  background: #171717;
  color: #fff;
  outline: none;
}

.rolnik-product-slider__card--small {
  display: flex;
  flex-direction: column;
}

.rolnik-product-slider__card--small .rolnik-product-slider__image {
  border-radius: calc(40 * var(--scaled-px)) calc(40 * var(--scaled-px)) 0 0;
  flex: 0 1 calc(525 * var(--scaled-px));
  height: calc(525 * var(--scaled-px));
  min-height: 0;
  object-position: center;
}

.rolnik-product-slider__card--small.rolnik-product-slider__card--without-meta .rolnik-product-slider__image {
  flex: 0 1 calc(390 * var(--scaled-px));
  height: calc(390 * var(--scaled-px));
}

.rolnik-product-slider__card--small .rolnik-product-slider__content {
  border-radius: 0 0 calc(40 * var(--scaled-px)) calc(40 * var(--scaled-px));
  /* Reserve the full copy and CTA height; the photo absorbs any shortfall. */
  flex: 1 0 auto;
  margin-top: calc(-43 * var(--scaled-px));
  min-height: calc(317 * var(--scaled-px));
  padding: calc(48 * var(--scaled-px)) calc(60 * var(--scaled-px)) calc(31 * var(--scaled-px));
  position: relative;
}

.rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta {
  flex-basis: auto;
  min-height: calc(452 * var(--scaled-px));
}

.rolnik-product-slider__card--small .rolnik-product-slider__title {
  margin-top: calc(36 * var(--scaled-px));
}

.rolnik-product-slider__card--small .rolnik-product-slider__button {
  margin-top: calc(34 * var(--scaled-px));
}

.rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta .rolnik-product-slider__title {
  margin-top: 0;
}

.rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta .rolnik-product-slider__description {
  margin-top: calc(24 * var(--scaled-px));
}

.rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta .rolnik-product-slider__button {
  margin-top: auto;
}

.rolnik-product-slider__nav {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 calc(3 * var(--scaled-px)) calc(10 * var(--scaled-px)) rgba(23, 23, 23, .16);
  cursor: pointer;
  display: flex;
  height: calc(76 * var(--scaled-px));
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color .18s ease;
  width: calc(76 * var(--scaled-px));
  z-index: 3;
}

.rolnik-product-slider__prev {
  left: max(calc(20 * var(--scaled-px)), calc((100% - var(--rolnik-product-slider-container-width)) / 2 - calc(38 * var(--scaled-px))));
}

.rolnik-product-slider__next {
  right: max(calc(20 * var(--scaled-px)), calc((100% - var(--rolnik-product-slider-container-width)) / 2 - calc(38 * var(--scaled-px))));
}

.rolnik-product-slider__nav span {
  display: block;
  height: 0;
  width: 0;
}

.rolnik-product-slider__prev span {
  border-bottom: calc(13 * var(--scaled-px)) solid transparent;
  border-right: calc(22 * var(--scaled-px)) solid var(--rolnik-product-slider-accent);
  border-top: calc(13 * var(--scaled-px)) solid transparent;
  margin-left: calc(-4 * var(--scaled-px));
}

.rolnik-product-slider__next span {
  border-bottom: calc(13 * var(--scaled-px)) solid transparent;
  border-left: calc(22 * var(--scaled-px)) solid var(--rolnik-product-slider-accent);
  border-top: calc(13 * var(--scaled-px)) solid transparent;
  margin-right: calc(-4 * var(--scaled-px));
}

.rolnik-product-slider__nav:hover,
.rolnik-product-slider__nav:focus-visible {
  background: var(--rolnik-product-slider-accent);
  outline: none;
  transform: translateY(-50%) scale(1.04);
}

.rolnik-product-slider__prev:hover span,
.rolnik-product-slider__prev:focus-visible span {
  border-right-color: #fff;
}

.rolnik-product-slider__next:hover span,
.rolnik-product-slider__next:focus-visible span {
  border-left-color: #fff;
}

.rolnik-product-slider__nav.swiper-button-disabled {
  cursor: default;
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 821px) and (max-width: 1439px) {
  .wp-block-rolnik-product-slider.rolnik-product-slider {
    --rolnik-product-slider-card-height: auto;
  }

  .rolnik-product-slider .rolnik-product-slider__swiper {
    --rolnik-product-slider-tablet-width: calc((100% - calc(22 * var(--scaled-px))) / 2);
  }

  .rolnik-product-slider__swiper .rolnik-product-slider__slide,
  .rolnik-product-slider__swiper .rolnik-product-slider__slide--large {
    flex-basis: var(--rolnik-product-slider-tablet-width);
    height: auto;
    width: var(--rolnik-product-slider-tablet-width);
  }

  .rolnik-product-slider__card--large {
    display: flex;
    flex-direction: column;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__image,
  .rolnik-product-slider__card--small .rolnik-product-slider__image,
  .rolnik-product-slider__card--small.rolnik-product-slider__card--without-meta .rolnik-product-slider__image {
    aspect-ratio: 499 / 525;
    border-radius: calc(40 * var(--scaled-px)) calc(40 * var(--scaled-px)) 0 0;
    flex: 0 0 auto;
    height: auto;
    object-position: center;
    width: 100%;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__image {
    inset: auto;
    order: 1;
    position: static;
    z-index: auto;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__content,
  .rolnik-product-slider__card--small .rolnik-product-slider__content,
  .rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta {
    border-radius: 0 0 calc(40 * var(--scaled-px)) calc(40 * var(--scaled-px));
    flex: 1 0 auto;
    height: auto;
    margin-top: 0;
    min-height: calc(310 * var(--scaled-px));
    padding: calc(32 * var(--scaled-px)) calc(30 * var(--scaled-px)) calc(30 * var(--scaled-px));
    position: static;
    width: auto;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__content {
    order: 2;
    z-index: auto;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__meta {
    padding-right: 0;
  }

  .rolnik-product-slider__category,
  .rolnik-product-slider__volume {
    font-size: calc(18 * var(--scaled-px));
  }

  .rolnik-product-slider__title,
  .rolnik-product-slider__card--small .rolnik-product-slider__title,
  .rolnik-product-slider__card--large .rolnik-product-slider__title {
    font-size: clamp(calc(36 * var(--scaled-px)), 3.35vw, calc(45 * var(--scaled-px)));
    margin-top: calc(28 * var(--scaled-px));
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__content--without-meta .rolnik-product-slider__title,
  .rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta .rolnik-product-slider__title {
    margin-top: 0;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__description {
    display: none;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__button,
  .rolnik-product-slider__card--small .rolnik-product-slider__button {
    margin-left: 0;
    margin-top: calc(34 * var(--scaled-px));
  }
}

@media (max-width: 820px) {
  .wp-block-rolnik-product-slider.rolnik-product-slider {
    --rolnik-product-slider-card-height: auto;
  }

  .rolnik-product-slider .rolnik-product-slider__swiper {
    margin-left: calc(16 * var(--scaled-px));
    margin-right: calc(16 * var(--scaled-px));
    width: calc(100% - calc(32 * var(--scaled-px)));
  }

  .rolnik-product-slider__pagination {
    align-items: center;
    display: flex;
    height: calc(32 * var(--scaled-px));
    justify-content: center;
    margin-top: calc(22 * var(--scaled-px));
    width: 100%;
    transform: none;
  }

  .rolnik-product-slider__pagination .swiper-pagination-bullet {
    background: var(--rolnik-product-slider-accent);
    height: calc(8 * var(--scaled-px));
    margin: 0 calc(5 * var(--scaled-px)) !important;
    opacity: .28;
    transition: opacity .2s ease, transform .2s ease;
    width: calc(8 * var(--scaled-px));
  }

  .rolnik-product-slider__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
  }

  .rolnik-product-slider__swiper .rolnik-product-slider__slide,
  .rolnik-product-slider__swiper .rolnik-product-slider__slide--large {
    flex-basis: 100%;
    height: auto;
    width: 100%;
  }

  .rolnik-product-slider__card--large {
    display: flex;
    flex-direction: column;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__image {
    aspect-ratio: 499 / 525;
    border-radius: calc(40 * var(--scaled-px)) calc(40 * var(--scaled-px)) 0 0;
    flex: 0 0 auto;
    height: auto;
    inset: auto;
    order: 1;
    position: static;
    width: 100%;
    z-index: auto;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__content {
    border-radius: 0 0 calc(40 * var(--scaled-px)) calc(40 * var(--scaled-px));
    height: auto;
    min-height: 0;
    order: 2;
    padding: calc(32 * var(--scaled-px)) calc(30 * var(--scaled-px)) calc(30 * var(--scaled-px));
    position: static;
    width: auto;
    z-index: auto;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__meta {
    padding-right: 0;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__button {
    margin-left: 0;
    margin-top: calc(34 * var(--scaled-px));
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__content--without-meta .rolnik-product-slider__title {
    margin-top: 0;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__content--without-meta .rolnik-product-slider__description {
    margin-top: calc(20 * var(--scaled-px));
  }

  .rolnik-product-slider__category,
  .rolnik-product-slider__volume {
    font-size: calc(16 * var(--scaled-px));
  }

  .rolnik-product-slider__title {
    font-size: clamp(calc(36 * var(--scaled-px)), 10vw, calc(45 * var(--scaled-px)));
    margin-top: calc(52 * var(--scaled-px));
  }

  .rolnik-product-slider__description {
    font-size: calc(18 * var(--scaled-px));
    line-height: 1.25;
    margin-top: calc(40 * var(--scaled-px));
  }

  .rolnik-product-slider__button {
    font-size: calc(18 * var(--scaled-px));
    height: calc(58 * var(--scaled-px));
    min-width: calc(174 * var(--scaled-px));
  }

  .rolnik-product-slider__card--small .rolnik-product-slider__image {
    aspect-ratio: 499 / 525;
    flex-basis: auto;
    height: auto;
  }

  .rolnik-product-slider__card--small.rolnik-product-slider__card--without-meta .rolnik-product-slider__image {
    flex-basis: auto;
    height: auto;
  }

  .rolnik-product-slider__card--small .rolnik-product-slider__content {
    flex-basis: auto;
    margin-top: 0;
    min-height: 0;
    padding: calc(32 * var(--scaled-px)) calc(30 * var(--scaled-px)) calc(30 * var(--scaled-px));
  }

  .rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta {
    flex-basis: auto;
    min-height: 0;
  }

  .rolnik-product-slider__card--small .rolnik-product-slider__title {
    margin-top: calc(28 * var(--scaled-px));
  }

  .rolnik-product-slider__card--small .rolnik-product-slider__button {
    margin-top: calc(34 * var(--scaled-px));
  }

  .rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta .rolnik-product-slider__title {
    margin-top: 0;
  }

  .rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta .rolnik-product-slider__description {
    margin-top: calc(20 * var(--scaled-px));
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__title {
    margin-top: calc(28 * var(--scaled-px));
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__description {
    display: none;
  }

  .rolnik-product-slider__card--large .rolnik-product-slider__content--without-meta .rolnik-product-slider__title {
    margin-top: 0;
  }

  .rolnik-product-slider__nav {
    display: none;
  }
}

/* Gutenberg keeps the same mixed-card composition without initializing a slider. */
.wp-block-rolnik-product-slider.rolnik-product-slider-editor {
  container-type: inline-size;
  overflow: hidden;
}

.rolnik-product-slider-editor .rolnik-product-slider__editor-track {
  display: flex;
  gap: 1.25cqw;
  overflow-x: auto;
  padding: 0 5cqw calc(18 * var(--scaled-px));
  scrollbar-color: var(--rolnik-product-slider-accent) transparent;
}

.rolnik-product-slider-editor .rolnik-product-slider__slide {
  flex-basis: 25.989583cqw;
  height: 41.614583cqw;
  max-height: calc(799 * var(--scaled-px));
  min-width: 25.989583cqw;
  width: 25.989583cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__slide--large {
  flex-basis: 63.4375cqw;
  min-width: 63.4375cqw;
  width: 63.4375cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card {
  border-radius: 2.083333cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--large {
  display: block;
  position: relative;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--large .rolnik-product-slider__image {
  bottom: 0;
  left: 32.447917cqw;
  object-position: center center;
  position: absolute;
  right: auto;
  top: 0;
  width: calc(100% - 32.447917cqw);
  z-index: 0;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--large .rolnik-product-slider__content {
  border-radius: 2.083333cqw 0 0 2.083333cqw;
  height: 100%;
  min-height: 0;
  padding: 3.125cqw 4.21875cqw 1.770833cqw 2.96875cqw;
  position: relative;
  width: 32.447917cqw;
  z-index: 1;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--large .rolnik-product-slider__meta {
  padding-right: 1.041667cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--large .rolnik-product-slider__title {
  margin-top: 7.1875cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--large .rolnik-product-slider__description {
  margin-top: 3.958333cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--large .rolnik-product-slider__button {
  margin-left: .15625cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--large .rolnik-product-slider__content--without-meta .rolnik-product-slider__title {
  margin-top: 0;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--large .rolnik-product-slider__content--without-meta .rolnik-product-slider__description {
  margin-top: 3.020833cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--small .rolnik-product-slider__image {
  border-radius: 2.083333cqw 2.083333cqw 0 0;
  flex-basis: 27.34375cqw;
  height: 27.34375cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--small.rolnik-product-slider__card--without-meta .rolnik-product-slider__image {
  flex: 0 1 20.3125cqw;
  height: 20.3125cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--small .rolnik-product-slider__content {
  border-radius: 0 0 2.083333cqw 2.083333cqw;
  flex-basis: auto;
  margin-top: -2.239583cqw;
  min-height: 16.510417cqw;
  padding: 2.5cqw 3.125cqw 1.614583cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta {
  flex-basis: auto;
  min-height: 23.541667cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__category,
.rolnik-product-slider-editor .rolnik-product-slider__volume {
  font-size: 1.09375cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__title {
  font-size: 2.34375cqw;
  margin-top: 6.458333cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__description {
  font-size: 1.197917cqw;
  margin-top: 3.802083cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--small .rolnik-product-slider__title {
  margin-top: 1.875cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__button {
  font-size: 1.25cqw;
  height: 3.802083cqw;
  min-width: 11.458333cqw;
  padding: 0 1.770833cqw;
  width: fit-content;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--small .rolnik-product-slider__button {
  margin-top: 1.770833cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta .rolnik-product-slider__title {
  margin-top: 0;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta .rolnik-product-slider__description {
  margin-top: 1.25cqw;
}

.rolnik-product-slider-editor .rolnik-product-slider__card--small .rolnik-product-slider__content--without-meta .rolnik-product-slider__button {
  margin-top: auto;
}

.rolnik-product-slider-editor .rolnik-product-slider__editor-placeholder {
  align-items: center;
  background: #f5f2f3;
  color: #171717;
  display: flex;
  justify-content: center;
  min-height: calc(240 * var(--scaled-px));
}
