.button {
  --color: #00a97f;

  padding: 0.6em 2.3em;

  background-color: transparent;

  border-radius: 0.3em;

  position: relative;

  overflow: hidden;

  cursor: pointer;

  transition: 0.5s;

  font-weight: 400;

  font-size: 17px;

  border: 1px solid;

  font-family: inherit;

  text-transform: uppercase;

  color: var(--color);

  z-index: 1;
}

.button::before,
.button::after {
  content: "";

  display: block;

  width: 50px;

  height: 50px;

  transform: translate(-50%, -50%);

  position: absolute;

  border-radius: 50%;

  z-index: -1;

  background-color: var(--color);

  transition: 1s ease;
}

.button::before {
  top: -1em;

  left: -1em;
}

.button::after {
  left: calc(100% + 1em);

  top: calc(100% + 1em);
}

.button:hover::before,
.button:hover::after {
  height: 410px;

  width: 410px;
}

.button:hover {
  color: rgb(10, 25, 30);
}

.button:active {
  filter: brightness(0.8);
}

.dealer {
  position: fixed;
  bottom: 110px;
  right: 20px;
  z-index: 1000;
}
.button-dealer {
  --color: #00a97f;

  padding: 0.6em 2.3em;

  background-color: transparent;

  border-radius: 0.3em;

  position: relative;

  overflow: hidden;

  cursor: pointer;

  transition: 0.5s;

  font-weight: 400;

  font-size: 17px;

  border: 1px solid;

  font-family: inherit;

  text-transform: uppercase;

  color: var(--color);

  z-index: 1;
}

.button-dealer::before,
.button-dealer::after {
  content: "";

  display: block;

  width: 50px;

  height: 50px;

  transform: translate(-50%, -50%);

  position: absolute;

  border-radius: 50%;

  z-index: -1;

  background-color: var(--color);

  transition: 1s ease;
}

.button-dealer::before {
  top: -1em;

  left: -1em;
}

.button-dealer::after {
  left: calc(100% + 1em);

  top: calc(100% + 1em);
}

.button-dealer:hover::before,
.button-dealer:hover::after {
  height: 410px;

  width: 410px;
}

.button-dealer:hover {
  color: rgb(10, 25, 30);
}

.button-dealer:active {
  filter: brightness(0.8);
}

/* Styles for the fixed button container */
.dealer-button {
  position: fixed;
  bottom: 110px;
  right: 20px;
  z-index: 1000;
}

/* Transparent button style */
.btn-dealer {
  display: inline-block;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 2px solid #fff; /* Transparent border */
  border-radius: 5px;
  background: black;
  transition: background 0.4s ease, color 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Hover effect: background gradient from left to right */
.btn-dealer::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #00a97f, #339880); /* Gradient color */
  color: #000;
  transition: left 0.4s ease;
  z-index: 0;
}

/* Hover changes the background */
.btn-dealer:hover::before {
  left: 0; /* Slide the gradient to cover the button */
}

.btn-dealer:hover {
  color: #000; /* Change text color when hovered */
}

/* Ensure text stays on top of the gradient */
.btn-dealer {
  position: relative;
  z-index: 1;
}
