/*
Theme Name: Delta Child
Description: Delta Radio Group child theme for Divi. Keep theme-level customizations here, never in the Divi parent theme.
Author: Delta Radio Group
Template: Divi
Version: 1.0.3
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: delta-child
*/

/* Base rules carried over from the previous Divi Cart Pro theme so the layout stays identical. */
body { font-weight: 400; }
#top-header .container, #main-header .container, .et_pb_row { width: 90% !important; }
.nav li ul { border-width: 1px; padding: 0; width: 200px; }
.nav li li { line-height: 1.2; padding: 0 !important; }
.nav li ul li:not(:last-child), .et_mobile_menu li a { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.nav li ul.sub-menu a, .et_mobile_menu a { padding: 15px 20px !important; }
.nav li li ul { top: 0; left: -100%; }
.nav li.mega-menu li, #top-menu li.mega-menu > ul > li:nth-last-child(-n+4) > a { border-bottom: none !important; }

/* Divi 5: contact form fields are divs, not <p> elements, so restate the site form styles for the new markup. */
.dlx-sec .et_pb_contact .et_pb_contact_field input,
.dlx-sec .et_pb_contact .et_pb_contact_field textarea,
.dlx-sec .et_pb_contact select { width: 100%; background: #fff !important; border: 1px solid #a6afb8 !important; border-radius: 0 !important; color: #1f252b !important; font-size: 15px !important; padding: 14px !important; }
.dlx-sec .et_pb_contact .et_pb_contact_field input:focus,
.dlx-sec .et_pb_contact .et_pb_contact_field textarea:focus,
.dlx-sec .et_pb_contact select:focus { outline: 2px solid #b30000; border-color: #b30000 !important; }
.dlx-ink .et_pb_contact .et_pb_contact_field input,
.dlx-ink .et_pb_contact .et_pb_contact_field textarea,
.dlx-ink .et_pb_contact select { background: #2b3138 !important; border-color: #5b6570 !important; color: #fff !important; }
.dlx-sec .et_pb_contact_form .et_contact_bottom_container { margin-left: 0 !important; margin-right: auto; margin-top: 8px; }

/* ---- Divi 5 visual parity with live (Divi 4), 3 Dec 2026 ---- */

/* Section H2s in text modules: 32px on desktop and tablet (matches live).
   Phone keeps the 30px responsive size. Inline-styled and homepage headings are unaffected. */
@media (min-width: 768px) {
	.dlx-sec .et_pb_text h2 { font-size: 32px; line-height: 1.15; }
}

/* Inline button pairs (hero, CTA): 12px under the first button, as on live. */
.et-l--post .et_pb_column .et_pb_button_module_wrapper:has(.dlt-btn--inline):not(:last-child) { margin-bottom: 12px !important; }

/* Contact forms: no extra flex gap between label and field; short fields keep their own height. */
.dlx-sec .et_pb_contact_form .et_pb_contact_field { gap: 0 !important; align-self: flex-start; }

/* Product gallery thumbnails: compact row of 84px thumbs, as on live.
   Divi 5 writes a 4-column grid with an ID selector, so this needs the same scope to win. */
.et-db #et-boc .et-l .et_pb_wc_images.et_pb_module .woocommerce-product-gallery ol.flex-control-thumbs.flex-control-nav { display: flex !important; flex-wrap: wrap; gap: 10px !important; }
.et-db #et-boc .et-l .et_pb_wc_images.et_pb_module .woocommerce-product-gallery ol.flex-control-thumbs.flex-control-nav li { flex: 0 0 84px; width: 84px !important; margin: 0 !important; }

/* Footer buttons: stacked cleanly with a small gap (live wraps the second button across two lines). */
.et-l--footer .dlt-f__btns p { display: flex; flex-wrap: wrap; gap: 10px; }

/* Site-wide custom CSS for Delta goes below. */
