.moa {
  font: var(--petite);
  font-weight: 600;
  transition: .3s ease-in-out;
  overflow: hidden;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.moa:not(.moa--close)::after {
  z-index: 1;
}

.moa--link {
  color: currentColor;
  position: relative;
}

.moa--link:hover {
  color: currentColor;
}

.moa--link:hover .moa__text {
  background-size: 100% 5px;
}

.moa--link .moa__text {
  display: inline;
  color: inherit;
  font-weight: 600;
  background-image: linear-gradient(var(--subtle-lime), var(--subtle-lime));
  background-repeat: no-repeat;
  background-size: 0% 5px;
  background-position: 0 calc(100% - 6px);
  transition: background-size .3s ease-in-out;
}

.moa--button {
  background-color: var(--teal);
  color: white;
  border-radius: 2px;
  position: relative;
  border: none;
}

.moa--button.moa--default {
  padding: 15px 35px;
}

.moa--button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -30px;
  width: 0;
  height: 100%;
  z-index: 0;
  border-radius: 0 25px 25px 0;
  transition: .5s ease;
  background-color: var(--slate);
}

.moa--button:hover::before {
  width: calc(100% + 60px);
}

.moa--button .moa__text {
  z-index: 1;
  position: relative;
  display: inline-block;
}

.moa--button.moa--dark:hover .moa__text {
  color: white;
}

/* .moa--button.moa--dark::before {
  background-color: var(--slate);
} */

.moa:not(.moa--close):not(.moa--bordered)::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='7' viewBox='0 0 6 7' fill='none'%3E%3Cpath d='M5.3 3.11885L0 6.23771L2.6751e-07 0L5.3 3.11885Z' fill='%23AFD700'/%3E%3C/svg%3E");
}

.moa--low {
  padding: 6px 15px 6px 25px;
}

.moa--bordered {
  border: 1px solid var(--teal);
  background-color: transparent;
  padding: 5px 15px 5px 25px;
  color: var(--teal);
}

.moa--bordered::after {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='7' viewBox='0 0 6 7' fill='none'%3E%3Cpath d='M5.3 3.11885L0 6.23771L2.6751e-07 0L5.3 3.11885Z' fill='%23195365'/%3E%3C/svg%3E");
}

.moa--close {
  font: var(--common);
  font-weight: 600;
  background-color: white;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
}

.moa--close::after {
  display: inline-block;
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M1 1L8.82686 8.82686' stroke='%23195365' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.82715 1L1.00029 8.82686' stroke='%23195365' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  padding: 0 0 0 5px;
}

.moa--bright {
  background-color: var(--paper);
  color: var(--teal);
  width: fit-content;
}

.moa--bright::before {
  background-color: var(--subtle-slate);
}

.moa--bright:hover .moa__text {
  color: var(--teal);
}

.moa--submit {
  padding: 15px 35px;
}

.moa--submit > input {
  background-color: transparent;
  color: inherit;
  font: inherit;
  border: none;
  padding: 0;
  cursor: pointer;
}

.moa--submit > input:hover,
.moa--submit > input:focus,
.moa--submit > input:active {
  background-color: transparent !important;
  box-shadow: none !important;
}

.moa__text {
  display: block;
  transition: .3s ease-in-out;
}