@import '../../sass/base/index';

$dangerColor: #e5243b;
$darkDangerColor: #890303;
$ctaColor: #008566;
$disabledColor: #cccccc;

.dfo-fab-button {
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 400;
  transition: background-color 0.25s, border-color 0.25s;
  text-decoration: none;
  display: flex;
  flex-shrink: 0;
  border-radius: 50%;
  height: 64px;
  width: 64px;
  justify-content: center;
  align-items: center;

  cursor: pointer;

  background: $primaryLight;
  color: $background;
  border: 2px solid white;
  &:hover,
  &:focus {
    background-color: $secondary;
    border-color: $secondary;
    color: $background;
  }

  &:disabled {
    background-color: $disabledColor;
    border-color: $disabledColor;
    cursor: default;
  }

  &--danger {
    background: $dangerColor;
    color: $textonprimary;
    border-color: $dangerColor;

    &:hover,
    &:focus {
      background-color: $darkDangerColor;
      border-color: $darkDangerColor;
      color: $textonprimary;
    }
  }

  &--cta {
    background: $ctaColor;
    color: $textonprimary;
    border-color: $ctaColor;

    &:hover,
    &:focus {
      background-color: $secondary;
      border-color: $secondary;
      color: $textonprimary;
    }
  }

  &--invert {
    background: $blogBackground;
    color: $text;
    border-color: $text;

    &:hover,
    &:focus {
      color: $background;
      border-color: $text;
      background: $text;
    }
  }
  &--invert:hover path,
  &--invert:focus path {
    fill: $blogBackground;
  }
}

.fab-wrapper {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fab-wrapper-absolute {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.fab-content {
  size: 100%;
  align-self: flex-end;
}

.fab-button {
  align-self: flex-end;
}

.fab-button-icon {
  width: 80px;
}
