:root {
	--kcheckout-border: #e6ebf4;
	--kcheckout-text: #10203b;
	--kcheckout-muted: #66748b;
	--kcheckout-blue: #2454d9;
	--kcheckout-blue-deep: #183a9a;
	--kcheckout-soft: #f5f7fc;
	--kcheckout-yellow: #ffd45b;
	--kcheckout-shadow: 0 18px 40px rgba(16, 32, 59, 0.08);
}

.kcheckout-body {
	background: #f6f8fc;
	color: var(--kcheckout-text);
}

.kcheckout-body .wp-site-blocks > main,
.kcheckout-body main.wp-block-group {
	padding-top: 16px;
	padding-bottom: 72px;
}

.kcheckout-body .entry-content,
.kcheckout-body .woocommerce {
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: 20px;
}

.kcheckout-body .woocommerce {
	display: grid;
	gap: 18px;
}

.kcheckout-intro,
.kcheckout-recommendations,
.kcheckout-body .woocommerce-cart-form,
.kcheckout-body .cart_totals,
.kcheckout-body .woocommerce-checkout #customer_details,
.kcheckout-body .woocommerce-checkout #order_review,
.kcheckout-body .woocommerce-checkout #order_review_heading,
.kcheckout-body .woocommerce-notices-wrapper:not(:empty),
.kcheckout-body .wc-block-cart,
.kcheckout-body .wc-block-checkout {
	border: 1px solid var(--kcheckout-border);
	border-radius: 22px;
	background: #fff;
	box-shadow: var(--kcheckout-shadow);
}

.kcheckout-intro {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
	gap: 20px;
	align-items: center;
	padding: 22px;
}

.kcheckout-intro h1 {
	max-width: 20ch;
	margin: 0;
	color: #0d1e40;
	font-size: clamp(1.7rem, 1.42rem + 0.85vw, 2.45rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.kcheckout-intro p {
	margin: 8px 0 0;
	color: var(--kcheckout-muted);
	line-height: 1.6;
}

.kcheckout-trust-panel {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.kcheckout-trust-panel--totals {
	grid-template-columns: minmax(0, 1fr);
	margin-bottom: 14px;
}

.kcheckout-trust-panel__item {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 12px;
	border: 1px solid rgba(36, 84, 217, 0.11);
	border-radius: 16px;
	background: linear-gradient(145deg, rgba(36, 84, 217, 0.06), rgba(255, 212, 91, 0.18));
}

.kcheckout-trust-panel__icon,
.kcheckout-submit-trust span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 13px;
	background: #fff;
	color: var(--kcheckout-blue);
}

.kcheckout-trust-panel__icon svg,
.kcheckout-submit-trust svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.kcheckout-trust-panel strong {
	display: block;
	color: var(--kcheckout-text);
	font-size: 0.9rem;
	line-height: 1.25;
}

.kcheckout-trust-panel small {
	display: block;
	margin-top: 3px;
	color: var(--kcheckout-muted);
	font-size: 0.78rem;
	line-height: 1.42;
}

.kcheckout-body .woocommerce-cart-form {
	padding: 18px;
}

.kcheckout-body .shop_table {
	border: 0;
	border-collapse: separate;
	border-spacing: 0 10px;
	margin: 0;
}

.kcheckout-body .shop_table th {
	border: 0;
	color: var(--kcheckout-muted);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.kcheckout-body .shop_table td {
	border: 1px solid var(--kcheckout-border);
	border-left: 0;
	border-right: 0;
	background: var(--kcheckout-soft);
	padding: 14px 12px;
	vertical-align: middle;
}

.kcheckout-body .shop_table tr td:first-child {
	border-left: 1px solid var(--kcheckout-border);
	border-radius: 16px 0 0 16px;
}

.kcheckout-body .shop_table tr td:last-child {
	border-right: 1px solid var(--kcheckout-border);
	border-radius: 0 16px 16px 0;
}

.kcheckout-body .product-thumbnail img,
.kcheckout-body .wc-block-cart-item__image img {
	width: 78px;
	height: 78px;
	border-radius: 14px;
	background: #fff;
	object-fit: contain;
}

.kcheckout-body .product-name a,
.kcheckout-body .wc-block-cart-item__product a {
	color: var(--kcheckout-text);
	font-weight: 800;
	text-decoration: none;
}

.kcheckout-body .quantity input.qty {
	width: 74px;
	min-height: 42px;
	border: 1px solid var(--kcheckout-border);
	border-radius: 14px;
	background: #fff;
	text-align: center;
}

.kcheckout-body .coupon {
	display: flex;
	gap: 10px;
	align-items: center;
}

.kcheckout-body .coupon input.input-text,
.kcheckout-body input.input-text,
.kcheckout-body select,
.kcheckout-body textarea,
.kcheckout-body .wc-block-components-text-input input,
.kcheckout-body .wc-block-components-textarea {
	min-height: 46px;
	border: 1px solid var(--kcheckout-border);
	border-radius: 14px;
	background: #fff;
	padding: 0 14px;
	color: var(--kcheckout-text);
	font: inherit;
}

.kcheckout-body textarea {
	padding-top: 12px;
}

.kcheckout-body .button,
.kcheckout-body button.button,
.kcheckout-body .checkout-button,
.kcheckout-body #place_order,
.kcheckout-body .wc-block-components-button {
	min-height: 48px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--kcheckout-blue) 0%, #2d69ff 100%);
	color: #fff;
	font-weight: 850;
	box-shadow: 0 14px 26px rgba(36, 84, 217, 0.2);
}

.kcheckout-body .button:hover,
.kcheckout-body button.button:hover,
.kcheckout-body .checkout-button:hover,
.kcheckout-body #place_order:hover,
.kcheckout-body .wc-block-components-button:hover {
	filter: brightness(1.03);
}

.kcheckout-body .cart-collaterals {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
	gap: 18px;
	align-items: start;
}

.kcheckout-body .cart_totals {
	float: none;
	width: auto;
	padding: 18px;
	position: sticky;
	top: 116px;
}

.kcheckout-body .cart_totals h2,
.kcheckout-body #order_review_heading {
	margin: 0 0 14px;
	color: #0d1e40;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}

.kcheckout-recommendations {
	display: grid;
	gap: 16px;
	padding: 20px;
}

.kcheckout-section-head {
	display: grid;
	gap: 7px;
}

.kcheckout-section-head h2 {
	margin: 0;
	color: #0d1e40;
	font-size: 1.35rem;
	line-height: 1.12;
}

.kcheckout-section-head p:last-child {
	margin: 0;
	color: var(--kcheckout-muted);
}

.kcheckout-recommendations__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kcheckout-recommendations .khome-product-card {
	border-radius: 14px;
}

.kcheckout-recommendations .khome-product-card__media-wrap {
	padding: 10px 10px 4px;
}

.kcheckout-recommendations .khome-product-card__media {
	aspect-ratio: 1 / 1;
	padding: 10px;
	border-radius: 12px;
}

.kcheckout-recommendations .khome-product-card__body {
	padding: 0 11px 12px;
}

.kcheckout-recommendations .khome-product-card__body h2,
.kcheckout-recommendations .khome-product-card__body h3 {
	margin: 0;
	font-size: 13px;
	line-height: 1.34;
	letter-spacing: 0;
}

.kcheckout-body form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
	gap: 20px;
	align-items: start;
}

.kcheckout-body form.checkout::before,
.kcheckout-body form.checkout::after {
	display: none;
}

.kcheckout-body .woocommerce-checkout #customer_details,
.kcheckout-body .woocommerce-checkout #order_review,
.kcheckout-body .woocommerce-checkout #order_review_heading {
	float: none;
	width: auto;
	padding: 20px;
}

