.udr-module {
  display: none;
  margin: 18px 0 20px;
  color: #171b20;
  text-align: left;
}

.udr-header {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 14px;
}

.udr-title {
  margin: 0;
  color: #171b20;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}

.udr-total {
  flex: 0 1 auto;
  color: #4d5663;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.udr-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.udr-track {
  display: flex;
  flex: 1 1 auto;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.udr-track::-webkit-scrollbar {
  display: none;
}

.udr-item {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  width: calc(var(--udr-image-width, 48px) + 18px);
  min-height: calc(var(--udr-image-height, 72px) + 18px);
  padding: 7px;
  border: 1px solid #dedede;
  border-radius: 6px;
  background: #f8f8f8;
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.udr-item:hover,
.udr-item:focus {
  border-color: #c8c8c8;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.udr-item.is-current {
  border-color: #f5a400;
  background: #fffaf1;
}

.udr-item.is-disabled {
  cursor: not-allowed;
  opacity: .55;
}

.udr-thumb {
  position: relative;
  display: block;
  width: var(--udr-image-width, 48px);
  height: var(--udr-image-height, 72px);
  overflow: hidden;
  border-radius: 5px;
  background: #fff;
}

.udr-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 160ms ease, transform 160ms ease;
}

.udr-item:hover .udr-thumb img,
.udr-item:focus .udr-thumb img {
  filter: saturate(1.04) contrast(1.02);
}

.udr-current-badge {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  display: block;
  overflow: hidden;
  padding: 3px 4px;
  border-radius: 4px;
  background: rgba(17, 24, 39, .86);
  color: #fff;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.udr-swatch-dot {
  display: block;
  width: 18px;
  height: 18px;
  margin-top: 7px;
  border: 2px solid #fff;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .22);
}

.udr-swatch-circle .udr-swatch-dot {
  border-radius: 50%;
}

.udr-swatch-square .udr-swatch-dot {
  border-radius: 2px;
}

.udr-name,
.udr-model,
.udr-stock {
  display: block;
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.udr-name {
  margin-top: 7px;
  color: #444;
  font-size: 12px;
  line-height: 1.3;
}

.udr-model {
  margin-top: 3px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.25;
}

.udr-stock {
  margin-top: 5px;
  color: #b91c1c;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}

.udr-nav {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(23, 27, 32, .08);
  border-radius: 50%;
  background: #fff;
  color: #171b20;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  opacity: .96;
  transform: translateY(-50%);
}

.udr-nav-prev {
  left: 8px;
}

.udr-nav-next {
  right: 8px;
}

.udr-module.has-scroll .udr-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.udr-nav.is-disabled {
  opacity: 0;
  pointer-events: none;
}

.udr-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.udr-nav-prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.udr-nav-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.udr-nav:hover,
.udr-nav:focus {
  color: #f5a400;
  outline: none;
  box-shadow: 0 4px 14px rgba(23, 27, 32, .16);
}

@media (min-width: 1025px) {
  .udr-module.udr-show-desktop {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .udr-module.udr-show-tablet {
    display: block;
  }
}

@media (max-width: 767px) {
  .udr-module.udr-show-phone {
    display: block;
  }

  .udr-module {
    margin: 16px 0 18px;
  }

  .udr-title {
    font-size: 16px;
  }

  .udr-track {
    gap: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .udr-mobile-grid .udr-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .udr-mobile-grid .udr-item {
    width: 100%;
    min-width: 0;
    padding: 5px;
  }

  .udr-mobile-grid .udr-thumb {
    width: min(var(--udr-image-width, 48px), 100%);
  }

  .udr-mobile-grid .udr-nav {
    display: none !important;
  }

  .udr-total {
    font-size: 12px;
  }
}
