/* Demo page shell (не часть оригинального виджета) */
.demo-page {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  color: #222;
}

.demo-page__note {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.demo-page__note a {
  color: #0b5cab;
}

.demo-layout-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.demo-layout-row__sibling {
  flex: 1 1 100%;
  min-height: 120px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  box-sizing: border-box;
}

.demo-layout-row__sibling-label {
  font-size: 0.85rem;
  color: #666;
}

@media (min-width: 640px) {
  .demo-layout-row__sibling {
    flex: 0 0 calc(41.666% - 0.5rem);
    max-width: calc(41.666% - 0.5rem);
  }
}

/*
 * Бывший .u_1415939947.dmRespCol.small-12.large-7.medium-7
 * — 12/12 на узком экране, 7/12 на medium+.
 */
.colour-change-ppf-main-column {
  flex: 1 1 100%;
  min-width: 0;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 640px) {
  .colour-change-ppf-main-column {
    flex: 0 0 calc(58.333% - 0.5rem);
    max-width: calc(58.333% - 0.5rem);
  }
}

/* Виджет до/после (бывший .baf__container) */
.paint-comparison-slider {
  --split: 50%;
  margin: 0;
  width: 100%;
}
.colour-change-ppf-main-column {
  margin: 0 auto;
}
.paint-comparison-slider__viewport {
  position: relative;
  width: 100%;
  background: transparent;
  border-radius: 4px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  aspect-ratio: 1920 / 1080;
	max-height: 400px;
  height: auto;
}

.paint-comparison-slider__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.paint-comparison-slider__image--before {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.paint-comparison-slider__after-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 0 0 var(--split, 50%));
  pointer-events: none;
}

.paint-comparison-slider__after-layer .paint-comparison-slider__image--after {
  position: absolute;
  inset: 0;
  object-fit: contain;
}

.paint-comparison-slider__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  z-index: 2;
  width: 44px;
  margin-left: -22px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
	transition: initial;
}

.paint-comparison-slider__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
	transition: initial;
}

.paint-comparison-slider__handle:focus {
  outline: 2px solid #0b5cab;
  outline-offset: 2px;
}

.paint-comparison-slider__handle:focus:not(:focus-visible) {
  outline: none;
}

.paint-comparison-slider__handle-arrows {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.paint-comparison-slider__chevron {
  width: 0;
  height: 0;
  border-style: solid;
  opacity: 0.75;
}

.paint-comparison-slider__chevron--left {
  border-width: 6px 8px 6px 0;
  border-color: transparent #333 transparent transparent;
}

.paint-comparison-slider__chevron--right {
  border-width: 6px 0 6px 8px;
  border-color: transparent transparent transparent #333;
}

.paint-comparison-slider__labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.65rem;
  padding: 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.paint-comparison-slider__label--after {
  text-align: right;
}
