/* Shared header geometry and role-specific controls from the main PPF page. */
html body > header[data-md-header="site"] {
  position: relative !important;
  inset: auto !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 88px !important;
  min-height: 88px !important;
  margin: 0;
  padding: 0 max(24px, 4vw) !important;
  background: #101010 !important;
  border-bottom: 1px solid #30302d !important;
  color: #fff;
}

html body > header[data-md-header="site"] > .ts-brand,
html body > header[data-md-header="site"] > .ts-brand img {
  display: block;
  width: 184px !important;
  max-width: none !important;
  height: auto !important;
  aspect-ratio: 304 / 68;
  margin: 0 !important;
}

html body > header[data-md-header="site"] > .ts-brand {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

html body > header[data-md-header="site"] > .ts-menu-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  margin: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

html body > header[data-md-header="site"] .ts-menu-button__icon {
  flex: 0 0 auto;
  width: 35px !important;
  height: 22px !important;
  color: #fff;
}

html body > header[data-md-header="site"] .ts-menu-button__label {
  display: block;
  margin: 0;
  background: transparent;
  color: #fff;
  font: 500 23px / 1 Montserrat, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

html body > header[data-md-header="site"] > .ts-header-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 12px !important;
  width: auto;
  margin: 0 0 0 auto !important;
}

html body > header[data-md-header="site"] [data-md-header-action="mobile-whatsapp"] {
  display: none !important;
}

html body > header[data-md-header="site"] .ts-header-actions > :is([data-md-header-action="whatsapp"], [data-md-header-action="quote"], [data-md-header-action="whatsapp-icon"]) {
  position: relative;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 179px !important;
  min-width: 179px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 44px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
  font: 650 13px / 1.2 Montserrat, Arial, sans-serif !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap;
}

html body > header[data-md-header="site"] .ts-header-actions > :is([data-md-header-action="whatsapp"], [data-md-header-action="whatsapp-icon"]) {
  border-radius: 999px !important;
  background: #12a552 !important;
  color: #111 !important;
}

html body > header[data-md-header="site"] .ts-header-actions > :is([data-md-header-action="whatsapp"], [data-md-header-action="whatsapp-icon"]):is(:hover, :focus-visible) {
  background: #20b45e !important;
}

html body > header[data-md-header="site"] .ts-header-actions > [data-md-header-action="quote"] {
  border-radius: 0 !important;
  background: #c7a17e !important;
  color: #17130f !important;
}

html body > header[data-md-header="site"] .ts-header-actions > [data-md-header-action="quote"]:is(:hover, :focus-visible) {
  background: #d8b695 !important;
}

html body > header.ts-site-header[data-md-header="site"] .ts-header-actions > a[data-md-header-action="whatsapp"] {
  --md-whatsapp-icon-size: 18px;
  display: inline-flex !important;
  flex-flow: row nowrap;
  gap: 12px !important;
  padding: 0 16px !important;
}

html body > header.ts-site-header[data-md-header="site"] .ts-header-actions > a[data-md-header-action="whatsapp"] > span {
  flex: 0 0 auto;
  grid-area: auto !important;
  margin: 0 !important;
  color: #111 !important;
  font: inherit !important;
  text-transform: none !important;
}

html body > header.ts-site-header[data-md-header="site"] .ts-header-actions > a[data-md-header-action="whatsapp"] > img {
  position: static !important;
  inset: auto !important;
  order: -1;
  flex: 0 0 18px;
  min-width: 18px;
  max-width: 18px;
  grid-area: auto !important;
  width: 18px !important;
  height: 18px !important;
  transform: none !important;
  translate: none !important;
  margin: 0 !important;
  filter: none !important;
}

/* Match the icon's space on the right to keep the label centred. */
html body > header.ts-site-header[data-md-header="site"] .ts-header-actions > a[data-md-header-action="whatsapp"]::after {
  content: "";
  position: static;
  flex: 0 0 18px;
  height: 1px;
  pointer-events: none;
}

html body > header[data-md-header="site"] .ts-header-actions > [data-md-header-action="quote"] > span {
  position: absolute;
  top: 50%;
  right: 19px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: currentColor;
}

html body > header[data-md-header="site"] .ts-header-actions > [data-md-header-action="quote"] > span > svg {
  width: 17px;
  height: 17px;
}

html body > header[data-md-header="site"] .ts-header-actions > [data-md-header-action="whatsapp-icon"] {
  width: 52px !important;
  min-width: 52px !important;
  padding: 0 !important;
}

html body > header[data-md-header="site"] .ts-header-actions > [data-md-header-action="whatsapp-icon"] > img {
  width: 23px !important;
  height: 23px !important;
  margin: 0 !important;
  filter: none !important;
}

html body > header[data-md-header] :is(a, button):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* The paid headers retain their original gate, phone and navigation. */
body > header:is([data-md-header="campaign"], [data-md-header="localized"]) {
  height: 88px;
  background: #101010;
  border-bottom: 1px solid #30302d;
}

body > header[data-md-header="campaign"] {
  padding-inline: max(24px, 4vw);
  gap: 12px;
}

body > header:is([data-md-header="campaign"], [data-md-header="localized"]) > a:first-child img {
  display: block;
  width: 184px;
  height: auto;
  filter: none;
}

body > header[data-md-header="campaign"] .ts-campaign-brand {
  flex: 0 0 184px;
}

body > header[data-md-header="campaign"] > .ts-campaign-header-action {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 179px;
  min-height: 52px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #12a552;
  border-radius: 999px;
  background: #12a552;
  color: #111;
  font: 650 13px / 1.2 Montserrat, Arial, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  white-space: normal;
}

body > header[data-md-header="campaign"] > .ts-campaign-header-action:is(:hover, :focus-visible) {
  background: #20b45e;
  border-color: #20b45e;
}

@media (max-width: 760px) {
  html body > header[data-md-header="site"] {
    height: 72px !important;
    min-height: 72px !important;
    padding-inline: 20px !important;
  }

  html body > header[data-md-header="site"] > .ts-brand,
  html body > header[data-md-header="site"] > .ts-brand img {
    width: 145px !important;
  }

  html body > header[data-md-header="site"] .ts-menu-button__icon {
    width: 23px !important;
    height: 22px !important;
  }

  html body > header[data-md-header="site"] .ts-menu-button__label {
    display: none !important;
  }

  html body > header.ts-site-header[data-md-header="site"] .ts-header-actions > [data-md-header-action]:not([data-md-header-action="mobile-whatsapp"]) {
    display: none !important;
  }

  html body > header[data-md-header="site"] .ts-header-actions > [data-md-header-action="mobile-whatsapp"] {
    position: static;
    display: inline-grid !important;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
  }

  html body > header[data-md-header="site"] .ts-header-actions > [data-md-header-action="mobile-whatsapp"] > img {
    position: static;
    display: block;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    transform: none;
    filter: none !important;
  }

  body > header:is([data-md-header="campaign"], [data-md-header="localized"]) {
    height: 72px;
  }

  body > header[data-md-header="campaign"] {
    padding-inline: 20px;
  }

  body > header:is([data-md-header="campaign"], [data-md-header="localized"]) > a:first-child img {
    width: 145px;
  }

  body > header[data-md-header="campaign"] .ts-campaign-brand {
    flex-basis: 145px;
  }

  body > header[data-md-header="campaign"] > .ts-campaign-header-action {
    min-width: 0;
    flex: 0 1 146px;
    min-height: 44px;
    padding-inline: 8px;
    font-size: 12px;
  }
}
