@use "variables" as *;
@use "mixins" as *;

.btn-large {
  line-height: 1.3;
  padding: 10px 15px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  text-align: center;
  font-weight: bold !important;
  font-family: var(--secondary-font);
  font-size: 16px !important;
  display: inline-block;
}

.btn-small {
  text-decoration: none !important;
  border-radius: 4px !important;
  text-align: center;
  font-weight: bold !important;
  line-height: 28px;
  font-family: var(--secondary-font);
  font-size: 14px !important;
  padding: 4px 15px;
  display: inline-block;
}

.button-blue {
  box-sizing: border-box;
  background-color: transparent;
  transition: 200ms all ease-in-out;
  border-color: var(--primary-color);
  border-width: 1px;
  border-style: solid;
  color: var(--primary-color) !important;

  &:hover,
  &:focus {
    background-color: var(--primary-color);
    color: white !important;
  }

  &:disabled {
    pointer-events: none;
    opacity: 50%;

  }
}

.no-wrap-btn {
  white-space: nowrap;
}

.button-orange {
  color: white !important;
  background-color: var(--secondary-color);
  transition: all 200ms ease-in-out;
  border: 1px solid var(--secondary-color);

  &:disabled {
    opacity: 50%;
    pointer-events: none;
  }
}

.button-orange:hover,
.button-orange:focus {
  background-color: #e2710e !important;
}


.button-white {
  background-color: white;
  color: var(--primary-color);
  transition: all 200ms ease-in-out;

  &:disabled {
    opacity: 50%;
    pointer-events: none;
  }

  &:hover,
  &:focus {
    color: var(--dark-primary-color);
  }
}

.button-group {
  display: flex;
  height: fit-content;
  column-gap: 20px;
  max-width: max-content;
}

@include tablet {
  .button-group {
    flex-wrap: wrap;
    max-width: 100%;
    justify-content: center;
  }
}

.custom-dropdown-btn .dropdown-toggle {
  background-color: #ffffff !important;
  color: var(--primary-color) !important;
  font-family: var(--secondary-font);
  box-sizing: border-box;
  font-size: 14px;
  font-weight: bold !important;
  line-height: 28px;
  border-width: 1px;
  border-color: var(--primary-color) !important;
  padding: 4px 15px;
  border-radius: 4px !important;
  transition: all 200ms ease-in-out;
}

.custom-dropdown-btn .dropdown-toggle:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

ul.dropdown-menu li a.dropdown-item:active,
ul.dropdown-menu li a.dropdown-item.active {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.button-icon {
  background-color: transparent;
  cursor: pointer;
  border: none !important;
  width: 40px;
  height: 40px;
  font-weight: 700;

  &.white {
    color: #ffffff !important;
  }
}
