.wrap {
  position: relative;
  display: inline-flex;
}

.trigger {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.trigger:hover:not(:disabled) {
  background: rgba(var(--primary-rgb) / 0.08);
  border-color: rgba(148, 163, 184, 0.45);
}

.triggerOpen {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb) / 0.14);
}

.trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.swatchDot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.popover {
  position: fixed;
  z-index: 1200;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 280px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--glass-shadow);
}

.option {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid transparent;
  background: transparent;
  transition: border-color 0.15s, transform 0.15s;
}

.option:hover {
  transform: scale(1.06);
}

.optionSelected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb) / 0.12);
}

.optionDot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}
