/**
 * Final mobile touch-target geometry.
 * --rp-mobile-nav-count is supplied by a minimal inline custom property.
 */
@media (max-width:767px) {
  body.rp-theme .mobile-header button,
  body.rp-theme .bottom-nav a,
  body.rp-theme .bottom-nav button,
  body.rp-theme [data-open-search],
  body.rp-theme [data-open-drawer] {
    min-width:48px;
    min-height:48px;
    touch-action:manipulation;
  }

  body.rp-theme .bottom-nav {
    grid-template-columns:repeat(var(--rp-mobile-nav-count, 7), minmax(48px, 1fr));
  }

  body.rp-theme .bottom-nav a,
  body.rp-theme .bottom-nav button {
    width:100%;
    height:max(48px, var(--bottom-nav, 66px));
    padding:6px 2px 5px;
  }

  body.rp-theme .site-footer a[href*="privacy-policy"],
  body.rp-theme .site-footer a[href*="cookie-policy"],
  body.rp-theme .site-footer a[href*="informative"],
  body.rp-theme .site-footer a[href*="termini"],
  body.rp-theme .site-footer a[href*="recesso"],
  body.rp-theme .site-footer a[href*="cookie-consent"] {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:48px;
    min-height:48px;
    padding:8px 12px;
    margin-top:2px;
    margin-bottom:2px;
    touch-action:manipulation;
  }

  body.rp-theme .site-footer-col {
    gap:8px;
  }

  #cc-main .cm:not(.pm) .cm__btn,
  #cc-main .cm:not(.pm) button.cm__btn,
  #cc-main button.cm__btn,
  #cc-main button[data-role="show"],
  #cc-main .rp-cc-age-required,
  #cc-main .rp-cc-age__btn,
  #cc-main .cc-btn,
  #cc-main .cky-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:48px;
    min-height:48px;
    padding:10px 14px;
    touch-action:manipulation;
  }

  #cc-main .cm:not(.pm) .cm__btns,
  #cc-main .rp-cc-age__actions {
    gap:8px;
  }

  #cc-main .cm:not(.pm) .cm__footer {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    min-height:48px;
    height:auto;
    padding:8px 12px;
    overflow:visible;
  }

  #cc-main .cm:not(.pm) .cm__footer a,
  #cc-main .cm:not(.pm) .cm__footer a[href*="privacy-policy"],
  #cc-main .cm:not(.pm) .cm__footer a[href*="cookie-policy"],
  #cc-main a[href*="privacy-policy"],
  #cc-main a[href*="cookie-policy"] {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:48px;
    min-height:48px;
    padding:8px 12px;
    margin:0;
    touch-action:manipulation;
  }
}
