/* Nels Home — WooCommerce checkout (/checkout/) */

body.nh-checkout-page {
	background: #eef2f7 !important;
}

body.nh-checkout-page #page-container,
body.nh-checkout-page #main-content,
body.nh-checkout-page .content-area {
	background: #eef2f7 !important;
}

body.nh-checkout-page #content-area {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

body.nh-checkout-page #main-content {
	width: 100% !important;
}

body.nh-checkout-page #sidebar {
	display: none !important;
}

body.nh-checkout-page .content-area {
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: 100% !important;
}

body.nh-checkout-page #main-content .entry-title,
body.nh-checkout-page .et_pb_title_container {
	display: none !important;
}

body.nh-checkout-page .entry-content {
	font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #0f172a;
}

body.nh-checkout-page .entry-content > .woocommerce {
	max-width: min(100%, 1080px);
	margin: 0 auto;
	padding: 0 24px 80px;
}

body.nh-checkout-page .container {
	width: min(100%, 1080px) !important;
	max-width: 1080px !important;
}

/* Page header */
.nh-checkout-page-head {
	margin: 0 0 20px;
	padding: 28px 28px 24px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.nh-checkout-page-head__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px 28px;
}

.nh-checkout-page-head__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.nh-checkout-page-head__back {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 999px;
	background: #fff;
	color: #1b4fd8;
	font-size: 0.8125rem;
	font-weight: 700;
	text-decoration: none;
}

.nh-checkout-page-head__back:hover {
	background: #eef2ff;
	color: #1640b8;
}

.nh-checkout-page-head__eyebrow {
	margin: 0 0 6px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #64748b;
}

.nh-checkout-page-head__title {
	margin: 0 0 8px;
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #0b2d5b;
}

.nh-checkout-page-head__sub {
	margin: 0;
	max-width: 46ch;
	font-size: 1rem;
	line-height: 1.55;
	color: #64748b;
}

.nh-checkout-page-head__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nh-checkout-page-head__trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 999px;
	background: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #0b2d5b;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.nh-checkout-page-head__trust li::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	flex-shrink: 0;
}

/* Notices */
body.nh-checkout-page .woocommerce-notices-wrapper {
	margin-bottom: 18px;
}

body.nh-checkout-page .woocommerce-message,
body.nh-checkout-page .woocommerce-info,
body.nh-checkout-page .woocommerce-error {
	margin: 0 0 12px !important;
	padding: 14px 18px !important;
	border: 1px solid rgba(15, 23, 42, 0.08) !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #0b2d5b !important;
	font-size: 0.9375rem !important;
	font-weight: 600 !important;
	line-height: 1.45 !important;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

body.nh-checkout-page .woocommerce-message::before,
body.nh-checkout-page .woocommerce-info::before,
body.nh-checkout-page .woocommerce-error::before {
	display: none !important;
}

body.nh-checkout-page .woocommerce-message {
	border-color: rgba(22, 163, 74, 0.18) !important;
}

body.nh-checkout-page .woocommerce-message .button,
body.nh-checkout-page .woocommerce-info .button {
	float: right;
	margin: -2px 0 -2px 12px !important;
	padding: 8px 14px !important;
	border-radius: 999px !important;
	background: #1b4fd8 !important;
	color: #fff !important;
	font-size: 0.8125rem !important;
	font-weight: 700 !important;
}

/* Login + coupon */
body.nh-checkout-page form.checkout > .woocommerce-form-login-toggle,
body.nh-checkout-page form.checkout > .woocommerce-form-coupon-toggle {
	margin: 0 0 10px;
	padding: 12px 16px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
	background: #fff;
	font-size: 0.9375rem;
	color: #64748b;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

body.nh-checkout-page .woocommerce-form-login-toggle .showlogin,
body.nh-checkout-page .woocommerce-form-coupon-toggle .showcoupon {
	color: #1b4fd8;
	font-weight: 700;
	text-decoration: none;
}

body.nh-checkout-page .woocommerce-form-login,
body.nh-checkout-page .checkout_coupon {
	margin: 0 0 14px;
	padding: 20px 22px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

body.nh-checkout-page .woocommerce-form-login > p:first-child {
	display: none;
}

/* Two-column layout */
body.nh-checkout-page .nh-checkout-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	gap: 24px;
	align-items: start;
	margin-top: 6px;
}

body.nh-checkout-page .nh-checkout-layout__details {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

body.nh-checkout-page .nh-checkout-layout__summary {
	padding: 22px 24px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
	position: sticky;
	top: 24px;
	align-self: start;
}

body.nh-checkout-page #order_review .shop_table tbody td.product-total {
	text-align: right;
	white-space: nowrap;
	font-weight: 700;
}

body.nh-checkout-page #order_review .shop_table .product-quantity {
	display: inline-block;
	margin-left: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #eef2ff;
	color: #1b4fd8;
	font-size: 0.75rem;
	font-weight: 700;
}

body.nh-checkout-page .nh-checkout-layout__summary-title,
body.nh-checkout-page #order_review_heading {
	margin: 0 0 16px;
	padding: 0 0 14px;
	border-bottom: 1px solid #eef2f7;
	font-size: 1.0625rem;
	font-weight: 800;
	color: #0b2d5b;
	line-height: 1.3;
}

