/* TPM shop: package cards, cart and checkout. Uses the theme's existing look. */

.tpm-cart-link { position: relative; }
.tpm-cart-count {
	position: absolute;
	top: -6px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: #1abc9c;
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
	display: none;
}
.tpm-cart-count.tpm-has-items { display: block; }

/* Package cards */
.tpm-package {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 30px 24px;
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 6px;
	background: #fff;
	text-align: left;
	transition: box-shadow .3s ease, transform .3s ease;
}
.tpm-package:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.tpm-package > i { font-size: 34px; color: #1abc9c; margin-bottom: 15px; }
.tpm-package h3 { font-size: 19px; margin-bottom: 10px; }
.tpm-package p { font-size: 14px; margin-bottom: 15px; }
.tpm-package-price { font-size: 24px; font-weight: 700; color: #222; line-height: 1.2; }
.tpm-package-delivery { font-size: 13px; color: #777; margin-bottom: 15px; }
.tpm-package ul { list-style: none; margin: 0 0 20px; padding: 0; font-size: 13px; flex-grow: 1; }
.tpm-package li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.tpm-package li::before { content: "\2713"; position: absolute; left: 0; color: #1abc9c; font-weight: 700; }
.tpm-package .button { margin: 0; width: 100%; text-align: center; }
.tpm-package .button.tpm-in-cart { background-color: #222; }

.tpm-steps { counter-reset: tpm-step; }
.tpm-step { text-align: center; }
.tpm-step::before {
	counter-increment: tpm-step;
	content: counter(tpm-step);
	display: inline-block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid #1abc9c;
	color: #1abc9c;
	font-weight: 700;
	line-height: 32px;
	margin-bottom: 10px;
}
.tpm-step h5 { margin-bottom: 4px; }
.tpm-step p { font-size: 14px; margin: 0; }
.tpm-shop-note { font-size: 13px; color: #777; text-align: center; margin-top: 30px; }

/* Checkout */
.tpm-cart-items { margin-bottom: 15px; }
.tpm-cart-item {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 0;
	border-bottom: 1px solid rgba(0,0,0,0.08);
}
.tpm-cart-item > div:first-child { flex-grow: 1; }
.tpm-cart-item strong { display: block; }
.tpm-cart-item small { color: #777; }
.tpm-cart-price { font-weight: 600; white-space: nowrap; }
.tpm-remove { border: 0; background: none; color: #999; font-size: 16px; padding: 4px; cursor: pointer; }
.tpm-remove:hover { color: #c0392b; }
.tpm-totals th { font-size: 18px; }
.tpm-back-link { font-size: 14px; }
.tpm-message { padding: 12px 15px; margin-bottom: 15px; border-radius: 4px; background: #f3f3f3; font-size: 14px; }
.tpm-message-error { background: #fdecea; color: #a12a1f; }
.tpm-secure-note { font-size: 13px; color: #777; margin-top: 10px; text-align: center; }

/* Result and legal pages */
.tpm-result-icon { font-size: 60px; display: block; margin-bottom: 20px; color: #999; }
.tpm-result-icon.tpm-ok { color: #1abc9c; }
.tpm-result-icon.tpm-fail { color: #c0392b; }
.tpm-legal { max-width: 860px; }
.tpm-legal h3 { margin: 30px 0 10px; font-size: 20px; }

/* Accepted payment method logos (footer and checkout) */
.tpm-pay-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 15px;
}
.tpm-pay-logos span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 38px;
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 5px;
}
.tpm-pay-logos img { width: auto; display: block; }
.tpm-checkout-pay { margin-top: 20px; text-align: center; }
.tpm-checkout-pay-label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #777;
}
.tpm-checkout-pay .tpm-pay-logos { margin-bottom: 0; }
