/* WordPress-only adjustments. Loaded after hoshin-axion.css. */

/* Hoshin Enquiry forms: the static form spaces fields with grid gaps, so drop the plugin's margins. */
.he-form.h-form .he-row,
.he-form.h-form .he-field,
.he-form.h-form .he-label { margin: 0; }
.he-form.h-form .he-hint { margin: 0; }

/* The plugin's submit button keeps plain text (it swaps it while sending); the arrow comes from CSS. */
.he-form .he-btn.h-btn::after {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.55s var(--ease);
}
.he-form .he-btn.h-btn:hover::after { transform: translateX(4px); }

/* RFQ: the designed empty-list card (an Elementor section) replaces the plugin's plain one,
   and shows only while the plugin reports an empty list. */
.he-rfq .he-empty { display: none !important; }
body:not(:has(.he-rfq .he-empty:not([hidden]))) #rfq-empty-state { display: none !important; }

/*
 * Elementor editor only. On the live site converted elements (class "hx") are rewritten to the
 * static markup; in the editor Elementor keeps its own wrappers and container defaults.
 * Elementor's stylesheets sit in a lower cascade layer, so these plain rules override them,
 * and being zero-specificity (:where) they still lose to every design rule. Net effect: each
 * wrapper behaves like the browser default the static CSS was written against.
 */
:where(.e-con.hx) {
  display: block; flex: initial; flex-direction: row; flex-wrap: nowrap;
  justify-content: normal; align-items: normal; align-content: normal; align-self: auto;
  gap: normal; padding: 0; margin: 0; width: auto; min-width: 0; max-width: none; text-align: inherit;
}
:where(.elementor-widget.hx) {
  margin: 0; width: auto; max-width: none; flex: initial; align-self: auto;
}
/* Originally inline elements (spans, links, small print) stay inline. */
:where(.elementor-widget-heading.hx:has(> :is(span, small, strong, b, em, i, label, time).elementor-heading-title)) { display: inline; }
:where(.elementor-widget.hx) > .elementor-heading-title {
  display: inherit; gap: inherit; align-items: inherit; justify-content: inherit; flex-wrap: inherit;
  grid-template-columns: inherit; grid-column: 1 / -1;
  font: inherit; letter-spacing: inherit; color: inherit; text-transform: inherit; text-align: inherit; margin: 0; padding: 0;
}
:where(.elementor-widget.hx) > .elementor-heading-title > a {
  display: inherit; gap: inherit; align-items: inherit; justify-content: inherit; flex-wrap: inherit; flex: 1 1 auto;
  grid-template-columns: inherit; grid-column: 1 / -1; color: inherit; font: inherit;
}
:where(.elementor-widget-text-editor.hx) > p:only-child { display: contents; }
/* Images and decoration are often absolutely positioned against the card around them:
   their wrapper must neither take a slot in the layout nor become their positioning box. */
:where(.elementor-widget-image.hx, .elementor-widget-html.hx) { display: contents; }
:where(.elementor-widget-image.hx) > img { width: inherit; height: inherit; max-width: inherit; object-fit: inherit; }
:where(.elementor-widget-button.hx) .elementor-button { all: unset; display: inline-flex; align-items: center; gap: inherit; cursor: pointer; }
/* The static base rule for h1–h4 (hoshin.css) applies to the heading itself; in the editor it sits inside a wrapper. */
:where(.elementor-widget-heading.hx:has(> :is(h1, h2, h3, h4).elementor-heading-title)) { font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
