/* INFORA 06.10.2026 - inforavariante. Toate regulile sunt sub .infv-on (clasa pusa de JS doar cand modulul e activ). */

/* --- eticheta cu valoarea aleasa --- */
.infv-on .product-variants .form-control-label { font-weight: 700; }
.infv-on .infv-selval { font-weight: 700; color: #d6336c; }

/* --- marimi ca butoane --- */
.infv-on .infv-hidden-select { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }
.infv-on .infv-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.infv-on .infv-btn { position: relative; min-width: 46px; height: 40px; padding: 0 12px; border: 1px solid #bbb; background: #fff; color: #222; font-weight: 600; font-size: 15px; border-radius: 4px; cursor: pointer; line-height: 38px; }
.infv-on .infv-btn:hover { border-color: #222; }
.infv-on .infv-btn.infv-sel { background: #222; border-color: #222; color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d6336c; }
.infv-on .infv-btn.infv-oos { color: #999; background: #f4f4f4 linear-gradient(to top right, transparent calc(50% - 1px), #c7c7c7 calc(50% - 1px), #c7c7c7 calc(50% + 1px), transparent calc(50% + 1px)); }
.infv-on .infv-btn.infv-oos.infv-sel { color: #fff; background: #555 linear-gradient(to top right, transparent calc(50% - 1px), #999 calc(50% - 1px), #999 calc(50% + 1px), transparent calc(50% + 1px)); }
.infv-on .infv-btn.infv-none { color: #b5b5b5; border-style: dashed; background: #fafafa; }

/* --- culori --- */
.infv-on .product-variants li.infv-opt { position: relative; }
.infv-on .product-variants li.infv-opt.infv-sel .color { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #d6336c !important; }
.infv-on .product-variants li.infv-opt.infv-sel::after { content: "\2713"; position: absolute; right: -6px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: #d6336c; color: #fff; font-size: 11px; line-height: 16px; text-align: center; font-weight: 700; z-index: 2; pointer-events: none; }
.infv-on .product-variants li.infv-opt.infv-oos .color,
.infv-on .product-variants li.infv-opt.infv-none .color { opacity: .35; }
.infv-on .product-variants li.infv-opt.infv-oos::before,
.infv-on .product-variants li.infv-opt.infv-none::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #c00; transform: rotate(-45deg); z-index: 1; pointer-events: none; }

/* --- avertisment schimbare automata --- */
.infv-on .infv-warn { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 12px 14px; border: 2px solid #e8590c; background: #fff4e6; color: #5c2b00; border-radius: 6px; font-size: 14px; line-height: 1.45; }
.infv-on .infv-warn-ico { flex: 0 0 24px; height: 24px; border-radius: 50%; background: #e8590c; color: #fff; font-weight: 700; text-align: center; line-height: 24px; }

/* --- mesaj stoc epuizat --- */
.infv-on .infv-oosmsg { margin: 10px 0; padding: 10px 14px; border-left: 4px solid #c92a2a; background: #fff5f5; color: #5c1a1a; font-size: 14px; line-height: 1.5; }

/* --- confirmare adaugare in cos --- */
.infv-modal { position: fixed; inset: 0; z-index: 100000; background: rgba(0, 0, 0, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.infv-modal-box { position: relative; background: #fff; width: 100%; max-width: 480px; border-radius: 8px; padding: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); color: #222; }
.infv-close { position: absolute; right: 10px; top: 6px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #666; }
.infv-modal-title { font-size: 18px; font-weight: 700; color: #2b8a3e; margin-bottom: 14px; }
.infv-modal-body { display: flex; gap: 14px; align-items: flex-start; }
.infv-modal-body img { width: 90px; height: auto; border: 1px solid #eee; border-radius: 4px; }
.infv-modal-name { font-weight: 600; margin-bottom: 8px; }
.infv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.infv-chip, .infv-on .infv-attr { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #222; border-radius: 4px; background: #fff; color: #222 !important; font-size: 15px; }
.infv-chip strong { font-size: 16px; }
.infv-sw { display: inline-block; width: 16px; height: 16px; border-radius: 3px; border: 1px solid #999; vertical-align: middle; }
.infv-qty { font-size: 14px; }
.infv-modal-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.infv-modal-actions .infv-cont, .infv-modal-actions .infv-go { flex: 1 1 160px; text-align: center; padding: 10px 12px; border-radius: 4px; font-weight: 600; cursor: pointer; text-decoration: none; }
.infv-modal-actions .infv-cont { border: 1px solid #222; background: #fff; color: #222; }
.infv-modal-actions .infv-go { border: 1px solid #222; background: #222; color: #fff !important; }

/* --- cos / checkout --- */
.infv-on .product-line-info.infv-attr { margin: 3px 6px 3px 0; opacity: 1; }
.infv-on .product-line-info.infv-attr .label { font-weight: 400; color: #222; }
.infv-on .product-line-info.infv-attr .value { font-weight: 700; color: #222; font-size: 16px; }
