/* Category names go to the overview, while their arrows open the service lists. */
.ts-menu-overlay.md-service-overlay .md-service-menu__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: stretch;
}

.ts-menu-overlay.md-service-overlay nav.md-service-menu a.md-service-menu__category {
  min-height: 58px;
  padding: 13px 8px 13px 3px;
  font-size: clamp(19px, 2.1vw, 27px);
  font-weight: 480;
  line-height: 1.22;
  letter-spacing: -.018em;
}

.ts-menu-overlay.md-service-overlay .md-service-menu__group[data-current-service] > .md-service-menu__row > .md-service-menu__category {
  color: var(--md-menu-bronze);
}

.ts-menu-overlay.md-service-overlay .md-service-menu__toggle {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--md-menu-line);
  border-radius: 0;
  color: var(--md-menu-bronze);
  background: transparent;
  cursor: pointer;
}

.ts-menu-overlay.md-service-overlay .md-service-menu__toggle::after {
  content: '';
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}

.ts-menu-overlay.md-service-overlay .md-service-menu__toggle[aria-expanded='true']::after {
  transform: translateY(2px) rotate(225deg);
}

.ts-menu-overlay.md-service-overlay .md-service-menu__toggle:is(:hover, :focus-visible) {
  background: #ffffff0e;
}

.ts-menu-overlay.md-service-overlay .md-service-menu__group--split > .md-service-menu__links:not([hidden]) {
  display: grid;
}

.ts-menu-overlay.md-service-overlay .md-service-menu__group--split > .md-service-menu__links[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .ts-menu-overlay.md-service-overlay nav.md-service-menu a.md-service-menu__category {
    min-height: 47px;
    padding-block: 9px;
  }
}

.pp-proof-site #film-types[data-md-compact-finishes] .pp-proof-finish {
  grid-template: "copy visual" auto / minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
}

.pp-proof-site #film-types[data-md-compact-finishes] .pp-proof-finish:nth-child(even) {
  grid-template: "visual copy" auto / minmax(0, 1.15fr) minmax(0, .85fr);
}

.pp-proof-site #film-types[data-md-compact-finishes] .md-ppf-finish-media {
  grid-area: visual;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  justify-items: center;
}

.pp-proof-site #film-types[data-md-compact-finishes] .md-ppf-finish-media > figure {
  grid-area: auto;
}

.pp-proof-site #film-types[data-md-compact-finishes] .md-ppf-finish-media[data-md-finish-pair] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pp-proof-site #film-types[data-md-compact-finishes] .pp-proof-finish-action {
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block: 18px 0;
}

.pp-proof-site #film-types[data-md-compact-finishes] .pp-proof-finish-action :is(button, a) {
  margin: 0;
}

.pp-proof-site #process.mc17-install[data-md-inline-cta] {
  grid-template: "intro film" auto / minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
}

.pp-proof-site #process[data-md-inline-cta] .mc17-install-copy .mc17-install-notes {
  display: flex;
  justify-content: flex-start;
  margin: 18px 0 0;
}

.pp-proof-site #ppf-comparison[data-md-inline-cta] .pp-proof-edge-reading .mc17-comparison-action {
  justify-content: flex-start;
  margin-block-start: 18px;
}

@media (max-width: 760px) {
  .pp-proof-site #film-types[data-md-compact-finishes] .pp-proof-finish,
  .pp-proof-site #film-types[data-md-compact-finishes] .pp-proof-finish:nth-child(even) {
    grid-template: "copy" auto "visual" auto / minmax(0, 1fr);
    gap: 18px;
  }

  .pp-proof-site #film-types[data-md-compact-finishes] .md-ppf-finish-media[data-md-finish-pair] {
    grid-template-columns: minmax(0, 1fr);
  }

  .pp-proof-site #process.mc17-install[data-md-inline-cta] {
    grid-template: "intro" auto "film" auto / minmax(0, 1fr);
  }
}

