.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  transition: background 0.2s;
}

.row:last-child {
  border-bottom: none;
}

.row:hover {
  background: rgba(var(--primary-rgb) / 0.04);
}

.info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.clickable {
  cursor: pointer;
  border-radius: 8px;
  margin: -8px;
  padding: 8px;
  transition: background 0.2s;
}

.clickable:hover {
  background: rgba(var(--primary-rgb) / 0.06);
}

.textBlock {
  flex: 1;
  min-width: 0;
}

.chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-inline-start: 4px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  vertical-align: middle;
}

:global([dir='rtl']) .chevron {
  transform: scaleX(-1);
}

.chevronOpen {
  transform: rotate(90deg);
}

:global([dir='rtl']) .chevronOpen {
  transform: scaleX(-1) rotate(90deg);
}

.names {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nameEn {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.separator {
  color: var(--text-muted);
  font-size: 14px;
}

.nameFa {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  direction: rtl;
}

.names .nameEn:not(:first-child),
.names .nameFa:not(:first-child) {
  font-weight: 500;
  color: var(--text-secondary);
}

.description {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.controlBtn {
  position: relative;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.iconBtn {
  position: relative;
}

.variationBadge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  border-radius: 50px;
  line-height: 1;
  pointer-events: none;
}

.technicalBadge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 700;
  color: white;
  background: #0d9488;
  border-radius: 50px;
  line-height: 1;
  pointer-events: none;
}

.controlBtn:hover {
  background: rgba(var(--primary-rgb) / 0.1);
  color: var(--primary);
}

.controlBtn.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

@media (max-width: 640px) {
  .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .controls {
    align-self: flex-end;
  }
}
