/* TP Cotizador – product page marking block */
.tpcot { flex: 1 1 100%; order: -1; margin: 0 0 6px; padding: 14px; border: 1px solid #dbe6f5; border-radius: 10px; background: #fff; }
.tpcot__title { margin: 0 0 10px; color: #13284f; font-size: 15px; font-weight: 700; }
.tpcot__field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; color: #4a5570; font-size: 13px; font-weight: 600; }
.tpcot__field select, .tpcot__field input { width: 100%; height: 42px; padding: 0 10px; border: 1px solid #cfd6e2; border-radius: 8px; background: #fff; color: #13284f; font: inherit; font-size: 14.5px; font-weight: 400; }
.tpcot__field select:focus, .tpcot__field input:focus { border-color: #0050a5; outline: 2px solid rgba(0, 80, 165, .15); }
.tpcot__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpcot__check { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: #13284f; font-size: 14px; cursor: pointer; }
.tpcot__check em { color: #7a8293; font-size: 12.5px; font-style: normal; }
.tpcot__note { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: #fff6f1; color: #6b5a52; font-size: 12.5px; line-height: 1.5; }
.tpcot__sum { display: grid; gap: 4px; padding-top: 10px; border-top: 1px dashed #cfd8e6; }
.tpcot__sum > div { display: flex; justify-content: space-between; gap: 10px; color: #4a5570; font-size: 14px; }
.tpcot__sum strong { color: #13284f; font-weight: 600; }
.tpcot__sum .tpcot__total { margin-top: 2px; font-size: 15px; }
.tpcot__sum .tpcot__total strong { color: #0050a5; font-size: 20px; font-weight: 700; }
.tpcot__sum small { color: #7a8293; font-size: 12.5px; text-align: right; }
/* The marking block already shows the estimated total. */
form.cart:has(.tpcot) ~ .tpc-quote .tpc-quote__total, .tp-pdp__cart:has(.tpcot) .tpc-quote__total { display: none !important; }
.tp-pdp__cart:has(.tpcot) .tpc-quote { justify-content: stretch; }
.tp-pdp__cart:has(.tpcot) .tpc-quote__wa { flex: 1 1 100%; }
/* Cart / thank-you: PDF link */
.tpcot-pdf { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1.5px solid #0050a5; border-radius: 10px; color: #0050a5 !important; font-size: 15px; font-weight: 600; text-decoration: none; }
.tpcot-pdf::before { content: "⬇"; }
.tpcot-pdf:hover { background: #0050a5; color: #fff !important; }
.tpcot-thanks { margin: 0 0 24px; }
.tpcot-thanks .tpcot-pdf { display: inline-flex; padding: 12px 22px; }
.woocommerce-cart table.cart .variation, .tup-cartpanel__marc { margin-top: 4px; color: #4a5570; font-size: 12.5px; line-height: 1.45; }
.woocommerce-cart table.cart .variation dt { font-weight: 600; }
.woocommerce-cart table.cart .variation dd { margin: 0; }
.woocommerce-cart table.cart .variation dd p { margin: 0; }
/* The form row (quantity, button, wishlist) keeps one line; the marking block takes a full row above. */
.tp-pdp__cart form.cart:has(.tpcot) { flex-wrap: wrap !important; }
.tp-pdp__cart form.cart .tpcot { flex: 0 0 100%; width: 100%; box-sizing: border-box; }
@media (max-width: 767px) {
	.tp-pdp__cart .single_add_to_cart_button { white-space: normal !important; line-height: 1.2 !important; font-size: 14px !important; }
}

/* ---------- /cotizacion/ ---------- */
.tpq { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin: 8px 0 56px; }
.tpq--empty, .tpq--sent { grid-template-columns: 1fr; }
.tpq__list { display: grid; gap: 14px; }
.tpq__item { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 18px; border: 1px solid #e6e9ef; border-radius: 14px; background: #fff; transition: opacity .2s; }
.tpq__item.is-saving, .tpq__item.is-removing { opacity: .55; pointer-events: none; }
.tpq__item.has-error { border-color: #d63638; }
.tpq__img { display: block; align-self: start; overflow: hidden; border: 1px solid #eef0f4; border-radius: 10px; background: #f7f8fa; }
.tpq__img img { display: block; width: 100%; height: 120px; object-fit: contain; mix-blend-mode: multiply; }
.tpq__body { display: grid; gap: 12px; min-width: 0; }
.tpq__head { display: flex; justify-content: space-between; gap: 12px; }
.tpq__name { color: #13284f; font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.tpq__name:hover { color: #0050a5; }
.tpq__ref { margin: 3px 0 0; color: #7a8293; font-size: 13px; }
.tpq__remove { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: #9aa3b5; cursor: pointer; }
.tpq__remove:hover { background: #fdecec; color: #c0392b; }
.tpq__edit { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 12px; border-radius: 10px; background: #f6f8fb; }
.tpq__f { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: #4a5570; font-size: 12.5px; font-weight: 600; }
.tpq__f select, .tpq__f input, .tpq__f textarea { height: 40px; padding: 0 10px; border: 1px solid #cfd6e2; border-radius: 8px; background: #fff; color: #13284f; font: inherit; font-size: 14px; font-weight: 400; }
.tpq__f textarea { height: auto; padding: 10px; resize: vertical; }
.tpq__f select { min-width: 170px; }
.tpq__f--s input { width: 90px; }
.tpq__qty { display: inline-flex; height: 40px; border: 1px solid #cfd6e2; border-radius: 8px; overflow: hidden; background: #fff; }
.tpq__qty button { width: 34px; border: 0; background: #f4f5f8; color: #13284f; font-size: 17px; cursor: pointer; }
.tpq__qty input { width: 70px; height: 38px; border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; }
.tpq__qty input::-webkit-outer-spin-button, .tpq__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tpq__chk { display: flex; align-items: center; gap: 6px; height: 40px; color: #13284f; font-size: 13.5px; cursor: pointer; }
.tpq__chk em { color: #7a8293; font-size: 12px; font-style: normal; }
.tpq__note { margin: 0; color: #6b5a52; font-size: 13px; }
.tpq__totals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; color: #7a8293; font-size: 13.5px; }
.tpq__totals strong { margin-left: 4px; color: #13284f; font-weight: 600; }
.tpq__line { margin-left: auto; font-size: 14px; }
.tpq__line strong { color: #0050a5; font-size: 18px; font-weight: 700; }
.tpq__line small { margin-left: 6px; color: #7a8293; font-size: 12px; }
.tpq__more { display: inline-block; margin-top: 14px; color: #0050a5; font-size: 15px; font-weight: 600; }
.tpq__side { position: sticky; top: 100px; display: grid; gap: 16px; }
.admin-bar .tpq__side { top: 132px; }
.tpq__card { padding: 22px; border: 1px solid #e6e9ef; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px rgba(16, 40, 80, .06); }
.tpq__h { margin: 0 0 12px; color: #13284f; font-size: 19px; font-weight: 700; }
.tpq__sum-row { display: flex; justify-content: space-between; margin: 0; padding: 8px 0; border-top: 1px solid #e6e9ef; color: #4a5570; font-size: 14.5px; }
.tpq__sum-row:first-child { border-top: 0; }
.tpq__sum-total { padding-top: 12px; border-top-width: 2px; color: #13284f; font-size: 16px; font-weight: 700; }
.tpq__sum-total span:last-child { color: #0050a5; font-size: 22px; }
.tpq__sum-note { margin: 8px 0 0; color: #7a8293; font-size: 12.5px; line-height: 1.5; }
.tpq__form { display: grid; gap: 10px; }
.tpq__form .tpq__f input { width: 100%; }
.tpq__2 { display: contents; } /* One field per row: the form column is narrow and two labels per row broke unevenly. */
.tpq__chk--terms { height: auto; align-items: flex-start; color: #4a5570; font-size: 12.5px; line-height: 1.5; }
.tpq__chk--terms a { color: #0050a5; text-decoration: underline; }
.tpq__errors { padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #8a1f1f; font-size: 13.5px; }
.tpq__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: #0050a5; color: #fff !important; font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.tpq__btn:hover { background: #003f82; }
.tpq__btn--block { width: 100%; margin-top: 4px; }
.tpq__empty, .tpq__ok { padding: 36px 28px; border-radius: 16px; background: #f6f3ef; text-align: center; }
.tpq__empty-title, .tpq__ok-title { margin: 0 0 8px; color: #13284f; font-size: 21px; font-weight: 700; }
.tpq__empty p { color: #4a5570; }
.tpq__ok { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; background: #e9f6ee; text-align: left; }
.tpq__ok > span { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: #1f8a4c; color: #fff; font-size: 20px; }
.tpq__ok p { margin: 0; color: #14532d; }
@media (max-width: 1023px) {
	.tpq { grid-template-columns: 1fr; }
	.tpq__side { position: static; }
}
@media (max-width: 767px) {
	.tpq__item { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px; }
	.tpq__img img { height: 76px; }
	.tpq__edit { padding: 10px; }
	.tpq__f select { min-width: 0; width: 100%; }
	.tpq__edit > .tpq__f:not(.tpq__f--qty):not(.tpq__f--s) { flex: 1 1 100%; }
	.tpq__line { margin-left: 0; flex: 1 1 100%; }

}
@media (max-width: 767px) {
	/* Phones: photo + name on top, then quantity/marking and totals across the whole card. */
	.tpq__item { grid-template-columns: 64px minmax(0, 1fr); row-gap: 12px; }
	.tpq__body { display: contents; }
	.tpq__img img { height: 64px; }
	.tpq__edit, .tpq__totals { grid-column: 1 / -1; }
	.tpq__chk { height: auto; }
}

/* Sets: one marking block per piece. */
.tpcot__set-note { margin: 0 0 10px; color: #5a6273; font-size: 13px; }
.tpcot__unit--piece { margin: 0 0 12px; padding: 12px 12px 4px; border: 1px solid #e3e8f0; border-radius: 10px; background: #fafbfd; }
.tpcot__piece { margin: 0 0 8px; color: #13284f; font-size: 14px; font-weight: 700; }
.tpcot__unit--piece .tpcot__field { margin-bottom: 8px; }
.tpq__piece { margin: 6px 0 2px; color: #13284f; font-size: 13px; font-weight: 700; flex-basis: 100%; }
