html, body {
  margin: 0;
  padding: 0;
  background: #FFF;
  font-family: var(--font-family-body);
  font-weight: 400;
  font-size: 16px;
  color: #1E3244;
  overflow-x:hidden;
}

body {
  border-top: 8px solid var(--primary-color);
}

@media screen and (max-width: 480px){
  /* Fix iPhone safari bug */
  /* Remove the -webkit-text-size-adjust property */
}

img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}

/* Style guide fonts */
h1, h2, .subtitle {
  font-family: Rokkitt,serif;
}

h1 {
  font-size: 2.0625em;
  color: #264056;
  font-weight: 700;
  text-align: center;
  line-height: 1em;
}

h1 em {
  color: var(--primary-color);
  font-style: normal;
}

h2, .subtitle {
  font-size: 1.875em;
  color: #039D95;
  font-weight: 400;
}

h2.heading {
  font-size: 2.0625em;
  color: #264056;
  font-weight: 700;
  text-align: center;
  line-height: 1em;
}

h3 {
  font-size: 1em;
  font-weight: 700;
  margin: 0;
}

h4, h5 {
  font-size: 0.875em;
  color: #039D95;
  font-weight: 700;
  margin: 0;
}

h4.has-subsection {
  font-size: 1em;
  color: inherit;
  margin: 0.75em 0;
}

h4 + p {
  margin-top: 8px;
}

.graph .title {
  font-size: 1em;
}

p, main ul, main ol {
  font-size: 0.875em;
  font-weight: 300;
  line-height: 1.714286;
}

p strong, p b, ul strong, ol strong {
  font-weight: 700;
}

.prominent {
  font-size: 1em;
}

ul.action-links {
  list-style: none;
}

ul.action-links a {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 10px;
  padding: 10px 20px;
  background-color: var(--primary-color);;
  color: #FFF;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.4s;
}


a {
  font-weight: 500;
  color: var(--cta-bg);
  text-decoration: none;
  transition: color 0.4s;
}

a:hover { color: var(--hover-color); }

.icon-link {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  margin: 0 auto;
  transition: box-shadow 300ms ease-in-out;
}

.icon-link:hover {
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.3);
}

blockquote {
  text-align: center;
  color: #1E3244;
}

.number {
  color: #1E3244;
  font-size: 2.5em;
}

.fineprint {
  font-size: 0.625em;
  font-weight: 400;
}

.card {
  border-radius: 4px;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
  border: 1px solid #E8E8E8;
  background-color: #fff;
  padding: 30px;
}

.card.highlight {
  background-color: var(--primary-color);;
  border: transparent;
  color: #FFF;
}

/* Postal code error message */
.card.highlight .error {
  text-align: center;
  /* background: transparent; */
  background-color: #ffdfe6;
  margin: 0;
  padding: 0;
  width: 100%;
}

.sticky-item[data-sticky] .error {
  background-color: #ffdfe6;
}

.card.highlight .error p {
  padding-top: 16px;
  margin-bottom: 0;
  font-size: 0.875em;
  font-weight: 500;
}

.section-icon {
  border: 1px solid #E8E8E8;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  border-radius: 50%;
  width: 65px;
  height: 65px;
}

.section-icon img {
  max-width: 35px;
}

.action .call-to-action {
  /* border-left: 0; */
  margin-left: 0;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
}

.actions input {
  border-right: 0;
  margin-right: 0;
}

.clear {
    display: block;
    clear: both;
}

.clear::after {
    content: "";
    display: block;
    clear: both;
}

@media screen and (min-width:768px) {
  h1,
  h2.heading {
    font-size: 3.5em;
    text-align: left;
    letter-spacing: -0.4px;
    line-height:0.92857;
  }
  h3 { font-size: 1.25em; }
  blockquote {
    text-align: center;
    color: #1E3244;
  }
}

/* Style guide general layout */
main > section > * {
  margin-left: 10px;
  margin-right: 10px;
}

