/* MFB Cere Ofertă v3 — frontend (button + cart icon + quote page + modal). Uses --mfb-co-color. */

/* ── Product page actions ── */
.mfb-quote-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.mfb-quote-actions button{display:inline-flex;align-items:center;gap:8px;cursor:pointer;border-radius:999px;font-weight:600;font-size:15px;padding:12px 24px;line-height:1.2;border:none;transition:opacity .2s,transform .15s}
.mfb-quote-actions button:hover{opacity:.88;transform:translateY(-1px)}
.mfb-quote-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.mfb-add-to-quote{background:var(--mfb-co-color,#e67e22);color:#fff}
.mfb-quick-quote{background:transparent;color:var(--mfb-co-color,#e67e22);border:2px solid var(--mfb-co-color,#e67e22)!important;padding:10px 22px!important}

/* ── Header icon ── */
.mfb-quote-cart-icon{position:relative;display:inline-flex;align-items:center;color:inherit}
.mfb-quote-cart-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mfb-quote-count{position:absolute;top:-8px;right:-10px;min-width:18px;height:18px;padding:0 5px;background:var(--mfb-co-color,#e67e22);color:#fff;border-radius:999px;font-size:11px;font-weight:700;line-height:18px;text-align:center}

/* floating fallback when no header slot used */
.woocommerce .mfb-quote-cart-icon.mfb-floating{position:fixed;bottom:24px;right:24px;z-index:9990;background:#fff;box-shadow:0 6px 20px rgba(0,0,0,.18);width:54px;height:54px;border-radius:50%;justify-content:center}

/* ── Modal ── */
.mfb-co-overlay{display:none;position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.55);backdrop-filter:blur(3px);justify-content:center;align-items:center;padding:20px}
.mfb-co-overlay.active{display:flex}
.mfb-co-modal{background:#fff;border-radius:10px;width:100%;max-width:520px;max-height:90vh;overflow:auto;box-shadow:0 25px 60px rgba(0,0,0,.25);animation:mfbUp .25s ease-out}
@keyframes mfbUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.mfb-co-modal-header{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #eee}
.mfb-co-modal-header h3{margin:0;font-size:18px}
.mfb-co-modal-close{width:34px;height:34px;border:none;background:#f0f0f0;border-radius:50%;font-size:22px;line-height:1;cursor:pointer;color:#666}
.mfb-co-modal-close:hover{background:#e0e0e0;color:#222}
.mfb-co-modal-product{display:flex;gap:14px;align-items:center;padding:14px 22px;background:#f9f9f9;font-size:14px}
.mfb-co-modal-product img{width:54px;height:54px;object-fit:cover;border-radius:6px;border:1px solid #e5e5e5}
.mfb-co-modal-product strong{display:block;color:#222}

/* ── Forms (modal + page) ── */
.mfb-co-form{padding:18px 22px 22px}
.mfb-co-row{margin-bottom:12px}
.mfb-co-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.mfb-co-form input,.mfb-co-form textarea{width:100%;padding:11px 14px;border:1px solid #d0d0d0;border-radius:6px;font-size:15px;box-sizing:border-box}
.mfb-co-form input:focus,.mfb-co-form textarea:focus{border-color:var(--mfb-co-color,#e67e22);outline:none;box-shadow:0 0 0 2px rgba(0,0,0,.06)}
.mfb-co-form textarea{min-height:84px;resize:vertical}
.mfb-co-submit{display:inline-block;background:var(--mfb-co-color,#e67e22);color:#fff;border:none;padding:13px 28px;font-size:15px;font-weight:600;border-radius:999px;cursor:pointer;width:100%;text-align:center;text-decoration:none}
.mfb-co-submit:hover{opacity:.9}
.mfb-co-response{margin-top:12px;font-size:14px}
.mfb-co-response.ok{color:#1e7e34}
.mfb-co-response.err{color:#d63031}

/* ── Quote page table ── */
.mfb-quote-page{max-width:980px;margin:0 auto}
.mfb-quote-table{width:100%;border-collapse:collapse;margin-bottom:24px}
.mfb-quote-table th,.mfb-quote-table td{padding:12px;border-bottom:1px solid #eee;text-align:left;vertical-align:middle}
.mfb-q-prod{display:flex;align-items:center;gap:12px}
.mfb-q-prod img{width:54px;height:54px;border-radius:6px}
.mfb-q-qty{width:70px;padding:7px;border:1px solid #d0d0d0;border-radius:6px}
.mfb-q-remove{width:30px;height:30px;border:none;background:#f5f5f5;border-radius:50%;cursor:pointer;font-size:18px;color:#999}
.mfb-q-remove:hover{background:#fce4ec;color:#c62828}
.mfb-quote-notice{padding:12px 16px;background:#fff3cd;border-radius:6px;margin-bottom:16px}
.mfb-quote-success{text-align:center;padding:40px 20px}
.mfb-quote-empty{padding:30px;text-align:center;color:#777}
.mfb-quote-form{padding:0;border:1px solid #eee;border-radius:10px;padding:20px}
@media(max-width:600px){.mfb-co-grid{grid-template-columns:1fr}.mfb-quote-table thead{display:none}}

/* ════ v3.0.1 design tweaks (Mario) ════ */

/* Buttons: theme-like slightly rounded corners (not pill) */
.mfb-quote-actions button,.mfb-quick-quote,.mfb-co-submit{border-radius:6px}
.mfb-quote-actions button{padding:13px 26px}
.mfb-quick-quote{padding:11px 24px!important}

/* Quote page: wider + more breathing room */
.mfb-quote-page{max-width:1200px;padding:8px 0 40px}
.mfb-quote-table{margin-bottom:30px}
.mfb-quote-table th,.mfb-quote-table td{padding:14px 16px}
.mfb-quote-form{padding:28px 30px}
.mfb-quote-form h3{margin-top:0}
.mfb-co-grid{gap:0 16px}

/* Clearer remove control */
.mfb-q-remove{font-size:0;position:relative}
.mfb-q-remove::before{content:"";position:absolute;inset:0;background:no-repeat center/16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14'/%3E%3C/svg%3E")}
.mfb-q-remove:hover::before{stroke:#c62828}

/* Header quote icon (Woodmart toolbar element, before Compară) */
.wd-header-mfb-quote{display:flex;align-items:center;height:100%}
.wd-header-mfb-quote .mfb-quote-cart-icon{padding:0 12px}
.wd-header-mfb-quote .mfb-quote-cart-icon svg{width:24px;height:24px}

/* Help / contact box under the form */
.mfb-help-box{margin-top:26px;padding:24px 28px;background:#f7f8fa;border:1px solid #ececf0;border-radius:10px}
.mfb-help-box h4{margin:0 0 6px;font-size:18px;color:#222}
.mfb-help-box .mfb-help-sub{margin:0 0 18px;color:#666;font-size:14px}
.mfb-help-items{display:flex;flex-wrap:wrap;gap:18px}
.mfb-help-item{display:flex;align-items:center;gap:12px;min-width:220px;flex:1}
.mfb-help-item .mfb-help-ico{flex-shrink:0;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--mfb-co-color,#e67e22);color:#fff}
.mfb-help-item .mfb-help-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.mfb-help-item .mfb-help-lbl{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#999}
.mfb-help-item a,.mfb-help-item strong{font-size:16px;color:#222;text-decoration:none;font-weight:600}
.mfb-help-item a:hover{color:var(--mfb-co-color,#e67e22)}

/* v3.0.2 — CTA H2 între formular și caseta de ajutor + bifă GDPR */
.mfb-quote-cta{margin:34px 0 22px;text-align:center;font-size:26px;line-height:1.25;font-weight:800;color:var(--mfb-co-color,#e67e22)}
@media(max-width:600px){.mfb-quote-cta{font-size:21px}}
.mfb-gdpr{margin-top:4px}
.mfb-gdpr-label{display:inline-flex;align-items:flex-start;gap:8px;flex-wrap:wrap;font-size:13px;line-height:1.45;color:#555;cursor:pointer}
.mfb-gdpr-label input[type=checkbox]{width:auto;flex:0 0 auto;margin-top:2px;accent-color:var(--mfb-co-color,#e67e22)}
.mfb-gdpr-label .gdpr-link{color:var(--mfb-co-color,#e67e22);text-decoration:underline}
