/* Carrito · Finalizar compra · Pedido recibido — imagen de Crea Tu Joya Online.
   Solo estilos (el funcionamiento de WooCommerce y de los plugins no se toca). Se carga únicamente en esas tres páginas.
   Identidad: negro #000 · blanco · texto #6A6A6A · acento turquesa #007B80 · Work Sans (texto) y Young Serif (títulos).
   Botones como los de la web: turquesa, borde negro 1.5 px, radio 30 px. Tarjetas: borde fino, radio 18 px. Fondos siempre blancos (sin grises). */

.ctj-shop {
	--s-ink: #000;
	--s-text: #6a6a6a;
	--s-accent: #007b80;
	--s-accent-dark: #005f63;
	--s-line: #d9d9d9;
	--s-soft: #fff; /* fondos siempre blancos: las zonas se separan con filetes, no con grises */
	--s-radius: 18px;
	--s-font: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--s-serif: "Young Serif", Georgia, "Times New Roman", serif;
	font-family: var(--s-font);
	color: var(--s-text);
}

/* ---------- Contenedor y título de página ---------- */
.ctj-shop .woocommerce {
	max-width: 1120px;
	margin: 0 auto;
	padding: 8px 16px 56px;
	font-family: var(--s-font);
	font-size: 15px;
	line-height: 1.55;
	color: var(--s-text);
}
.ctj-shop .woocommerce a { color: var(--s-ink); }
.ctj-shop .woocommerce a:hover { color: var(--s-accent); }
.ctj-shop .woocommerce h2,
.ctj-shop .woocommerce h3 {
	font-family: var(--s-serif);
	font-weight: 400;
	color: var(--s-ink);
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
	margin: 0 0 16px;
}
.ctj-shop .woocommerce h2 { font-size: 26px; }
.ctj-shop .woocommerce h3 { font-size: 22px; }

/* ---------- Avisos ---------- */
.ctj-shop .woocommerce-message,
.ctj-shop .woocommerce-info,
.ctj-shop .woocommerce-error {
	list-style: none;
	margin: 0 0 20px;
	padding: 14px 18px 14px 18px;
	background: var(--s-soft);
	color: var(--s-ink);
	border: 1px solid var(--s-line);
	border-left: 4px solid var(--s-accent);
	border-radius: 12px;
	font-size: 14px;
}
.ctj-shop .woocommerce-error { border-left-color: #b3261e; }
.ctj-shop .woocommerce-message::before,
.ctj-shop .woocommerce-info::before,
.ctj-shop .woocommerce-error::before { display: none; }
.ctj-shop .woocommerce-message,
.ctj-shop .woocommerce-info { display: flex; align-items: center; justify-content: flex-start; gap: 6px 14px; flex-wrap: wrap; }
.ctj-shop .woocommerce-message:has(> .button),
.ctj-shop .woocommerce-info:has(> .button) { justify-content: space-between; }
.ctj-shop .woocommerce-message .button,
.ctj-shop .woocommerce-info .button { float: none; order: 2; margin: 0; min-height: 40px; padding: 8px 20px; }

/* ---------- Botones (como los de la web) ---------- */
.ctj-shop .woocommerce a.button,
.ctj-shop .woocommerce button.button,
.ctj-shop .woocommerce input.button,
.ctj-shop .woocommerce #place_order,
.ctj-shop .woocommerce a.checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 48px;
	padding: 13px 28px;
	background: var(--s-accent);
	color: #fff;
	border: 1.5px solid var(--s-ink);
	border-radius: 30px;
	font-family: var(--s-font);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.ctj-shop .woocommerce a.button:hover,
.ctj-shop .woocommerce button.button:hover,
.ctj-shop .woocommerce input.button:hover,
.ctj-shop .woocommerce #place_order:hover,
.ctj-shop .woocommerce a.checkout-button:hover {
	background: var(--s-ink);
	color: #fff;
}
.ctj-shop .woocommerce a.button:focus-visible,
.ctj-shop .woocommerce button.button:focus-visible,
.ctj-shop .woocommerce #place_order:focus-visible,
.ctj-shop .woocommerce a.checkout-button:focus-visible {
	outline: 3px solid var(--s-accent);
	outline-offset: 3px;
}
/* Botón secundario (actualizar carrito, aplicar cupón): blanco con borde negro */
.ctj-shop .woocommerce button[name="update_cart"],
.ctj-shop .woocommerce button[name="apply_coupon"],
.ctj-shop .woocommerce .woocommerce-message .button,
.ctj-shop .woocommerce .woocommerce-info .button {
	background: #fff;
	color: var(--s-ink);
}
.ctj-shop .woocommerce button[name="update_cart"]:hover,
.ctj-shop .woocommerce button[name="apply_coupon"]:hover { background: var(--s-ink); color: #fff; }
.ctj-shop .woocommerce button[name="update_cart"][disabled],
.ctj-shop .woocommerce button.button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Campos de formulario ---------- */
.ctj-shop .woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.ctj-shop .woocommerce form .form-row label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--s-ink);
	line-height: 1.3;
}
.ctj-shop .woocommerce form .form-row .required { color: var(--s-accent); text-decoration: none; }
.ctj-shop .woocommerce form .form-row .optional { color: var(--s-text); font-weight: 400; }
.ctj-shop .woocommerce input[type="text"],
.ctj-shop .woocommerce input[type="email"],
.ctj-shop .woocommerce input[type="tel"],
.ctj-shop .woocommerce input[type="password"],
.ctj-shop .woocommerce input[type="number"],
.ctj-shop .woocommerce textarea,
.ctj-shop .woocommerce select,
.ctj-shop .woocommerce .select2-container--default .select2-selection--single {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	background: #fff;
	color: var(--s-ink);
	border: 1px solid #cfcfcf;
	border-radius: 12px;
	font-family: var(--s-font);
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ctj-shop .woocommerce textarea { min-height: 96px; resize: vertical; }
.ctj-shop .woocommerce .select2-container--default .select2-selection--single { display: flex; align-items: center; }
.ctj-shop .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; color: var(--s-ink); line-height: 1.4; }
.ctj-shop .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.ctj-shop .woocommerce input:focus,
.ctj-shop .woocommerce textarea:focus,
.ctj-shop .woocommerce select:focus,
.ctj-shop .woocommerce .select2-container--open .select2-selection--single,
.ctj-shop .woocommerce .select2-container--focus .select2-selection--single {
	outline: none;
	border-color: var(--s-ink);
	box-shadow: 0 0 0 3px rgba(0, 123, 128, .25);
}
.ctj-shop .woocommerce .woocommerce-invalid input,
.ctj-shop .woocommerce .woocommerce-invalid select { border-color: #b3261e; }
.ctj-shop .woocommerce input[type="checkbox"],
.ctj-shop .woocommerce input[type="radio"] { accent-color: var(--s-accent); width: 18px; height: 18px; min-height: 0; vertical-align: middle; margin-right: 8px; }
.ctj-shop .woocommerce form .form-row label.checkbox,
.ctj-shop .woocommerce form .form-row label.woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 6px; font-weight: 400; color: var(--s-text); }

