/* Cotizador ODML – estilos públicos. Los botones usan las clases de Divi (et_pb_button)
   para heredar el estilo del tema; aquí solo se ordena el resto. */
:root { --odmlc-color: #1f4e79; }

.odmlc-hidden { display: none !important; }
.odmlc-price-text { font-style: italic; opacity: .8; }

.odmlc-add-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.odmlc-add-wrap.odmlc-variable { margin-top: 12px; }
.odmlc-qty { display: inline-flex; align-items: center; gap: 6px; }
.odmlc-qty-input { width: 90px !important; min-height: 40px; padding: 6px 8px !important; }
.odmlc-qty-select { min-height: 40px; padding: 6px 8px; max-width: 220px; }
.odmlc-qty-other { width: 100px !important; }
.odmlc-unit { opacity: .75; font-size: .9em; }
.odmlc-view-link { font-size: .9em; text-decoration: underline; }
.odmlc-add.odmlc-busy { opacity: .6; pointer-events: none; }
.odmlc-add.odmlc-in-list::before { content: none; }
.woocommerce ul.products li.product .odmlc-add-wrap { justify-content: center; }
.woocommerce ul.products li.product .odmlc-qty-select { max-width: 150px; }

/* Lista */
.odmlc-quote { margin: 0 0 40px; }
.odmlc-table { width: 100%; border-collapse: collapse; margin-bottom: 30px; }
.odmlc-table th { text-align: left; border-bottom: 2px solid var(--odmlc-color); padding: 10px 8px; }
.odmlc-table td { border-bottom: 1px solid #e4e4e4; padding: 12px 8px; vertical-align: top; }
.odmlc-c-img { width: 70px; }
.odmlc-c-img img { width: 64px; height: auto; display: block; border-radius: 4px; }
.odmlc-c-qty { width: 230px; }
.odmlc-c-del { width: 40px; text-align: center; }
.odmlc-variant, .odmlc-sku { font-size: .88em; opacity: .75; }
.odmlc-note { width: 100%; margin-top: 8px; font-size: .9em; padding: 6px 8px; border: 1px solid #ddd; border-radius: 4px; resize: vertical; }
.odmlc-remove { background: none; border: 1px solid #ccc; border-radius: 50%; width: 30px; height: 30px; font-size: 18px; line-height: 1; cursor: pointer; color: #a00; }
.odmlc-remove:hover { background: #a00; color: #fff; border-color: #a00; }
.odmlc-empty { padding: 30px 0; }

/* Formulario */
.odmlc-form { background: #f7f8fa; border: 1px solid #e4e6ea; border-radius: 8px; padding: 24px; }
.odmlc-form h3 { margin-top: 0; }
.odmlc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.odmlc-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.odmlc-field input, .odmlc-field textarea { width: 100%; padding: 10px; border: 1px solid #ccd; border-radius: 4px; background: #fff; font-size: 1em; }
.odmlc-field--full { grid-column: 1 / -1; }
.odmlc-consent label { font-weight: normal; }
.odmlc-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.odmlc-errors { background: #fdecea; border-left: 4px solid #c62828; padding: 10px 16px; margin-bottom: 16px; }
.odmlc-errors ul { margin: 0; padding-left: 18px; }
.odmlc-success { background: #e8f5e9; border-left: 4px solid #2e7d32; padding: 16px 20px; margin-bottom: 20px; font-size: 1.05em; }
.odmlc-send.loading { opacity: .6; }

/* Botón flotante y contador */
.odmlc-float { position: fixed; bottom: 24px; z-index: 99999; display: inline-flex; align-items: center; gap: 8px; background: var(--odmlc-color); color: #fff !important; padding: 12px 18px; border-radius: 40px; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-weight: 600; text-decoration: none !important; transition: transform .15s ease; }
.odmlc-float:hover { transform: translateY(-2px); }
.odmlc-float--right { right: 24px; }
.odmlc-float--left { left: 24px; }
.odmlc-count { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 12px; background: #fff; color: var(--odmlc-color); font-size: .85em; text-align: center; font-weight: 700; }
.odmlc-counter .odmlc-count, .odmlc-menu .odmlc-count { background: var(--odmlc-color); color: #fff; margin-left: 4px; }

/* Aviso */
.odmlc-toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); opacity: 0; background: #222; color: #fff; padding: 12px 20px; border-radius: 6px; z-index: 100000; transition: all .25s ease; max-width: 90vw; }
.odmlc-toast--in { opacity: 1; transform: translate(-50%, 0); }
.odmlc-toast--error { background: #b71c1c; }

@media (max-width: 700px) {
	.odmlc-grid { grid-template-columns: 1fr; }
	.odmlc-table thead { display: none; }
	.odmlc-table tr { display: grid; grid-template-columns: 70px 1fr 40px; border-bottom: 1px solid #e4e4e4; padding: 10px 0; }
	.odmlc-table td { border: 0; padding: 4px; }
	.odmlc-c-qty { grid-column: 2 / 3; width: auto; }
	.odmlc-c-del { grid-row: 1; grid-column: 3; }
	.odmlc-float-text { display: none; }
}
