/* Todo en Tapas — WooCommerce */

/* ---------- Botones de la marca ---------- */
.tt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 15px 26px;
	font: 800 12px/1 var(--tt-font-body);
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.tt-btn--wa { background: var(--tt-orange); color: #fff; }
.tt-btn--wa:hover, .tt-btn--wa:focus { background: var(--tt-black); color: #fff; }
.tt-btn--ghost { background: transparent; color: var(--tt-black); box-shadow: inset 0 0 0 1px var(--tt-black); }
.tt-btn--ghost:hover, .tt-btn--ghost:focus { background: var(--tt-black); color: #fff; }
.tt-btn:focus-visible { outline: 2px solid var(--tt-orange); outline-offset: 3px; }

/* =================== Confirmación de pedido =================== */
body.tt-order-received,
body.tt-order-received .site-content,
body.tt-order-received .ast-plain-container,
body.tt-order-received #primary { background: var(--tt-grey); }

body.tt-order-received .site-content > .ast-container {
	max-width: 900px;
	padding: 56px 20px 80px;
}
body.tt-order-received #primary { margin: 0; padding: 0; width: 100%; }

/* Título */
body.tt-order-received .entry-header {
	margin: 0 0 6px;
	text-align: center;
}
body.tt-order-received .entry-header::before {
	content: "";
	display: block;
	width: 64px;
	height: 64px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--tt-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E") center / 34px no-repeat;
}
body.tt-order-received .entry-title {
	margin: 0;
	font-size: clamp(40px, 6vw, 60px);
	line-height: 1.05;
	color: var(--tt-black);
}

body.tt-order-received .woocommerce-order { display: flex; flex-direction: column; gap: 22px; }
body.tt-order-received .woocommerce-order > * { margin: 0; }

/* "Gracias. Tu pedido ha sido recibido." */
body.tt-order-received .woocommerce-thankyou-order-received {
	text-align: center;
	color: var(--tt-muted);
	font-size: 15px;
	padding: 0;
	background: none;
	border: 0;
}
body.tt-order-received .woocommerce-thankyou-order-received::before { content: none; }

/* Resumen: número, fecha, total, método */
body.tt-order-received ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	background: #fff;
	border-top: 4px solid var(--tt-orange);
}
body.tt-order-received ul.woocommerce-order-overview::before,
body.tt-order-received ul.woocommerce-order-overview::after { content: none; display: none; }
body.tt-order-received ul.woocommerce-order-overview li {
	margin: 0;
	padding: 20px 22px;
	border: 0;
	border-right: 1px solid var(--tt-line);
	float: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--tt-muted);
	line-height: 1.4;
}
body.tt-order-received ul.woocommerce-order-overview li:last-child { border-right: 0; }
body.tt-order-received ul.woocommerce-order-overview li strong {
	display: block;
	margin-top: 6px;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
	color: var(--tt-black);
}
body.tt-order-received ul.woocommerce-order-overview li.total strong { color: var(--tt-orange); }
body.tt-order-received ul.woocommerce-order-overview li.email strong { font-size: 14px; word-break: break-all; }

/* Instrucciones de pago (transferencia) */
body.tt-order-received .woocommerce-order > p:not(.woocommerce-notice) {
	position: relative;
	padding: 18px 22px 18px 62px;
	background: #FFF3EF;
	color: #5A2A1C;
	font-size: 14.5px;
	line-height: 1.6;
}
body.tt-order-received .woocommerce-order > p:not(.woocommerce-notice)::before {
	content: "";
	position: absolute;
	left: 22px;
	top: 20px;
	width: 24px;
	height: 24px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EE6C4E' stroke-width='2'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Botones de acción */
body.tt-order-received .tt-thankyou-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* Datos bancarios (si se cargan cuentas) */
body.tt-order-received .woocommerce-bacs-bank-details {
	background: #fff;
	padding: 24px 26px;
}
body.tt-order-received .wc-bacs-bank-details-heading,
body.tt-order-received .wc-bacs-bank-details-account-name { margin: 0 0 10px; font-size: 26px; }
body.tt-order-received ul.wc-bacs-bank-details { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
body.tt-order-received ul.wc-bacs-bank-details li { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--tt-muted); }
body.tt-order-received ul.wc-bacs-bank-details li strong { font-size: 15px; color: var(--tt-black); letter-spacing: 0; text-transform: none; margin-left: 6px; }

/* Detalle del pedido y dirección */
body.tt-order-received .woocommerce-order-details,
body.tt-order-received .woocommerce-customer-details {
	margin: 0;
	padding: 26px 28px;
	background: #fff;
	border: 0;
}
/* Más específico que Astra (.woocommerce-page.woocommerce-checkout .woocommerce-order h2…) */
body.tt-order-received.woocommerce-checkout .woocommerce-order h2.woocommerce-order-details__title,
body.tt-order-received.woocommerce-checkout .woocommerce-order h2.woocommerce-column__title {
	margin: 0 0 14px;
	padding: 0;
	font-size: 28px;
	line-height: 1.1;
	color: var(--tt-black);
	background: none;
	border: 0;
}

body.tt-order-received table.shop_table.order_details {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	font-size: 14px;
}
body.tt-order-received table.shop_table.order_details th,
body.tt-order-received table.shop_table.order_details td {
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--tt-line);
	background: none;
	color: var(--tt-text);
	vertical-align: top;
}
body.tt-order-received table.shop_table.order_details thead th {
	padding-top: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--tt-muted);
}
body.tt-order-received table.shop_table.order_details td:last-child,
body.tt-order-received table.shop_table.order_details th:last-child { text-align: right; }
body.tt-order-received table.shop_table.order_details tfoot th { font-weight: 400; }
body.tt-order-received table.shop_table.order_details .product-name a { color: var(--tt-black); font-weight: 700; text-decoration: none; }
body.tt-order-received table.shop_table.order_details .product-name a:hover { color: var(--tt-orange); }
body.tt-order-received table.shop_table.order_details .product-quantity { color: var(--tt-orange); font-weight: 800; }
body.tt-order-received table.shop_table.order_details tfoot tr:last-child th,
body.tt-order-received table.shop_table.order_details tfoot tr:last-child td { border-bottom: 0; }
body.tt-order-received table.shop_table.order_details tfoot tr:nth-last-child(2) th,
body.tt-order-received table.shop_table.order_details tfoot tr:nth-last-child(2) td {
	font-size: 18px;
	font-weight: 800;
	color: var(--tt-black);
}

body.tt-order-received.woocommerce-checkout .woocommerce-customer-details address {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
	font-size: 14px;
	line-height: 1.7;
	color: var(--tt-text);
}
body.tt-order-received .woocommerce-customer-details address p { margin: 0; }
body.tt-order-received .woocommerce-customer-details--phone::before,
body.tt-order-received .woocommerce-customer-details--email::before { color: var(--tt-orange); }

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
	body.tt-order-received .site-content > .ast-container { padding: 36px 16px 56px; }
	body.tt-order-received ul.woocommerce-order-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.tt-order-received ul.woocommerce-order-overview li { padding: 16px; border-bottom: 1px solid var(--tt-line); }
	body.tt-order-received ul.woocommerce-order-overview li:nth-child(2n) { border-right: 0; }
	body.tt-order-received ul.woocommerce-order-overview li:nth-last-child(-n+2) { border-bottom: 0; }
	body.tt-order-received .woocommerce-order-details,
	body.tt-order-received .woocommerce-customer-details { padding: 22px 18px; }
	body.tt-order-received .tt-thankyou-actions .tt-btn { width: 100%; }
}
