/**
 * Thank You page styling — same visual language as cart.css: white cards,
 * light borders, muted secondary text. One shared max-width wrapper so the
 * three stacked cards (success, order details, billing) read as one page
 * rather than three unrelated blocks.
 */

.cm-thankyou {
	max-width: 780px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: relative;
}

.cm-thankyou-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 28px;
	box-sizing: border-box;
}

.cm-thankyou-card__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 16px;
}

/* Success block */
.cm-thankyou-success {
	text-align: center;
}

.cm-thankyou-check {
	display: flex;
	justify-content: center;
	margin-bottom: 12px;
}

.cm-thankyou-check svg {
	animation: cm-check-pop 0.5s ease-out;
}

@keyframes cm-check-pop {
	from { transform: scale(0.5); opacity: 0; }
	to   { transform: scale(1); opacity: 1; }
}

.cm-thankyou-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 24px;
}

.cm-thankyou-overview {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.cm-thankyou-stat {
	background: #fafafa;
	border: 1px solid #ececec;
	border-radius: 10px;
	padding: 12px 18px;
	min-width: 140px;
	text-align: left;
}

.cm-thankyou-stat__label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #767676;
	margin-bottom: 4px;
}

.cm-thankyou-stat__value {
	font-weight: 700;
	font-size: 15px;
	color: #1d2327;
}

/* Confetti canvas sits over the top of the page without affecting layout */
#cm-thankyou-confetti {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 420px;
	pointer-events: none;
	z-index: 5;
}

/* Order items */
.cm-order-items {
	border-top: 1px solid #ececec;
}

.cm-order-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid #ececec;
}

.cm-order-item__thumb img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.cm-order-item__info {
	flex: 1 1 auto;
	min-width: 0;
}

.cm-order-item__name {
	font-weight: 600;
	font-size: 14px;
}

.cm-order-item__qty {
	color: #767676;
	font-weight: 500;
	font-size: 13px;
	margin-left: 4px;
}

.cm-order-item__meta {
	font-size: 12px;
	color: #767676;
	margin-top: 2px;
}

.cm-order-item__total {
	font-weight: 700;
	white-space: nowrap;
}

/* Totals rows — same pattern as cart-totals.php's rows for visual continuity */
.cm-order-totals {
	margin-top: 8px;
}

.cm-order-totals-row {
	display: flex;
	justify-content: space-between;
	padding: 7px 0;
	font-size: 14px;
	color: #767676;
}

.cm-order-totals-row--total {
	border-top: 1px solid #ececec;
	margin-top: 6px;
	padding-top: 14px;
	font-weight: 700;
	font-size: 18px;
	color: #1d2327;
}

.cm-order-note {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #ececec;
	font-size: 14px;
	color: #444;
}

/* Billing / shipping */
.cm-order-customer-details {
	display: flex;
	gap: 32px;
	flex-wrap: wrap;
}

.cm-order-customer-col {
	flex: 1 1 220px;
}

.cm-order-customer-col address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.7;
	color: #333;
}

.cm-order-customer-line {
	margin: 2px 0 0;
	color: #767676;
}

@media (max-width: 600px) {
	.cm-thankyou-card { padding: 20px; }
	.cm-thankyou-stat { min-width: 120px; flex: 1 1 45%; }
}