.sms-pbc {
  --sms-pbc-columns: 4;
  --sms-pbc-rows: 1;
  --sms-pbc-column-gap: 24px;
  --sms-pbc-column-width: 25%;
  --sms-pbc-row-gap: 24px;
  --sms-pbc-header-gap: 22px;
  --sms-pbc-arrow-size: 46px;
  --sms-pbc-side-arrow-size: 44px;
  --sms-pbc-side-arrow-offset: 4px;
  --sms-pbc-arrow-rail: calc((var(--sms-pbc-side-arrow-size) / 2) + 4px);
  --sms-pbc-edge-fade: 22px;
  --sms-pbc-fade-surface: #fff;
  --sms-pbc-shadow-space: 28px;
  --sms-pbc-side-space: 34px;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  color: #182235;
  background: #fff;
  isolation: isolate;
}

.elementor-widget-sms_product_carousel,
.elementor-widget-sms_product_carousel > .elementor-widget-container {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.sms-pbc *,
.sms-pbc *::before,
.sms-pbc *::after {
  box-sizing: border-box;
}

/* Legacy safeguard: old widget data may still contain the former full-width
   option, but the carousel must always follow its Elementor cell. */
.sms-pbc--full-width {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-inline: 0;
}

.sms-pbc__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 var(--sms-pbc-header-gap);
}

.sms-pbc__heading-group {
  min-width: 0;
}

.sms-pbc__eyebrow {
  margin: 0 0 5px;
  color: #119d63;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sms-pbc__heading {
  margin: 0;
  color: #182235;
  font-size: clamp(25px, 2.4vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.sms-pbc__stage {
  position: relative;
  z-index: 0;
  min-width: 0;
  padding-inline: max(var(--sms-pbc-arrow-rail), var(--sms-pbc-side-space));
  padding-bottom: var(--sms-pbc-shadow-space);
  isolation: isolate;
  overflow: visible;
}

.sms-pbc__viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  overflow: visible;
  -webkit-clip-path: inset(-80px 0 -80px 0);
  clip-path: inset(-80px 0 -80px 0);
  outline: none;
  touch-action: pan-y pinch-zoom;
  cursor: default;
}

.sms-pbc__viewport .sms-pb2 {
  cursor: default;
}

.sms-pbc__viewport button,
.sms-pbc__viewport input,
.sms-pbc__viewport select,
.sms-pbc__viewport textarea {
  touch-action: manipulation;
}

.sms-pbc__viewport:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgba(35, 137, 215, 0.32);
  outline-offset: 4px;
}

.sms-pbc--edge-fade .sms-pbc__stage::before,
.sms-pbc--edge-fade .sms-pbc__stage::after {
  content: "";
  position: absolute;
  z-index: 20;
  top: 0;
  bottom: var(--sms-pbc-shadow-space);
  width: var(--sms-pbc-edge-fade);
  pointer-events: none;
}

.sms-pbc--edge-fade .sms-pbc__stage::before {
  left: max(var(--sms-pbc-arrow-rail), var(--sms-pbc-side-space));
  background: linear-gradient(90deg, var(--sms-pbc-fade-surface), transparent);
}

.sms-pbc--edge-fade .sms-pbc__stage::after {
  right: max(var(--sms-pbc-arrow-rail), var(--sms-pbc-side-space));
  background: linear-gradient(270deg, var(--sms-pbc-fade-surface), transparent);
}