.ctj-shop .woocommerce .woocommerce-input-wrapper { display: block; width: 100%; }
.ctj-shop .woocommerce form .form-row input.input-text,
.ctj-shop .woocommerce form .form-row textarea,
.ctj-shop .woocommerce form .form-row select { border: 1px solid #cfcfcf; border-radius: 12px; padding: 11px 14px; min-height: 48px; background: #fff; color: var(--s-ink); font-size: 15px; box-shadow: none; }
.ctj-shop .woocommerce form .form-row textarea { min-height: 96px; }

/* ---------- Tablas y tarjetas ---------- */
.ctj-shop .woocommerce table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}
.ctj-shop .woocommerce table.shop_table th,
.ctj-shop .woocommerce table.shop_table td { border: 0; padding: 0; background: transparent; vertical-align: middle; }

/* =====================================================================
   CARRITO
   ===================================================================== */
.ctj-shop.woocommerce-cart .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 32px; align-items: start; }
.ctj-shop.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
.ctj-shop.woocommerce-cart .woocommerce > .woocommerce-message,
.ctj-shop.woocommerce-cart .woocommerce > .woocommerce-info,
.ctj-shop.woocommerce-cart .woocommerce > .woocommerce-error { grid-column: 1 / -1; }
.ctj-shop.woocommerce-cart .woocommerce-cart-form { grid-column: 1; min-width: 0; }
.ctj-shop.woocommerce-cart .cart-collaterals { grid-column: 2; grid-row: 2 / span 3; width: auto; float: none; position: sticky; top: 24px; }
.ctj-shop.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; }

