:root,
[data-bs-theme="light"] {
  --prestacheck-primary: #961818;
  --prestacheck-primary-dark: #741212;
  --bs-primary: var(--prestacheck-primary);
  --bs-primary-rgb: 150, 24, 24;
  --bs-link-color: var(--prestacheck-primary);
  --bs-link-hover-color: var(--prestacheck-primary-dark);
}

body {
  --bs-link-color: var(--prestacheck-primary);
  --bs-link-hover-color: var(--prestacheck-primary-dark);
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.page-item.active .page-link {
  --bs-btn-bg: var(--prestacheck-primary);
  --bs-btn-border-color: var(--prestacheck-primary);
  --bs-btn-hover-bg: var(--prestacheck-primary-dark);
  --bs-btn-hover-border-color: var(--prestacheck-primary-dark);
  --bs-btn-active-bg: var(--prestacheck-primary-dark);
  --bs-btn-active-border-color: var(--prestacheck-primary-dark);
}

.prestacheck-header {
  position: relative;
  border-bottom: 1px solid var(--bs-border-color, #dee2e6);
  padding-top: 1.25rem;
}

.prestacheck-header__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 4rem;
  text-align: center;
}

.prestacheck-header__heading {
  line-height: 1;
}

.prestacheck-header__brand img {
  display: block;
  width: auto;
  max-width: min(80vw, 280px);
  max-height: 76px;
  margin-inline: auto;
}

.prestacheck-header__navigation {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.75rem;
  padding-inline: 8rem;
}

.prestacheck-header__menu {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.prestacheck-header__menu #_desktop_top_menu {
  width: 100%;
  max-width: 100%;
}

.prestacheck-header__menu .ps-mainmenu--desktop,
.prestacheck-header__menu .ps-mainmenu__desktop {
  width: 100%;
  max-width: 100%;
}

.prestacheck-header__menu #top-menu,
.prestacheck-header__menu .ps-mainmenu__tree {
  justify-content: center;
}

.prestacheck-header__menu #top-menu > li > a,
.prestacheck-header__menu a {
  transition: color 160ms ease;
}

.prestacheck-header__menu a:hover,
.prestacheck-header__menu a:focus-visible {
  color: var(--prestacheck-primary);
}

.prestacheck-header__menu a:focus,
.prestacheck-header__menu a:focus-visible {
  border-color: transparent;
  box-shadow: none;
  outline: none;
}

.prestacheck-header__language {
  position: absolute;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.prestacheck-header__language .language-selector,
.prestacheck-header__language .language-selector-wrapper {
  margin: 0;
}

.prestacheck-header__language .ps-languageselector {
  min-width: 8rem;
}

.prestacheck-footer {
  padding: 1rem 0;
  background-color: #24272a;
  color: #f8f9fa;
  font-size: 0.875rem;
  text-align: center;
}

.prestacheck-footer a,
.prestacheck-footer a:hover,
.prestacheck-footer a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.prestacheck-footer__details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  margin: 0;
  font-style: normal;
}

.prestacheck-footer__item {
  white-space: nowrap;
}

.prestacheck-footer__separator {
  white-space: pre;
}

/* Contact card shown below the links in the mobile menu drawer. */
.prestacheck__contact {
  flex: 0 0 100%;
  width: 100%;
  margin: 0.25rem 0;
  padding: 0.875rem 1rem;
  border: 1px solid #f0dce0;
  border-radius: 0.75rem;
  background: #fff4f6;
  color: #263142;
  font-size: 0.875rem;
  line-height: 1.5;
}

.prestacheck__contact p {
  margin: 0 0 0.75rem;
}

.prestacheck__contact ul {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.prestacheck__contact li + li {
  margin-top: 0.4rem;
}

.prestacheck__contact a,
.prestacheck__contact a:hover,
.prestacheck__contact a:focus-visible {
  color: var(--prestacheck-primary);
}

@media (min-width: 1200px) {
  .prestacheck-header__menu .ps-mainmenu__mobile-toggle,
  .prestacheck-header__menu #menu-icon,
  .prestacheck-header__menu [aria-controls="_mobile_top_menu"],
  .prestacheck-header__menu [data-bs-target="#mobile_top_menu_wrapper"] {
    display: none !important;
  }
}

@media (max-width: 1199.98px) {
  /* Keep the toggle positioned against the full header, above the menu row. */
  .prestacheck-header__navigation {
    position: static;
  }

  .prestacheck-header__language {
    display: none !important;
  }

  .prestacheck-header__menu .ps-mainmenu__mobile-toggle,
  .prestacheck-header__menu #menu-icon,
  .prestacheck-header__menu [aria-controls="_mobile_top_menu"],
  .prestacheck-header__menu [data-bs-target="#mobile_top_menu_wrapper"] {
    position: absolute !important;
    inset-block-start: 0.5rem;
    inset-inline-end: 0.75rem;
    z-index: 5;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
  }

  .ps-mainmenu__selects {
    flex: 0 0 100%;
    width: 100%;
    margin: 0 0 0.75rem;
  }

  .ps-mainmenu__selects .language-selector,
  .ps-mainmenu__selects .language-selector-wrapper,
  .ps-mainmenu__selects .ps-languageselector {
    display: flex;
    align-items: center;
  }

  .ps-mainmenu__selects a {
    color: var(--prestacheck-primary);
  }
}

@media (max-width: 767.98px) {
  .prestacheck-header {
    padding-top: 0.75rem;
  }

  .prestacheck-header__brand {
    min-height: 3.5rem;
  }

  .prestacheck-header__brand img {
    max-width: min(76vw, 230px);
    max-height: 64px;
  }

  .prestacheck-header__navigation {
    position: static;
    min-height: 0;
    padding-inline: 0.75rem;
  }

  .prestacheck-header__menu {
    flex: 1 1 auto;
  }

  .prestacheck-header__menu #_desktop_top_menu {
    width: auto;
  }

  .prestacheck-footer {
    padding: 1rem 0;
  }

  .prestacheck-footer__details {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .prestacheck-footer__separator {
    display: none;
  }

  .prestacheck-footer__item {
    white-space: normal;
  }
}
