.button {
  border: none;
  font-size: 14px;
  line-height: 20px;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  max-height: 52px;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease, border 0.3s ease;
}

.button svg {
  min-width: 16px;
  transition: color 0.3s ease;
}

.button.button-link {
  display: inline-flex;
}

.button.button-tab {
  background-color: #fff;
  border: 1px solid rgb(216, 220, 233);
  padding: 10px 16px;
  color: #333;
  min-width: 267px;
}

.button.button-tab .icon-left {
  color: #5068A5;
}

.button.button-tab .icon-right {
  color: #333;
  margin-left: auto;
  transform: rotate(-90deg);
}

.button.button-tab:hover,
.button.button-tab.active {
  color: #fff;
  border: 1px solid #5068A5;
  background-color: #5068A5;
}

.button.button-tab:hover svg,
.button.button-tab.active svg {
  color: #fff;
}

.button-primary {
  background-color: #5068A5;
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.button-primary svg {
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background-color: #465687;
}

.button-primary:active {
  box-shadow: 0px 0px 8px 0px rgba(51, 51, 51, 0.5);
}

.button-primary.justify-center {
  justify-content: center;
}

.button-secondary {
  background-color: transparent;
  color: #5068A5;
  border: 1px solid #d8dce9;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.button-secondary.button-secondary-white {
  background-color: white;
}

.button-secondary svg {
  color: #5068A5;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border: 1px solid #3c507d;
}

.button-secondary:active {
  box-shadow: 0px 0px 8px 0px #33333380;
}

.button-small {
  padding: 6px;
}

.button-wide {
  position: relative;
  width: 100%;
  color: #333;
  font-size: 18px;
  line-height: 21px;
  font-weight: 600;
  padding: 18px 0;
  max-height: unset;
  background-color: transparent;
  border-radius: 0;
  transition: all 0.3s ease-in-out;
}

.button-wide::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #c2c8d7;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.button-wide:last-child::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #c2c8d7;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.button-wide:hover + .button-wide::before {
  opacity: 0;
}

.button-wide span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

.button-wide svg {
  width: 23px;
  height: 23px;
  border: 1px solid #c2c8d7;
  border-radius: 50%;
  transition: color 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.button-wide:hover,
.button-wide:focus {
  color: #fff;
  padding: 18px 12px;
  border-radius: 8px;
  border-top: 0;
  border-bottom: 0;
  background-color: #5068A5;
  box-shadow: none;
}

.button-wide:hover::before,
.button-wide:hover::after,
.button-wide:focus::before,
.button-wide:focus::after {
  opacity: 0;
}

.button-wide:hover svg,
.button-wide:focus-visible svg {
  transform: rotate(-90deg);
}