/* Cada joya = una tarjeta */
.ctj-shop.woocommerce-cart table.cart thead { display: none; }
.ctj-shop.woocommerce-cart table.cart,
.ctj-shop.woocommerce-cart table.cart tbody { display: block; }
.ctj-shop.woocommerce-cart table.cart tr.cart_item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	grid-template-areas: "thumb name subtotal" "thumb qty  remove";
	gap: 6px 20px;
	align-items: center;
	margin: 0 0 14px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--s-line);
	border-radius: var(--s-radius);
	position: relative;
}
.ctj-shop.woocommerce-cart table.cart td.product-thumbnail { grid-area: thumb; display: block; width: auto; }
.ctj-shop.woocommerce-cart table.cart td.product-thumbnail img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid var(--s-line);
	background: var(--s-soft);
}
.ctj-shop.woocommerce-cart table.cart td.product-name { grid-area: name; display: block; min-width: 0; font-weight: 500; }
.ctj-shop.woocommerce-cart table.cart td.product-name a { font-family: var(--s-serif); font-size: 19px; font-weight: 400; color: var(--s-ink); text-decoration: none; line-height: 1.25; }
.ctj-shop.woocommerce-cart table.cart td.product-name a:hover { color: var(--s-accent); }
.ctj-shop.woocommerce-cart table.cart td.product-price { display: none; }
.ctj-shop.woocommerce-cart table.cart td.product-subtotal { grid-area: subtotal; display: block; text-align: right; color: var(--s-ink); font-weight: 600; font-size: 17px; white-space: nowrap; align-self: start; }
.ctj-shop.woocommerce-cart table.cart td.product-quantity { grid-area: qty; display: block; }
.ctj-shop.woocommerce-cart table.cart td.product-remove { grid-area: remove; display: block; text-align: right; }
.ctj-shop.woocommerce-cart table.cart td::before { display: none !important; content: none !important; }

/* Datos de la joya (dl.variation) en líneas sobrias */
.ctj-shop .woocommerce dl.variation { margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--s-text); display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.ctj-shop .woocommerce dl.variation dt { margin: 0; font-weight: 500; color: var(--s-ink); float: none; clear: none; }
.ctj-shop .woocommerce dl.variation dd { margin: 0; float: none; }
.ctj-shop .woocommerce dl.variation dd p { margin: 0; }

/* Cantidad */
.ctj-shop .woocommerce .quantity input.qty {
	width: 72px;
	min-height: 40px;
	padding: 6px 8px;
	text-align: center;
	border-radius: 999px;
}
/* Quitar: texto discreto en lugar del círculo rojo de WooCommerce */
.ctj-shop.woocommerce-cart a.remove {
	display: inline-flex !important;
	width: auto !important;
	height: auto !important;
	padding: 6px 0;
	background: transparent !important;
	color: var(--s-text) !important;
	font-size: 13px !important;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: underline;
	text-underline-offset: 3px;
	border-radius: 0;
}
.ctj-shop.woocommerce-cart a.remove:hover { color: #b3261e !important; background: transparent !important; }

/* Fila de acciones: cupón + actualizar */
.ctj-shop.woocommerce-cart table.cart td.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 4px 0 0; }
.ctj-shop.woocommerce-cart table.cart tr:not(.cart_item) { display: block; }
.ctj-shop.woocommerce-cart table.cart td.actions .coupon { display: flex; flex: 1 1 320px; flex-wrap: nowrap; gap: 10px; float: none; margin: 0; }
.ctj-shop.woocommerce-cart table.cart td.actions .coupon label { display: none; }
.ctj-shop.woocommerce-cart table.cart td.actions .coupon input#coupon_code { flex: 1 1 180px; width: auto; }
.ctj-shop.woocommerce-cart table.cart td.actions > button[name="update_cart"] { float: none; margin-left: auto; }

/* Totales */
.ctj-shop.woocommerce-cart .cart_totals {
	padding: 22px;
	background: var(--s-soft);
	border: 1px solid var(--s-line);
	border-radius: var(--s-radius);
}
.ctj-shop.woocommerce-cart .cart_totals h2 { font-size: 22px; margin-bottom: 14px; }
.ctj-shop.woocommerce-cart .cart_totals table.shop_table tr { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--s-line); }
.ctj-shop.woocommerce-cart .cart_totals table.shop_table tr:last-child { border-bottom: 0; }
.ctj-shop.woocommerce-cart .cart_totals table.shop_table th { font-weight: 400; color: var(--s-text); text-align: left; width: auto; }
.ctj-shop.woocommerce-cart .cart_totals table.shop_table td { text-align: right; color: var(--s-ink); font-weight: 500; }
.ctj-shop.woocommerce-cart .cart_totals tr.order-total th { color: var(--s-ink); font-weight: 600; }
.ctj-shop.woocommerce-cart .cart_totals tr.order-total td { font-size: 22px; font-weight: 600; }
.ctj-shop.woocommerce-cart .cart_totals tr.order-total small { display: block; font-size: 12px; font-weight: 400; color: var(--s-text); }
.ctj-shop.woocommerce-cart .cart_totals .woocommerce-shipping-destination,
.ctj-shop.woocommerce-cart .cart_totals ul#shipping_method { margin: 0; padding: 0; list-style: none; text-align: right; font-size: 14px; }
.ctj-shop.woocommerce-cart .wc-proceed-to-checkout { padding: 18px 0 0; }
.ctj-shop.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; margin: 0; padding: 15px 28px; font-size: 15px; font-weight: 600; }

