/* =======================================================
   MONDOTILE — PREVENTIVO MULTIPLO POPUP
   ======================================================= */

.mondotile-quote-panel{
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: calc(100vw - 24px);
    height: 100vh;
    background: #ffffff;
    box-shadow: -8px 0 30px rgba(0,0,0,0.18);
    z-index: 999999;
    display: none;
    flex-direction: column;
}

.mondotile-quote-panel.visible{
    right: 0;
    display: flex;
}

.mondotile-quote-panel .panel-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: #1f1f1f;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mondotile-quote-panel .panel-header h3{
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #f5a623;
}

.mondotile-quote-panel .btn-close{
    background: transparent;
    border: 0;
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.mondotile-quote-panel .btn-close:hover{
    color: #f5a623;
}

.mondotile-quote-panel .panel-body{
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    background: #ffffff;
}

.mondotile-quote-panel .quote-list{
    list-style: none;
    margin: 0;
    padding: 0;
}

.mondotile-quote-panel .quote-list li{
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #ececec;
}

.mondotile-quote-panel .quote-list li img{
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.mondotile-quote-panel .quote-info{
    flex: 1;
    color: #444444;
}

.mondotile-quote-panel .quote-info strong{
    display: block;
    margin-bottom: 4px;
    color: #1f1f1f;
    font-size: 15px;
    font-weight: 700;
}

.mondotile-quote-panel .quote-info small{
    display: block;
    color: #6f6f6f;
    font-size: 13px;
    line-height: 1.4;
}

.mondotile-quote-panel .remove-item{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #777777;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.mondotile-quote-panel .remove-item:hover{
    background: #b30000;
    border-color: #b30000;
    color: #ffffff;
}

.mondotile-quote-panel .quote-actions{
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #ececec;
}

.mondotile-quote-panel .quote-actions .quote-info{
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #555555;
}

.mondotile-quote-panel .btn-open-quote-page{
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #f5a623;
    border-radius: 10px;
    background: #f5a623;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.mondotile-quote-panel .btn-open-quote-page:hover{
    background: #d99214;
    border-color: #d99214;
    color: #ffffff;
}


/* ======================================
   MONDOTILE — WIDGET PREVENTIVO
====================================== */

#mondotile-quote-widget{
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #f5a623;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    transition: all .25s ease;
    z-index: 99999;
}

#mondotile-quote-widget:hover{
    background:#e09418;
    transform: translateY(-2px);
}

/* numero articoli */
#mondotile-quote-widget .count{
    background:#ffffff;
    color:#f5a623;
    font-weight:700;
    border-radius:50%;
    width:22px;
    height:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
}

.mondotile-quote-panel .panel-body{
    border: 2px solid #f5a623 !important;
}

.mondotile-prezzo-cell .mt-step3-product{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}

.mondotile-prezzo-cell .mt-step3-thumb{
  flex:0 0 72px;
}

.mondotile-prezzo-cell .mt-step3-thumb img{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:6px;
  border:1px solid #ddd;
  display:block;
  background:#fff;
}

.mondotile-prezzo-cell .mt-step3-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}

.mondotile-prezzo-cell .prezzo-listino{
  display:block;
}

.mondotile-prezzo-cell .richiedi-prezzo{
  display:block;
}

/* Pannello e widget contenuti nel viewport, senza spostamenti fuori pagina. */
.mondotile-quote-panel {
    box-sizing: border-box;
}

#mondotile-quote-widget {
    box-sizing: border-box;
    max-width: calc(100vw - 24px);
}

@media (max-width: 480px) {
    .mondotile-quote-panel {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
    }

    #mondotile-quote-widget {
        right: 12px;
        bottom: 12px;
        max-width: calc(100vw - 24px);
    }

    .mondotile-quote-panel .panel-header,
    .mondotile-quote-panel .panel-body {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* r88 — riepilogo modificabile e ritorno alla pagina corretta */
#mondotile-quote-list .mt-multi-summary-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin:0 0 14px;
    padding:14px 16px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    background:#f8fafc;
}

#mondotile-quote-list .mt-multi-summary-head strong{
    color:#111827;
    font-size:17px;
}

#mondotile-quote-list .mt-multi-summary-head span{
    color:#64748b;
    font-size:13px;
    text-align:right;
}

#mondotile-quote-list .quote-text{
    display:flex;
    min-width:0;
    flex-direction:column;
    align-items:flex-start;
}

#mondotile-quote-list .quote-text>span{
    color:#111827;
    font-weight:700;
    line-height:1.35;
}

#mondotile-quote-list .quote-remove-item{
    margin-top:8px;
    padding:6px 9px;
    border:1px solid #fecaca;
    border-radius:7px;
    background:#fff;
    color:#b91c1c;
    font-size:12px;
    font-weight:700;
    cursor:pointer;
}

