/* Comptoir du Robinet — archive hardening.
 * Defensive layer for third-party markup that can be injected after the main
 * catalogue stylesheet or returned by a stale page cache.
 */

/* Product archives are browsing surfaces. PayPal messaging remains available on
 * product, cart and checkout routes, but must never reserve space in archives. */
body.cdrt-theme.cdrt-catalog .ppcp-messages,
body.cdrt-theme.cdrt-catalog .ppcp-messages__container,
body.cdrt-theme.cdrt-catalog [data-pp-message],
body.cdrt-theme.cdrt-catalog [class*="ppcp-message"],
body.cdrt-theme.cdrt-catalog [id*="ppcp-message"],
body.cdrt-theme.cdrt-catalog [class*="paypal-message"],
body.cdrt-theme.cdrt-catalog [id*="paypal-message"],
body.cdrt-theme.cdrt-catalog [id^="zoid-paypal-message"],
body.cdrt-theme.cdrt-catalog iframe[src*="paypal.com"],
body.cdrt-theme.cdrt-catalog iframe[title*="PayPal"] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

/* WooCommerce calls woocommerce_sidebar after archive content. With no theme
 * sidebar template, WordPress can fall back to its compatibility sidebar and
 * print Pages / Archives / Categories. PHP removes that callback; these rules
 * are the cache-safe visual fallback. */
body.cdrt-theme.cdrt-catalog #secondary,
body.cdrt-theme.cdrt-catalog #sidebar,
body.cdrt-theme.cdrt-catalog .widget-area,
body.cdrt-theme.cdrt-catalog .woocommerce-sidebar,
body.cdrt-theme.cdrt-catalog aside.sidebar {
  display: none !important;
}
