.ssw-front {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  font-family: inherit;
  position: relative;
  padding: 0 16px;
}

/* top area */
.ssw-ui-top {
  padding: 18px 0 12px;
}

/* HARD separation: left and right columns */
.ssw-controls {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* left + extreme right */
  gap: 18px;

  /* isolate from theme styles */
  flex-direction: row !important;
  direction: ltr !important;
}

.ssw-controls-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.ssw-controls-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
}

/* Force swatches to the extreme right */
.ssw-controls-right .ssw-swatches {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: nowrap;
}

/* seats */
.ssw-seat-tabs {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-direction: row !important;
}

.ssw-seat {
  border: 1px solid #d7d7d7;
  background: #fff;
  border-radius: 0;
  padding: 9px 18px;
  cursor: pointer;
  color: #111;
  font-size: 13px;
  letter-spacing: 0.2px;
  min-width: 96px;
  text-align: center;
}

.ssw-seat.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* swatches */
.ssw-swatch {
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 6px 2px;
  opacity: 0.85;
}

.ssw-swatch.is-active { opacity: 1; }

.ssw-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85) inset;
}

/* Stage */
.ssw-stage {
  position: relative;
  width: 100%;
  height: clamp(320px, 46vw, 640px);
  background: #f3f3f3;
  overflow: hidden;
}

/* Smooth crossfade */
.ssw-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 320ms ease;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.ssw-img.is-visible { opacity: 1; }

/* Loader */
.ssw-loader {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.ssw-loader.is-on {
  opacity: 1;
  animation: sswSpin 700ms linear infinite;
}

@keyframes sswSpin {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* responsive */
@media (max-width: 900px) {
  .ssw-controls {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .ssw-controls-right {
    width: 100%;
    justify-content: flex-start;
  }

  .ssw-controls-right .ssw-swatches {
    margin-left: 0;
    justify-content: flex-start;
  }
}