#mondotile-quote-list .quote-remove-item:hover{
    background:#fef2f2;
    border-color:#fca5a5;
}

#mondotile-quote-list .mt-multi-empty{
    padding:28px 20px;
    border:1px solid #e2e8f0;
    border-radius:12px;
    background:#f8fafc;
    text-align:center;
}

#mondotile-quote-list .mt-multi-empty p{
    margin:0 0 14px;
    color:#475569;
}

#mondotile-quote-list .mt-multi-empty .btn-back{
    padding:10px 16px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    background:#fff;
    color:#111827;
    font-weight:700;
    cursor:pointer;
}

#mondotile-quote-form .form-buttons .btn-back-landing,
#mondotile-quote-form .form-buttons .btn-back-camini,
#mondotile-quote-form .form-buttons .btn-back-configurator{
    max-width:330px;
    line-height:1.25;
}

@media (max-width:768px){
    #mondotile-quote-list .mt-multi-summary-head{
        align-items:flex-start;
        flex-direction:column;
    }

    #mondotile-quote-list .mt-multi-summary-head span{
        text-align:left;
    }

    #mondotile-quote-list .quote-text{
        width:100%;
    }

    #mondotile-quote-form .form-buttons{
        align-items:stretch;
        flex-direction:column;
    }

    #mondotile-quote-form .form-buttons .btn-back,
    #mondotile-quote-form .form-buttons .btn-submit{
        width:100%;
        max-width:none;
    }
}

