.tb-account-open {
  overflow: hidden;
}

.tb-account-modal[hidden] {
  display: none;
}

.tb-account-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 900;
}

.tb-account-modal__overlay {
  background: rgba(0, 0, 0, .72);
  inset: 0;
  position: absolute;
}

.tb-account-modal__dialog {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .24);
  color: #000;
  max-width: 430px;
  outline: 0;
  padding: 42px 34px 34px;
  position: relative;
  text-align: center;
  width: min(100%, 430px);
}

.tb-account-modal__close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #000;
  cursor: pointer;
  display: flex;
  font-size: 26px;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 44px;
}

.tb-account-modal__icon {
  align-items: center;
  background: #f4eefb;
  border-radius: 50%;
  color: #501098;
  display: inline-flex;
  height: 68px;
  justify-content: center;
  margin-bottom: 22px;
  width: 68px;
}

.tb-account-modal__icon svg {
  height: 32px;
  width: 32px;
}

.tb-account-modal h2 {
  color: #000;
  font-family: InterstateBlack, InterstateBold, Arial, Helvetica, sans-serif;
  font-size: 2.25rem;
  line-height: .95;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.tb-account-modal p {
  color: #3a3a3a;
  font-family: InterstateRegular, Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  margin: 0;
}

.tb-account-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.tb-account-modal__primary,
.tb-account-modal__secondary {
  align-items: center;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  font-family: InterstateBold, Arial, Helvetica, sans-serif;
  font-size: .875rem;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  text-transform: uppercase;
  width: 100%;
}

.tb-account-modal__primary {
  background: #501098;
  border: 1px solid #501098;
  color: #fff;
}

.tb-account-modal__primary:hover {
  background: #39106c;
  border-color: #39106c;
}

.tb-account-modal__secondary {
  background: #fff;
  border: 1px solid #501098;
  color: #501098;
}

.tb-account-modal__secondary:hover {
  background: #f4eefb;
}

@media (max-width: 420px) {
  .tb-account-modal {
    align-items: flex-end;
    padding: 0;
  }

  .tb-account-modal__dialog {
    max-width: none;
    padding: 40px 24px 28px;
    width: 100%;
  }

  .tb-account-modal h2 {
    font-size: 1.95rem;
  }
}
