/* ==========================================================================
   paintOptions.css — bilah opsi alat pro & aksi seleksi (E2).
   Pil kaca melayang di atas panggung, di tengah atas. Di ponsel melebar
   penuh dan bisa digeser mendatar.
   ========================================================================== */

.paint-options {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(24, 27, 35, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  scrollbar-width: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.paint-options[hidden],
.paint-options__group[hidden],
.paint-options__hint[hidden] {
  display: none;
}

.paint-options__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.paint-options__group + .paint-options__group {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.paint-options__hint {
  flex: 0 0 auto;
  max-width: 220px;
  font-size: 12px;
  color: var(--paint-muted);
  white-space: nowrap;
}

.paint-options__seg .paint-seg__btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  white-space: nowrap;
}

.paint-chip {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--paint-rule);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.paint-chip.is-active {
  border-color: var(--paint-accent);
  color: rgba(255, 255, 255, 1);
  background: var(--paint-accent);
}

.paint-slider {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--paint-muted);
}

.paint-slider__input {
  width: 96px;
  accent-color: var(--paint-accent);
}

.paint-slider__value {
  min-width: 30px;
  color: var(--paint-ink);
  font-variant-numeric: tabular-nums;
}

.paint-options__swatch {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 7px;
  background: var(--swatch, rgba(255, 255, 255, 1));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.paint-options__swap,
.paint-options__act {
  flex: 0 0 auto;
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
}

.paint-options__act:disabled {
  opacity: 0.35;
  cursor: default;
}

.paint-options__count {
  flex: 0 0 auto;
  min-width: 44px;
  font-size: 12px;
  color: var(--paint-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .paint-options {
    top: 6px;
    left: 6px;
    right: 6px;
    max-width: none;
    gap: 8px;
    padding: 5px 8px;
    transform: none;
  }
  .paint-options__hint { display: none; }
  .paint-slider__input { width: 72px; }
}
