/* XT Punchcard — My Account frontend */

.xtpc-my-punchcards {
	max-width: 800px;
}

.xtpc-intro {
	font-size: 15px;
	color: #555;
	margin-bottom: 24px;
}

.xtpc-section-title {
	font-size: 16px;
	font-weight: 600;
	margin: 24px 0 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid #eee;
	color: #333;
}

.xtpc-section-complete {
	border-bottom-color: #28a745;
	color: #28a745;
}

.xtpc-section-redeemed {
	color: #999;
}

/* ── Cards grid ─────────────────────────────────── */

.xtpc-cards-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.xtpc-card {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
}

.xtpc-card--complete {
	border-color: #28a745;
	background: #f0fdf4;
}

.xtpc-card--redeemed {
	opacity: 0.6;
}

/* ── Product row ────────────────────────────────── */

.xtpc-card-product {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.xtpc-card-product img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 6px;
}

.xtpc-card-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.xtpc-card-name {
	font-weight: 600;
	font-size: 14px;
	color: #333;
	text-decoration: none;
}

.xtpc-card-name:hover {
	color: #28a745;
}

.xtpc-card-progress {
	font-size: 13px;
	color: #555;
	font-weight: 500;
}

.xtpc-card-expiry {
	font-size: 12px;
	color: #999;
}

.xtpc-card-status {
	font-size: 13px;
	font-weight: 600;
}

.xtpc-status-complete {
	color: #28a745;
}

.xtpc-status-redeemed {
	color: #999;
	font-weight: 400;
	font-size: 12px;
}

/* ── Punch circles ──────────────────────────────── */

.xtpc-punches {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px 8px;
	margin-top: 6px;
}

/* Cada huella = círculo (pata dentro) + número debajo */
.xtpc-punch-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.xtpc-punch {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #dcdcdc;
	background: #fff;
	box-sizing: border-box;
}

.xtpc-punch .xtpc-paw,
.xtpc-punch .xtpc-gift {
	width: 20px;
	height: 20px;
	display: block;
}

/* Pendiente: pata gris tenue */
.xtpc-punch--empty {
	color: #cfcfcf;
	border-color: #e4e4e4;
	background: #fafafa;
}

/* Conseguido: relleno morado de marca, pata blanca */
.xtpc-punch--filled {
	color: #fff;
	background: #4739a0;
	border-color: #4739a0;
}

/* Premio: el 11vo (gratis) */
.xtpc-punch--gift {
	color: #c9a23a;
	border-color: #e6d28a;
	background: #fffdf5;
}

.xtpc-punch--gift-ready {
	color: #fff;
	background: #f5a623;
	border-color: #f5a623;
	box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}

/* Número debajo del círculo */
.xtpc-punch-num {
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	color: #b3b3b3;
}