.sms-pbc__track {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  column-gap: var(--sms-pbc-column-gap);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.sms-pbc__column {
  display: grid;
  flex: 0 0 var(--sms-pbc-column-width);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(var(--sms-pbc-rows), minmax(0, auto));
  align-content: stretch;
  gap: var(--sms-pbc-row-gap);
  min-width: 0;
}

.sms-pbc__item {
  min-width: 0;
  max-width: 100%;
}

.sms-pbc__item > .sms-pb2 {
  /*
   * The outer carousel must never zoom its card: ProductBox keeps its native
   * hover zoom exclusively on .sms-pb2__slide-image.
   */
  --sms-pb2-hover-scale: 1 !important;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.sms-pbc.is-jumping .sms-pbc__track {
  opacity: 0.62;
  transition: opacity 160ms ease !important;
}

.sms-pbc__side-arrows {
  position: absolute;
  z-index: 1000;
  inset: calc((100% - var(--sms-pbc-shadow-space)) / 2) var(--sms-pbc-side-arrow-offset) auto;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  pointer-events: none;
  transform: translateY(-50%);
}

.sms-pbc__side-arrow {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: var(--sms-pbc-side-arrow-size);
  height: var(--sms-pbc-side-arrow-size);
  min-width: var(--sms-pbc-side-arrow-size);
  min-height: var(--sms-pbc-side-arrow-size);
  padding: 0;
  place-items: center;
  color: #2389d7;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 999px;
  box-shadow: none !important;
  cursor: pointer;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.sms-pbc__side-arrow svg {
  display: block;
  width: 78%;
  height: 78%;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 1))
    drop-shadow(0 1px 3px rgba(15, 63, 97, 0.36));
}

.sms-pbc__side-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sms-pbc__side-arrow:hover {
  color: #f59e0b;
  background: transparent !important;
  opacity: 1;
  transform: scale(1.12);
}

.sms-pbc__side-arrow:active {
  background: transparent !important;
  transform: scale(0.94);
}

.sms-pbc__side-arrow:focus-visible {
  outline: 3px solid rgba(35, 137, 215, 0.3);
  outline-offset: 2px;
}

.sms-pbc__side-arrow:disabled {
  opacity: 0.28;
  pointer-events: none;
}

.sms-pbc__arrows {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.sms-pbc__arrow {
  display: inline-grid;
  width: var(--sms-pbc-arrow-size);
  height: var(--sms-pbc-arrow-size);
  min-width: var(--sms-pbc-arrow-size);
  min-height: var(--sms-pbc-arrow-size);
  padding: 0;
  place-items: center;
  border: 1px solid #cfe3f2;
  border-radius: 999px;
  color: #197ec5;
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(25, 78, 115, 0.12);
  cursor: pointer;
  appearance: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.sms-pbc__arrow svg {
  display: block;
  width: 48%;
  height: 48%;
}

.sms-pbc__arrow:hover {
  color: #fff;
  background-color: #2389d7;
  border-color: #2389d7;
  box-shadow: 0 12px 28px rgba(35, 137, 215, 0.24);
  transform: translateY(-2px);
}

.sms-pbc__arrow:active {
  transform: translateY(0) scale(0.96);
}

.sms-pbc__arrow:focus-visible {
  outline: 3px solid rgba(35, 137, 215, 0.3);
  outline-offset: 3px;
}

.sms-pbc__arrow:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.sms-pbc--arrows-overlay .sms-pbc__arrows {
  position: absolute;
  z-index: 8;
  inset: 50% 8px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.sms-pbc--arrows-overlay .sms-pbc__arrow {
  pointer-events: auto;
}

.sms-pbc__pagination {
  display: flex;
  min-height: 12px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: opacity 180ms ease;
}

.sms-pbc__pagination.is-hidden,
.sms-pbc.is-static .sms-pbc__pagination,
.sms-pbc.is-static .sms-pbc__arrows,
.sms-pbc.is-static .sms-pbc__side-arrows {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.sms-pbc__dot {
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background-color: #83b9df;
  cursor: pointer;
  appearance: none;
  transition:
    width 200ms ease,
    background-color 200ms ease,
    transform 200ms ease;
}

.sms-pbc__dot:hover {
  transform: scale(1.2);
}

.sms-pbc__dot.is-active {
  width: 24px;
  background-color: #f59e0b;
}

.sms-pbc__dot:focus-visible {
  outline: 3px solid rgba(35, 137, 215, 0.3);
  outline-offset: 3px;
}

.sms-pbc__fraction {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #83b9df;
  font-size: 14px;
  font-weight: 700;
}

.sms-pbc__fraction-current {
  color: #f59e0b;
  font-size: 18px;
}

.sms-pbc-editor-message {
  padding: 18px 20px;
  border: 1px dashed #8bbfe4;
  border-radius: 12px;
  color: #31546d;
  background: #f2f8fc;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 768px) {
  .sms-pbc--equal-height .sms-pbc__column {
    grid-auto-rows: minmax(0, 1fr);
  }

  .sms-pbc--equal-height .sms-pbc__item,
  .sms-pbc--equal-height .sms-pbc__item > .sms-pb2 {
    height: 100%;
  }
}

@media (max-width: 767px) {
  .sms-pbc {
    --sms-pbc-side-arrow-size: 36px;
    --sms-pbc-side-arrow-offset: 0px;
    --sms-pbc-shadow-space: 18px;
    --sms-pbc-side-space: 22px;
  }

  .sms-pbc__header {
    align-items: center;
    gap: 14px;
  }

  .sms-pbc__eyebrow {
    font-size: 11px;
  }

  .sms-pbc__heading {
    font-size: clamp(23px, 8vw, 32px);
  }

  .sms-pbc--edge-fade .sms-pbc__stage::before,
  .sms-pbc--edge-fade .sms-pbc__stage::after {
    content: none;
  }

  .sms-pbc--arrows-overlay .sms-pbc__arrows {
    inset-inline: 4px;
  }

  .sms-pbc__pagination {
    margin-top: 14px;
  }

  .sms-pbc__column {
    grid-template-rows: repeat(var(--sms-pbc-rows), auto);
  }

  .sms-pbc__item,
  .sms-pbc__item > .sms-pb2 {
    height: auto;
  }

}

@media (prefers-reduced-motion: reduce) {
  .sms-pbc__track,
  .sms-pbc__arrow,
  .sms-pbc__side-arrow,
  .sms-pbc__dot {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
