/**
 * BustBunny thank-you page restyle (owner request 2026-08-11).
 * Same visual language as bb-checkout-restyle.css (calm white cards, #e7ebf1
 * borders, 14px radius, slim #e0409a brand tick on headings), applied to the
 * FunnelKit thank-you blocks. Enqueued from class-bb-sub-thankyou.php behind
 * the same checkout_restyle_enabled toggle. FunnelKit paints these blocks with
 * high-specificity customizer CSS (.wfty-<hash> ...), so colors carry
 * !important here too.
 */

/* ---------- cards ---------- */
.wfty-order-details-block .wfty_wrap,
.wfty-cust-details-block .wfty_wrap {
	background: #fff !important;
	border: 1px solid #e7ebf1 !important;
	border-radius: 14px !important;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
	padding: 26px 28px 24px !important;
}

/* ---------- section titles: quiet, with the slim brand tick ---------- */
.wfty-order-details-block .wfty_title,
.wfty-cust-details-block .wfty_title {
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	color: #101828 !important;
	letter-spacing: .01em !important;
	margin: 0 0 16px !important;
	padding: 0 0 12px 14px !important;
	border-bottom: 1px solid #eef1f5 !important;
	position: relative !important;
	text-transform: none !important;
}
.wfty-order-details-block .wfty_title::before,
.wfty-cust-details-block .wfty_title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 14px;
	width: 4px;
	border-radius: 4px;
	background: #e0409a;
}

/* ---------- product list ---------- */
.wfty-order-details-block .wfty_p_name .wfty_t {
	color: #101828 !important;
	font-weight: 600 !important;
	font-size: 14.5px !important;
}
.wfty-order-details-block .wfty_rightDiv,
.wfty-order-details-block .wfty_rightDiv .woocommerce-Price-amount {
	color: #101828 !important;
	font-weight: 600 !important;
}
/* Quantity badge: keep FunnelKit's placement, dress it in brand colors */
.wfty-order-details-block .wfty_quantity_value_box {
	background: #e0409a !important;
	color: #fff !important;
	font-weight: 700 !important;
	box-shadow: 0 0 0 2px #fff !important;
	border: 0 !important;
}

/* The "Renews ..." line under a subscription item: a small SUBSCRIPTION tag
   plus muted text, same language as the side-cart badge. The FunnelKit
   customizer paints .wfty_info * with high specificity, hence !important. */
.wfty-order-details-block .bb-sub-orderline,
.woocommerce-order .bb-sub-orderline,
.woocommerce-MyAccount-content .bb-sub-orderline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin-top: 7px;
}
.bb-sub-orderline .bb-sub-orderline-tag {
	display: inline-block !important;
	padding: 2px 8px !important;
	background: #fdf2f8 !important;
	border: 1px solid #fbcfe8 !important;
	border-radius: 6px !important;
	color: #c72f85 !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: .06em !important;
	text-transform: uppercase !important;
	line-height: 1.6 !important;
	white-space: nowrap !important;
}
.bb-sub-orderline .bb-sub-orderline-text {
	color: #667085 !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	line-height: 1.5 !important;
}

/* ---------- totals table ---------- */
.wfty-order-details-block .wfty_order_details table tfoot th,
.wfty-order-details-block .wfty_order_details table tfoot td {
	color: #475467 !important;
	font-size: 14px !important;
	padding: 9px 0 !important;
}
.wfty-order-details-block .wfty_order_details table tfoot tr:last-child th,
.wfty-order-details-block .wfty_order_details table tfoot tr:last-child td {
	color: #101828 !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	border-top: 1px solid #eef1f5 !important;
	padding-top: 12px !important;
}

/* ---------- subscription table ---------- */
/* Breathing room between the Total row above and this section.
   container-type makes this box a size container, so the layout below responds
   to the BOX width, not the viewport: this block renders inside a narrow
   column on desktop, where a media query never fires. */
.wfty-order-details-block .wfty_box.wfty_subscription {
	margin-top: 26px !important;
	container-type: inline-size;
}
/* table-layout: fixed keeps the table inside the card no matter how narrow the
   column gets; content wraps instead of pushing the table past the border. */
.wfty-order-details-block .wfty_subscription table.shop_table {
	border: 1px solid #eef1f5 !important;
	border-radius: 12px !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	table-layout: fixed !important;
}
.wfty-order-details-block .wfty_subscription table.shop_table th {
	background: #f8fafc !important;
	color: #667085 !important;
	font-size: 11.5px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: .04em !important;
	padding: 10px 10px !important;
	border: 0 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}