.kcheckout-body .woocommerce-checkout #customer_details {
	display: grid;
	gap: 18px;
}

.kcheckout-body .woocommerce-checkout #order_review,
.kcheckout-body .woocommerce-checkout #order_review_heading {
	position: sticky;
	top: 116px;
}

.kcheckout-body .woocommerce-checkout #order_review_heading {
	margin-bottom: -8px;
}

.kcheckout-body .woocommerce-billing-fields h3,
.kcheckout-body .woocommerce-shipping-fields h3,
.kcheckout-body .woocommerce-additional-fields h3 {
	margin: 0 0 14px;
	color: #0d1e40;
	font-size: 1.15rem;
}

.kcheckout-body .form-row label {
	margin-bottom: 6px;
	color: var(--kcheckout-muted);
	font-size: 0.82rem;
	font-weight: 800;
}

.kcheckout-submit-trust {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
	padding: 12px;
	border-radius: 16px;
	background: rgba(36, 84, 217, 0.08);
	color: var(--kcheckout-muted);
	font-size: 0.86rem;
	line-height: 1.45;
}

.kcheckout-submit-trust p {
	margin: 0;
}

.kcheckout-body .woocommerce-error,
.kcheckout-body .woocommerce-info,
.kcheckout-body .woocommerce-message {
	border: 1px solid var(--kcheckout-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--kcheckout-shadow);
}

.kcheckout-body .wc-block-cart,
.kcheckout-body .wc-block-checkout {
	padding: 20px;
}

.kcheckout-body .wc-block-cart__submit-container,
.kcheckout-body .wc-block-checkout__actions_row {
	position: sticky;
	bottom: 10px;
	z-index: 20;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.94);
	padding: 10px;
	box-shadow: var(--kcheckout-shadow);
	backdrop-filter: blur(12px);
}

@media (max-width: 980px) {
	.kcheckout-intro,
	.kcheckout-body .cart-collaterals,
	.kcheckout-body form.checkout {
		grid-template-columns: minmax(0, 1fr);
	}

	.kcheckout-body .cart_totals,
	.kcheckout-body .woocommerce-checkout #order_review,
	.kcheckout-body .woocommerce-checkout #order_review_heading {
		position: static;
	}

	.kcheckout-recommendations__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 720px) {
	.kcheckout-body .entry-content,
	.kcheckout-body .woocommerce {
		padding-inline: 12px;
	}

	.kcheckout-intro,
	.kcheckout-body .woocommerce-cart-form,
	.kcheckout-body .cart_totals,
	.kcheckout-body .woocommerce-checkout #customer_details,
	.kcheckout-body .woocommerce-checkout #order_review,
	.kcheckout-recommendations {
		border-radius: 18px;
		padding: 14px;
	}

	.kcheckout-trust-panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.kcheckout-body .shop_table thead {
		display: none;
	}

	.kcheckout-body .shop_table,
	.kcheckout-body .shop_table tbody,
	.kcheckout-body .shop_table tr,
	.kcheckout-body .shop_table td {
		display: block;
		width: 100%;
	}

	.kcheckout-body .shop_table tr {
		margin-bottom: 12px;
		border: 1px solid var(--kcheckout-border);
		border-radius: 18px;
		background: var(--kcheckout-soft);
		overflow: hidden;
	}

	.kcheckout-body .shop_table td,
	.kcheckout-body .shop_table tr td:first-child,
	.kcheckout-body .shop_table tr td:last-child {
		border: 0;
		border-radius: 0;
		background: transparent;
	}

	.kcheckout-body .coupon {
		display: grid;
	}

	.kcheckout-body .coupon input.input-text {
		width: 100%;
	}
}