/* Carrito vacío */
.ctj-shop.woocommerce-cart .wc-empty-cart-message { grid-column: 1 / -1; }
.ctj-shop.woocommerce-cart .cart-empty { display: block; justify-content: center; grid-column: 1 / -1; text-align: center; padding: 48px 16px 8px; font-family: var(--s-serif); font-size: 24px; color: var(--s-ink); background: transparent; border: 0; }
.ctj-shop.woocommerce-cart .return-to-shop { grid-column: 1 / -1; text-align: center; }

/* =====================================================================
   FINALIZAR COMPRA
   ===================================================================== */
.ctj-shop.woocommerce-checkout:not(.woocommerce-order-received) form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	grid-template-areas: "details heading" "details review";
	grid-template-rows: auto 1fr;
	gap: 0 40px;
	align-items: start;
}
.ctj-shop.woocommerce-checkout form.checkout #customer_details { grid-area: details; width: auto; float: none; }
.ctj-shop.woocommerce-checkout form.checkout #customer_details .col-1,
.ctj-shop.woocommerce-checkout form.checkout #customer_details .col-2 { float: none; width: 100%; max-width: none; padding: 0; }
.ctj-shop.woocommerce-checkout form.checkout #order_review_heading { grid-area: heading; margin: 0; padding: 22px 22px 0; background: var(--s-soft); border: 1px solid var(--s-line); border-bottom: 0; border-radius: var(--s-radius) var(--s-radius) 0 0; font-size: 22px; }
.ctj-shop.woocommerce-checkout form.checkout #order_review { grid-area: review; width: auto; float: none; padding: 14px 22px 22px; background: var(--s-soft); border: 1px solid var(--s-line); border-top: 0; border-radius: 0 0 var(--s-radius) var(--s-radius); }

/* Bloques de datos: título con filete */
.ctj-shop.woocommerce-checkout .woocommerce-billing-fields > h3,
.ctj-shop.woocommerce-checkout .woocommerce-shipping-fields > h3,
.ctj-shop.woocommerce-checkout .woocommerce-additional-fields > h3 {
	margin: 0 0 18px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--s-ink);
	font-size: 22px;
}
.ctj-shop.woocommerce-checkout .woocommerce-shipping-fields,
.ctj-shop.woocommerce-checkout .woocommerce-additional-fields { margin-top: 32px; }
.ctj-shop.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.ctj-shop.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.ctj-shop.woocommerce-checkout .woocommerce-additional-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 0 14px; }
.ctj-shop.woocommerce-checkout .form-row-wide { flex: 1 1 100%; }
.ctj-shop.woocommerce-checkout .form-row-first,
.ctj-shop.woocommerce-checkout .form-row-last { flex: 1 1 calc(50% - 7px); float: none; width: auto; }
.ctj-shop.woocommerce-checkout #ship-to-different-address { font-size: 15px; margin: 0; }
.ctj-shop.woocommerce-checkout #ship-to-different-address label { display: flex; align-items: center; margin: 0; font-weight: 500; color: var(--s-ink); }

/* Resumen del pedido */
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table { background: transparent; }
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table thead { display: none; }
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tr { border-bottom: 1px solid var(--s-line); }
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table td,
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table th { padding: 12px 0; vertical-align: top; font-weight: 400; text-align: left; color: var(--s-text); }
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name { color: var(--s-ink); font-weight: 500; padding-right: 12px; }
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-quantity { color: var(--s-text); font-weight: 400; }
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total,
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td { text-align: right; color: var(--s-ink); font-weight: 500; white-space: nowrap; }
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total { border-bottom: 0; }
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total th { color: var(--s-ink); font-weight: 600; }
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td { font-size: 22px; font-weight: 600; }
.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total small { display: block; font-size: 12px; font-weight: 400; color: var(--s-text); }
.ctj-shop.woocommerce-checkout #shipping_method { list-style: none; margin: 0; padding: 0; text-align: right; }

