/* DAYO RFQ Bridge — minimal, neutral panel styling.
   Intentionally does NOT alter DAYO/ZEROY brand colors, fonts or buttons.
   The control uses a neutral dark CTA so it reads as a secondary action next to
   the product page, not as a re-skin of the theme. */

.dayo-bridge-add {
    margin: 24px 0;
    clear: both;
}

.dayo-bridge-add__box {
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 18px 20px;
    background: #fafafa;
}

.dayo-bridge-add__title {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.3;
}

.dayo-bridge-add__sub {
    margin: 0 0 14px;
    color: #666;
    font-size: 13px;
}

.dayo-bridge-add__style-status {
    margin: 0 0 10px;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.dayo-bridge-add__note-field {
    margin: 0 0 12px;
}

.dayo-bridge-add__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.dayo-bridge-add__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.dayo-bridge-add__field input,
.dayo-bridge-add__field select,
.dayo-bridge-add__field textarea {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    min-width: 90px;
}

.dayo-bridge-add__note-field textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 72px;
    resize: vertical;
}

.dayo-bridge-add__btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.dayo-bridge-add__btn:hover {
    background: #333;
}

.dayo-bridge-add__msg {
    margin-top: 12px;
    font-size: 13px;
    min-height: 16px;
}

.dayo-bridge-add__msg--ok {
    color: #1a7f37;
}

.dayo-bridge-add__msg--err {
    color: #b42318;
}

.dayo-bridge-add__links {
    margin-top: 10px;
    font-size: 13px;
}

.dayo-bridge-add__links a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: underline;
}

.dayo-bridge-count {
    color: #666;
    margin-left: 6px;
}

@media (max-width: 480px) {
    .dayo-bridge-add__row {
        flex-direction: column;
        align-items: stretch;
    }
    .dayo-bridge-add__field input,
    .dayo-bridge-add__field select,
    .dayo-bridge-add__field textarea {
        width: 100%;
    }
}

/* =====================================================================
 * DUPLICATE RFQ BUTTON FIX V1 (bridge 1.0.6)
 * ---------------------------------------------------------------------
 * The ZEROY single-product template (127) renders its OWN product-level
 * "Add to Quote" button:
 *
 *   <button type="button" data-dayo-quote-add="{post_id}"
 *     onclick="if(window.DAYOQuote&&typeof window.DAYOQuote.add==='function')
 *                {window.DAYOQuote.add({post_id});}
 *              else{document.getElementById('rfq-section')
 *                     .scrollIntoView({behavior:'smooth'});}">
 *     Add to Quote
 *   </button>
 *
 * window.DAYOQuote is never defined anywhere on the site, so the onclick always
 * takes the `else` branch: it only smooth-scrolls to the #rfq-section anchor and
 * NEVER adds the SKU to the unified cart (dayo_rfq_cart_v1). It therefore reads
 * as a second, competing inquiry action that does nothing useful.
 *
 * The single working control is the bridge panel button
 * (button.dayo-bridge-add__btn -> "Add to Inquiry List"), which writes to the
 * unified cart. We hide ONLY the redundant ZEROY button, matched by its exact
 * data attribute. Deliberately NOT matched by text ("quote") or by href
 * ("#rfq-section"), so the header/footer "Request a Quote"/"Contact" links and
 * the #rfq-section inquiry form remain untouched.
 *
 * The element is hidden, not removed: the bridge JS uses it as the insertion
 * anchor for the inquiry panel (mountAll -> insertAdjacentElement('afterend')),
 * and a display:none node is still present in the DOM, so the panel position is
 * unchanged. ZEROY template 127 and the design system are not modified.
 * ===================================================================== */
button[data-dayo-quote-add] {
    display: none !important;
}
