@use "../../themes/default/variables";

.rs-geolocation {
  cursor: pointer;
  height: variables.$btn-size-base;
  width: variables.$btn-size-base;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-align: center;
  font-size: 20px;
  color: white;
  background-color: variables.$btn-primary-color;
  transition: background-color 0.5s ease;

  &:hover {
    background-color: variables.$btn-primary-color-hover;
  }

  &.rs-active {
    animation-name: blinking;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }

  @keyframes blinking {
    0% {
      color: white;
    }

    50% {
      color: variables.$btn-primary-color;
    }

    100% {
      color: white;
    }
  }
}