body.nh-checkout-page #order_review_heading {
	display: none;
}

body.nh-checkout-page #customer_details {
	float: none !important;
	width: 100% !important;
}

body.nh-checkout-page #customer_details .col2-set {
	display: flex;
	flex-direction: column;
	gap: 18px;
	float: none !important;
	width: 100% !important;
}

body.nh-checkout-page #customer_details .col2-set::before,
body.nh-checkout-page #customer_details .col2-set::after {
	display: none;
}

body.nh-checkout-page #customer_details .col-1,
body.nh-checkout-page #customer_details .col-2 {
	float: none !important;
	width: 100% !important;
}

body.nh-checkout-page .woocommerce-billing-fields,
body.nh-checkout-page .woocommerce-additional-fields {
	padding: 22px 24px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

body.nh-checkout-page .woocommerce-billing-fields > h3,
body.nh-checkout-page .woocommerce-additional-fields > h3 {
	margin: 0 0 18px;
	padding: 0 0 14px;
	border-bottom: 1px solid #eef2f7;
	font-size: 1.0625rem;
	font-weight: 800;
	color: #0b2d5b;
}

body.nh-checkout-page #order_review {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

/* Form fields */
body.nh-checkout-page .woocommerce-checkout .form-row {
	margin: 0 0 14px;
	padding: 0;
}

body.nh-checkout-page .woocommerce-checkout .form-row::before,
body.nh-checkout-page .woocommerce-checkout .form-row::after {
	display: none;
}

body.nh-checkout-page .woocommerce-checkout .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0b2d5b;
}

body.nh-checkout-page .woocommerce-checkout .form-row .required {
	color: #dc2626;
	text-decoration: none;
}

body.nh-checkout-page .woocommerce-checkout input.input-text,
body.nh-checkout-page .woocommerce-checkout textarea,
body.nh-checkout-page .woocommerce-checkout select,
body.nh-checkout-page .woocommerce-checkout .select2-container .select2-selection--single {
	width: 100% !important;
	min-height: 46px;
	padding: 11px 14px !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 12px !important;
	background: #fff !important;
	color: #0f172a !important;
	font-family: inherit !important;
	font-size: 0.9375rem !important;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.nh-checkout-page .woocommerce-checkout textarea {
	min-height: 96px;
	resize: vertical;
}

body.nh-checkout-page .woocommerce-checkout input.input-text:focus,
body.nh-checkout-page .woocommerce-checkout textarea:focus,
body.nh-checkout-page .woocommerce-checkout select:focus {
	border-color: #93c5fd !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.14) !important;
}

body.nh-checkout-page .woocommerce-checkout .form-row-first,
body.nh-checkout-page .woocommerce-checkout .form-row-last {
	float: left;
	width: calc(50% - 8px);
}

body.nh-checkout-page .woocommerce-checkout .form-row-first {
	margin-right: 16px;
}

/* Order table */
body.nh-checkout-page #order_review .shop_table {
	margin: 0 0 16px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
	background: #f8fafc;
}

