/* 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;
	gap: 6px;
}

.xtpc-punch {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #ddd;
	font-size: 12px;
	font-weight: 600;
	color: #ccc;
	background: #fafafa;
}

.xtpc-punch--filled {
	border-color: #28a745;
	background: #28a745;
	color: #fff;
}

.xtpc-card--complete .xtpc-punch--filled {
	border-color: #1e7e34;
	background: #1e7e34;
}

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

/* ── 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: 26px;
		height: 26px;
		font-size: 10px;
	}

	.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;
}