/* Drupal message styles */
div.messages, div.status, div.warning, div.error {
  margin: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #FAFAFA;
  overflow: auto;
}
div.error { background: #FFDFE6; color: #ED0000; }
div.status { background: #E1FEEB; }
div.warning { background: #FFFFF7; }

/* Header */
.site-header {
  padding: 24px 16px;
}

.site-header .logo {
  display: inline-block;
}

.site-header .logo:only-child {
  display: block;
  width: 147px;
  margin-left: auto;
  margin-right: auto;
}

.site-header .logo img {
  vertical-align: middle;
  width: 147px;
  height: auto;
}

/* Main menu */
body.menu-open {
  /* When the menu is open the body does not scroll */
  overflow: hidden;
}

.site-header > nav {
  overflow: auto;
  box-sizing: border-box;
  padding-left: 0;
  background: var(--primary-color);;
  max-height: 50vh;
  margin: 0 -16px;
}

.js .site-header > nav {
  padding-top: 0;
  position: fixed;
  margin: 0;
  z-index: 11;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-height: none;
}

.js .site-header > nav,
.js .site-header .primary-menu .first.expanded .menu {
  transform: translateX(100%);
  transition: transform 0.4s;
}

.js .site-header > nav.open,
.js .site-header .primary-menu .first.expanded .menu.open {
  transform: translateX(0);
}

.js .site-header {
  position: relative;
}

.site-header > nav::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4.5em;
  background: var(--primary-color);;
  z-index: 2;
}

.site-header > nav > .logo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 189px;
  height: 4em;
  background: url(../img/lowestrates-menu-logo.png) no-repeat 21px 30px;
  white-space: nowrap;
  overflow: hidden;
  text-indent: 400px;
  padding: 0;
}

/* .js .site-header > nav {
  overflow: hidden;
} */

.js .site-header .main-menu {
  box-sizing: border-box;
  height: 100vh;
  padding-top: 4.5em;
  overflow: auto;
}

.site-header > nav ul,
.site-header > nav li {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.site-header > nav li {
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
}

.site-header .backlink {
  text-indent: 2em;
  position: relative;
}

.site-header .backlink::before,
.site-header .backlink::after,
.site-header .has-menu::before,
.site-header .has-menu::after {
  position: absolute;
  top: 50%;
  left: 1.5em;
  content: "";
  display: block;
  height: 0.15em;
  width: 0.5625em;
  border-radius: 0.075em;
  transform-origin: 0.075em 50%;
  background: currentColor;
}

.site-header .backlink::before { transform: rotate(50deg); }
.site-header .backlink::after { transform: rotate(-50deg); }

.site-header .has-menu::before,
.site-header .has-menu::after {
  left: auto;
  right: 1.5em;
  transform-origin: right 50%;
}

.site-header .has-menu::before {
  transform: rotate(50deg);
}

.site-header .has-menu::after {
  transform: rotate(-50deg);
}

.site-header .has-menu.open::before {
  transform: rotate(140deg);
  top: 60%;
}

.site-header .has-menu.open::after {
  transform: rotate(40deg);
  top: 60%;
}

.site-header > nav .has-menu,
.site-header .last.expanded .active {
  position: relative;
}

.site-header > nav .menu ul {
  padding-left: 2em;
}

.js .site-header .primary-menu .menu {
  padding-left: 0;
}

.js .site-header .primary-menu .first.expanded .menu {
  box-sizing: border-box;
  position: fixed;
  padding-top: 4.5em;
  padding-bottom: 9em;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: var(--primary-color);;
  z-index: 1;
}

.js .site-header .last.expanded .active {
  display: none;
}

@media screen and (max-width:768px) {
  .js .site-header .primary-menu .menu::after {
    content: "";
    display: block;
    height: 4em;
  }
}

.site-header nav a {
  font-weight: 500;
  color: #FFF;
  font-size: 0.875em;
  display: block;
  text-decoration: none;
  background-color: var(--primary-color);;
  transition: background-color 0.4s;
  line-height: 1.5em;
  padding: 1.25em 1em;
}

.site-header > nav .menu a:hover {
  background-color: #71D1CC;
}

/* Menu buttons */
.site-header > nav > .close-menu,
.site-header > .menu-icon {
  cursor: pointer;
  display: block;
  position: absolute;
  width: 50px;
  height: 50px;
  top: 50%;
  right: 10px;
  transform: translate(0,-50%);
  text-indent: 100px;
  white-space: nowrap;
  overflow: hidden;
  background: #FFF;
  color: #264056;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.site-header > .menu-icon:active {
  background: #EBEDEF;
}

.site-header > .menu-icon::before,
.site-header > .menu-icon::after,
.site-header > .menu-icon > span::before {
  content: "";
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 0.75px;
  position: absolute;
  left: 50%;
  top: 50%;
  background: #264056; /* For unsupported browsers */
  background: currentColor;
}
.site-header > .menu-icon::before { transform: translate(-50%, -4px); }
.site-header > .menu-icon::after { transform: translate(-50%, 4px); }
.site-header > .menu-icon > span::before { transform: translate(-50%, 0); }

.site-header > nav > .close-menu {
  z-index: 2;
  top: 2.75em;
  color: #FFF;
  background: var(--primary-color);;
}

.site-header > nav > .close-menu:active {
  background: #039D95;
}

.site-header > nav > .close-menu::before,
.site-header > nav > .close-menu::after {
  content: "";
  display: block;
  width: 15px;
  height: 1px;
  border-radius: 0.5px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
  background: #FFF; /* For unsupported browsers */
  background: currentColor;
}

.site-header > nav > .close-menu::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-header > nav > .close-menu::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Header table of contents */
.nav-hidden-anchor {
    width: 0;
    height: 0;
    visibility: hidden;
}

/* 
.nav-hidden-anchor + p {
    display: none;
}
*/

.table-of-contents {
    display: none;
    width: 100%;
    padding-top: 17px;
    margin-top: 25px;
    max-height: calc(100vh - 200px);
    position: relative;
    border-top: 1px solid #B1B9C0;
    border-bottom: 1px solid #B1B9C0;
    text-align: left;
    overflow-y: auto;
}

.table-of-contents::-webkit-scrollbar { 
    width: 0px;
}

.js .sticky-item[data-sticky] .table-of-contents.active {
    display: block;
}

.table-of-contents::after {
    content: '';
    display: block;
    clear: both;
}

.table-of-contents.expanded {
    padding-top: 0;
}

.table-of-contents .close {
    display: block;
    width: 19px;
    height: 19px;
    position: absolute;
    z-index: 1;
    top: 19px;
    right: 0;
    cursor: pointer;
    transform: rotate(180deg);
}

.table-of-contents.expanded .close {
    position: -webkit-sticky;
    position: sticky;
    float: right;
    transform: rotate(0);
}

.table-of-contents .close::before,
.table-of-contents .close::after {
    content: '';
    display: block;
    height: 7px;
    width: 2px;
    position: absolute;
    top: 5px;
    background-color: #264056;
    border-radius: 1px;
}

.table-of-contents.expanded .close::before,
.table-of-contents.expanded .close::after {
    top: 6px;
}

.table-of-contents .close::before {
    left: 6px;
    transform: rotate(50deg);
}

.table-of-contents .close::after {
    right: 6px;
    transform: rotate(-50deg);
}

.table-of-contents .label {
    display: none;
    padding: 17px 0;
    font-size: 15px;
    line-height: 20px;
    text-transform: uppercase;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    font-weight: 700;
    color: #264056;
}

.table-of-contents.expanded .label {
    display: block;
}

.table-of-contents a {
    display: none;
    margin-bottom: 18px;
    float: left;
    clear: left;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
    color: #264056;
}

.table-of-contents.expanded a {
    display: inline;
    margin-bottom: 22px;
}

.table-of-contents a:last-child {
    margin-bottom: 18px;
}

.table-of-contents a:hover,
.table-of-contents a.active {
    display: inline;
    color: #039D95;
}

@media screen and (max-width: 930px) {
    .table-of-contents a {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        width: calc(100% - 30px);
    }
    
    .table-of-contents.expanded a {
        white-space: unset;
        text-overflow: unset;
        overflow: visible;
    }
}
 
/* Footer */
.site-footer {
  background-color: #264056;
  padding: 40px 20px;
}

.site-footer h2 {
  color: #fff;
  text-transform: none;
  margin-right: auto;
  margin-left: auto;
  font-size: 1.5em;
  letter-spacing: normal;
}

.site-footer p,
.site-footer h3,
.site-footer h4,
.site-footer a {
  color: #fff;
}

.site-footer h3 {
  font-size: 2.0625em;
  font-family: Rokkitt, serif;
  margin-bottom: 32px;
}

.site-footer h4 {
  text-transform: uppercase;
}

.site-footer a {
  font-size: 0.875em;
}

.site-footer a:hover {
  color: #7fc9c5;
}

.site-footer ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 32px;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer .footer-block {
  border-bottom: 1px solid #788A99;
  padding-top: 32px;
}

.site-footer .footer-block.popular-products,
.site-footer .footer-block:last-of-type {
  border-bottom: none;
}

.collapsible-menu {
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid #788A99;
  border-top: 1px solid #788A99;
  overflow: hidden;
  max-height: 1000px;
  transition: max-height 0.4s;
}

.collapsible-menu.closed {
  max-height: 48px;
  transition: max-height 0.4s;
}

.collapsible-menu h4::before,
.collapsible-menu h4::after {
  content: "";
  background-color: #039D95;
  width: 6px;
  height: 2px;
  border-radius: 4px;
  display: block;
  position: absolute;
  top: 22px;
}

.collapsible-menu h4::before {
  right: 4px;
  transform: rotate(135deg);
}

.collapsible-menu.closed h4::before {
  transform: rotate(45deg);
}

.collapsible-menu h4::after {
  transform: rotate(45deg);
  right: 0;
}

.collapsible-menu.closed h4::after {
  transform: rotate(135deg);
}

.collapsible-menu h4 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.collapsible-menu ul {
  margin-top: 0;
}

.footer-block.social-address .container {
  position: relative;
}

.site-footer .socials {
  margin-top: 12px;
  margin-bottom: 25px;
}

.site-footer .breadcrumbs {
  color: #fff;
  margin-bottom: 2rem;
}

.site-footer .socials a {
  display: inline-block;
  width: 32px;
  height: 32px;
  text-indent: 34px;
  overflow: hidden;
  white-space: nowrap;
  border-radius: 16px;
  transition: background-color .4s;
  background: #FFF no-repeat center;
}

.site-footer .socials a:not(:last-child) {
  margin-right: 20px;
}

.site-footer .socials a:hover {
  background-color: var(--primary-color);;
}

.site-footer .socials .fb {
  background-image: url(/sites/all/themes/lowestrates2019/img/facebook-dark.svg);
  background-size: auto 18px;
  background-position: 11px 50%;
}

.site-footer .socials .tw {
  background-image: url(/sites/all/themes/lowestrates2019/img/twitter-dark.svg);
  background-size: auto 18px;
  background-position: 8px 50%;
}

.site-footer .socials .li {
  background-image: url(/sites/all/themes/lowestrates2019/img/linkedin-dark.svg);
  background-size: auto 20px;
  background-position: 8px 46%;
}

.site-footer .slogan {
  font-family: Rokkitt,serif;  
  font-size: 1.6875em;
  color: #fff;
  margin-bottom: 40px;
}

.site-footer .slogan span {
  display: block;
  color: var(--primary-color);;
}

.site-footer address {
  color: #fff;
  font-style: normal;
  font-size: 0.75em;
  margin-bottom: 20px;
}

.site-footer address span {
  display: block;
  margin-bottom: 6px;
}

.site-footer .copyright {
  font-size: 0.625em;
}

.site-footer .copyright span {
  display: block;
}

.site-footer-address {
  max-width: 1105px;
  padding: 41px 0 0;
}

.site-footer-address address,
.site-footer-address p {
  color: #264056;
  font-size: 14px;
  font-weight: 600;
}

.site-footer-address address {
  margin: 0 auto;
  font-style: normal;
}

.site-footer-address address span {
  margin-bottom: 0;
}

.site-footer-address p {
  margin-bottom: 0;
  line-height: 1.3;
}

body .site-footer.quoter {
    padding-top: 0;
}

body .site-footer.quoter .site-footer-address address {
    color: #fff;
}

body .site-footer.quoter .site-footer-address p {
    color: #fff;
}

@media screen and (min-width: 768px) {
  .footer-block.popular-products nav,
  .footer-block.our-company,
  .footer-block.our-company ul,
  .footer-block.social-address .container {
    display: flex;
    justify-content: space-between;
  }

  .footer-block.popular-products nav {
    flex-wrap: wrap;
  }

  .collapsible-menu {
    flex: 0 0 auto;
    width: 48.5%;
  }

  .collapsible-menu.closed {
    max-height: 66px;
  }

  .collapsible-menu h4::before,
  .collapsible-menu h4::after {
    top: 32px;
  }

  .collapsible-menu h4 {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .footer-block.our-company {
    align-items: center;
    padding-bottom: 32px;
  }

  .footer-block.our-company h3 {
    flex: 0 0 auto;
    width: 30%;
    margin: 0;
  }

  .footer-block.our-company nav {
    flex: 0 0 auto;
    width: 70%;
  }

  .footer-block.our-company ul {
    width: 100%;
    margin: 0 0 0 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .footer-block.our-company li {
    width: 33.33333%;
  }

  .site-footer .socials {
    margin-top: 0;
  }

  .site-footer .slogan span {
    display: inline;
  }

  .site-footer-address address span {
    display: inline;
  }
}

@media screen and (min-width: 1100px) {
  .collapsible-menu {
    max-width: 283px;
    width: 24%;
  }

  .footer-block.our-company h3 {
    width: 25%;
  }

  .footer-block.our-company nav {
    width: 75%;
  }

  .footer-block.our-company li {
    width: 21.5%;
    margin-bottom: 0;
  }

  .footer-block.our-company li:nth-of-type(-n+5) {
    margin-bottom: 20px;
  }

  .footer-block.our-company li:nth-of-type(5n) {
    width: auto;
  }

  .footer-block.our-company.front li {
    width: 28.5%;
  }

  .footer-block.our-company.front li:nth-of-type(5n) {
    width: 28.5%;
  }

  .footer-block.our-company.front li:nth-of-type(-n+8) {
    margin-bottom: 20px;
  }

  .footer-block.our-company.front li:nth-of-type(4n) {
    width: auto;
  }
}

@media screen and (min-width:1145px) {
  .site-footer-address {
    margin-right: auto;
    margin-left: auto;
    display: flex;
    justify-content: space-between;
  }

  .site-footer-address address {
    margin-left: 0;
    margin-right: 0;
  }

  .site-footer-address address span {
    line-height: 1.4;
  }

  .site-footer-address p {
    margin-top: 0;
  }
}

@media screen and (min-width: 1242px) {
  .site-footer {
    padding-bottom: 100px;
  }

  .site-footer.quoter {
    padding-bottom: 40px;
  }

  .site-footer .footer-block {
    max-width: 1202px;
    margin-right: auto;
    margin-left: auto;
  }

  .site-footer .auto-links {
    flex: 0 0 auto;
    width: 490px;
  }

  .site-footer .auto-links ul {
    display: flex;
    flex-direction: column;
    height: 130px;
    flex-wrap: wrap;
  }

  .site-footer .auto-links li:nth-of-type(-n+4) {
    margin-right: 150px;
  }

  .footer-block.our-company li {
    width: 22.2%;
  }

  .site-footer address {
    margin-bottom: 0;
  }

  .site-footer .copyright {
    margin: 0;
  }

  .site-footer address span,
  .site-footer .copyright span {
    display: inline;
    margin-right: 16px;
  }

  .site-footer address span {
    margin-bottom: 0;
  }

  .site-footer address span:last-of-type,
  .site-footer .copyright span:last-of-type {
    margin-right: 0;
  }

  .site-footer-address address span {
    margin-right: 0;
  }
}

/* Subscribe section */

.subscribe > div {
  padding: 48px 10px;
}

.subscribe h2 {
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.subscribe .text {
  max-width: 334px;
  margin: 0 auto 30px;
}

.subscribe form {
  text-align: center;
}

.subscribe form input[type=email],
.subscribe .call-to-action,
.subscribe .error {
  margin: 0 auto;
  display: block;
  width: 228px;
}

.subscribe form input[type=email] {
  margin-bottom: 4px;
}

.subscribe .error {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin-top: 4px;
  border-radius: 4px;
}

.subscribe .error p {
  font-size: 0.75em;
  text-align: center;
}

.subscribe .error p:first-child {
  margin-top: 0;
}

.subscribe .error p:last-child {
  margin-bottom: 0;
}

/* Media for subscribe section */
@media screen and (min-width:768px) {
  .subscribe > div {
    padding: 120px 0;
    display: flex;
    /* justify-content: space-between; */
    justify-content: center;
    align-items: center;
  }

  .subscribe .text {
    max-width: none;
    flex: 0 0 auto;
    margin: 0 20px 0 0;
  }

  .subscribe form {
    flex: 0 0 auto;
    text-align: left;
    margin-left: 20px;
  }

  .subscribe form b,
  .subscribe form p {
    width: 100%;
  }

  .subscribe form input[type=email],
  .subscribe form .call-to-action,
  .subscribe .error {
    margin-left: 0;
  }

  .subscribe .text h2,
  .subscribe .text p {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width:1000px) {
  .subscribe form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 500px;
    /* margin-right: 20px; */
  }

  .subscribe form input[type="email"] {
    flex: 0 0 auto;
    max-width: 50%;
    width: 100%;
    margin-bottom: 0;
    margin-right: 12px;
  }

  .subscribe .call-to-action {
    margin: 0;
  }

  .subscribe .error {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    margin-top: 12px;
  }
}

/* Simple header */
.highlight.simple {
  background-color: var(--primary-color);;
  padding: 56px 20px;
}

.highlight.simple h1 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 0;
}

@media screen and (min-width: 768px) {
  .highlight.simple {
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 100px;
  }

  .highlight.simple h1 {
    text-align: center;
  }
}

/* Content */
.align-center {
  text-align: center;
}

.call-to-action,
.banner.page404 a[href="/"] {
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  display: inline-block;
  background-color: var(--cta-bg);
  color: #fff;
  border-radius: 4px;
  padding: 0 24px;
  text-align: center;
  border: 1px solid var(--cta-bg);
  /* border-left: 0; */
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
  line-height: 46px;
  transition: background-color 0.3s, color 0.3s;
}

.buy-online-btn:hover,
.call-to-action:hover,
.banner.page404 a[href="/"]:hover,
.filter-categories .link button {
  background-color: #fff;
  color: var(--primary-color);;
  border: 1px solid var(--primary-color);
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
  /* border-left: none; */
}

.filter-categories button, 
.filter-categories .link button {
  font-weight:bold;
  border: none; 
}
.filter-categories .link button, .filter-categories .call-to-action:hover {
  color: #149891;
}

.call-to-action.secure svg {
  margin: -5px 2px 0;
  display: inline-block;
  width: 10px;
  height: 14px;
  vertical-align: middle;
  fill: currentColor;
}

/* Form items */
select::-ms-expand {
  display: none;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 1px solid #E8E8E8;
  border-radius: 4px;
  font: inherit;
  color: #1E3244;
  background-color: #FFF;
}

input[type="number"] {
  -webkit-appearance: textfield;
  appearance: textfield;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
select {
  display: inline-block;
  line-height: 46px;
  height: 48px;
  vertical-align: middle;
  padding: 0 16px;
  font-weight: 400;
}

select {
  background-image: url(/resources/images/arrow-down.svg);
  background-repeat: no-repeat;
  background-size: 9px 5px;
  background-position: right 20px top 50%;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.17);
}

.checkboxes input[type=checkbox] {
  display: none;
}

.checkboxes input[type=checkbox] + label::before {
  content: "";
  display: inline-block;
  width: 23px;
  height: 23px;
  border: 1px solid #9B9B9B;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 1em;
  background-color: #FFF;
}

.checkboxes input[type=checkbox]:checked + label::before {
  background-image: url(../img/checkmark.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto 10px;
}

/* Sticky items */
@keyframes slideDown {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

form.sticky-item,
.card.highlight form.sticky-item {
  display: block;
}

form.sticky-item .actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 675px;
  margin: 0 auto;
}

form.sticky-item .actions p {
  flex: 0 0 auto;
  width: 100%;
  text-align: center;
}

.js .sticky-item[data-sticky] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  border-top: 8px solid var(--primary-color);;
  animation: slideDown 0.4s;
  background: #FFF;
  box-shadow: 0 2px 7px 0 rgba(0,0,0,0.2);
  padding-left: 0;
  padding-right: 0;
  display: block;
  z-index: 10;
}

.card.highlight .sticky-item[data-sticky] {
  color: #1E3244;
}

.js .sticky-item[data-sticky] .actions label,
.js .sticky-item[data-sticky] .actions p {
  display: none;
  color: inherit;
  font-size: 0.875em;
  padding: 0;
  margin: 8px 4em 0 0;
  margin-top: 8px;
  margin-right: 4em;
  flex: 0 0 auto;
  text-align: right;
  width: auto;
  max-width: none;
}

.sticky-item[data-sticky] .action-link {
  text-align: right;
  padding-top: 10px;
  padding-bottom: 10px;
}

.sticky-item[data-sticky] .action-link p {
  max-width: none;
  width: auto;
  text-align: right;
  margin: 0 0 8px;
  padding: 0;
}

.sticky-item[data-sticky] .action-link .call-to-action {
  display: inline-block;
}

.sticky-item[data-sticky] input,
.sticky-item[data-sticky] button,
.sticky-item[data-sticky] select {
  vertical-align: middle;
}

html .sticky-item[data-sticky] .call-to-action.fill-out {
  display: inline-block;
}

.js .sticky-item[data-sticky] > * {
  padding: 20px 10px 22px;
  text-align: center;
  max-width: none;
  width: auto;
  margin: 0 auto;
}

.stickynav .logo img {
  display: none;
}
.stickynav:not([data-sticky]) .logo {
  display: none !important;
}

@media screen and (min-width:960px) {
  .sticky-item[data-sticky] .actions {
    justify-content: flex-end;
    align-items: center;
    display: flex;
  }

  .js .sticky-item[data-sticky] .actions label,
  .js .sticky-item[data-sticky] .actions p {
    display: block;
  }

  .js .sticky-item[data-sticky] > * {
    max-width: 1202px;
    text-align: right;
    background: url(/sites/all/themes/lowestrates2019/img/lowestrates-logo.png) 10px 25px no-repeat;
    background-size: 189px auto;
  }

  .js .stickynav[data-sticky] .actions, .js .stickynav[data-sticky] .home-actions {
    display: block;
  }
  .stickynav .logo {
    float: left;
  }
  .stickynav .logo img  {
    display: inline-block;
    width: 189px;
    padding-top: 5px;
  }
  .js .stickynav[data-sticky] p.cta-sticky-only {
    display: inline;
  }
  .stickynav .actions, .stickynav .home-actions {
    background: unset !important;
  }

  .js .sticky-item[data-sticky] .filters-and-link {
    background: unset !important;
  }
  .js .sticky-item[data-sticky] .filters-and-link .sticky-logo-inner {
    float: left;
    width: 189px;
    height: 35px;
    background: url(/sites/all/themes/lowestrates2019/img/lowestrates-logo.png) 0px 5px no-repeat;
    background-size: contain;
  }
}

@media screen and (min-width: 1222px) {
  .js .sticky-item[data-sticky] > * {
    padding: 20px 10px 22px;
  }
}

/* FAQ items */
.faq {
  border-bottom: 1px solid #EEEEEE;
}

.faq .question {
  font-size: 0.875em;
  height: 96px;
  line-height: 96px;
  font-weight: 700;
  overflow: hidden;
}

.faq .question h2,
.faq .question h3,
.faq .question h4 {
  display: inline-block;
  vertical-align: middle;
  padding-right: 40px;
  text-align: left;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: 1.28571;
}

.faq.interactive {
  overflow: hidden;
  max-height: 1000px;
  transition: max-height 0.4s;
}

.interactive.extra-space {
  max-height: 1600px;
}

.faq.closed {
  max-height: 96px;
}

.faq.interactive .answer {
  opacity: 1;
  transition: opacity 0.4s;
}

.faq.closed .answer {
  opacity: 0;
}

.faq.interactive .question {
  position: relative;
  cursor: pointer;
}

.faq.interactive .question::before,
.faq.interactive .question::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  right: 30px;
  width: 10px;
  height: 2px;
  margin-right: -5px;
  margin-top: -1px;
  background: var(--cta-bg);
}

.faq.interactive .question::before {
  width: 2px;
  height: 10px;
  margin-right: -1px;
  margin-top: -5px;
  display: none;
}

.faq.closed .question::before {
  display: block;
}

/* 404 page */

.banner.page404 {
  max-width: 1000px;
  padding-top: 80px;
  padding-bottom: 80px;
  margin-right: auto;
  margin-left: auto;
}

.banner.page404 img,
.banner.page404 a[href="/"],
.banner.page404 a[href="/sitemap"] {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.banner.page404 h1,
.banner.page404 p,
.banner.page404 a {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 24px;
}

.banner.page404 h1 {
  color: var(--primary-color);;
}

.banner.page404 p {
  font-size: 1.2em;
}

.banner.page404 a[href="/"] {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  width: 220px;
}

.banner.page404 a[href="/sitemap"] {
  margin-bottom: 0;
}

/* Home insurance sorry page */

.sorry.home {
  max-width: 1202px;
  margin-right: 20px;
  margin-left: 20px;
}

.sorry.home p {
  text-align: center;
  margin-bottom: 32px;
  max-width: 520px;
  margin-right: auto;
  margin-left: auto;
}

.sorry.home .call-to-action {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  display: block;
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 48px;
  max-width: 240px;
}

.sorry.home .thank-you {
  font-family: Rokkitt, serif;
  text-align: center;
  font-size: 1.875em;
  color: #039D95;
  font-weight: 400;
}

.other-pages .sub-sections section {
  position: relative;
}

@media screen and (min-width:768px) {
  .sorry.home {
    margin-right: auto;
    margin-left: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .sorry.home h1 {
    text-align: center;
  }
}

@media screen and (min-height:800px) {
  .sorry.home {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    min-height: 650px;
  }
}

/* Credit score slider */

.slider .output {
  line-height: 40px;
  text-align: center;
  font-size: 1.25em;
  font-weight: 500;
}

.slider .bar {
  background-image: linear-gradient(90deg, #FF0000 0%, #FB7D03 30.7%, #FFD800 62.64%, #00DAB4 100%);
  background-size: 100% 1px;
  background-repeat: repeat-y;
  position: relative;
  height: 10px;
  margin: 14px 16px 68px;
  border-radius: 15px;
}

.slider .knob {
  z-index: 1;
  cursor: pointer;
  width: 18px;
  height: 18px;
  border-radius: 9px;
  background-color: #1E3244;
  transform: translate(-50%, -50%);
}

.slider .labels {
  text-align: center;
  padding: 30px 9px 36px;
  font-size: 0.75em;
  line-height: 14px;
  color: #264056;
  font-weight: 500;
}

.slider .labels > div:first-child {
  text-align: left;
}

.slider .labels > div:last-child {
  text-align: right;
}

.slider .labels > div:nth-child(3) {
  text-indent: -20px;
}

/* Simple tables */
table.simple {
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.17);
  border: 1px solid #EBEDEF;
  margin-bottom: 24px;
  border-collapse: collapse;
}

table.simple tr:first-child{
  font-weight: 800;
}

table.simple th,
table.simple td {
  font-family: Montserrat, Tahoma, Arial, sans-serif;
  font-size: 0.875em;
  border-bottom: 1px solid #EBEDEF;
  border-left: none;
  padding: 16px;
}

table.simple th {
  background-color: var(--primary-color);;
  color: #fff;
  font-weight: 700;
  border: 1px solid var(--primary-color);;
}

table.simple td {
  vertical-align: top;
}

table.simple .highlight {
  background-color: #EBEDEF;
}

/* Simple tables for provinces info */
table.simple.provinces th:last-of-type,
table.simple.provinces td:last-of-type {
  width: 30%;
  font-weight: 700;
}

/* Simple tables inside FAQ */
.answer table.simple {
  width: 100%;
}

.answer .source {
  font-style: italic;
  font-size: 0.875em;
  margin-bottom: 8px;
}

@media screen and (min-width:800px) {
  .answer table.simple {
    width: 80%;
  }
}

/* Responsive tables */
table.responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

table.responsive tbody {
  border: none;
  display: -webkit-flex;
  display: flex;
}

table.responsive tr {
  font-size: 1em;
}

table.responsive th,
table.responsive td {
  white-space: nowrap;
  display: block;
  font-size: 0.875em;
  line-height: 1.714286;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid #EEEEEE;
}

table.responsive th:nth-child(n+4),
table.responsive td:nth-child(n+4) {
  font-weight: 700;
}

tr.row-reg td:nth-child(4) div,
tr.row-reg td:nth-child(5) div {
  font-weight: 400;
}

table.responsive th:last-of-type,
table.responsive td:last-of-type {
  border: none;
  color: var(--primary-color);;
}

@media screen and (min-width:800px) {
  table.responsive table,
  table.responsive tbody {
    display: table;
    width: 100%;
  }

  table.responsive tr {
    display: table-row;
  }

  table.responsive tr td,
  table.responsive tr th {
    display: table-cell;
  }

  table.responsive tr:last-of-type td {
    padding-right: 16px;
    border: none;
  }

  table.responsive th:last-of-type,
  table.responsive td:last-of-type {
      border-bottom: 1px solid #EEEEEE;
  }
}

/* How it works */
.how-it-works {
  margin-top: 48px;
  margin-bottom: 70px;
}

.how-it-works h2 {
  text-align: center;
}

.how-it-works h2 span {
  color: #264056;
}

.how-it-works ol {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  font-size: 1em;
  white-space: nowrap;
}

.how-it-works li {
  padding-top: 128px;
  list-style-type: none;
  text-align: center;
  margin: 0 auto;
  font-weight: 600;
  line-height: 1.5;
  color: #264056;
  letter-spacing: -0.24px;
  white-space: normal;
}

@media screen and (min-width: 900px) {
  /* How it works */
  .how-it-works {
    margin-top: 114px;
  }

  .how-it-works ol {
    margin-top: 60px;
    text-align: center;
  }

  .how-it-works li {
    display: inline-block;
    vertical-align: top;
    height: 72px;
    margin: 0 38px;
    width: 224px;
    padding-top: 177px;
    max-width: none;
  }
}

/* Cards carousel */
.carousel {
    margin: 40px 10px 0 10px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.carousel .card {
    width: 300px;
    flex: 0 0 auto;
    margin: 0 8px 20px 0;
    text-align: center;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #D7D7D7;
    box-shadow: 0 2px 4px 0 #D7D7D7;
    padding-top: 88px;
    background-repeat: no-repeat;
    background-position: 50% 32px;
    background-size: 46px;
}

.carousel .card.no-icon {
    padding-top: 15px;
}

.carousel h3 {
    font-size: 0.875em;
    margin: 20px 0;
}

.carousel p {
    margin-bottom: 0;
}

.carousel + .dots {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  width: 130px;
}

.carousel + .dots > .dot {
  width: 5px;
  height: 5px;
  background-color: #EBEDEF;
  margin: 5px;
  border-radius: 50%;
}

.carousel + .dots > .dot.active {
  background-color: var(--primary-color);;
}

@media screen and (max-width: 374px) {
  .carousel .card {
      width: 260px;
      flex: 0 0 auto;
  }
}

@media screen and (min-width: 610px) {
  .carousel {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width: 1080px) {
  .carousel {
    display: flex;
    flex-wrap: wrap;
    overflow-x: initial;
    justify-content: space-between;
    max-width: 1000px;
    padding: 0;
  }

  .carousel + .dots {
    display: none;
  }

  .carousel .card {
    width: 45%;
    flex: 0 0 auto;
    margin-bottom: 50px;
    padding: 0;
    padding-top: 40px;
    text-align: left;
    border: none;
    box-shadow: none;
    background-position: 0 0;
  }

  .carousel .card.no-icon {
    padding-top: 0;
  }

  .carousel h3 {
    margin-bottom: 0;
  }

  .carousel p {
    margin-bottom: 0;
  }

  /* Rules for when center image is available */

  /* .carousel {
    display: flex;
    flex-wrap: wrap;
    overflow-x: initial;
    justify-content: space-between;
    background-repeat: no-repeat;
    background-position: center center;
    max-width: 1202px;
    padding: 0 10px;
  } */

  /* .carousel .card:nth-child(odd) {
    margin-right: 40%;
  } */

  /* .carousel .card {
    width: 23.62728%;
    margin-bottom: 50px;
    padding: 0;
    padding-top: 40px;
    text-align: left;
    border: none;
    box-shadow: none;
    background-position: 0 0;
  } */
}

/* Article listing */
.article-listing {
  margin-left: 10px;
  margin-right: 10px;
}

.article-listing .description > h2 {
  margin-top: 0;
}

.article-listing .articles {
  margin-left: -20px;
  margin-right: -20px;
}

.article-listing .question {
  padding: 0 20px;
}

.article-listing .answer {
  margin: 0 20px;
}

@media screen and (min-width: 900px) {
  .article-listing::after,
  .article-listing > div::after {
    content: "";
    display: table;
    clear: both;
  }

  .article-listing .description {
    float: left;
    width: 32.11314%;
  }

  .article-listing .articles {
    margin-left: 42.42928%;
    margin-right: 0;
    border-top: 1px solid #EEEEEE;
  }

  .article-listing .question {
    padding: 0;
  }

  .article-listing .answer {
    margin: 0;
  }

}

/* News and Blog blocks */
section.blog {
  background: #EEF7F6;
  border-top: 8px solid var(--primary-color);;
  text-align: center;
}

section.blog::after,
section.blog article::after {
  content: "";
  display: table;
  clear: both;
}

section.blog h2 {
  font-size: 1.5625em;
  font-weight: 400;
  text-align: center;
  margin: 32px auto;
}

section.blog article {
  text-align: left;
  padding: 20px 20px 32px;
  background: #FFF;
  border-radius: 4px;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.2);
  border: 1px solid #E8E8E8;
  margin-bottom: 12px;
  max-width: 998px;
}

section.blog img {
  display: block;
  margin: 0 auto;
  display: block;
  width:346px;
  height:182px;
  object-fit: cover;
}

section.blog .category {
  text-transform: uppercase;
  font-size: 0.875em;
  font-weight: 700;
  color: #039D95;
  margin: 32px 0 16px;
  letter-spacing: 0.5px;
  display: block;
}

section.blog h3 {
  font-family: Rokkitt,serif;
  font-size: 1.25em;
  font-weight: 400;
  line-height: 1.2;
  color: #424242;
}

section.blog h3 a {
  color: #424242;
}

section.blog p {
  font-size: 0.8125em;
  line-height: 1.61538;
}

section.blog article > a {
  font-size: 0.875em;
}

section.blog .read-more {
  margin: 23px auto 55px;
  background-color: var(--cta-bg);
  color: #fff;
  border: 1px solid var(--cta-bg);
  padding-right: 24px;
  padding-left: 24px;
}

section.blog .read-more:hover {
  background-color: #fff;
  color: var(--primary-color);;
  border: 1px solid #039D95;
}

/* Navigation block */
.other-pages h2 {
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center;
}

.other-pages .sub-sections-tabs {
  display: none;
}

.other-pages .sub-sections {
  margin-left: auto;
  margin-right: auto;
  background: #EEF7F6;
  max-width: 998px;
}

.other-pages h3 {
  padding:  0 16px;
  font-size: 0.875em;
  background: var(--primary-color);;
  color: #FFF;
  text-align: center;
  line-height: 68px;
  border-bottom: 1px solid #fff;
}

.other-pages section:not(.selected) h3 {
  border-bottom: 1px solid #fff;
}

.other-pages.js h3 {
  cursor: pointer;
}

.other-pages h3 a {
  display: inline-block;
  vertical-align: middle;
  color: inherit;
  font: inherit;
  line-height: 1.142857;
  transition: inherit;
}

.other-pages ul {
  display: none;
  line-height: 1.714286;
  list-style-type: none;
  margin: 0;
  padding: 36px 56px 22px;
}

.other-pages .active ul {
  display: block;
}

.other-pages li {
  padding-bottom: 10px;
  -webkit-margin-before: 0;
  -webkit-margin-after: 0;
  -webkit-column-break-inside: avoid; /* Chrome, Safari, Opera */
          page-break-inside: avoid; /* Firefox */
               break-inside: avoid; /* IE 10+ */
}

.other-pages li a {
  font: inherit;
  color: inherit;
}

@media screen and (min-width: 998px) {
  .other-pages a {
    color: inherit;
  }

  .other-pages .sub-sections-tabs div {
    font-size: 0.875em;
    background: var(--primary-color);;
    color: #FFF;
    text-align: center;
    padding: 20px 12px;
    flex-grow: 1;
  }

  .other-pages .sub-sections-tabs div.selected {
    background: none;
    color: inherit;
  }

  .other-pages .sub-sections-tabs div:not(:last-child) {
    border-right: 1px solid #fff;
  }

  .other-pages.js .sub-sections-tabs div {
    cursor: pointer;
  }

  .other-pages.js .sub-sections-tabs div a {
    display: inline-block;
    vertical-align: middle;
    color: inherit;
    font: inherit;
    font-weight: 700;
    line-height: 1.142857;
    transition: inherit;
  }

  .other-pages .sub-sections h3 {
    display: none;
  }

  .other-pages .sub-sections section {
    display: none;
  }

  .other-pages .sub-sections section.selected {
    display: block;
  }

  .other-pages .sub-sections-tabs {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    background: #EEF7F6;
    max-width: 998px;
  }

  .other-pages h3 {
    padding-right: 16px;
    padding-left: 16px;
  }

  .other-pages .selected h3 {
    background: none;
    color: inherit;
  }

  .other-pages ul {
    display: block;
    column-width: 176px;
    column-gap: 30px;
    column-rule: none;
    column-fill: auto;
    column-fill: balance;
  }
}

/** Media queries **/

@media screen and (min-width:768px) {
  /* Sections after header form */
  section.action + section {
    position: relative;
    z-index: 1;
  }
    
  section.action + section::before {
    content: "";
    width: 100%;
    background-color: #EEF7F6;
    position: absolute;
    left: 0;
  }
    
  /* Blog and News block */
  section.blog h2 {
    font-size: 1.875em;
    margin: 64px auto 56px;
  }

  section.blog article {
    padding: 56px 40px;
    margin-bottom: 32px;
  }

  section.blog .category,
  section.blog .body,
  section.blog h3,
  section.blog article > a {
    display: block;
    margin-left: 400px;
  }

  section.blog article > a:first-of-type {
    float: left;
    width: 346px;
    margin-left: 0;
  }

  section.blog h3 {
    font-size: 1.875em;
    line-height: 1.06667;
  }

  section.blog .category {
    margin-top: 0;
    margin-bottom: 12px;
  }
}

@media screen and (min-width:1020px) and (max-width:1120px) {
  .site-header nav a {
    padding-left: 0.4em;
    padding-right: 0.4em;
  }
}

@media screen and (min-width:1020px) {

  /* Site header */
  .site-header .logo {
    margin-top: 34px;
    margin-left: 16px;
  }

  .site-header .logo:only-child {
    display: inline-block;
    width: auto;
    margin-left: 16px;
    margin-right: unset;
  }

  .site-header .logo img {
    width: 189px;
  }

  /* Reset main menu */
  .js .site-header > nav,
  .js .site-header .primary-menu .first.expanded .menu {
    transition: none;
  }

  .site-header .backlink {
    display: none;
  }

  body.menu-open {
    overflow: visible;
  }

  .site-header > nav {
    background: transparent;
    padding: 0;
  }

  .site-header > nav::before {
    content: none;
  }

  .js .site-header > nav {
    position: static;
  }

  .js .site-header .main-menu {
    box-sizing: content-box;
    padding: 0;
    height: auto;
  }

  .js .site-header > nav,
  .js .site-header .primary-menu .first.expanded .menu,
  .js .site-header .primary-menu .first.expanded .menu.open {
    transform: none;
  }

  .site-header > nav,
  .js .site-header > nav,
  .js .site-header .primary-menu .first.expanded .menu {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .site-header > nav .menu {
    box-sizing: content-box;
    transform: none;
  }

  /* Main menu */

  .site-header > nav,
  .js .site-header > nav {
    float: right;
  }

  .site-header .menu {
    background-color: var(--primary-color);;
  }

  .site-header .primary-menu > li > .has-menu::before,
  .site-header .primary-menu > li > .has-menu::after {
    width: 0.4375em;
    height: 0.075em;
    transform-origin: 0.03125em 50%;
    top: 55%;
  }

  .site-header .primary-menu > li > .has-menu::before {
    transform: translateX(100%) rotate(-40deg);
  }

  .site-header .primary-menu > li > .has-menu::after {
    transform: translateX(100%) rotate(-140deg);
  }

  .js .site-header .main-menu {
    overflow: visible;
  }

  .site-header .primary-menu > li {
    position: relative;
    float: left;
    line-height: 32px;
    padding-top: 36px;
    overflow: visible;
  }

  .site-header .primary-menu > li > a,
  .site-header .primary-menu > li > a:hover {
    padding-top: 0;
    padding-bottom: 0;
    font-size: 0.9375em;
    background-color: #FFF;
    color: #264056;
    transition: color 0.4s;
    line-height: 32px;
  }

  .site-header .primary-menu > .active-trail > a,
  .site-header .primary-menu > li > a:hover {
    color: #039D95;
  }

  .site-header .primary-menu > li > .has-menu,
  .site-header .last.expanded .active {
    padding-right: 2.25em;
  }

  .js .site-header .last.expanded .active {
    display: block;
  }

  /* Desktop submenu behavior */
  .site-header {
    padding: 0;
    position: relative;
    height: 75px;
  }

  .site-header .primary-menu > li > .menu,
  .js .site-header .primary-menu > li > .menu {
    box-sizing: border-box;
    position: absolute;
    z-index: 10;
    top: 65px;
    left: -130px;
    padding: 1.5em;
    opacity: 0;
    pointer-events: none;
    width: 200px;
    margin-top: 20px;
  }

  .js .site-header .primary-menu > li > .menu::before {
    /* Acts as a bridge between the button and the menu */
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: -20px;
    height: 20px;
    width: 100%;
  }

  .site-header .primary-menu > li:first-child > .menu,
  .site-header .primary-menu > li:nth-child(2) > .menu {
    width: 510px;
    column-count: 3;
    column-gap: 0;
  }

  .site-header .primary-menu > li:hover > .menu,
  .site-header .primary-menu > li:hover > .menu {
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.4s;
  }

  .site-header .primary-menu > li > .menu a,
  .js .site-header .primary-menu > li > .menu a {
    padding: 5px 12px 5px 24px;
    line-height: 1.714286em;
    position: relative;
  }

  .site-header .first .has-menu::before,
  .site-header .first .has-menu::after {
    left: 4px;
  }

  /* Desktop sub-sub-menu behavior */
  .js .site-header .primary-menu > li > .menu > .expanded > .menu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    background: #1F9790;
    margin-left: -1.5em;
    margin-right: -1.5em;
    padding-left: 1.5em;
    padding-right: 1.5em;
    transition: max-height 0.5s, opacity 0.5s;
    position: relative;
  }

  .js .site-header .primary-menu > li > .menu > .expanded > .menu::after {
    content: "";
    display: block;
    height: 16px;
    position: absolute;
    left: 0;
    bottom: -16px;
    width: 100%;
  }

  .js .site-header .primary-menu > li > .menu > .expanded > .menu.open {
    max-height: 1200px;
    opacity: 1;
  }

  .js .site-header .primary-menu > li > .menu > .expanded > .menu > li > a {
    background-color: #1F9790;
  }
  .js .site-header .primary-menu > li > .menu > .expanded > .menu > li > a:hover {
    background-color: var(--primary-color);;
  }

  /* Menu buttons */
  .site-header > nav > .logo,
  .site-header > nav > .close-menu,
  .site-header > .menu-icon {
    display: none;
  }

  /* FAQ section */
  .faq.closed {
    max-height: 70px;
  }

  .faq .question {
    height: 70px;
    line-height: 70px;
  }

}

@media screen and (min-width:1018px) {
  section.blog article {
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (min-width:1079px) {
  .site-header .primary-menu > li > .menu,
  .js .site-header .primary-menu > li > .menu {
    left: -120px;
  }
}

@media screen and (min-width:1222px) {
  .site-header .logo,
  .site-header .logo:only-child {
    margin-left: 0;
  }

  /* Style guide general layout */
  .site-header,
  main > section > * {
    max-width: 1202px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-header .primary-menu > li > .has-menu,
  .site-header .last.expanded .active {
    padding-right: 1.25em;
  }

  .site-header .has-menu::before,
  .site-header .has-menu::after {
    right: 0.5em;
  }
}

@media screen and (min-width: 1260px) {
  /* Menu */
  .site-header .primary-menu > li > .menu,
  .js .site-header .primary-menu > li > .menu {
    width: 240px;
    left: -159.5px;
  }

  .site-header .primary-menu > li:first-child > .menu,
  .site-header .primary-menu > li:nth-child(2) > .menu {
    width: 510px;
  }
}



/*
  Writer Info Box
  can be added via ckeditor anywhere on the website
*/
.writer-info {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
}

.writer-info .headshot {
  max-width: 200px;
  margin: 20px auto 0;
}

.writer-info .expert-quote {
  width: 100%;
}

.writer-info .headshot .headshot-file *  {
  width: 185px;
  height: 185px;
  object-fit: contain;
}

.writer-info .headshot .headshot-file img {
  border-radius: 50%;
  width: 185px;
  height: 185px;
  max-width: unset;
  min-width: unset;
  max-height: unset;
  min-width: unset;
}

.writer-info:nth-of-type(even) .expert-quote-border {
  padding-right: 24px;
  border-right: 5px solid var(--primary-color);;
}

.writer-info:nth-of-type(odd) .expert-quote-border {
  padding-left: 24px;
  border-left: 5px solid var(--primary-color);;
}

.writer-info .name {
  margin-top: 0;
  margin-bottom: 0;
  font-family: Rokkitt, sans-serif;
  font-weight: 600;
  font-size: 1.625em;
  line-height: 1;
}

.writer-info .title {
  font-family: Rokkitt, sans-serif;
  font-weight: 500;
  font-size: 1.375em;
  color: var(--primary-color);;
  margin-top: 0;
  line-height: 1.3;
}

.writer-info .title a {
  color: var(--primary-color);;
}

.writer-info .title a:hover {
  color: #202426;
}

.writer-info .advice {
  font-style: italic;
  line-height: initial;
}

.writer-info .advice span {
  font-weight: 600;
}

.writer-info .social-media {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.writer-info .social-media li {
  background-color: #264056;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: auto 20px;
  background-repeat: no-repeat;
  border-radius: 50%;
  transition: background 300ms;
  width: 32px;
  height: 32px;
  margin: 0 10px;
}

.writer-info .social-media li:hover {
  background-color: var(--primary-color);;
}

.writer-info .social-media a {
  width: 32px;
  height: 32px;
  display: block;
}

.writer-info .facebook {
  background-image: url(/resources/images/glyphs/facebook-white.svg);
}

.writer-info .twitter {
  background-image: url(/resources/images/glyphs/twitter-white.svg);
}

.writer-info .linkedin {
  background-image: url(/resources/images/glyphs/linkedin-white.svg);
}

@media screen and (min-width:768px) {
  .writer-info {
      margin-top: 80px;
      flex-direction: row;
  }

  .writer-info .headshot {
      width: 100%;
      margin: 0;
  }

  .writer-info .expert-quote {
      order: 1;
  }

  .writer-info:nth-of-type(odd) .expert-quote-border {
      padding-right: 24px;
      padding-left: 0;
      border-right: 5px solid var(--primary-color);;
      border-left: none;
  }

  .writer-info:nth-of-type(even) .expert-quote-border {
      padding-left: 24px;
      padding-right: 0;
      border-left: 5px solid var(--primary-color);;
      border-right: none;
  }

  .writer-info:nth-of-type(odd) .headshot {
      margin-right: 24px;
      order: 0;
  }

  .writer-info:nth-of-type(even) .headshot {
      margin-left: 24px;
      order: 2;
  }

  .writer-info .name {
      margin-top: 0;
  }
}

.image-with-caption {
  position: relative;
  margin: 57px 0;
  padding: 19px 10px 14px;
}

.image-with-caption img {
  position: relative;
  z-index: 1;
}

main .image-with-caption img {
  width: 100%;
  max-width: 735px;
}

.image-with-caption p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 0.8125em;
  color: #264056;
}

.image-with-caption .background {
  position: absolute;
  left: -100vw;
  top: 0;
  right: -100vw;
  bottom: 0;
  font-size: 0;
  background: #EEF7F6;
}

.quote-widget-block {
  position: relative;
  margin: 57px 0;
  padding: 27px 10px;
}

.quote-widget-block p {
  margin: 0;
  position: relative;
  z-index: 1;
  font-family: Rokkitt,serif;
  font-weight: 700;
  font-size: 1.875em;
  line-height: 90%;
  color: #264056;
}

.quote-widget-block .background {
  position: absolute;
  left: -100vw;
  top: 0;
  right: -100vw;
  bottom: 0;
  font-size: 0;
  background: #EEF7F6;
}

.teal-background-widget {
  position: relative;
  padding: 27px 10px;
}

.main .teal-background-widget {
  margin: 57px 0;
}

.teal-background-widget > * {
  position: relative;
  z-index: 1;
}

.teal-background-widget .widget-background {
  position: absolute;
  z-index: 0;
  left: -100vw;
  top: 0;
  right: -100vw;
  bottom: 0;
  font-size: 0;
  background: #EEF7F6;
}

@media screen and (min-width:768px) {
  .image-with-caption,
  .teal-background-widget {
    padding: 61px 10px 56px;
  }
  
  .quote-widget-block {
    padding: 52px 10px;
  }

  .quote-widget-block p {
    font-size: 3.5em;
  }
}

/* modal popup */
.modal {
  position: fixed;
  z-index: 3;
  left:0;
  top:0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(10, 10, 10, 0.5);
}

.popupOverlay {
  display: none;
  position: fixed;
  z-index: 11;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.popupOverlay .popup {
  background: #fff;
  position: fixed;
  z-index: 4;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 325px;
  max-width: 90%;
  padding: 15px 40px 40px;
  box-sizing: border-box;
  border-radius: 5px;
  box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
}

.popupOverlay .popup a:not(.call-to-action) {
  color: var(--cta-bg);
}

.popupOverlay .popup a:not(.call-to-action):hover {
  color: #009591;
}

.popupOverlay .titleAndButton {
  display: flex;
  justify-content: space-between;
}

.popupOverlay .popup .close {
  cursor: pointer;
  font-size: 30px;
  position: absolute;
  right: 12px;
  top: 0;
}

.popupOverlay .popup p {
  font-weight: 700;
  margin-bottom: 20px;
}

.popupOverlay .popup .descr {
  font-size: .875em;
  margin-bottom: 1em;
}

.popupOverlay .popup .actions {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.popupOverlay .popup .actions .call-to-action {
  max-width: 240px;
  width: 100%;
  font-weight: bold;
  margin-left: 0;
}

.popupOverlay .popup .actions .call-to-action:not(:last-child) {
  margin-bottom: 15px;
}

.insurance-popup {
    max-width: 423px;
}

.insurance-popup h3 {
    margin: .5em 0 1em;
}

.insurance-popup .popup-ins-descr {
    margin-bottom: 1em;
}

.popupOverlay .auto-spinner-popup  .auto-ins-popup-title {
    line-height: 21px;
    margin-top: 1em;
    margin-bottom: 1em;
    padding: 0 20px
}

.auto-spinner-popup  .auto-ins-popup-title::before {
    content: "i";
    display: inline-block;
    position: relative;
    margin-right: 5px;
    width: 22px;
    height: 22px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    background: #000;
    border-radius: 50%;
}

.auto-spinner-popup .popup-ins-descr {
    margin: 90px 0 1em;
}

.auto-spinner-popup .popup-ins-descr img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    margin: 1em 0 0;
}

.auto-spinner-popup .auto-ins-spinner-text {
    font-size: 20px;
    max-width: 500px;
    margin: 0 auto 2em;
}

.insurance-popup .call-to-action {
    width: 100%;
    max-width: none;
}

.auto-spinner-popup {
    text-align: center;
}

.auto-spinner-popup .title-and-button {
    right: 0;
    position: absolute;
    left: 0;
    top: 0;
    background: #F6F6F6;
    color: #000;
    border-bottom: 1px solid #9c9896;
}

@media only screen and (min-width: 960px) {
  /* modal popup */
  .popupOverlay .popup {
      width: 825px;
  }

  .popupOverlay .popup .actions {
      flex-direction: row;
      justify-content: space-between;
      align-items: unset;
  }

  .popupOverlay .popup .actions .call-to-action:not(:last-child) {
      margin-bottom: 0;
  }

  .popupOverlay .insurance-popup {
    max-width: 423px;
  }
  
  .auto-spinner-popup .popup-ins-descr {
    margin: 40px 0 1em;
  }
}

.skip-to-main {
  padding: 12px 0;
  left: 45%;
  position: absolute;
  z-index: 9;
  background-color: #fff;
}

.skip-to-main a {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-to-main a:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 5px;
  margin: 10px;
}

.disclaimer p {
  margin: 0 auto;
  max-width: 1200px;
  padding: 40px 20px 20px 20px;
}

/* New Mortgage Table design */

.average-payment-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 80px auto 0;
}

.average-payment-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  padding: 20px 0;
  text-align: center;
}

.average-payment-table-container {
  position: relative;
}

.mortgage-payment-table {
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.17);
  border-radius: 10px;
  border-collapse: collapse;
  position: relative;
}

.mortgage-payment-table th {
  background-color: var(--primary-color);;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 10px 20px;
  text-align: center;
  border-bottom: none;
}

.mortgage-payment-table th:first-child {
  border-radius: 10px 0 0 0;
}

.mortgage-payment-table .mortgage-provinces-geography {
  text-align: left;
}

.mortgage-payment-table th:last-child {
  border-radius: 0 10px 0 0;
}

.mortgage-payment-table td {
  padding: 10px 20px;
  border-bottom: 1px solid #E8E8E8;
  text-align: center;
  font-size: 0.875rem;
}

.mortgage-payment-table td:first-child {
  font-weight: 700;
}

.mortgage-payment-table.mortgage-provinces-table td:first-child {
  text-align: left;
}

.mortgage-payment-table-provinces {
  background-color: var(--primary-color);;
  color: white;
}

.table-slide {
  overflow: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
}

.table-slide::-webkit-scrollbar {
  display: none;
}

.table-slide>tr>div {
  display: inline-block;
  width: 100%;
}

.table-slide-arrow {
  cursor: pointer;
  position: absolute;
  bottom: -37px;
  font-size: 1rem;
  color: var(--primary-color);;
  border: 1px solid var(--primary-color);;
  width: 20px;
  height: 20px;
  text-align: center;
  border-radius: 50%;
  background-color: white;
}

.table-slide-arrow.disabled {
  color: gray;
  border: 1px solid gray;
  cursor: not-allowed;
}

.table-slide-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  position: absolute;
  bottom: -62px;
  width: 100%;
}

.table-slide-dot {
  cursor: pointer;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);;
  background-color: #fff;
  margin: 0 5px;
}

.table-slide-dot.active {
  background-color: var(--primary-color);;
}

/* MEDIA QUERIES */

@media screen and (max-width: 800px) {
  .mortgage-payment-table th {
    display: none;
  }

  .mortgage-payment-table,
  .mortgage-payment-table tbody,
  .mortgage-payment-table tr {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mortgage-payment-table td {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .mortgage-payment-table tbody {
    border-top: none;
  }

  .mortgage-payment-table th {
    box-sizing: border-box;
    border-bottom: none;
  }

  .mortgage-payment-table td:first-child {
    background-color: var(--primary-color);;
    border-radius: 10px 10px 0 0;
    color: #fff;
  }

  .mortgage-payment-table td:before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
  }

  .average-payment-section h3 {
    font-size: 0.875rem;
    padding: 20px 40px;
    max-width: 400px;
  }

  .data-source-link-container {
    margin-top: 50px;
  }

  .average-payment-table-container {
    width: 80%;
  }

  .table-slide-arrow-left {
    left: 170px;
    z-index: 1;
  }

  .table-slide-arrow-right {
    right: 170px;
    z-index: 1;
  }
}

@media screen and (max-width: 500px) {
  .table-slide-arrow-left {
    left: 40px;
    z-index: 1;
  }

  .table-slide-arrow-right {
    right: 40px;
    z-index: 1;
  }
}

@media screen and (max-width: 330px) {
  .table-slide-arrow-left {
    left: 4px;
    z-index: 1;
  }

  .table-slide-arrow-right {
    right: 4px;
    z-index: 1;
  }
}