/**
 * Omniverce Core — Estimated Delivery (PI WebSolution) Figma styling.
 *
 * Values are taken 1:1 from the project's Figma study
 * (workspace/omniverce_study/estimated_delivery_figma_css.md, Blocks A + B),
 * converted from Elementor widget-scoped CSS (`selector` prefix) to
 * site-level rules. The Elementor route failed live: the same values pasted
 * into layout 844's widget Custom CSS (three placements) produced no visible
 * effect — the estimate placeholder also renders a second time in WoodMart's
 * sticky add-to-cart bar, outside every edited widget — so the rules now
 * ship from this plugin and apply wherever the estimate prints.
 *
 * Specificity: the PI plugin generates its design CSS (pink gradient
 * #ff9a8b -> #ff6a88, white centred 12px text) as plain single-class rules
 * (0,1,0). Every rule below is rooted at an ID container and/or two plugin
 * classes plus context classes, so it outranks the plugin's generated CSS
 * without a single !important:
 *   body.single-product #pisol_single_product_estimate .pi-edd.pi-edd-product = (1,3,1)
 *   .omniverce-loop-estimate .pi-edd.pi-edd-loop / .pi-edd.pi-edd-loop        = (0,3,0) / (0,2,0)
 */

/* === Single product page (Block A) === */
body.single-product #pisol_single_product_estimate .pi-edd.pi-edd-product {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 8px 0;
    clear: both;
    text-align: left;
    font-family: 'Inter Tight', Inter, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    color: #111827;
}

/* If the plugin icon is ever enabled in plugin settings, the text is
   wrapped in .pi-edd-main-msg and an <img> is prepended — keep the
   same type treatment and a Figma-scale icon size. */
body.single-product #pisol_single_product_estimate .pi-edd.pi-edd-product:has(.pi-edd-fix-icon) {
    display: flex;
    align-items: center;
    gap: 8px;
}
body.single-product #pisol_single_product_estimate .pi-edd .pi-edd-fix-icon {
    width: 18px;
    height: auto;
    flex: 0 0 auto;
}
body.single-product #pisol_single_product_estimate .pi-edd .pi-edd-main-msg {
    font: inherit;
    color: inherit;
}

/* If a <span> is used inside the plugin wording field, the plugin
   bolds it by default — normalise it to the line's own weight so the
   line stays one uniform Figma-style line. */
body.single-product #pisol_single_product_estimate .pi-edd span {
    font-weight: inherit;
}

/* === Shop loop / product cards (Block B) ===
   Applies to the estimate inside this plugin's own loop wrapper
   (.omniverce-loop-estimate) and to the PI plugin's own loop output
   (.pi-edd.pi-edd-loop) if it ever renders by itself. */
.omniverce-loop-estimate .pi-edd.pi-edd-loop,
.pi-edd.pi-edd-loop {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 6px 0 0;
    text-align: left;
    font-family: 'Inter Tight', Inter, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    color: #111827;
}
.omniverce-loop-estimate .pi-edd.pi-edd-loop span,
.pi-edd.pi-edd-loop span {
    font-weight: inherit;
}
.omniverce-loop-estimate .pi-edd.pi-edd-loop:has(.pi-edd-fix-icon),
.pi-edd.pi-edd-loop:has(.pi-edd-fix-icon) {
    display: flex;
    align-items: center;
    gap: 6px;
}
.omniverce-loop-estimate .pi-edd.pi-edd-loop .pi-edd-fix-icon,
.pi-edd.pi-edd-loop .pi-edd-fix-icon {
    width: 16px;
    height: auto;
    flex: 0 0 auto;
}
.omniverce-loop-estimate .pi-edd.pi-edd-loop .pi-edd-main-msg,
.pi-edd.pi-edd-loop .pi-edd-main-msg {
    font: inherit;
    color: inherit;
}
