.svcp-product-pastilles {
  position: relative;
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

.product-listing-gallery {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.product-complete-outfit__rail .product-listing-gallery {
  touch-action: pan-x pan-y;
}

@media (max-width: 767px) {
  .product-complete-outfit__rail .svcp-listing-gallery__counter {
    display: none;
  }
}

.product-listing-gallery .product-thumbnail {
  position: relative;
  height: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-drag: none;
}

.product-listing-gallery .product-thumbnail img {
  user-select: none;
  -webkit-user-drag: none;
}

.product-listing-gallery.is-sliding .product-thumbnail img {
  will-change: transform;
}

.svcp-listing-gallery__slide-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.06));
  will-change: transform;
}

.svcp-listing-gallery__counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(61, 61, 61, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(51, 51, 51, 0.78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.svcp-listing-gallery__counter[hidden],
.svcp-listing-gallery__nav[hidden] {
  display: none !important;
}

.svcp-listing-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(61, 61, 61, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.1);
  color: rgba(51, 51, 51, 0.72);
  font-size: 0;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-50%);
  transition: opacity 160ms ease, background-color 160ms ease, color 160ms ease;
  cursor: pointer;
}

.svcp-listing-gallery__nav::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
}

.svcp-listing-gallery__nav--prev {
  left: 10px;
}

.svcp-listing-gallery__nav--prev::before {
  margin-left: 3px;
  transform: rotate(-135deg);
}

.svcp-listing-gallery__nav--next {
  right: 10px;
}

.svcp-listing-gallery__nav--next::before {
  margin-right: 3px;
  transform: rotate(45deg);
}

.svcp-listing-gallery__nav:hover,
.svcp-listing-gallery__nav:focus-visible {
  background: rgba(255, 255, 255, 0.94);
  color: #333;
}

.svcp-listing-gallery__nav.is-disabled,
.svcp-listing-gallery__nav[aria-disabled="true"] {
  border-color: rgba(61, 61, 61, 0.06);
  background: rgba(255, 255, 255, 0.58);
  color: rgba(51, 51, 51, 0.28);
  cursor: default;
}

.svcp-listing-gallery__nav.is-disabled:hover,
.svcp-listing-gallery__nav.is-disabled:focus-visible,
.svcp-listing-gallery__nav[aria-disabled="true"]:hover,
.svcp-listing-gallery__nav[aria-disabled="true"]:focus-visible {
  background: rgba(255, 255, 255, 0.58);
  color: rgba(51, 51, 51, 0.28);
}

