html {
  background-color: var(--bamboo-color-background);
}

.merchant-account-header.is-merchant-account {
  background: #fff;
  border: 0;
  border-bottom: 1px solid rgba(64, 65, 68, .15);
  box-shadow: none;
}

.merchant-account-header.is-merchant-account .container-fluid {
  align-items: stretch;
  display: flex;
}

.merchant-account-header.is-merchant-account .navbar-header {
  flex: 0 0 auto;
}

.merchant-account-header.is-merchant-account .navbar-toggle {
  display: none;
}

.merchant-account-header.is-merchant-account .navbar-collapse {
  border: 0;
  box-shadow: none;
  display: flex !important;
  flex: 1 1 auto;
  height: auto !important;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.merchant-account-header.is-merchant-account .merchant-account-brand {
  align-items: center;
  display: flex !important;
  height: 64px;
  justify-content: center;
  padding: 9px 15px;
  width: 62px;
}

.merchant-account-header.is-merchant-account .merchant-account-brand img {
  display: block;
  height: 42px;
  object-fit: contain;
  object-position: center;
  width: 42px;
}

.merchant-account-header.is-merchant-account .merchant-account-links {
  display: flex;
  float: none !important;
  margin: 0 0 0 auto;
}

.merchant-account-header.is-merchant-account .merchant-account-links > li {
  float: none;
}

.merchant-account-header.is-merchant-account .merchant-account-links > li > a {
  background: transparent;
  color: #222a5a;
  font-weight: 500;
  line-height: 24px;
  padding: 20px 14px;
}

.merchant-account-header.is-merchant-account .merchant-account-links > .active > a,
.merchant-account-header.is-merchant-account .merchant-account-links > .active > a:hover,
.merchant-account-header.is-merchant-account .merchant-account-links > .active > a:focus,
.merchant-account-header.is-merchant-account .merchant-account-links > li > a:hover,
.merchant-account-header.is-merchant-account .merchant-account-links > li > a:focus {
  background: transparent;
  color: #ff005d;
}

.agreement-experience {
  background: var(--bamboo-color-background) !important;
  height: auto !important;
  min-height: 100%;
}

.agreement-experience.with-nav {
  padding-top: 64px;
}

.agreement-experience .navbar {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--bamboo-color-border);
  box-shadow: none;
  font-family: var(--bamboo-font-body);
  min-height: 64px;
}

.agreement-experience .navbar-brand,
.agreement-experience .navbar-nav > li > a {
  color: var(--bamboo-color-brand-navy);
  font-size: 17px;
  font-weight: 500;
  line-height: 24px;
  padding-bottom: 20px;
  padding-top: 20px;
}

.agreement-experience .navbar-brand {
  font-size: 20px;
  font-weight: 700;
}

.agreement-experience .navbar-default .navbar-nav > .active > a,
.agreement-experience .navbar-default .navbar-nav > .active > a:hover,
.agreement-experience .navbar-default .navbar-nav > .active > a:focus {
  background: transparent;
  color: var(--bamboo-color-primary);
}

.agreement-experience .navbar-nav > li > a:hover,
.agreement-experience .navbar-nav > li > a:focus {
  background: transparent;
  color: var(--bamboo-color-primary);
}

.agreement-page {
  padding-bottom: var(--bamboo-space-8);
}

.agreement-page-header {
  margin: 0;
}

.agreement-page-header .agreement-eyebrow {
  margin-bottom: var(--bamboo-space-3);
}

.agreement-message,
.agreement-section {
  margin-bottom: var(--bamboo-space-5);
}

.agreement-message {
  padding: var(--bamboo-space-4);
}

.agreement-section-heading {
  align-items: center;
}

.agreement-section-heading > div {
  min-width: 0;
}

.agreement-status {
  flex: 0 0 auto;
}

