.woocommerce-checkout .nikwax-thankyou {
	max-width: 1000px;
	margin: 30px auto;
	padding: 0 20px;
	box-sizing: border-box;
	color: var(--nikwax-blue);
	font-family: var(--brand-font, "Ubuntu"), sans-serif;
	text-align: center;
}

.nikwax-thankyou__hero {
	margin-bottom: 36px;
}

.nikwax-thankyou__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--nikwax-green);
	color: #fff;
	margin-bottom: 18px;
}
.nikwax-thankyou__icon svg { width: 28px; height: 28px; }

.nikwax-thankyou__icon--alert { background: var(--brand-red); }

.nikwax-thankyou__hero h1 {
	margin: 0 0 12px;
	color: var(--nikwax-blue);
	font-weight: 700;
	font-size: clamp(24px, 3.4vw, 36px);
	text-transform: uppercase;
	line-height: 1.15;
}

.nikwax-thankyou__hero .woocommerce-thankyou-order-received,
.nikwax-thankyou--failed .woocommerce-thankyou-order-failed {
	margin: 0 auto;
	max-width: 460px;
	font-size: 16px;
	line-height: 1.5;
	color: var(--nikwax-blue);
}

.nikwax-thankyou__overview {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	list-style: none;
	margin: 0 0 40px;
	padding: 20px 10px;
	border-top: 1px solid var(--nikwax-blue);
	border-bottom: 1px solid var(--nikwax-blue);
}

.nikwax-thankyou__overview li {
	flex: 1 1 160px;
	padding: 5px 10px;
	font-size: 12px;
	text-transform: uppercase;
	border-right: 1px solid #ccc !important;
}

.nikwax-thankyou__overview li:last-child {
    border-right: 0 !important;
}
.nikwax-thankyou__overview li:first-child { border-left: 0; }

.nikwax-thankyou__overview li strong {
	display: block;
	margin-top: 4px;
	font-size: 16px;
	text-transform: none;
	letter-spacing: normal;
	font-weight: 700;
	color: var(--nikwax-blue);
}

/* ---- Order details table (items) ---- */
.nikwax-thankyou__details {
	text-align: left;
}

.nikwax-thankyou__details .woocommerce-order-details__title,
.nikwax-thankyou__details .woocommerce-column__title {
	color: var(--nikwax-blue);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 15px;
	text-align: left;
}

.nikwax-thankyou__details table.shop_table {
	width: 100%;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	margin: 0 0 40px;
	border: 1px solid var(--nikwax-blue);
}

.nikwax-thankyou__details table.shop_table thead th {
	background: var(--nikwax-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 15px 20px;
	text-align: left;
	border: 0;
}
.nikwax-thankyou__details table.shop_table thead th.product-total,
.nikwax-thankyou__details table.shop_table tbody td.product-total {
	text-align: right;
}

.nikwax-thankyou__details table.shop_table tbody td {
	padding: 15px 20px;
	border: 0;
	border-top: 1px solid #e2e6ec;
	font-size: 14px;
	color: var(--nikwax-blue);
}
.nikwax-thankyou__details table.shop_table .product-quantity { font-weight: 700; }

.nikwax-thankyou__details table.shop_table tfoot th,
.nikwax-thankyou__details table.shop_table tfoot td {
	padding: 10px 20px;
	border: 0;
	border-top: 1px solid #e2e6ec;
	font-size: 14px;
	font-weight: 400;
	color: var(--nikwax-blue);
	text-align: right;
}
.nikwax-thankyou__details table.shop_table tfoot th { text-align: left; font-weight: 400; }
.nikwax-thankyou__details table.shop_table tfoot tr:last-child th,
.nikwax-thankyou__details table.shop_table tfoot tr:last-child td {
	font-size: 16px;
	font-weight: 700;
	border-top: 2px solid var(--nikwax-blue);
}

/* Row of order actions (e.g. "View" on a reordered item) if present */
.nikwax-thankyou__details .order-actions-button {
	display: inline-block;
	margin-right: 8px;
	padding: 10px 15px;
	border: 1px solid var(--nikwax-blue);
	border-radius: 3px;
	color: var(--nikwax-blue);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

/* ---- Billing / shipping address cards ---- */
.nikwax-thankyou__details .woocommerce-customer-details { margin-top: 40px; }

.nikwax-thankyou__details .woocommerce-columns--addresses {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0px;
	margin: 0 0 40px;
	padding: 0;
}

.nikwax-thankyou__details .woocommerce-column--billing-address,
.nikwax-thankyou__details .woocommerce-column--shipping-address,
.nikwax-thankyou__details .woocommerce-columns--addresses .col-1,
.nikwax-thankyou__details .woocommerce-columns--addresses .col-2 {
	flex: 1 1 240px !important;
	width: auto !important;
	max-width: none !important;
	float: none !important;
	box-sizing: border-box !important;
	border: 0;
	border-radius: 0;
	padding: 20px 25px;
	border: 1px solid var(--nikwax-blue);
	margin-right: 10px;
}

.nikwax-thankyou__details .woocommerce-columns--addresses .col-2  {
	margin:0 0 0 10px;
}

.nikwax-thankyou__details address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.6;
	color: var(--nikwax-blue);
	border: 0 !important;
	padding: 0 !important;
}

/* ---- CTA button(s) ---- */
.nikwax-thankyou__actions { margin: 0; text-align: center; }

.nikwax-thankyou__btn {
	position: relative;
	display: inline-block;
	background: var(--nikwax-green);
	color: #fff !important;
	border: 0;
	border-radius: 3px;
	padding: 15px 48px 15px 28px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.15s ease;
}
.nikwax-thankyou__btn:hover { background: #006b34; }
.nikwax-thankyou__btn::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 10px solid var(--golden-yellow);
}
.nikwax-thankyou__btn--secondary {
	background: #fff;
	color: var(--nikwax-blue) !important;
	border: 1px solid var(--nikwax-blue);
	margin-left: 10px;
}
.nikwax-thankyou__btn--secondary::after { display: none; }

.nikwax-thankyou--failed .nikwax-thankyou__actions {
	margin-top: 24px;
	display: flex;
	justify-content: center;
	gap: 10px;
}

@media screen and (max-width: 1000px) {
	.nikwax-thankyou__details .woocommerce-column--billing-address,
	.nikwax-thankyou__details .woocommerce-column--shipping-address,
	.nikwax-thankyou__details .woocommerce-columns--addresses .col-1,
	.nikwax-thankyou__details .woocommerce-columns--addresses .col-2 {
		width: 100% !important;
		flex: 1 1 100% !important;
		margin: 10px 0 !important;
	}
}

@media screen and (max-width: 600px) {
	.nikwax-thankyou__overview {display: block;padding: 15px 10px;}
	.nikwax-thankyou__overview li {border-left: 0 !important;border-top: 1px solid #e2e6ec;}
	.nikwax-thankyou__overview li {width: 100%;border: 0 !important;padding: 10px 0;}
	.nikwax-thankyou__btn--secondary { margin-left: 0; }
	.nikwax-thankyou--failed .nikwax-thankyou__actions { flex-direction: column; }
}
