.speed-dial-fab,
.speed-dial-item {
  transition:
    bottom 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    right 0.38s ease,
    width 0.38s ease,
    height 0.38s ease,
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s !important;
}

.speed-dial-item span {
  transition: opacity 0.2s ease, font-size 0.2s ease, padding 0.2s ease !important;
}

@media (max-width: 768px) {
  .speed-dial-fab {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }

  .speed-dial-item {
    right: 16px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .speed-dial-item[data-open="true"][data-index="0"] {
    bottom: 76px !important;
  }

  .speed-dial-item[data-open="true"][data-index="1"] {
    bottom: 132px !important;
  }

  .speed-dial-item[data-open="true"][data-index="2"] {
    bottom: 188px !important;
  }

  .speed-dial-item[data-open="true"][data-index="3"] {
    bottom: 244px !important;
  }

  .speed-dial-item span {
    font-size: 10px !important;
    padding: 3px 8px !important;
    right: calc(100% + 8px) !important;
  }

  .speed-dial-item svg {
    width: 18px !important;
    height: 18px !important;
  }
}

@media (max-width: 480px) {
  .speed-dial-fab {
    bottom: 12px !important;
    right: 12px !important;
    width: 44px !important;
    height: 44px !important;
  }

  .speed-dial-item {
    right: 12px !important;
    width: 40px !important;
    height: 40px !important;
  }

  .speed-dial-item[data-open="true"][data-index="0"] {
    bottom: 68px !important;
  }

  .speed-dial-item[data-open="true"][data-index="1"] {
    bottom: 118px !important;
  }

  .speed-dial-item[data-open="true"][data-index="2"] {
    bottom: 168px !important;
  }

  .speed-dial-item[data-open="true"][data-index="3"] {
    bottom: 218px !important;
  }

  .speed-dial-item span {
    font-size: 9px !important;
    padding: 2px 7px !important;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
