/* EcoDu tables: same look as TablePress defaults; the site's custom table CSS
   (green header) is added inline after this file. */
.ecodu-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1em; }
.tablepress { border-collapse: collapse; border-spacing: 0; width: 100%; margin: 0; border: none; clear: both; }
.tablepress td,
.tablepress th { padding: 8px; border: none; background: none; text-align: left; vertical-align: top; }
.tablepress tbody td,
.tablepress tfoot th { border-top: 1px solid #ddd; }
.tablepress thead th,
.tablepress tfoot th { background-color: #d9edf7; font-weight: 700; vertical-align: middle; }
.tablepress .row-striping > tr:nth-child(odd) > td { background-color: #f9f9f9; }
.tablepress .row-striping > tr:nth-child(even) > td { background-color: #fff; }
.tablepress .row-hover > tr:hover > td { background-color: #f3f3f3; }
.tablepress img { margin: 0; padding: 0; border: none; max-width: none; }

/* Phones: each row becomes a card, every value with its column title. */
@media (max-width: 767px) {
	.ecodu-table-wrap { overflow-x: visible; }
	.ecodu-table-stack,
	.ecodu-table-stack tbody,
	.ecodu-table-stack tr,
	.ecodu-table-stack td { display: block; width: 100%; box-sizing: border-box; }
	.ecodu-table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.ecodu-table-stack tbody > tr { border: 1px solid #ddd; border-radius: 4px; margin-bottom: 12px; overflow: hidden; }
	.ecodu-table-stack tbody > tr > td { display: flex; justify-content: space-between; gap: 12px; text-align: right; border-top: 1px solid #eee; background-color: #fff !important; }
	.ecodu-table-stack tbody > tr > td:first-child { border-top: 0; font-weight: 700; background-color: #f3f7f1 !important; }
	.ecodu-table-stack td[data-label]::before { content: attr(data-label); font-weight: 700; text-align: left; flex: 0 0 45%; }
}

/* "Acquista" column: live price + button to the product page */
.tablepress td .ecodu-buy { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: right; min-width: 0; }
.ecodu-buy-price { font-weight: 700; white-space: nowrap; line-height: 1.2; }
.ecodu-buy-price del { opacity: .6; font-weight: 400; margin-right: 4px; }
.ecodu-buy-price .woocommerce-price-suffix { font-weight: 400; font-size: .85em; }
.ecodu-buy-request { font-style: italic; opacity: .8; white-space: nowrap; line-height: 1.2; }
.ecodu-buy-btn { display: inline-block; padding: 5px 12px; border-radius: 3px; background: #307326; color: #fff !important; font-weight: 700; font-size: 12px; line-height: 1.3; text-transform: uppercase; letter-spacing: .03em; text-decoration: none !important; white-space: nowrap; transition: background .15s; }
.ecodu-buy-btn:hover, .ecodu-buy-btn:focus { background: #24581c; }
.ecodu-buy.is-request .ecodu-buy-btn { background: transparent; color: #307326 !important; box-shadow: inset 0 0 0 2px #307326; }
.ecodu-buy.is-request .ecodu-buy-btn:hover { background: #307326; color: #fff !important; }
@media (max-width: 767px) {
	.ecodu-table-stack tbody > tr > td .ecodu-buy { flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; flex: 1 1 auto; }
}