.xtpc-punch-num--filled { color: #4739a0; }

.xtpc-punch-num--reward {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: #d9881a;
}

/* ── Distintivo "Elegible para programa 10+1" (card + ficha) ── */
.xtpc-eligible-note {
	margin: 5px 0 8px;
	font-size: 11px;
	line-height: 1.18;
	letter-spacing: -0.1px;
	color: #8a8a8a;
	font-style: italic;
}

.xtpc-eligible-note__main {
	display: block;
}

/* Móvil: más pequeño y condensado, interlineado apretado */
@media (max-width: 575px) {
	.xtpc-eligible-note {
		font-size: 10px;
		line-height: 1.1;
		letter-spacing: -0.2px;
		margin: 3px 0 6px;
	}
}


.xtpc-card-message {
	margin-top: 10px;
	font-size: 13px;
	color: #28a745;
	font-weight: 500;
}

/* ── Progreso 10+1 en el checkout (debajo de CANT) ── */

.xtpc-chk-progress {
	display: block;
	margin: 6px 0 2px;
}

.xtpc-chk-progress .xtpc-punches {
	gap: 5px 4px;
	margin-top: 2px;
}

.xtpc-chk-progress .xtpc-punch {
	width: 22px;
	height: 22px;
	border-width: 1.5px;
}

.xtpc-chk-progress .xtpc-punch .xtpc-paw,
.xtpc-chk-progress .xtpc-punch .xtpc-gift {
	width: 13px;
	height: 13px;
}

.xtpc-chk-progress .xtpc-punch-slot {
	gap: 2px;
}

.xtpc-chk-progress .xtpc-punch-num {
	font-size: 9px;
}

.xtpc-chk-progress .xtpc-punch-num--reward {
	font-size: 7.5px;
}

/* Precio tachado del reward (GRATIS) al MISMO tamaño que los demás precios.
   Aplica en el checkout, en el mini-cart desplegable del header y en /cart/. */
.woocommerce-checkout-review-order-table .product-total del,
.woocommerce-checkout-review-order-table .product-total del .amount,
.widget_shopping_cart del,
.widget_shopping_cart del .amount,
.woocommerce-mini-cart del,
.woocommerce-mini-cart del .amount,
.cart_list .mini_cart_item del,
.cart_list .mini_cart_item del .amount,
.woocommerce-cart-form del,
.woocommerce-cart-form del .amount {
	font-size: inherit !important;
}

/* Mini-cart desplegable del header (petio): el tema fuerza el <del> a 16px
   con una regla muy específica; estas lo igualan al tamaño del precio normal. */
.petio-topcart .dropdown-menu .cart_list li.mini_cart_item .price del,
.petio-topcart .dropdown-menu .cart_list li.mini_cart_item .price del .amount,
.petio-topcart .cart_list .mini_cart_item .price del,
.dropdown-menu.cart-popup .cart_list .mini_cart_item .price del {
	font-size: inherit !important;
}

/* ── Cart / Checkout fee highlight ──────────────── */

.fee {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	font-size: 14px;
	color: #28a745;
	font-weight: 600;
	border-top: 1px dashed #c3e6cb;
	border-bottom: 1px dashed #c3e6cb;
	background: #f0fdf4;
	margin: 4px 0;
	padding: 10px 12px;
	border-radius: 4px;
}

/* ── Empty state ────────────────────────────────── */

.xtpc-empty {
	text-align: center;
	padding: 32px 16px;
}

.xtpc-empty p {
	color: #777;
	margin-bottom: 12px;
}

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 480px) {
	.xtpc-punch {
		width: 30px;
		height: 30px;
	}

	.xtpc-punch .xtpc-paw,
	.xtpc-punch .xtpc-gift {
		width: 17px;
		height: 17px;
	}

	.xtpc-punches {
		gap: 8px 6px;
	}

	.xtpc-card-product img {
		width: 40px;
		height: 40px;
	}
}

/* ── Título con botón de lupa (bases y condiciones) ── */

.xtpc-title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.xtpc-terms-btn {
	background: #fff !important;
	border: 1px solid #2d6b4f !important;
	border-radius: 50% !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer !important;
	color: #2d6b4f !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.2s !important;
	line-height: 1 !important;
	box-shadow: none !important;
	text-shadow: none !important;
}

.xtpc-terms-btn:hover,
.xtpc-terms-btn:focus {
	background: #2d6b4f !important;
	color: #fff !important;
	border-color: #2d6b4f !important;
}

.xtpc-terms-btn svg {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	stroke: currentColor !important;
	fill: none !important;
}

/* ── Modal de Bases y Condiciones ── */

.xtpc-hidden {
	display: none !important;
}

.xtpc-terms-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.xtpc-terms-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(3px);
	cursor: pointer;
}

.xtpc-terms-modal__box {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 24px 28px;
	max-width: 640px;
	width: 92%;
	max-height: 85vh;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	animation: xtpc-modal-in 0.25s ease-out;
}

@keyframes xtpc-modal-in {
	from { opacity: 0; transform: scale(0.92) translateY(8px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

.xtpc-terms-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: none;
	width: 32px;
	height: 32px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.xtpc-terms-modal__close:hover {
	background: #f5f5f5;
	color: #000;
}

.xtpc-terms-modal__content {
	overflow-y: auto;
	padding-right: 8px;
	color: #333;
	font-size: 14px;
	line-height: 1.6;
}

.xtpc-terms-modal__content h3 {
	margin: 0 0 16px;
	font-size: 18px;
	color: #2d6b4f;
	padding-right: 32px;
}

.xtpc-terms-modal__content h4 {
	margin: 18px 0 6px;
	font-size: 15px;
	color: #333;
}

.xtpc-terms-modal__content p,
.xtpc-terms-modal__content ul {
	margin: 0 0 10px;
}

.xtpc-terms-modal__content ul {
	padding-left: 22px;
}

.xtpc-terms-modal__content li {
	margin-bottom: 4px;
}