/* Pago */
.ctj-shop.woocommerce-checkout #payment { background: transparent; border-radius: 0; margin-top: 8px; }
.ctj-shop.woocommerce-checkout #payment ul.payment_methods { list-style: none; margin: 0 0 14px; padding: 0; border: 0; }
.ctj-shop.woocommerce-checkout #payment ul.payment_methods > li { margin: 0 0 8px; padding: 14px 16px; background: #fff; border: 1px solid var(--s-line); border-radius: 12px; }
.ctj-shop.woocommerce-checkout #payment ul.payment_methods > li:has(input:checked) { border-color: var(--s-ink); box-shadow: 0 0 0 1px var(--s-ink); }
.ctj-shop.woocommerce-checkout #payment ul.payment_methods > li > label { display: inline; margin: 0; font-weight: 500; color: var(--s-ink); font-size: 15px; }
.ctj-shop.woocommerce-checkout #payment ul.payment_methods img { max-height: 24px; width: auto; margin-left: 8px; vertical-align: middle; }
.ctj-shop.woocommerce-checkout #payment div.payment_box { margin: 12px 0 0; padding: 12px 14px; background: var(--s-soft); color: var(--s-text); border-radius: 10px; font-size: 14px; }
.ctj-shop.woocommerce-checkout #payment div.payment_box::before { display: none; }
.ctj-shop.woocommerce-checkout #payment div.payment_box p:last-child { margin-bottom: 0; }
.ctj-shop.woocommerce-checkout #payment .form-row.place-order { padding: 4px 0 0; margin: 0; }
.ctj-shop.woocommerce-checkout .woocommerce-privacy-policy-text,
.ctj-shop.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 13px; line-height: 1.5; color: var(--s-text); margin-bottom: 14px; }
.ctj-shop.woocommerce-checkout #place_order { display: flex; width: 100%; float: none; padding: 16px 28px; font-size: 16px; font-weight: 600; }

