/* Libro Configuratore v2.1.1 — scoped a #lc-configuratore per evitare conflitti Astra */

#lc-configuratore {
    margin: 1.5em 0;
    font-size: .95em;
    width: 100%;
    box-sizing: border-box;
}

/* ---- griglia campi ---- */
#lc-configuratore .lc-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3em .6em;
    padding: .35em 0;
    border-bottom: 1px solid #eee;
}

#lc-configuratore .lc-row:last-child {
    border-bottom: none;
}

#lc-configuratore .lc-label {
    flex: 0 0 180px;
    font-weight: 600;
    font-size: .9em;
    color: inherit;
}

#lc-configuratore .lc-control {
    flex: 1 1 160px;
    min-width: 0;
}

/* ---- controlli ---- */
#lc-configuratore select,
#lc-configuratore input[type="number"],
#lc-configuratore input[type="text"] {
    padding: .3em .5em;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 1em;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    max-width: 100%;
}

#lc-configuratore .lc-readonly {
    background: #f5f5f5 !important;
    color: #888 !important;
    cursor: not-allowed;
}

/* ---- date consegna ---- */
#lc-configuratore .lc-consegna-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: .4em 1.2em;
}

#lc-configuratore .lc-consegna-list li {
    margin: 0 !important;
    padding: 0 !important;
}

#lc-configuratore .lc-consegna-list label {
    display: flex;
    align-items: center;
    gap: .4em;
    cursor: pointer;
    font-weight: normal;
}

#lc-configuratore .lc-consegna-price {
    font-weight: 600;
    color: #c0392b;
    min-width: 56px;
    display: inline-block;
}

/* ---- riquadro prezzi ---- */
#lc-configuratore .lc-prezzi {
    margin-top: 1em;
	margin-bottom: 1em;
    padding: .8em 1em;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-sizing: border-box;
}

#lc-configuratore .lc-prezzi p {
    margin: .3em 0;
    color: inherit;
}

#lc-configuratore #lc-total,
#lc-configuratore #lc-unit {
    color: #c0392b;
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 .3em;
}

/* ---- loading ---- */
@keyframes lc-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .3; }
}

#lc-configuratore .lc-loading-pulse {
    animation: lc-pulse .7s ease-in-out infinite;
}

#lc-configuratore .lc-loading {
    color: #888;
    font-style: italic;
    font-size: .9em;
}

/* ---- dettagli carrello ---- */
.lc-cart-details {
    margin: .4em 0 0;
    font-size: .85em;
    overflow: hidden;
}

.lc-cart-details dt {
    float: left;
    clear: left;
    margin-right: .4em;
    font-weight: 600;
}

.lc-cart-details dd {
    margin: 0 0 .15em 0;
}