body.nh-checkout-page #order_review .shop_table th,
body.nh-checkout-page #order_review .shop_table td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	font-size: 0.9375rem;
	vertical-align: top;
}

body.nh-checkout-page #order_review .shop_table thead th {
	background: #f1f5f9;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
}

body.nh-checkout-page #order_review .shop_table .product-name {
	font-weight: 600;
	color: #0b2d5b;
}

body.nh-checkout-page #order_review .shop_table tfoot tr:last-child th,
body.nh-checkout-page #order_review .shop_table tfoot tr:last-child td {
	border-bottom: 0;
	padding-top: 14px;
	font-size: 1rem;
	font-weight: 800;
	color: #0b2d5b;
	background: #fff;
}

body.nh-checkout-page #order_review .woocommerce-Price-amount {
	font-weight: 700;
	color: #0b2d5b;
}

/* Payment */
body.nh-checkout-page #payment {
	margin: 0;
	padding: 16px 0 0;
	border-top: 1px solid #eef2f7;
	background: transparent !important;
	border-radius: 0 !important;
}

body.nh-checkout-page #payment .payment_methods {
	margin: 0 0 14px;
	padding: 0;
	border: 0 !important;
	list-style: none;
}

body.nh-checkout-page #payment .payment_methods li {
	margin: 0 0 10px;
	padding: 12px 14px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 12px;
	background: #f8fafc;
}

body.nh-checkout-page #payment .payment_box {
	margin: 10px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #eef2f7;
	font-size: 0.875rem;
	color: #64748b;
}

body.nh-checkout-page #payment .place-order {
	margin: 0;
	padding: 0;
}

body.nh-checkout-page #place_order,
body.nh-checkout-page .woocommerce-checkout #payment #place_order {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px 20px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: #1b4fd8 !important;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	box-shadow: 0 4px 14px rgba(27, 79, 216, 0.24);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

body.nh-checkout-page #place_order:hover,
body.nh-checkout-page .woocommerce-checkout #payment #place_order:hover {
	background: #1640b8 !important;
	color: #fff !important;
	transform: translateY(-1px);
}

body.nh-checkout-page .woocommerce-privacy-policy-text {
	margin: 12px 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #64748b;
}

body.nh-checkout-page .woocommerce-privacy-policy-text a {
	color: #1b4fd8;
	font-weight: 600;
}

body.nh-checkout-page .woocommerce-terms-and-conditions-wrapper {
	margin: 0 0 12px;
	font-size: 0.875rem;
	color: #64748b;
}

@media (max-width: 960px) {
	.nh-checkout-page-head__inner {
		flex-direction: column;
	}

	.nh-checkout-page-head__aside {
		align-items: flex-start;
		width: 100%;
	}

	body.nh-checkout-page .nh-checkout-layout {
		grid-template-columns: 1fr;
	}

	body.nh-checkout-page .nh-checkout-layout__summary {
		position: static;
	}
}

@media (max-width: 640px) {
	.nh-checkout-page-head {
		padding: 24px 16px 0;
	}

	body.nh-checkout-page .entry-content > .woocommerce {
		padding: 0 16px 56px;
	}

	body.nh-checkout-page .woocommerce-billing-fields,
	body.nh-checkout-page .woocommerce-additional-fields,
	body.nh-checkout-page .nh-checkout-layout__summary {
		padding: 18px 16px;
	}

	body.nh-checkout-page .woocommerce-checkout .form-row-first,
	body.nh-checkout-page .woocommerce-checkout .form-row-last {
		float: none;
		width: 100%;
		margin-right: 0;
	}
}
