/* ==========================================================================
 * Icons
 * ========================================================================== */

.mds-c-icons {
  display: none; /* Hides Embedded SVG Sprite */
}

.mds-c-icon {
  display: inline-block;
  fill: currentcolor;
  flex-shrink: 0;
  height: 1em;
  line-height: inherit;
  overflow: visible;
  position: relative;
  vertical-align: -0.2em;
  width: 1em;

  &__badge {
    fill: var(--mds-t-color--red);
  }
}

@keyframes mds-i-bell-ring {
  10% {
    transform: rotate(15deg);
  }

  18% {
    transform: rotate(-30deg);
  }

  30% {
    transform: rotate(30deg);
  }

  40% {
    transform: rotate(0);
  }
}

@keyframes mds-i-bell-clap {
  10% {
    transform: translateX(15%);
  }

  18% {
    transform: translateX(-20%);
  }

  25% {
    transform: translateX(20%);
  }

  35% {
    transform: translateX(-20%);
  }

  43% {
    transform: translateX(0);
  }
}

@keyframes mds-i-bell-rip {
  0%,
  10% {
    opacity: 1;
    transform: scale(0, 0);
  }

  50%,
  100% {
    opacity: 0;
    transform: scale(4, 4);
  }
}

@keyframes mds-i-dots-bounce {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-33%);
  }
}

@keyframes mds-i-clock-tick {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.mds-i-bell__badge-dot {
  fill: var(--mds-t-color--red);
  stroke: var(--mds-t-background-color--primary);
  stroke-width: 2;
}

.mds-i-bell__badge-ripple {
  fill: none;
}

.mds-i-bell--animated {
  .mds-i-bell__bell {
    animation: mds-i-bell-ring 3s infinite ease-in-out 1s;
    transform-origin: center top;
  }

  .mds-i-bell__clapper {
    animation: mds-i-bell-clap 3s infinite ease-in-out 1s;
  }

  .mds-i-bell__badge-ripple {
    animation: mds-i-bell-rip 3s infinite 1s;
    opacity: 0;
    stroke: var(--mds-t-color--red);
    stroke-width: 2;
    transform-origin: calc(50% * 1.375) calc(50% * 0.375);
  }
}

.mds-i-clock--animated {
  g {
    transform-origin: center;
  }

  .mds-i-clock__minute {
    animation: mds-i-clock-tick 5s linear infinite;
  }

  .mds-i-clock__hour {
    animation: mds-i-clock-tick 60s linear infinite;
  }
}

.mds-i-clock {
  fill: rgb(49 201 3);
  position: absolute;
  right: 50%;
  top: 50%;

  .hour,
  .minute {
    stroke: rgb(49 201 3);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2px;
  }
}

.mds-i-dots-horizontal--bounce {
  .mds-i-dots-horizontal__dot {
    animation-direction: alternate;
    animation-duration: 0.375s;
    animation-iteration-count: infinite;
    animation-name: mds-i-dots-bounce;
    animation-timing-function: cubic-bezier(0.39, 0.575, 0.565, 1);

    &:nth-child(1) {
      animation-delay: calc(0.0625s * 1);
    }

    &:nth-child(2) {
      animation-delay: calc(0.0625s * 2);
    }

    &:nth-child(3) {
      animation-delay: calc(0.0625s * 3);
    }
  }
}