/* Cupón y acceso en el pago */
.ctj-shop.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.ctj-shop.woocommerce-checkout .woocommerce-form-login-toggle .woocommerce-info { margin-bottom: 14px; }
.ctj-shop.woocommerce-checkout form.checkout_coupon,
.ctj-shop.woocommerce-checkout form.woocommerce-form-login { margin: 0 0 24px; padding: 18px; border: 1px solid var(--s-line); border-radius: 14px; background: #fff; }

/* =====================================================================
   PEDIDO RECIBIDO
   ===================================================================== */
.ctj-shop.woocommerce-order-received .woocommerce-thankyou-order-received {
	margin: 0 0 24px;
	padding: 0;
	background: transparent;
	border: 0;
	font-family: var(--s-serif);
	font-size: 28px;
	line-height: 1.25;
	color: var(--s-ink);
	text-align: center;
}
.ctj-shop.woocommerce-order-received ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}
.ctj-shop.woocommerce-order-received ul.woocommerce-order-overview::before,
.ctj-shop.woocommerce-order-received ul.woocommerce-order-overview::after { content: none; display: none; } /* el «clearfix» de WooCommerce ocupaba la primera celda de la rejilla y descolocaba las tarjetas */
.ctj-shop.woocommerce-order-received ul.woocommerce-order-overview li {
	margin: 0;
	padding: 16px 18px;
	border: 1px solid var(--s-line);
	border-radius: 14px;
	background: var(--s-soft);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--s-text);
	float: none;
}
.ctj-shop.woocommerce-order-received ul.woocommerce-order-overview li strong { display: block; margin-top: 6px; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--s-ink); font-weight: 600; }
.ctj-shop.woocommerce-order-received .woocommerce-order-details,
.ctj-shop.woocommerce-order-received .woocommerce-customer-details { margin: 0 0 28px; }
.ctj-shop.woocommerce-order-received table.woocommerce-table--order-details { border: 1px solid var(--s-line); border-radius: var(--s-radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.ctj-shop.woocommerce-order-received table.woocommerce-table--order-details th,
.ctj-shop.woocommerce-order-received table.woocommerce-table--order-details td { padding: 14px 18px; border-bottom: 1px solid var(--s-line); text-align: left; color: var(--s-text); }
.ctj-shop.woocommerce-order-received table.woocommerce-table--order-details thead th { background: var(--s-soft); color: var(--s-ink); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ctj-shop.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th,
.ctj-shop.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td { border-bottom: 0; }
.ctj-shop.woocommerce-order-received table.woocommerce-table--order-details td:last-child,
.ctj-shop.woocommerce-order-received table.woocommerce-table--order-details tfoot td { text-align: right; color: var(--s-ink); }
.ctj-shop.woocommerce-order-received address { padding: 18px; border: 1px solid var(--s-line); border-radius: 14px; font-style: normal; line-height: 1.6; color: var(--s-text); }


/* =====================================================================
   CARRITO Y FINALIZAR COMPRA CON LOS BLOQUES DE WOOCOMMERCE
   (la tienda usa los bloques «Carrito» y «Finalizar compra»: no llevan la capa .woocommerce clásica de las reglas de arriba)
   El tema Hello Elementor da a «.alignwide» margin-inline:-80px: con 10 px de margen lateral en el móvil el bloque se salía por la izquierda y quedaba cortado.
   ===================================================================== */
.ctj-shop .wp-block-woocommerce-cart,
.ctj-shop .wp-block-woocommerce-checkout {
	box-sizing: border-box;
	width: 100%;
	max-width: 1120px;
	margin-inline: auto;
	padding: 8px 16px 56px;
	font-family: var(--s-font);
	font-size: 15px;
	line-height: 1.55;
	color: var(--s-text);
	overflow-wrap: anywhere;
}
.ctj-shop .wp-block-woocommerce-cart *,
.ctj-shop .wp-block-woocommerce-checkout * { box-sizing: border-box; }
.ctj-shop .wp-block-woocommerce-cart a,
.ctj-shop .wp-block-woocommerce-checkout a { color: var(--s-ink); }
.ctj-shop .wp-block-woocommerce-cart a:hover,
.ctj-shop .wp-block-woocommerce-checkout a:hover { color: var(--s-accent); }
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-title,
.ctj-shop .wp-block-woocommerce-cart .wc-block-cart__totals-title,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-title,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
	font-family: var(--s-serif);
	font-weight: 400;
	color: var(--s-ink);
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.2;
}
.ctj-shop .wp-block-woocommerce-cart .wc-block-cart__totals-title { font-size: 12px; font-family: var(--s-font); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title { font-size: 22px; }
.ctj-shop .wp-block-woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-product-name { color: var(--s-ink); font-weight: 600; text-decoration: none; }
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-product-metadata,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-product-metadata { font-size: 13px; line-height: 1.5; color: var(--s-text); }
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-product-metadata__description,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-product-metadata__description { display: none; } /* la descripción larga del producto no aporta aquí y alarga mucho la pantalla en el móvil */

/* Botones como los de la web */
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-button:not(.is-link),
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	background: var(--s-accent);
	color: #fff;
	border: 1.5px solid var(--s-ink);
	border-radius: 30px;
	font-family: var(--s-font);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	transition: background-color .18s ease, color .18s ease;
}
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-button:not(.is-link) .wc-block-components-button__text,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link) .wc-block-components-button__text { color: inherit; text-decoration: none; }
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):hover,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):hover { background: var(--s-ink); color: #fff; }
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-button:not(.is-link):focus-visible,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-button:not(.is-link):focus-visible { outline: 3px solid var(--s-accent); outline-offset: 3px; }
.ctj-shop .wp-block-woocommerce-cart .wc-block-cart__submit-button,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button { width: 100%; }
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-totals-coupon__button,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-totals-coupon__button { background: #fff; color: var(--s-ink); }
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-button.is-link,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-button.is-link { color: var(--s-ink); background: transparent; border: 0; box-shadow: none; }

/* Campos */
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-text-input input,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-textarea,
.ctj-shop .wp-block-woocommerce-checkout .wc-blocks-components-select__select,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input,
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-text-input input {
	background: #fff;
	color: var(--s-ink);
	border: 1px solid #cfcfcf;
	border-radius: 12px;
	font-family: var(--s-font);
	font-size: 16px; /* 16 px evita el zoom automático de iOS al tocar un campo */
	box-shadow: none;
}
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-text-input input:focus,
.ctj-shop .wp-block-woocommerce-checkout .wc-blocks-components-select__select:focus,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-combobox .components-combobox-control__input:focus,
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-text-input input:focus { outline: none; border-color: var(--s-ink); box-shadow: 0 0 0 3px rgba(0, 123, 128, .25); }
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-text-input.has-error input,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-text-input.has-error .wc-block-components-text-input__error { border-color: #b3261e; }
.ctj-shop .wp-block-woocommerce-checkout input[type="checkbox"],
.ctj-shop .wp-block-woocommerce-checkout input[type="radio"] { accent-color: var(--s-accent); }
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-radio-control__option,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-radio-control-accordion-option { border-radius: 12px; }

/* Resumen, totales y avisos */
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-totals-item__label,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-totals-item__label { color: var(--s-text); }
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-totals-footer-item,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-totals-footer-item { color: var(--s-ink); }
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-notice-banner,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-notice-banner { border-radius: 12px; font-size: 14px; }
.ctj-shop .wp-block-woocommerce-cart .wc-block-components-quantity-selector { border-radius: 12px; }
.ctj-shop .wp-block-woocommerce-cart .wc-block-cart__sidebar,
.ctj-shop .wp-block-woocommerce-checkout .wc-block-checkout__sidebar { margin-top: 8px; }

@media (min-width: 901px) {
	.ctj-shop .wp-block-woocommerce-cart .wc-block-cart__sidebar,
	.ctj-shop .wp-block-woocommerce-checkout .wc-block-checkout__sidebar { padding: 20px; border: 1px solid var(--s-line); border-radius: var(--s-radius); }
}
@media (max-width: 600px) {
	.ctj-shop .wp-block-woocommerce-cart,
	.ctj-shop .wp-block-woocommerce-checkout { padding: 4px 12px 40px; }
	.ctj-shop .wp-block-woocommerce-checkout .wc-block-components-checkout-step__title { font-size: 20px; }
	.ctj-shop .wp-block-woocommerce-cart .wc-block-cart-item__image { width: 64px; }
	.ctj-shop .wp-block-woocommerce-cart table.wc-block-cart-items td { padding-inline: 6px; }
}


/* =====================================================================
   CARRITO Y PAGO CLÁSICOS CON EL WIDGET DE ELEMENTOR PRO (el que usa la web)
   Revisado sobre la web real a 375 px. Las reglas de Elementor y de WooCommerce para pantallas pequeñas pesan más que las de arriba: de ahí los !important.
   ===================================================================== */
.ctj-shop.woocommerce-cart a.checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 13px 24px !important;
	background: var(--s-accent) !important;
	color: #fff !important;
	border: 1.5px solid var(--s-ink) !important;
	border-radius: 30px !important;
	font-weight: 500;
	text-decoration: none;
	box-shadow: none;
}
.ctj-shop.woocommerce-cart a.checkout-button:hover { background: var(--s-ink) !important; }

@media (max-width: 600px) {
	/* Carrito: el relleno de 30 px del widget estrechaba la tarjeta de la joya y se cortaba la talla/material por la derecha */
	.ctj-shop .e-cart-section,
	.ctj-shop .e-shop-table.e-cart-section { padding-inline: 0 !important; }
	.ctj-shop.woocommerce-cart table.cart td.product-name,
	.ctj-shop.woocommerce-cart table.cart td.product-subtotal { text-align: left !important; }
	.ctj-shop.woocommerce-cart table.cart td.product-name dl.variation { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; text-align: left; margin: 6px 0 0; }
	.ctj-shop.woocommerce-cart table.cart dl.variation dt,
	.ctj-shop.woocommerce-cart table.cart dl.variation dd { text-align: left !important; margin: 0; overflow-wrap: anywhere; }
	.ctj-shop.woocommerce-cart table.cart tr:not(.cart_item) { display: block; border: 0 !important; }
	.ctj-shop.woocommerce-cart table.cart td.actions { display: block; width: 100%; padding: 0; border: 0; }
	.ctj-shop.woocommerce-cart table.cart td.actions > button[name="update_cart"] { width: 100% !important; margin: 0 !important; float: none !important; display: flex !important; justify-content: center; }
	.ctj-shop.woocommerce-cart .coupon.e-cart-section { padding-top: 0 !important; }

	/* Totales del carrito: etiqueta a la izquierda, importe a la derecha (antes salían pegados: «Subtotal204,32 €») */
	.ctj-shop.woocommerce-cart .cart_totals table.shop_table tr { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; border-top: 0; }
	.ctj-shop.woocommerce-cart .cart_totals table.shop_table th,
	.ctj-shop.woocommerce-cart .cart_totals table.shop_table td { display: block !important; padding: 0 !important; border: 0 !important; width: auto; }
	.ctj-shop.woocommerce-cart .cart_totals table.shop_table th { text-align: left; font-weight: 500; color: var(--s-text); }
	.ctj-shop.woocommerce-cart .cart_totals table.shop_table td { text-align: right !important; color: var(--s-ink); font-weight: 600; }
	.ctj-shop.woocommerce-cart .cart_totals table.shop_table td::before { display: none !important; content: none !important; }
	.ctj-shop.woocommerce-cart .cart_totals table.shop_table tr.shipping td { width: 100%; font-weight: 400; color: var(--s-text); }
	.ctj-shop.woocommerce-cart .cart_totals ul#shipping_method,
	.ctj-shop.woocommerce-cart .cart_totals ul#shipping_method li,
	.ctj-shop.woocommerce-cart .cart_totals tr.shipping td,
	.ctj-shop.woocommerce-cart .cart_totals .woocommerce-shipping-destination { text-align: left !important; }
	.ctj-shop.woocommerce-cart .cart_totals tr.shipping td strong,
	.ctj-shop.woocommerce-cart .cart_totals tr.shipping td .amount { color: var(--s-ink); }
	.ctj-shop.woocommerce-cart .cart_totals tr.order-total th { color: var(--s-ink); }
	.ctj-shop.woocommerce-cart .cart_totals tr.order-total td { font-size: 22px; }
	.ctj-shop.woocommerce-cart .cart_totals tr.order-total td,
	.ctj-shop.woocommerce-cart .cart_totals tr.order-total td .amount,
	.ctj-shop.woocommerce-cart .cart_totals tr.cart-subtotal td .amount { color: var(--s-ink) !important; }

	/* Finalizar compra: «Tu pedido» se salía de su tarjeta por la derecha */
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table,
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody,
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table thead { display: none; }
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tr { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; width: 100%; }
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; overflow-wrap: anywhere; }
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name { flex: 1 1 140px; }
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total { flex: 0 0 auto; text-align: right; }
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td { text-align: right; max-width: 100%; }
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.cart_item,
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr { padding: 12px 0; border-bottom: 1px solid var(--s-line); }
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table dl.variation { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 6px 0 0; text-align: left; }
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table dl.variation dt,
	.ctj-shop.woocommerce-checkout table.woocommerce-checkout-review-order-table dl.variation dd { margin: 0; text-align: left; }
	.ctj-shop.woocommerce-checkout .woocommerce-checkout-review-order-table .includes_tax { display: block; text-align: right; font-size: 13px; }
	.ctj-shop.woocommerce-checkout #billing_country_field .woocommerce-input-wrapper > strong,
	.ctj-shop.woocommerce-checkout #shipping_country_field .woocommerce-input-wrapper > strong { display: block; width: 100%; box-sizing: border-box; text-align: left; }
}

/* =====================================================================
   MÓVIL
   ===================================================================== */
@media (max-width: 900px) {
	.ctj-shop.woocommerce-cart .woocommerce { display: block; }
	.ctj-shop.woocommerce-cart .cart-collaterals { position: static; margin-top: 8px; }
	.ctj-shop.woocommerce-checkout:not(.woocommerce-order-received) form.checkout { display: block; }
	.ctj-shop.woocommerce-checkout form.checkout #order_review_heading { margin-top: 32px; }
}
@media (max-width: 600px) {
	.ctj-shop .woocommerce { padding: 4px 12px 40px; }
	.ctj-shop.woocommerce-cart table.cart tr.cart_item {
		grid-template-columns: 76px minmax(0, 1fr);
		grid-template-areas: "thumb name" "thumb subtotal" "qty remove";
		gap: 6px 14px;
		padding: 14px;
	}
	.ctj-shop.woocommerce-cart table.cart td.product-thumbnail img { width: 76px; height: 76px; }
	.ctj-shop.woocommerce-cart table.cart td.product-subtotal { text-align: left; font-size: 16px; }
	.ctj-shop.woocommerce-cart table.cart td.product-quantity { margin-top: 6px; }
	.ctj-shop.woocommerce-cart table.cart td.product-remove { margin-top: 6px; }
	.ctj-shop.woocommerce-checkout .form-row-first,
	.ctj-shop.woocommerce-checkout .form-row-last { flex: 1 1 100%; }
	.ctj-shop .woocommerce-message .button,
	.ctj-shop .woocommerce-info .button { width: 100%; }
	.ctj-shop.woocommerce-cart table.cart td.actions .coupon { flex-wrap: wrap; }
	.ctj-shop.woocommerce-cart table.cart td.actions > button[name="update_cart"] { width: 100%; margin-left: 0; }
	.ctj-shop.woocommerce-order-received .woocommerce-thankyou-order-received { font-size: 23px; }
	.ctj-shop.woocommerce-order-received ul.woocommerce-order-overview { grid-template-columns: 1fr 1fr; }
	.ctj-shop.woocommerce-order-received ul.woocommerce-order-overview li:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
	.ctj-shop .woocommerce * { transition: none !important; }
}
