.canvas-product-retouch-overlay {
  position: absolute;
  inset: 0 var(--canvas-inspector-width) 0 0;
  z-index: 90;
  display: none;
  pointer-events: none;
  background: transparent;
}

.canvas-product-retouch-overlay.is-open {
  display: block;
}

.canvas-product-retouch-panel {
  position: absolute;
  left: 50%;
  bottom: clamp(126px, 14vh, 164px);
  pointer-events: auto;
  transform: translateX(-50%);
}

.canvas-product-retouch-parameters {
  display: grid;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #e8edf5;
}

.canvas-product-retouch-label {
  margin: 0;
  color: #111827;
  font-weight: 600;
}

.canvas-product-retouch-label {
  font-size: 14px;
  line-height: 1.5;
}

.canvas-product-retouch-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: var(--rect-radius, 8px);
  color: #667085;
  background: #fff;
}

.canvas-product-retouch-close:hover {
  color: #344054;
  background: #f8fafc;
}

.canvas-product-retouch-close i,
.canvas-product-retouch-close svg {
  width: 18px;
  height: 18px;
}

.canvas-product-retouch-field {
  display: grid;
  gap: 8px;
}

.canvas-product-retouch-background-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.canvas-product-retouch-background-option {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6e3ee;
  border-radius: var(--rect-radius, 8px);
  color: #344054;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.canvas-product-retouch-background-option:hover {
  border-color: rgba(0, 175, 233, 0.44);
  background: rgba(0, 175, 233, 0.05);
}

.canvas-product-retouch-background-option.is-active {
  border-color: #00afe9;
  color: #008fc4;
  background: rgba(0, 175, 233, 0.09);
  box-shadow: 0 0 0 2px rgba(0, 175, 233, 0.08);
}

.canvas-product-retouch-slider {
  --product-retouch-progress: 50%;
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #00afe9 0%, #5cc8f4 var(--product-retouch-progress), #e7f8fe var(--product-retouch-progress), #e7f8fe 100%);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 8px;
  cursor: pointer;
}

.canvas-product-retouch-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.canvas-product-retouch-slider::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #00afe9;
  box-shadow: 0 1px 4px rgba(0, 143, 196, 0.18);
}

.canvas-product-retouch-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #e7f8fe;
}

.canvas-product-retouch-slider::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00afe9 0%, #5cc8f4 100%);
}

.canvas-product-retouch-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #00afe9;
  box-shadow: 0 1px 4px rgba(0, 143, 196, 0.18);
}

.canvas-product-retouch-slider:focus-visible {
  outline: 0;
  filter: drop-shadow(0 0 3px rgba(0, 175, 233, 0.32));
}

.canvas-product-retouch-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  color: #98a2b3;
  font-size: 11px;
  line-height: 1;
  text-align: center;
}

.canvas-product-retouch-scale span:first-child {
  text-align: left;
}

.canvas-product-retouch-scale span:last-child {
  text-align: right;
}

.canvas-product-retouch-help {
  margin: 0;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.canvas-product-retouch-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.canvas-product-retouch-actions .ghost-button,
.canvas-product-retouch-actions .primary-button {
  min-height: 40px;
  border-radius: var(--rect-radius, 8px);
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .canvas-product-retouch-panel {
    bottom: 112px;
  }
}
