:host {
  display: block;
  width: 100%;
  min-width: 0;
}

.variant-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.variant-selector__select {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 38px;
  color: #666666;
  border-color: var(--border-color);
  font-size: 14px;
  cursor: pointer;

  &:focus {
    border-color: var(--tenant-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 153, 51, 0.25);
  }

  &:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }
}

.variant-selector--compact {
  gap: 4px;

  .variant-selector__select {
    min-width: 0;
    max-width: none;
    height: 28px;
    padding: 0.2rem 1.75rem 0.2rem 0.45rem;
    font-size: 11px;
  }
}
