/* Member document form rules (FUN-51): help popup of the tax numbers. Plain CSS, outside the SCSS build. */
.amco-tax-help {
  margin-top: 8px;
}

.amco-tax-help__open {
  padding: 0;
  border: none;
  background: none;
  color: #dd1d54;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.amco-tax-help__open:hover,
.amco-tax-help__open:focus {
  background: none;
  color: #0b2035;
}

.amco-tax-help__overlay {
  position: fixed;
  /* Above the census jQuery UI dialog (z-index 100100+) and the admin bar. */
  z-index: 1000000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.62);
}

.amco-tax-help__overlay[hidden] {
  display: none;
}

.amco-tax-help__dialog {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 100%;
  overflow-y: auto;
  padding: 28px;
  border-radius: 8px;
  background: #ffffff;
  color: #3f4b5b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.amco-tax-help__dialog:focus {
  outline: none;
}

.amco-tax-help__title {
  margin: 0 40px 8px 0;
  color: #0b2035;
  font-size: 19px;
  font-weight: 700;
}

.amco-tax-help__text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}

.amco-tax-help__image {
  display: block;
  width: 100%;
  height: auto;
}

.amco-tax-help__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #3f4b5b;
  font-size: 26px;
  line-height: 34px;
  cursor: pointer;
}

.amco-tax-help__close:hover,
.amco-tax-help__close:focus {
  background: rgba(221, 29, 84, 0.08);
  color: #3f4b5b;
}

@media (max-width: 767px) {
  .amco-tax-help__overlay {
    padding: 12px;
  }

  .amco-tax-help__dialog {
    padding: 20px 16px;
  }
}