@media (min-width: 768px) {
  .product-listing-gallery.has-gallery .svcp-listing-gallery__nav {
    display: inline-flex;
  }

  .product-miniature:hover .product-listing-gallery.has-gallery .svcp-listing-gallery__nav,
  .product-miniature:focus-within .product-listing-gallery.has-gallery .svcp-listing-gallery__nav,
  .product-listing-gallery.has-gallery:hover .svcp-listing-gallery__nav {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .svcp-listing-gallery__nav {
    display: none !important;
  }

  .svcp-listing-gallery__counter {
    right: 8px;
    bottom: 8px;
    min-width: 32px;
    height: 20px;
    padding: 0 7px;
    font-size: 10px;
  }
}

.product-miniature--with-colorpastilles {
  overflow: visible !important;
}

.product-card__content--with-colorpastilles .product-title {
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

.product-card__content--with-colorpastilles .svcp-product-pastilles {
  margin-top: 0;
  padding: 0 4px 10px;
  border-bottom: 1px solid #ece6dd;
}

.product-card__content--with-colorpastilles .product-price-and-shipping {
  margin-top: -8px;
}

.svcp-product-pastilles-placeholder {
  min-height: 41px;
  margin-top: 0;
  padding: 0 4px 10px;
  border-bottom: 1px solid #ece6dd;
}

.svcp-product-pastilles-placeholder__space {
  min-height: 24px;
}

.svcp-product-pastilles__label {
  max-width: 100%;
  margin-bottom: 3px;
  overflow: hidden;
  color: rgba(54, 54, 54, 0.46);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.35;
  padding-top: 1px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.svcp-product-pastilles__viewport {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.svcp-product-pastilles.is-panel-open {
  z-index: 60;
  padding: 0 4px 10px !important;
  border: none;
  border-bottom: 1px solid #ece6dd;
  border-radius: 0px;
  background: #fff;
  box-shadow: none;
}

.svcp-product-pastilles__track {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  opacity: 1;
  transition: opacity 180ms ease;
  white-space: nowrap;
}

.svcp-product-pastilles:not(.is-ready) .svcp-product-pastilles__track {
  opacity: 0;
}

.svcp-pastille {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  appearance: none;
  cursor: pointer;
}

.svcp-pastille[hidden],
.svcp-pastille-more[hidden],
.svcp-pastille-panel[hidden] {
  display: none !important;
}

.svcp-pastille::before {
  content: "";
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  border: 0;
  border-radius: 50% !important;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.18);
}

.svcp-pastille__visual {
  display: none !important;
}

.svcp-pastille--color::before {
  background: var(--svcp-color-1, #d8d8d8);
}

.svcp-pastille--double_color::before {
  background: linear-gradient(135deg, var(--svcp-color-1, #d8d8d8) 0 50%, var(--svcp-color-2, #fff) 50% 100%);
}

.svcp-pastille--transparent::before {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95) 0 24%, rgba(255, 255, 255, 0) 25%),
    linear-gradient(135deg, rgba(114, 202, 255, 0.42), rgba(255, 255, 255, 0.74) 42%, rgba(255, 208, 118, 0.34)),
    #f7fbff;
}

.svcp-pastille--multicolor::before {
  background: conic-gradient(#f44336, #ff9800, #ffeb3b, #20bf55, #16b7d7, #3f51b5, #b832ff, #f44336);
}

.svcp-pastille--unknown::before {
  background: repeating-linear-gradient(135deg, #d6d6d6 0 3px, #f7f7f7 3px 6px);
}

.svcp-pastille.is-active::before,
.svcp-pastille:hover::before,
.svcp-pastille:focus-visible::before {
  box-shadow: 0 0 0 2px #333;
}

.svcp-pastille-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 24px;
  padding: 1px 0 0;
  border: 1px solid rgba(61, 61, 61, 0.16);
  border-radius: 999px;
  background: #fff;
  color: rgba(61, 61, 61, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.svcp-product-pastilles.has-more .svcp-pastille-more {
  justify-content: center;
}

.svcp-pastille-more:hover,
.svcp-pastille-more:focus-visible {
  border-color: rgba(61, 61, 61, 0.36);
  color: #1f1f1f;
}

.svcp-pastille-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 10px);
  z-index: 61;
  width: auto;
  max-height: none;
  padding: 4px 4px 8px;
  border: none;
  border-top: 0;
  border-bottom: 3px solid rgba(61, 61, 61, 0.16);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.svcp-pastille-panel__head {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.svcp-pastille-panel__title {
  color: rgba(61, 61, 61, 0.54);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.svcp-pastille-panel__non-relevant-label {
  max-width: 100%;
  margin: 5px 0;
  overflow: hidden;
  color: rgba(54, 54, 54, 0.46);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.svcp-pastille-panel__non-relevant-label[hidden] {
  display: none !important;
}

.svcp-pastille-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(61, 61, 61, 0.12);
  border-radius: 50%;
  background: #fff;
  color: rgba(61, 61, 61, 0.68);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.svcp-pastille-panel__list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  align-content: flex-start;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.svcp-pastille-panel__item.svcp-pastille {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  flex: 0 0 24px;
}

.svcp-pastille-panel__item.svcp-pastille::before {
  flex: 0 0 auto;
  width: 17px !important;
  height: 17px !important;
}

.svcp-pastille-panel__label {
  display: none;
}

.svcp-product-pastilles.is-panel-open .svcp-pastille-more {
  max-width: 34px;
}

@media (max-width: 767px) {
  .svcp-product-pastilles,
  .svcp-product-pastilles-placeholder {
    min-height: 52px;
  }

  .svcp-product-pastilles-placeholder__space {
    min-height: 28px;
  }

  .svcp-product-pastilles__track {
    gap: 4px;
  }

  .svcp-pastille {
    position: relative;
    flex-basis: 28px;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  .svcp-pastille::before {
    width: 20px !important;
    height: 20px !important;
  }

  .svcp-pastille::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
  }

  .svcp-pastille-more {
    flex-basis: 34px;
    width: 34px;
    max-width: 34px;
    min-width: 32px;
    height: 26px;
    padding: 0;
    font-size: 12px;
    touch-action: manipulation;
  }

  .svcp-pastille-panel {
    position: absolute;
    inset: auto 0 auto 0;
    top: calc(100% - 10px);
    z-index: 61;
    width: auto;
    max-height: none;
    padding: 4px 4px 8px;
    border: none;
    border-bottom: 3px solid rgba(61, 61, 61, 0.16);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .svcp-pastille-panel.is-scrollable::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 3px;
    height: 16px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  }

  .svcp-pastille-panel__head {
    display: none;
  }

  .svcp-pastille-panel__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 124px;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: contain;
    padding-right: 0;
    scrollbar-width: thin;
  }

  .svcp-pastille-panel.is-scrollable .svcp-pastille-panel__list {
    overflow-y: auto;
  }

  .svcp-pastille-panel__item.svcp-pastille {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    flex: 0 0 28px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    touch-action: manipulation;
  }

  .svcp-pastille-panel__item.svcp-pastille::before {
    width: 20px !important;
    height: 20px !important;
  }

  .svcp-pastille-panel__label {
    display: none;
  }

}
