.websync-order-confirmation-wrapper {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 1100px;
	margin-inline: auto;
	color: #1f2937;
}

.websync-order-confirmation-wrapper,
.websync-order-confirmation-wrapper * {
	box-sizing: border-box;
}

.websync-order-confirmation-wrapper .woocommerce-order {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.websync-order-confirmation-wrapper .woocommerce-notice,
.websync-order-confirmation-wrapper .woocommerce-thankyou-order-received {
	margin: 0;
	padding: 18px 20px;
	border: 1px solid #a7f3d0;
	border-radius: 8px;
	background: #ecfdf5;
	color: #065f46;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
}

.websync-order-confirmation-wrapper :is(.woocommerce-notice--error, .woocommerce-error) {
	border-color: #fecaca;
	background: #fef2f2;
	color: #991b1b;
}

.websync-order-confirmation-wrapper :is(.woocommerce-notice--info, .woocommerce-info) {
	border-color: #bfdbfe;
	background: #eff6ff;
	color: #1e40af;
}

.websync-order-confirmation-wrapper .woocommerce-order-overview,
.websync-order-confirmation-wrapper ul.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	list-style: none;
}

.websync-order-confirmation-wrapper .woocommerce-order-overview::before,
.websync-order-confirmation-wrapper .woocommerce-order-overview::after,
.websync-order-confirmation-wrapper ul.order_details::before,
.websync-order-confirmation-wrapper ul.order_details::after {
	display: none;
}

.websync-order-confirmation-wrapper .woocommerce-order-overview li,
.websync-order-confirmation-wrapper ul.order_details li {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 18px;
	border: 0;
	border-right: 1px solid #e5e7eb;
	color: #6b7280;
	font-size: 12px;
	line-height: 1.45;
	text-transform: uppercase;
}

.websync-order-confirmation-wrapper .woocommerce-order-overview li:last-child,
.websync-order-confirmation-wrapper ul.order_details li:last-child {
	border-right: 0;
}

.websync-order-confirmation-wrapper .woocommerce-order-overview li strong,
.websync-order-confirmation-wrapper ul.order_details li strong {
	display: block;
	margin-top: 6px;
	overflow-wrap: anywhere;
	color: #111827;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.4;
	text-transform: none;
}

.websync-order-confirmation-wrapper :is(
	.woocommerce-order-details,
	.woocommerce-order-downloads,
	.woocommerce-customer-details,
	.woocommerce-bacs-bank-details
) {
	width: 100%;
	margin: 0;
	padding: 24px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}

.websync-order-confirmation-wrapper :is(
	.woocommerce-order-details__title,
	.woocommerce-order-downloads__title,
	.woocommerce-column__title,
	.wc-bacs-bank-details-heading
) {
	margin: 0 0 18px;
	color: #111827;
	font-size: 22px;
	font-weight: 650;
	line-height: 1.3;
}

.websync-order-confirmation-wrapper table.shop_table {
	width: 100%;
	margin: 0;
	border: 1px solid #e5e7eb;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 8px;
	background: #fff;
	color: #374151;
}

.websync-order-confirmation-wrapper table.shop_table thead {
	background: #f8fafc;
}

.websync-order-confirmation-wrapper table.shop_table :is(th, td) {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	background: transparent;
	color: inherit;
	text-align: left;
	vertical-align: middle;
}

.websync-order-confirmation-wrapper table.shop_table tr:last-child :is(th, td) {
	border-bottom: 0;
}

.websync-order-confirmation-wrapper table.shop_table th:last-child,
.websync-order-confirmation-wrapper table.shop_table td:last-child,
.websync-order-confirmation-wrapper table.shop_table .product-total {
	text-align: right;
}

.websync-order-confirmation-wrapper table.shop_table tfoot th {
	font-weight: 600;
}

.websync-order-confirmation-wrapper table.shop_table tfoot td {
	font-weight: 650;
}

.websync-order-confirmation-wrapper .woocommerce-columns--addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	margin: 0;
}

.websync-order-confirmation-wrapper .woocommerce-columns--addresses::before,
.websync-order-confirmation-wrapper .woocommerce-columns--addresses::after {
	display: none;
}

.websync-order-confirmation-wrapper .woocommerce-columns--addresses > .woocommerce-column {
	float: none;
	width: auto;
	max-width: none;
	padding: 0;
}

.websync-order-confirmation-wrapper address {
	min-height: 100%;
	margin: 0;
	padding: 18px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f8fafc;
	color: #4b5563;
	font-style: normal;
	line-height: 1.75;
}

.websync-order-confirmation-wrapper address p {
	margin: 8px 0 0;
}

.websync-order-confirmation-wrapper .woocommerce-bacs-bank-details .wc-bacs-bank-details {
	margin-bottom: 0;
}

.websync-order-confirmation-wrapper .websync-order-confirmation-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-start;
}

.websync-order-confirmation-wrapper :is(.button, .woocommerce-button),
.websync-order-confirmation-wrapper .websync-order-confirmation-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 11px 20px;
	border: 1px solid #111827;
	border-radius: 6px;
	background: #111827;
	box-shadow: none;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.websync-order-confirmation-wrapper :is(.button, .woocommerce-button):hover,
.websync-order-confirmation-wrapper :is(.button, .woocommerce-button):focus,
.websync-order-confirmation-wrapper .websync-order-confirmation-button:hover,
.websync-order-confirmation-wrapper .websync-order-confirmation-button:focus {
	border-color: #374151;
	background: #374151;
	color: #fff;
}

.websync-order-confirmation-wrapper .websync-order-confirmation-button--account {
	border-color: #d1d5db;
	background: #fff;
	color: #111827;
}

.websync-order-confirmation-hide-message .woocommerce-thankyou-order-received,
.websync-order-confirmation-hide-overview .woocommerce-order-overview,
.websync-order-confirmation-hide-order-details .woocommerce-order-details,
.websync-order-confirmation-hide-downloads .woocommerce-order-downloads,
.websync-order-confirmation-hide-customer-details .woocommerce-customer-details {
	display: none !important;
}

@media (max-width: 767px) {
	.websync-order-confirmation-wrapper .woocommerce-order {
		gap: 18px;
	}

	.websync-order-confirmation-wrapper .woocommerce-order-overview,
	.websync-order-confirmation-wrapper ul.order_details {
		grid-template-columns: 1fr;
	}

	.websync-order-confirmation-wrapper .woocommerce-order-overview li,
	.websync-order-confirmation-wrapper ul.order_details li {
		border-right: 0;
		border-bottom: 1px solid #e5e7eb;
	}

	.websync-order-confirmation-wrapper .woocommerce-order-overview li:last-child,
	.websync-order-confirmation-wrapper ul.order_details li:last-child {
		border-bottom: 0;
	}

	.websync-order-confirmation-wrapper :is(
		.woocommerce-order-details,
		.woocommerce-order-downloads,
		.woocommerce-customer-details,
		.woocommerce-bacs-bank-details
	) {
		padding: 18px;
	}

	.websync-order-confirmation-wrapper .woocommerce-columns--addresses {
		grid-template-columns: 1fr;
	}

	.websync-order-confirmation-wrapper table.shop_table {
		display: table;
	}

	.websync-order-confirmation-wrapper table.shop_table :is(th, td) {
		padding: 12px;
	}

	.websync-order-confirmation-wrapper .websync-order-confirmation-actions {
		flex-direction: column;
	}

	.websync-order-confirmation-wrapper .websync-order-confirmation-actions .button {
		width: 100%;
	}
}