.agreement-metadata,
.agreement-details {
  display: grid;
  gap: 0 var(--bamboo-space-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: var(--bamboo-space-5) 0 0;
}

.agreement-metadata {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agreement-metadata div,
.agreement-details div {
  border-top: 1px solid var(--bamboo-color-border);
  min-width: 0;
  padding: var(--bamboo-space-4) 0;
}

.agreement-metadata dt,
.agreement-details dt {
  color: var(--bamboo-color-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.4;
  margin-bottom: var(--bamboo-space-2);
  text-transform: uppercase;
}

.agreement-metadata dd,
.agreement-details dd {
  color: var(--bamboo-color-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.agreement-details-wide {
  grid-column: 1 / -1;
}

.agreement-multiline {
  white-space: pre-line;
}

.agreement-text-section {
  padding: var(--bamboo-space-6);
}

.agreement-text {
  background: transparent;
  border: 0;
  color: var(--bamboo-color-text);
  font-family: var(--bamboo-font-body);
  font-size: 17px;
  line-height: 1.75;
  margin: var(--bamboo-space-5) 0 0;
  max-height: none;
  overflow: visible;
  overflow-wrap: break-word;
  padding: 0;
  white-space: pre-wrap;
  hyphens: none;
  word-break: normal;
}

.agreement-document-note {
  color: var(--bamboo-color-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: var(--bamboo-space-2) 0 var(--bamboo-space-4);
}

.agreement-reference-document {
  border-top: 1px solid var(--bamboo-color-border);
  padding-top: var(--bamboo-space-4);
}

.agreement-reference-document summary {
  color: var(--bamboo-color-brand-navy);
  cursor: pointer;
  font-weight: 600;
  list-style-position: outside;
  margin-left: var(--bamboo-space-4);
  padding: var(--bamboo-space-2) 0;
}

.agreement-reference-document[open] summary {
  margin-bottom: var(--bamboo-space-4);
}

.agreement-reference-document .agreement-text {
  background: var(--bamboo-color-surface-muted);
  border-radius: var(--bamboo-radius-md);
  padding: var(--bamboo-space-5);
}

#acceptanceForm {
  margin-top: var(--bamboo-space-5);
  max-width: var(--bamboo-reading-width);
}

.agreement-affirmation {
  margin: var(--bamboo-space-5) 0;
}

.agreement-affirmation label {
  padding-left: 0;
}

.agreement-affirmation input {
  position: static;
}

.agreement-electronic-disclosure {
  margin: var(--bamboo-space-5) 0;
}

.agreement-electronic-disclosure p {
  margin: 0 0 var(--bamboo-space-3);
}

.agreement-electronic-disclosure p:last-child {
  margin-bottom: 0;
}

#acceptanceError {
  margin-bottom: var(--bamboo-space-5);
}

.agreement-reauth {
  border-top: 4px solid var(--bamboo-color-warning);
}

.agreement-reauth > p:not(.agreement-eyebrow),
.agreement-accepted > p:last-child {
  font-size: 17px;
  line-height: 1.6;
  margin-top: var(--bamboo-space-4);
  max-width: var(--bamboo-reading-width);
}

.agreement-reauth .help-block {
  color: var(--bamboo-color-muted);
  font-size: 16px;
  line-height: 1.5;
  margin: var(--bamboo-space-3) 0 var(--bamboo-space-4);
}

.agreement-accepted {
  border-top: 4px solid var(--bamboo-color-success);
}

.agreement-accepted-icon {
  color: var(--bamboo-color-success);
  font-size: 40px;
  line-height: 1;
  margin: 0 0 var(--bamboo-space-3);
}

@media (max-width: 767px) {
  .merchant-account-header.is-merchant-account,
  .merchant-account-header.is-merchant-account .merchant-account-brand {
    min-height: 52px;
  }

  .merchant-account-header.is-merchant-account .container-fluid {
    padding-left: 6px;
    padding-right: 6px;
  }

  .merchant-account-header.is-merchant-account .navbar-header {
    margin: 0;
  }

  .merchant-account-header.is-merchant-account .merchant-account-brand {
    height: 52px;
    padding: 7px 5px;
    width: 44px;
  }

  .merchant-account-header.is-merchant-account .merchant-account-brand img {
    height: 36px;
    width: 36px;
  }

  .merchant-account-header.is-merchant-account .merchant-account-links > li > a {
    font-size: 13px;
    line-height: 20px;
    padding: 16px 7px;
    white-space: nowrap;
  }

  .merchant-account-header.is-merchant-account .merchant-account-links .fa,
  .merchant-account-header.is-merchant-account .merchant-account-links .fas {
    display: none;
  }

  .agreement-experience.with-nav {
    padding-top: 52px;
  }

  .agreement-experience .navbar {
    min-height: 52px;
  }

  .agreement-experience .navbar .container-fluid {
    align-items: stretch;
    display: flex;
    padding-left: 8px;
    padding-right: 8px;
  }

  .agreement-experience .navbar-header {
    flex: 0 0 auto;
    float: none;
    margin-left: 0;
    margin-right: 0;
  }

  .agreement-experience .navbar-brand,
  .agreement-experience .navbar-nav > li > a {
    font-size: 15px;
    line-height: 20px;
    padding: 16px 10px;
  }

  .agreement-experience .navbar-brand {
    font-size: 18px;
    height: 52px;
    margin-left: 0 !important;
    padding-left: 4px;
    padding-right: 8px;
  }

  .agreement-experience .navbar-nav {
    display: flex;
    flex: 0 0 auto;
    float: none;
    margin: 0;
  }

  .agreement-experience .navbar-nav > li {
    float: none;
  }

  .agreement-experience .navbar-right {
    float: none !important;
    margin-left: auto;
    margin-right: 0;
  }

  .agreement-experience .navbar-nav .fa {
    display: none;
  }

  .agreement-page {
    max-width: 100%;
    padding-bottom: var(--bamboo-space-7);
  }

  .agreement-section-heading {
    display: block;
  }

  .agreement-status {
    margin-top: var(--bamboo-space-4);
  }

  .agreement-metadata,
  .agreement-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .agreement-details-wide {
    grid-column: auto;
  }

  .agreement-text-section {
    padding: var(--bamboo-space-4);
  }

  .agreement-text {
    font-size: 16px;
    line-height: 1.75;
  }

  #acceptAgreementButton,
  #reauthenticateButton {
    white-space: normal;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .agreement-experience .navbar-nav > li > a {
    padding-left: 6px;
    padding-right: 6px;
  }

  .agreement-page {
    padding-left: var(--bamboo-space-4);
    padding-right: var(--bamboo-space-4);
  }
}

@media print {
  .agreement-experience.with-nav {
    padding-top: 0;
  }

  .agreement-experience .navbar,
  #acceptanceSection,
  #reauthenticationPanel {
    display: none !important;
  }

  .agreement-page {
    max-width: none;
    padding: 0;
  }
}