.wfty-order-details-block .wfty_subscription table.shop_table th:nth-child(1) { width: 26% !important; }
.wfty-order-details-block .wfty_subscription table.shop_table th:nth-child(2) { width: 25% !important; }
.wfty-order-details-block .wfty_subscription table.shop_table th:nth-child(3) { width: 25% !important; }
.wfty-order-details-block .wfty_subscription table.shop_table th:nth-child(4) { width: 24% !important; }
.wfty-order-details-block .wfty_subscription table.shop_table td {
	padding: 12px 10px !important;
	vertical-align: middle !important;
	color: #101828 !important;
	font-size: 14px !important;
	border: 0 !important;
	border-top: 1px solid #eef1f5 !important;
	white-space: normal !important;
	word-break: normal !important;
}
.wfty-order-details-block .wfty_subscription td.subscription-id a {
	color: #e0409a !important;
	text-decoration: none !important;
	white-space: nowrap !important;
}
.wfty-order-details-block .wfty_subscription td.subscription-id small {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 10px;
	background: #ecfdf3 !important;
	color: #027a48 !important;
	border-radius: 999px !important;
	font-size: 11px !important;
	font-weight: 700 !important;
}
.wfty-order-details-block .wfty_subscription td.subscription-next-payment {
	color: #475467 !important;
}
/* Amount dark and bold, the "every 3 months" cadence text stays muted */
.wfty-order-details-block .wfty_subscription td.subscription-total {
	color: #667085 !important;
	font-weight: 500 !important;
	font-size: 13px !important;
}
.wfty-order-details-block .wfty_subscription td.subscription-total .woocommerce-Price-amount {
	color: #101828 !important;
	font-weight: 700 !important;
	font-size: 14.5px !important;
}
/* Same CTA language as the product page / checkout pay button, scaled down */
.wfty-order-details-block .wfty_subscription td.subscription-actions a.button {
	display: inline-block;
	background: linear-gradient(180deg, #e0409a, #c9328a) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 10px 14px !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	letter-spacing: .05em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(224, 64, 154, .25) !important;
	transition: transform .12s ease, box-shadow .12s ease;
	max-width: 100% !important;
}
.wfty-order-details-block .wfty_subscription td.subscription-actions a.button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(224, 64, 154, .32) !important;
}

/* ---------- narrow container: stack the subscription table ----------
   Container query, not a media query: the block sits in a narrow column even
   on wide desktops. Below 640px of BOX width, a 4-column table cannot fit, so
   each cell becomes a labelled row (label left, value right). */
@container (max-width: 640px) {
	.wfty-order-details-block .wfty_subscription table.shop_table thead {
		display: none !important;
	}
	.wfty-order-details-block .wfty_subscription table.shop_table,
	.wfty-order-details-block .wfty_subscription table.shop_table tbody,
	.wfty-order-details-block .wfty_subscription table.shop_table tr {
		display: block !important;
		width: 100% !important;
	}
	.wfty-order-details-block .wfty_subscription table.shop_table tr {
		padding: 2px 14px 10px !important;
	}
	.wfty-order-details-block .wfty_subscription table.shop_table tr + tr {
		border-top: 1px solid #eef1f5 !important;
	}
	/* Label floats left, everything else flows together on the right, so the
	   value never splits into spread-out chunks the way flex items did. */
	.wfty-order-details-block .wfty_subscription table.shop_table td {
		display: block !important;
		text-align: right !important;
		white-space: normal !important;
		padding: 11px 0 !important;
		border: 0 !important;
		overflow: hidden !important;
		line-height: 22px !important;
	}
	.wfty-order-details-block .wfty_subscription table.shop_table td + td {
		border-top: 1px solid #f4f6f9 !important;
	}
	.wfty-order-details-block .wfty_subscription table.shop_table td::before {
		content: attr(data-title);
		float: left;
		margin-right: 12px;
		color: #667085;
		font-size: 11.5px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: .04em;
		line-height: 22px;
	}
	.wfty-order-details-block .wfty_subscription table.shop_table td.subscription-id small {
		margin-left: 8px;
	}
	.wfty-order-details-block .wfty_subscription table.shop_table td.subscription-total .woocommerce-Price-amount {
		margin-right: 3px;
	}
	/* The button IS the label here; kill the "ACTION" caption (full-chain
	   selector so it outranks the generic ::before rule above). */
	.wfty-order-details-block .wfty_subscription table.shop_table td.subscription-actions::before {
		content: none !important;
	}
	.wfty-order-details-block .wfty_subscription table.shop_table td.subscription-actions {
		padding: 18px 0 2px !important;
	}
	.wfty-order-details-block .wfty_subscription table.shop_table td.subscription-actions a.button {
		display: block !important;
		width: 100% !important;
		text-align: center !important;
		padding: 12px 16px !important;
	}
}

/* Small viewports: tighten the card padding (viewport query is right here). */
@media (max-width: 640px) {
	.wfty-order-details-block .wfty_wrap,
	.wfty-cust-details-block .wfty_wrap {
		padding: 18px 16px 16px !important;
	}
}
