.action-button-component a,
.action-button-component button {
  height: 40px;
  padding: 0 10px 0 0;
  vertical-align: middle;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--cw-button-main-border-color);
  background-color: var(--cw-button-main-background-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  max-width: 40px;
  min-width: 40px;
  color: inherit;
  text-decoration: none;
}

.action-button-component .button-text {
  display: none;
}

@media screen and (min-width: 700px) {
  .action-button-component.slide a,
  .action-button-component.slide button {
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s ease-in;
  }

  .action-button-component.slide a:hover,
  .action-button-component.slide button:hover {
    max-width: 500px;
  }

  /*  The icon box is the full width of the collapsed button, so a label that
      reaches back into it stays partly visible  */
  .action-button-component.slide .button-text {
    display: inline-block;
    margin-left: 0;
  }
}

.action-button-component a:focus,
.action-button-component button:focus {
  outline: solid 2px var(--cw-button-main-border-color);
}

.action-button-component .button-icon {
  width: 40px;
  margin: 0;
  padding: 0;
  /*  Wider than the collapsed button, so it must not be squeezed to fit  */
  flex: none;
}

