﻿.pt-rb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 28px 72px;
}

.pt-rb__hero {
  margin-bottom: 24px;
}

.pt-rb__hero h1 {
  margin: 12px 0 0;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.03;
}

.pt-rb__note {
  max-width: 820px;
  margin: 16px 0 0;
  color: #4d5f55;
  font-size: 16px;
  line-height: 1.6;
}

.pt-rb__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pt-rb__benefits span {
  padding: 10px 14px;
  border: 1px solid #dfe6ea;
  border-radius: 999px;
  background: #fff;
  color: #317944;
  font-size: 14px;
  font-weight: 800;
}

.pt-rb__layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.pt-rb__sidebar {
  display: grid;
  gap: 16px;
}

.pt-rb__card {
  padding: 22px;
  border: 1px solid #dfe6ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 37, 43, .05);
}

.pt-rb__card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.pt-rb__card--selection {
  border-color: #cbdccf;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf7 100%);
}

.pt-rb__selection-copy,
.pt-rb__selection-summary {
  color: #68737f;
  line-height: 1.55;
}

.pt-rb__selection-summary {
  min-height: 44px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f5f8f5;
  font-size: 14px;
  font-weight: 700;
}

.pt-rb__dropzone {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 24px;
  border: 1px dashed #aebcc5;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfb 0%, #f4f7f2 100%);
  cursor: pointer;
}

.pt-rb__dropzone.is-filled {
  border-color: #4f9f65;
  background: #eef8ef;
}

.pt-rb__dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pt-rb__dropzone strong {
  font-size: 18px;
}

.pt-rb__mobile-actions,
.pt-rb__footer-actions,
.pt-rb__toolbar,
.pt-rb__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pt-rb__filemeta {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #f6f8f5;
}

.pt-rb__filemeta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.pt-rb__privacy,
.pt-rb__signin,
.pt-rb__slow,
.pt-rb__slider-label,
.pt-rb__filemeta span {
  color: #68737f;
}

.pt-rb__steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.pt-rb__steps li {
  position: relative;
  padding: 12px 12px 12px 44px;
  border: 1px solid #dfe6ea;
  border-radius: 10px;
  background: #f9fbf8;
  color: #5c6a66;
  font-size: 14px;
  font-weight: 700;
}

.pt-rb__steps li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #b9c4bb;
  transform: translateY(-50%);
}

.pt-rb__steps li.is-active,
.pt-rb__steps li.is-done {
  border-color: #b9ddc1;
  background: #f0f8f0;
  color: #1f252b;
}

.pt-rb__steps li.is-active::before,
.pt-rb__steps li.is-done::before {
  border-color: #4f9f65;
  background: #4f9f65;
}

.pt-rb__steps li.is-error {
  border-color: #e6c4bd;
  background: #fff5f3;
  color: #a24636;
}

.pt-rb__steps li.is-error::before {
  border-color: #c15c48;
  background: #c15c48;
}

.pt-rb__progress {
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ec;
}

.pt-rb__progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f9f65 0%, #6eb27f 100%);
  transition: width .25s ease;
}

.pt-rb__swatch {
  width: 52px;
  height: 52px;
  padding: 5px;
  border: 1px solid #dfe6ea;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.pt-rb__swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.pt-rb__swatch .is-transparent {
  background: linear-gradient(45deg, #dbe1d8 25%, transparent 25%) 0 0 / 18px 18px, linear-gradient(-45deg, #dbe1d8 25%, transparent 25%) 0 9px / 18px 18px, linear-gradient(45deg, transparent 75%, #dbe1d8 75%) 9px -9px / 18px 18px, linear-gradient(-45deg, transparent 75%, #dbe1d8 75%) -9px 0 / 18px 18px, #eff3ee;
}

.pt-rb__swatch.is-active {
  border-color: #4f9f65;
  box-shadow: 0 0 0 3px rgba(79, 159, 101, .14);
}

.pt-rb__colorpick {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #dfe6ea;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.pt-rb__colorpick input {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.pt-rb__workspace {
  display: grid;
  gap: 16px;
}

.pt-rb__toolbar {
  justify-content: space-between;
}

.pt-rb__slider-label {
  display: grid;
  gap: 8px;
  min-width: min(280px, 100%);
  font-size: 14px;
  font-weight: 700;
}

.pt-rb__stage {
  position: relative;
  min-height: 640px;
  padding: 18px;
  border: 1px solid #dfe6ea;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7f3 100%);
  box-shadow: 0 18px 50px rgba(22, 31, 38, .08);
}

.pt-rb__compare {
  --rb-split: 52%;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 600px;
  border-radius: 14px;
  background: #fff;
}

.pt-rb__compare canvas,
.pt-rb__after-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pt-rb__compare canvas {
  object-fit: contain;
  image-rendering: auto;
}

.pt-rb__after-layer {
  overflow: hidden;
}

#rbOverlayCanvas {
  z-index: 3;
  pointer-events: none;
}

.pt-rb.is-selection-active #rbOverlayCanvas {
  pointer-events: auto;
}

.pt-rb[data-selection-mode="click"].is-selection-active #rbOverlayCanvas {
  cursor: pointer;
}

.pt-rb[data-selection-mode="box"].is-selection-active #rbOverlayCanvas {
  cursor: crosshair;
}



.stage-transparent .pt-rb__compare {
  background: linear-gradient(45deg, #edf0ec 25%, transparent 25%) 0 0 / 24px 24px, linear-gradient(-45deg, #edf0ec 25%, transparent 25%) 0 12px / 24px 24px, linear-gradient(45deg, transparent 75%, #edf0ec 75%) 12px -12px / 24px 24px, linear-gradient(-45deg, transparent 75%, #edf0ec 75%) -12px 0 / 24px 24px, #ffffff;
}

.pt-rb__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #74806f;
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  padding: 24px;
}

.pt-rb__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--rb-split);
  width: 2px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(31, 37, 43, .08);
  transform: translateX(-1px);
  z-index: 4;
}

.pt-rb__divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 37, 43, .16);
  transform: translate(-50%, -50%);
}

@media (max-width: 1100px) {
  .pt-rb__layout {
    grid-template-columns: 1fr;
  }

  .pt-rb__stage,
  .pt-rb__compare {
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  .pt-rb {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pt-rb__hero h1 {
    font-size: 38px;
  }

  .pt-rb__card {
    padding: 18px;
  }

  .pt-rb__stage,
  .pt-rb__compare {
    min-height: 340px;
  }
}