/* === MONDOTILE 3.9.11 — preventivo multiplo: indirizzo separato === */
#mondotile-quote-form .mt-quote-address-group{display:block;margin:0 0 14px;}
#mondotile-quote-form .mt-quote-address-group .form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px;}
#mondotile-quote-form .mt-quote-address-group .form-row:nth-child(2){grid-template-columns:1fr 1.3fr .8fr;}
#mondotile-quote-form .mt-phone-combined{display:grid;grid-template-columns:150px minmax(0,1fr);gap:8px;}
#mondotile-quote-form .mt-cap-status{display:block;margin-top:5px;color:#64748b;font-size:12px;line-height:1.3;}
@media(max-width:767px){#mondotile-quote-form .mt-quote-address-group .form-row,#mondotile-quote-form .mt-quote-address-group .form-row:nth-child(2),#mondotile-quote-form .mt-phone-combined{grid-template-columns:1fr}}

/* v3.9.21 conversion r1: list price in multi quote */
.mt-multi-list-price{display:block;margin-top:5px;color:#7c2d12;font-size:12px}.mt-multi-list-price strong{color:#111827}.mt-list-value{display:block;margin-top:6px;color:#9a3412;font-size:11.5px}.mt-list-value strong{color:#111827}
.mondotile-prezzo-cell .prezzo-listino small,.mondotile-prezzo-cell .prezzo-listino strong{display:block}.mondotile-prezzo-cell .prezzo-listino small{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#9a3412}.mondotile-prezzo-cell .prezzo-listino strong{font-size:14px;color:#111827}

/* =======================================================
   MONDOTILE 3.9.27 — R3 Preventivo multiplo evoluto
   ======================================================= */
#mondotile-quote-list .mt-r3-summary-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin:0 0 18px;
    padding:17px 18px;
    border:1px solid #e4e7ec;
    border-radius:14px;
    background:#f8fafc;
}
#mondotile-quote-list .mt-r3-summary-head>div:first-child{min-width:0}
#mondotile-quote-list .mt-r3-summary-head strong{display:block;color:#141820;font-size:18px;line-height:1.25}
#mondotile-quote-list .mt-r3-summary-head span{display:block;margin-top:4px;color:#667085;font-size:13px;line-height:1.45}
#mondotile-quote-list .mt-r3-summary-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}
#mondotile-quote-list .mt-r3-grand-total{min-width:180px;padding:9px 12px;border-radius:10px;background:#fff;border:1px solid #e4e7ec;text-align:right}
#mondotile-quote-list .mt-r3-grand-total small{display:block;color:#667085;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.035em}
#mondotile-quote-list .mt-r3-grand-total b{display:block;margin-top:2px;color:#141820;font-size:20px;line-height:1.1}
#mondotile-quote-list .mt-r3-continue-search{min-height:42px;padding:9px 14px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#141820;font-weight:750;cursor:pointer;white-space:nowrap}
#mondotile-quote-list .mt-r3-continue-search:hover{border-color:#f97316;color:#c2410c}

#mondotile-quote-list .mt-r3-items{display:flex;flex-direction:column;gap:16px}
#mondotile-quote-list .mt-r3-item{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(440px,1.1fr);gap:22px;padding:18px;border:1px solid #e4e7ec;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.035)}
#mondotile-quote-list .mt-r3-product{display:flex;gap:14px;min-width:0}
#mondotile-quote-list .mt-r3-thumb{width:104px;height:104px;flex:0 0 104px;object-fit:cover;border:1px solid #e4e7ec;border-radius:12px;background:#f8fafc}
#mondotile-quote-list .mt-r3-thumb--empty{display:block}
#mondotile-quote-list .mt-r3-product-copy{min-width:0;flex:1}
#mondotile-quote-list .mt-r3-product-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
#mondotile-quote-list .mt-r3-product h3{margin:1px 0 8px;color:#141820;font-size:17px;line-height:1.3}
#mondotile-quote-list .mt-r3-meta{display:flex;flex-wrap:wrap;gap:6px 10px;color:#667085;font-size:12px;line-height:1.35}
#mondotile-quote-list .mt-r3-meta span{display:inline-block}
#mondotile-quote-list .mt-r3-meta b{color:#344054;font-weight:750}
#mondotile-quote-list .quote-remove-item{flex:0 0 auto;margin:0;padding:6px 9px;border:1px solid #fecaca;border-radius:8px;background:#fff;color:#b42318;font-size:11px;font-weight:800;cursor:pointer}
#mondotile-quote-list .quote-remove-item:hover{background:#fef3f2;border-color:#fda29b}
#mondotile-quote-list .mt-r3-list-price{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:5px 8px;margin-top:14px;padding:9px 10px;border-left:3px solid #f97316;border-radius:8px;background:#f8fafc;color:#667085}
#mondotile-quote-list .mt-r3-list-price span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
#mondotile-quote-list .mt-r3-list-price strong{margin:0;color:#141820;font-size:15px;white-space:nowrap}
#mondotile-quote-list .mt-r3-list-price small{flex-basis:100%;margin:0;color:#667085;font-size:11px}

#mondotile-quote-list .mt-r3-calculator{padding:14px;border:1px solid #e4e7ec;border-radius:13px;background:#f8fafc}
#mondotile-quote-list .mt-r3-qty-field label{display:block;margin:0 0 6px;color:#344054;font-size:13px;font-weight:800}
#mondotile-quote-list .mt-r3-qty-input-wrap{display:flex;align-items:stretch;max-width:280px}
#mondotile-quote-list .mt-r3-qty-input-wrap input{width:100%;min-width:0;height:43px;padding:8px 11px;border:1px solid #cfd8e3;border-right:0;border-radius:9px 0 0 9px;background:#fff;color:#141820;font-size:15px;font-weight:700;box-sizing:border-box}
#mondotile-quote-list .mt-r3-qty-input-wrap input:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.12)}
#mondotile-quote-list .mt-r3-qty-input-wrap input.error{border-color:#dc2626;background:#fef2f2}
#mondotile-quote-list .mt-r3-qty-input-wrap span{display:flex;align-items:center;padding:0 12px;border:1px solid #cfd8e3;border-left:0;border-radius:0 9px 9px 0;background:#fff;color:#475467;font-size:13px;font-weight:800;white-space:nowrap}
#mondotile-quote-list .mt-r3-qty-field>small{display:block;margin-top:6px;color:#667085;font-size:11.5px;line-height:1.4}

#mondotile-quote-list .mt-r3-waste{display:flex;align-items:center;gap:10px;margin-top:12px;padding:10px 11px;border:1px solid #d8e0e8;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .15s ease,background .15s ease}
#mondotile-quote-list .mt-r3-waste.is-enabled{border-color:#fdba74;background:#fffaf5}
#mondotile-quote-list .mt-r3-waste input{position:absolute;opacity:0;pointer-events:none}
#mondotile-quote-list .mt-r3-waste-check{position:relative;width:21px;height:21px;flex:0 0 21px;border:2px solid #98a2b3;border-radius:5px;background:#fff}
#mondotile-quote-list .mt-r3-waste-check:after{content:"";position:absolute;left:5px;top:1px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(0);transition:transform .12s ease}
#mondotile-quote-list .mt-r3-waste input:checked + .mt-r3-waste-check{border-color:#f97316;background:#f97316}
#mondotile-quote-list .mt-r3-waste input:checked + .mt-r3-waste-check:after{transform:rotate(45deg) scale(1)}
#mondotile-quote-list .mt-r3-waste-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;color:#344054}
#mondotile-quote-list .mt-r3-waste-copy b{font-size:12.5px}
#mondotile-quote-list .mt-r3-waste-copy small{color:#667085;font-size:11px;line-height:1.35}
#mondotile-quote-list .mt-r3-waste-status{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#eef2f6;color:#667085;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.035em}
#mondotile-quote-list .mt-r3-waste.is-enabled .mt-r3-waste-status{background:#ffedd5;color:#c2410c}

#mondotile-quote-list .mt-r3-calc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}
#mondotile-quote-list .mt-r3-calc-grid>div{min-width:0;padding:9px 10px;border:1px solid #e4e7ec;border-radius:9px;background:#fff}
#mondotile-quote-list .mt-r3-calc-grid span{display:block;margin:0;color:#667085;font-size:10.5px;line-height:1.3}
#mondotile-quote-list .mt-r3-calc-grid strong{display:block;margin-top:3px;color:#141820;font-size:12.5px;line-height:1.3;overflow-wrap:anywhere}
#mondotile-quote-list .mt-r3-calc-grid .mt-r3-calc-total{border-color:#fed7aa;background:#fff7ed}
#mondotile-quote-list .mt-r3-calc-grid .mt-r3-calc-total span{color:#9a3412;font-weight:750}
#mondotile-quote-list .mt-r3-calc-grid .mt-r3-calc-total strong{color:#9a3412;font-size:14px}

.mondotile-quote-panel .mt-panel-qty{margin-top:4px;color:#475467;font-weight:700}
.mondotile-quote-panel .mt-panel-list-total{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px;padding:10px 11px;border:1px solid #fed7aa;border-radius:9px;background:#fff7ed}
.mondotile-quote-panel .mt-panel-list-total span{color:#9a3412;font-size:12px;font-weight:700}
.mondotile-quote-panel .mt-panel-list-total strong{color:#9a3412;font-size:16px}

@media(max-width:980px){
    #mondotile-quote-list .mt-r3-item{grid-template-columns:1fr}
    #mondotile-quote-list .mt-r3-calc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
    #mondotile-quote-list .mt-r3-summary-head{align-items:stretch;flex-direction:column}
    #mondotile-quote-list .mt-r3-summary-actions{align-items:stretch;flex-direction:column}
    #mondotile-quote-list .mt-r3-grand-total{text-align:left;min-width:0}
    #mondotile-quote-list .mt-r3-item{padding:14px;gap:14px}
    #mondotile-quote-list .mt-r3-product{align-items:flex-start}
    #mondotile-quote-list .mt-r3-thumb{width:78px;height:78px;flex-basis:78px}
    #mondotile-quote-list .mt-r3-product-top{display:block}
    #mondotile-quote-list .quote-remove-item{margin-top:9px}
    #mondotile-quote-list .mt-r3-calc-grid{grid-template-columns:1fr}
    #mondotile-quote-list .mt-r3-qty-input-wrap{max-width:none}
    #mondotile-quote-list .mt-r3-waste{align-items:flex-start;flex-wrap:wrap}
    #mondotile-quote-list .mt-r3-waste-status{margin-left:31px}
}


/* =======================================================
   MONDOTILE 3.9.28 — R3.1 rifiniture UX preventivo multiplo
   ======================================================= */
#mondotile-quote-list .mt-r3-grand-total em{
    display:block;
    margin-top:4px;
    color:#667085;
    font-size:10.5px;
    font-style:normal;
    font-weight:650;
    line-height:1.25;
}
#mondotile-quote-list .mt-r3-grand-total.is-partial{
    border-color:#fed7aa;
    background:#fffaf5;
}
#mondotile-quote-list .mt-r3-grand-total.is-partial em{color:#b54708}
#mondotile-quote-list .mt-r3-grand-total.is-complete{
    border-color:#a6f4c5;
    background:#f6fef9;
}
#mondotile-quote-list .mt-r3-grand-total.is-complete em{color:#027a48}
#mondotile-quote-list .mt-r3-field-error{
    display:none;
    margin-top:7px!important;
    color:#b42318!important;
    font-size:11.5px!important;
    font-weight:700;
    line-height:1.35;
}
#mondotile-quote-list .mt-r3-field-error.is-visible{display:block}
#mondotile-quote-list .mt-r3-qty-input-wrap input.error{
    border-color:#d92d20;
    background:#fff8f7;
    box-shadow:0 0 0 3px rgba(217,45,32,.08);
}
#mondotile-quote-list .mt-r3-calc-total{
    box-shadow:inset 0 0 0 1px rgba(249,115,22,.04);
}
#mondotile-quote-form .btn-submit{
    min-width:320px;
}
@media(max-width:680px){
    #mondotile-quote-form .btn-submit{width:100%;min-width:0}
}

/* R5 - stima indicativa trasporto */
.mt-r5-shipping-estimate{margin:16px 0 22px;padding:15px 18px;border:1px solid #fed7aa;border-left:4px solid #f97316;border-radius:14px;background:#fffaf5}.mt-r5-shipping-estimate small{display:block;color:#9a3412;font-size:11px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.mt-r5-shipping-estimate strong{display:block;margin-top:4px;font-size:21px;color:#141820}.mt-r5-shipping-estimate p{margin:5px 0 0;color:#667085;font-size:12px;line-height:1.45}.mt-r5-shipping-estimate.is-loading strong{font-size:14px;color:#667085}
