@charset "utf-8";

:host {
  display: inline-block;

  --color-text:   #fff;
  --color-static: #e10050;
  --color-active: #f51c68;
  --color-button: #f70c5e;
  --color-action: #cf0049;
}

:host([outline]) {
  --color-text: #222;
  --color-button: #f6f6f6;
  --color-action: #e9aabc;
}

:host div.root {
  background-color: var(--color-static);
  border: none;
  border-radius: 16px;
  box-sizing: border-box;
  color: var(--color-text);
  cursor: default;
  display: block;
  font-family: Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  height: 32px;
  outline: none;
  padding: 6px 16px;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap
}

:host div.root:hover {
  background-color: var(--color-active);
}

:host([outline]) div.root {
  background: none;
  border: 1px solid var(--color-static);
  padding: 5px 15px;
}

:host([outline]) div.root:hover {
  background-color: none;
  border-color: var(--color-active);
}

button.action {
  display: none;
  height: 24px;
  width: 24px;
  margin-left: 2px;
  margin-right: -12px;
  margin-top: -2px;
  cursor: pointer;
  border-radius: 12px;
  border: none;
  background-color: var(--color-button);
  text-align: center;
  outline: none;
  vertical-align: top;
  padding: 0;
}

button.action:hover {
  background-color: var(--color-action);
}

button.action > material-icon {
  display: inline;
}

:host([action]) button.action {
  display: inline;
}

slot[name="avatar"]::slotted(*) {
  width: 32px;
  height: 32px;
  margin-right: 2px;
  margin-left: -16px;
  margin-top: -6px;
  vertical-align: top;
}
