/*
Theme Name: Kehua Industrial
Description: Lightweight server-rendered WordPress and WooCommerce theme preserving the Kehua industrial valve catalogue.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: kehua-industrial
*/

/* The original compiled design is loaded first; only CMS integration styles live here. */
.kehua-consent { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 100; margin-inline: auto; max-width: 768px; max-height: 75dvh; overflow: auto; border: 1px solid #cdd7dd; background: #fff; padding: 20px; color: #10202d; box-shadow: 0 20px 28px rgb(0 0 0 / .16); }
.kehua-consent[hidden] { display: none; }
.kehua-consent__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.kehua-consent h2 { font-size: 16px; font-weight: 700; }
.kehua-consent a { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.kehua-consent p { margin-block: 8px; font-size: 16px; line-height: 1.5; }
.kehua-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kehua-consent button { min-height: 44px; padding: 8px 16px; border: 1px solid #10202d; background: #fff; color: #10202d; font-size: 14px; font-weight: 600; cursor: pointer; }
.kehua-consent button:hover { background: #f4f6f8; }
.kehua-consent button:focus-visible { outline: 2px solid #e56a2c; outline-offset: 3px; }
.kehua-form-status { margin-top: 12px; padding: 16px; border: 1px solid #b6d9c0; background: #edf8f0; color: #205b2d; font-size: 14px; line-height: 1.5; }
.kehua-form-error { margin-top: 8px; color: #b91c1c; font-size: 13px; font-weight: 700; }
.kehua-file-name { margin-top: 8px; color: #60717c; font-size: 12px; }
.kehua-native-content { max-width: 1360px; margin-inline: auto; padding: 48px 20px; }
.kehua-native-content > * + * { margin-top: 20px; }
.kehua-native-content h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; }
.kehua-native-content h2 { font-size: 1.75rem; font-weight: 700; }
.kehua-native-content p { line-height: 1.7; }
.kehua-native-content img { max-width: 100%; height: auto; }
.kehua-native-content a { color: #c95420; text-decoration: underline; }
.kehua-native-content table { width: 100%; border-collapse: collapse; }
.kehua-native-content td, .kehua-native-content th { padding: 12px; border: 1px solid #d3dde2; text-align: start; }
.kehua-native-content .woocommerce-product-gallery { max-width: 540px; }
.kehua-native-content .woocommerce-products-header, .kehua-native-content .woocommerce-result-count, .kehua-native-content .woocommerce-ordering { margin-bottom: 24px; }
.kehua-native-content .products { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); list-style: none; }
.kehua-native-content .product { min-width: 0; }
.kehua-native-content .product img { width: 100%; max-height: 380px; object-fit: contain; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .kehua-consent { padding: 12px; } body.admin-bar .site-header { top: 0; } }

/* Keep footer privacy controls clear of the persistent WhatsApp contact button. */
body footer[class] { padding-bottom: max(96px, env(safe-area-inset-bottom)); }

/* Keep English contact/RFQ information readable without recoloring the light form. */
body.postid-321 main aside > .route-quote-panel:not(.route-quote-panel--light),
body.postid-441 main aside > .route-quote-panel:not(.route-quote-panel--light) {
  background: #10202d;
}