/* These scoped important declarations take precedence over old unlayered CTA overrides. */
@layer modcare-whatsapp {
/* A green that keeps the white mark and the dark label legible. */
html body :is(
  .mc11-whatsapp, .ms-hero-whatsapp, .ms-whatsapp, .ts-menu-whatsapp,
  .ts-footer-action--whatsapp, .ts-whatsapp-float, .ts-header-quote--whatsapp,
  .ts-contact-method--primary:has(img[src$="/whatsapp.svg"], .ts-parity-icon--whatsapp)
):not(.ts-mobile-header-whatsapp) {
  background-color: #12a552 !important;
  border-color: #12a552 !important;
  color: #111 !important;
}

html body :is(
  .mc11-whatsapp, .ms-hero-whatsapp, .ms-whatsapp, .ts-menu-whatsapp,
  .ts-footer-action--whatsapp, .ts-whatsapp-float, .ts-header-quote--whatsapp,
  .ts-contact-method--primary:has(img[src$="/whatsapp.svg"], .ts-parity-icon--whatsapp)
):not(.ts-mobile-header-whatsapp):is(:hover, :focus-visible) {
  background-color: #0f9e4b !important;
  border-color: #0f9e4b !important;
}

html body :is(
  .mc11-whatsapp, .ms-hero-whatsapp, .ts-menu-whatsapp, .ts-footer-action--whatsapp,
  .ts-whatsapp-float, .ts-header-quote--whatsapp, .ts-contact-method--primary
):not(.ts-mobile-header-whatsapp) :is(img[src$="/whatsapp.svg"], svg.ts-parity-icon--whatsapp) {
  width: var(--md-whatsapp-icon-size, 22px) !important;
  height: var(--md-whatsapp-icon-size, 22px) !important;
  color: #fff !important;
  filter: brightness(0) invert(1) !important;
  flex-shrink: 0;
}

html body :is(
  .mc17-hero-whatsapp, .ms-hero-whatsapp, .cb18-whatsapp-round, .mc11-whatsapp--round
) > img[src$="/whatsapp.svg"] {
  --md-whatsapp-icon-size: 28px;
  margin: 0 !important;
}

html body .ts-whatsapp-float > img[src$="/whatsapp.svg"] {
  --md-whatsapp-icon-size: 32px;
}

@media (max-width: 760px) {
  html body.mc2-site .mc4-mobile-actions.mc11-round-sticky {
    --md-mobile-quote-height: 58px;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 8px max(12px, env(safe-area-inset-right, 0px))
      calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)) !important;
  }

  html body.mc2-site .mc4-mobile-actions.mc11-round-sticky > a.mc11-whatsapp--round.mc11-whatsapp--round {
    display: none !important;
  }

  html body.mc2-site .mc4-mobile-actions.mc11-round-sticky > button.mc2-button {
    grid-column: 1 / -1;
    width: 100% !important;
    min-height: var(--md-mobile-quote-height) !important;
    margin: 0 !important;
    font-size: clamp(14px, 4vw, 16px) !important;
    text-align: center;
    justify-content: center;
  }

  /* Reuse the existing desktop floating link with the same WhatsApp handoff. */
  html body.mc2-site.mc4-has-actions:has(.mc4-mobile-actions.mc11-round-sticky.is-visible)
    > a.ts-whatsapp-float {
    display: grid !important;
  }
}
}

@media (max-width: 760px) {
  html body.mc2-site.mc4-has-actions:has(.mc4-mobile-actions.mc11-round-sticky.is-visible)
    > a.ts-whatsapp-float {
    position: fixed;
    place-items: center;
    box-sizing: border-box;
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(87px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    min-width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border-radius: 50%;
  }

  html body.mc2-site.mc4-has-actions > a.ts-whatsapp-float > span {
    display: none;
  }

  html body.mc2-site.mc4-has-actions > a.ts-whatsapp-float > img[src$="/whatsapp.svg"] {
    position: static;
    margin: 0;
    transform: none;
  }
}
