.button-custom {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  border-color: transparent;
  cursor: pointer;
  display: block;
  outline: none;
  position: relative;
  text-transform: uppercase;
  width: fit-content;
  background-color: var(--color-tree-poppy);
  border-radius: 50px;
  color: var(--color-white);
  font-family: var(--font-ft-demi-c);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 15px 70px;
  white-space: nowrap;
}

.button-custom:hover {
  color: var(--color-white);
}

.button-custom.size-medium {
  padding: 15px 35px;
  font-size: 10px;
}

.button-arrow,
.note-button-arrow {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px;
  border-radius: 50%;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  border-color: transparent;
  cursor: pointer;
  display: block;
  outline: none;
  position: relative;
}

.button-arrow {
  background-image: url("../../../images/ui-line-icons/arrow.svg");
  background-color: var(--color-blue-dark);
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
}

.note-button-arrow {
  width: 47px;
  height: 47px;
}

.note-button-arrow-light {
  background-color: var(--color-white);
}

.template-section-dark .note-button-arrow {
  background-color: var(--color-white-a10);
}

.note-white .note-button-arrow {
  background-color: var(--color-cyan-blue-a10);
}

.note-button-arrow:after {
  content: "";
  -webkit-mask-image: url(/wp-content/themes/pnnsite/assets/images/ui-line-icons/arrow.svg);
  mask-image: url(/wp-content/themes/pnnsite/assets/images/ui-line-icons/arrow.svg);
  background-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 12px;
  -webkit-mask-repeat: no-repeat;
  width: 47px;
  height: 47px;
  display: block;
  top: -2px;
  padding: 0;
  margin: 0;
  left: -2px;
  position: absolute;
}

.note-button-arrow-disabled {
  cursor: default;
}

.note-button-arrow-disabled:after {
  opacity: 0.3;
}

.note-button-arrow-light:after {
  background-color: var(--color-black-dark);
}

.template-section-dark .note-button-arrow:after {
  background-color: var(--color-white);
}

.note-white .note-button-arrow::after {
  background-color: var(--color-gray-dark);
}

.tab-button {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 31px;
  font-family: var(--font-ft-demi-c);
  font-size: 12px;
  text-transform: uppercase;
  line-height: 150%;
  cursor: pointer;
  border: none;
  background: none;
  padding: 9px 22px;
  backdrop-filter: none;
}

.tab-button:hover {
  color: var(--color-cyan-blue);
}

.template-tabs-light .tab-button {
  color: var(--color-gray-dark);
}

.template-tabs-dark .tab-button {
  color: var(--color-white);
}

.tab-button-active {
  background-color: var(--color-white);
}

.template-tabs-dark .tab-button-active {
  color: var(--color-black-dark);
}

.back-to-top-button {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  height: 41px;
  z-index: 3;
  width: 41px;
  padding: 13px 15.5px;
  justify-content: center;
  align-items: center;
}
.back-to-top-button::after{
  content: "";
  -webkit-mask-image: url("/wp-content/themes/pnnsite/assets/images/ui-line-icons/arrow-up.svg");
  mask-image: url("/wp-content/themes/pnnsite/assets/images/ui-line-icons/arrow-up.svg");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  width: 100%;
  height: 100%;
  position: absolute;
  background-color: var(--color-white);
}

.view-all-button {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 21px;
  line-height: 100%;
  font-family: var(--font-Futura-Cyrillic-Demi);
  text-align: center;
  color: var(--color-nero);
}

@media (max-width: 1023.98px) {
  .back-to-top-button {
    border: 2px solid var(--color-gray-azure);
    background-color: transparent;
  }
  .back-to-top-button::after{
    background-color: var(--color-gray-azure);
  }
}

@media (max-width: 767.98px) {
  .tab-button {
    padding: 9.5px 12px;
    font-family: var(--font-ft-demi-c);
    font-weight: 500;
    font-size: 10px;
    line-height: 150%;
    font-style: normal;
    border-radius: 19px;
    border: 1px solid transparent;
  }

  .template-tabs-light .tab-button {
    background-color: var(--color-gray-light);
    color: var(--color-gray-dark);
  }

  .template-tabs-dark .tab-button {
    background: var(--color-white-a10);
    color: var(--color-white);
  }

  .template-tabs-light .tab-button-active {
    border: 1px solid var(--color-gray-dark);
  }

  .template-tabs-dark .tab-button-active {
    border: 1px solid var(--color-white);
  }

  .view-all-button {
    position: static;
    padding: 15px 35px;
    width: 100%;
    background-color: var(--color-tree-poppy);
    border-radius: 50px;
    color: var(--color-white);
    font-size: 16px;
    margin-top: 29px;
    width: 80%;
    align-self: center;
  }

  .view-all-button:hover {
    color: var(--color-white);
  }
}

.reverse {
  transform: rotateY(180deg);
}
