/**
 * Nik Shipping UA — modern checkout theme.
 *
 * Restyles the classic WooCommerce checkout so it reads like the modern block
 * checkout: a wide two-column layout with the form on the left and a soft order
 * summary card on the right, clean inputs with floating focus, a full-width
 * primary button. Everything is scoped under body.nik-ship-modern and driven by
 * CSS variables that the plugin fills from the Design settings.
 */

body.nik-ship-modern {
	--nikco-accent: #1e1e1e;
	--nikco-accent-text: #ffffff;
	--nikco-text: #1e1e1e;
	--nikco-muted: #787c82;
	--nikco-border: #dcdcde;
	--nikco-field-bg: #ffffff;
	--nikco-panel-bg: #f7f8fa;
	--nikco-radius: 8px;
	--nikco-field-pad: 12px;
	--nikco-gap: 18px;
	--nikco-maxw: 1040px;
}

/* --- Layout ------------------------------------------------------------- */

body.nik-ship-modern .woocommerce {
	max-width: var(--nikco-maxw);
	margin-left: auto;
	margin-right: auto;
}

body.nik-ship-modern form.checkout.woocommerce-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	grid-template-areas:
		"details review"
		"extra   review";
	column-gap: 48px;
	row-gap: 8px;
	align-items: start;
}

body.nik-ship-modern.nik-ship-onecol form.checkout.woocommerce-checkout {
	grid-template-columns: minmax(0, 1fr);
	max-width: 640px;
	margin: 0 auto;
}

/* Single-column stacking order follows the "summary position" setting. */
body.nik-ship-modern.nik-ship-onecol.nik-ship-sum-top form.checkout.woocommerce-checkout {
	grid-template-areas: "review" "details" "extra";
}

body.nik-ship-modern.nik-ship-onecol.nik-ship-sum-bottom form.checkout.woocommerce-checkout {
	grid-template-areas: "details" "extra" "review";
}

body.nik-ship-modern #customer_details {
	grid-area: details;
}

body.nik-ship-modern #nik-ship-left-extra {
	grid-area: extra;
	min-width: 0;
}

body.nik-ship-modern #order_review_heading,
body.nik-ship-modern #order_review {
	grid-area: review;
}

/* On the two-column layout the summary sticks and sits in one visual card. */
body.nik-ship-modern #order_review_heading {
	margin-top: 0;
}

@media ( max-width: 900px ) {
	body.nik-ship-modern form.checkout.woocommerce-checkout {
		grid-template-columns: minmax(0, 1fr);
	}
	/* When the two columns stack, the summary goes where the setting says —
	   above the form by default so the customer sees what they are paying for. */
	body.nik-ship-modern.nik-ship-sum-top form.checkout.woocommerce-checkout {
		grid-template-areas: "review" "details" "extra";
	}
	body.nik-ship-modern.nik-ship-sum-bottom form.checkout.woocommerce-checkout {
		grid-template-areas: "details" "extra" "review";
	}
}

/* Left-column delivery section (shipping method chooser is relocated here). */
body.nik-ship-modern #nik-ship-delivery {
	margin: 0 0 24px;
}

/* Once JS has relocated the shipping list, hide the now-empty row on the right
   so the summary shows only products and totals. !important because the generic
   "make every summary row a block" rule below would otherwise win on
   specificity and leave an empty "Delivery" label row in the card. */
body.nik-ship-shipping-moved #order_review tr.woocommerce-shipping-totals {
	display: none !important;
}

/* --- Typography & headings --------------------------------------------- */

body.nik-ship-modern .woocommerce-checkout h3,
body.nik-ship-modern #order_review_heading {
	font-size: 1.15rem;
	font-weight: 650;
	color: var(--nikco-text);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--nikco-border);
}

body.nik-ship-modern .woocommerce-additional-fields h3 {
	margin-top: 28px;
}

/* --- Fields (boxed, with the label sitting inside the box like the block
       checkout) --------------------------------------------------------- */

body.nik-ship-modern .woocommerce-checkout .col2-set .col-1,
body.nik-ship-modern .woocommerce-checkout .col2-set .col-2 {
	width: 100%;
	float: none;
	max-width: none;
}

body.nik-ship-modern .woocommerce-checkout .form-row {
	margin: 0 0 var(--nikco-gap);
	padding: 0;
}

/* Any row that holds a real input becomes a bordered box. */
body.nik-ship-modern .woocommerce-checkout .form-row:has( input.input-text ),
body.nik-ship-modern .woocommerce-checkout .form-row:has( select ),
body.nik-ship-modern .woocommerce-checkout .form-row:has( textarea ) {
	border: 1px solid var(--nikco-border);
	border-radius: var(--nikco-radius);
	background: var(--nikco-field-bg);
	padding: 7px 14px 8px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.nik-ship-modern .woocommerce-checkout .form-row:has( input.input-text ):focus-within,
body.nik-ship-modern .woocommerce-checkout .form-row:has( select ):focus-within,
body.nik-ship-modern .woocommerce-checkout .form-row:has( textarea ):focus-within {
	border-color: var(--nikco-accent);
	box-shadow: 0 0 0 3px color-mix( in srgb, var(--nikco-accent) 16%, transparent );
}

/* The label becomes the small caption at the top of the box. */
body.nik-ship-modern .woocommerce-checkout .form-row:has( input.input-text ) > label,
body.nik-ship-modern .woocommerce-checkout .form-row:has( select ) > label,
body.nik-ship-modern .woocommerce-checkout .form-row:has( textarea ) > label {
	display: block;
	margin: 0;
	font-size: 0.72rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--nikco-muted);
	pointer-events: none;
}

body.nik-ship-modern .woocommerce-checkout label .required {
	color: inherit;
	opacity: 0.45;
	text-decoration: none;
}

/* The control itself loses its own chrome — the box provides it. */
body.nik-ship-modern .woocommerce-checkout .form-row input.input-text,
body.nik-ship-modern .woocommerce-checkout .form-row textarea,
body.nik-ship-modern .woocommerce-checkout .form-row select {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	min-height: 24px;
	border: none;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--nikco-text);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

body.nik-ship-modern .woocommerce-checkout .form-row textarea {
	min-height: 60px;
	resize: vertical;
}

/* A caret for the (now borderless) selects. */
body.nik-ship-modern .woocommerce-checkout .form-row:has( select ) {
	position: relative;
}

body.nik-ship-modern .woocommerce-checkout .form-row:has( select )::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--nikco-muted);
	border-bottom: 2px solid var(--nikco-muted);
	transform: translateY( -70% ) rotate( 45deg );
	pointer-events: none;
}

body.nik-ship-modern .woocommerce-checkout .form-row select {
	padding-right: 20px;
}

/* Two-up rows (name / house+flat) — float to avoid inline-block whitespace. */
body.nik-ship-modern .woocommerce-checkout .form-row-first {
	float: left;
	width: calc( 50% - ( var(--nikco-gap) / 2 ) );
	clear: left;
}

body.nik-ship-modern .woocommerce-checkout .form-row-last {
	float: right;
	width: calc( 50% - ( var(--nikco-gap) / 2 ) );
}

body.nik-ship-modern .woocommerce-checkout .form-row-wide,
body.nik-ship-modern .woocommerce-checkout .form-row.notes {
	clear: both;
}

@media ( max-width: 520px ) {
	body.nik-ship-modern .woocommerce-checkout .form-row-first,
	body.nik-ship-modern .woocommerce-checkout .form-row-last {
		float: none;
		width: 100%;
	}
}

/* Rows that are only a checkbox (ship-to-different, order notes toggle) stay
   plain — never boxed. */
body.nik-ship-modern .woocommerce-checkout .form-row.woocommerce-validated:has( input[type="checkbox"] ),
body.nik-ship-modern .woocommerce-checkout .form-row:has( > .woocommerce-form__label-for-checkbox ) {
	border: none;
	background: transparent;
	padding: 0;
}

/* --- Order summary card ------------------------------------------------- */

body.nik-ship-modern #order_review {
	background: transparent;
	border: none;
	border-radius: 0;
	/* The "Your order" heading shares this grid cell and sits at the top, so the
	   summary content is padded down to clear it (no overlap). */
	padding: 46px 0 0;
}

/*
 * Прилипание — только на двухколоночной раскладке. Правило "не липнуть" для
 * узких экранов живёт выше по файлу, а медиазапрос веса не добавляет: при
 * равной специфичности побеждало написанное ниже `position: sticky`, и на
 * телефоне сводка заказа приклеивалась к верху экрана.
 */
@media ( min-width: 901px ) {
	body.nik-ship-modern #order_review {
		position: sticky;
		top: 24px;
	}
}

body.nik-ship-modern #order_review .shop_table {
	border: none;
	margin: 0;
	background: transparent;
}

/* No per-cell borders — dividers live on the rows only, so numbers never look
   underlined. */
body.nik-ship-modern #order_review .shop_table th,
body.nik-ship-modern #order_review .shop_table td {
	border: none;
	padding: 12px 0;
}

/* --- Shipping methods list --------------------------------------------- */

body.nik-ship-modern #shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.nik-ship-modern #shipping_method li {
	margin: 0 0 8px;
	padding: 12px 14px;
	border: 1px solid var(--nikco-border);
	border-radius: var(--nikco-radius);
	background: var(--nikco-field-bg);
}

body.nik-ship-modern #shipping_method li label {
	display: inline;
	font-weight: 500;
}

/* --- Payment ------------------------------------------------------------ */

body.nik-ship-modern #payment {
	background: transparent;
	border-radius: var(--nikco-radius);
}

body.nik-ship-modern #payment ul.payment_methods {
	border: none;
	padding: 0;
	margin: 0 0 16px;
}

body.nik-ship-modern #payment ul.payment_methods li {
	margin-bottom: 8px;
	padding: 12px 14px;
	border: 1px solid var(--nikco-border);
	border-radius: var(--nikco-radius);
	background: var(--nikco-field-bg);
	list-style: none;
}

body.nik-ship-modern #payment div.payment_box {
	background: transparent;
	margin-top: 8px;
	padding: 0;
	font-size: 0.85rem;
	color: var(--nikco-muted);
}

body.nik-ship-modern #payment div.payment_box::before {
	display: none;
}

/* --- Primary button ---------------------------------------------------- */

body.nik-ship-modern #place_order,
body.nik-ship-modern .woocommerce-checkout button.button.alt {
	width: 100%;
	padding: 15px 20px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--nikco-accent-text);
	background: var(--nikco-accent);
	border: none;
	border-radius: var(--nikco-radius);
	cursor: pointer;
	transition: filter 0.15s ease;
}

body.nik-ship-modern #place_order:hover,
body.nik-ship-modern .woocommerce-checkout button.button.alt:hover {
	filter: brightness( 1.12 );
	background: var(--nikco-accent);
}

/* --- Coupon / notices --------------------------------------------------- */

body.nik-ship-modern .woocommerce-form-coupon-toggle,
body.nik-ship-modern .woocommerce-info,
body.nik-ship-modern .woocommerce-error,
body.nik-ship-modern .woocommerce-message {
	border-radius: var(--nikco-radius);
}

/* The plugin's own city/branch picker sits directly inside the chosen shipping
   method box — no background fill and no extra frame, just the fields. */
body.nik-ship-modern .nik-ship-picker {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0;
	margin-top: 12px;
	box-shadow: none;
}

/* =======================================================================
   Polish pass: uniform controls + block-style order summary
   ======================================================================= */

/* Every field box shares the same box model so halves line up exactly. */
body.nik-ship-modern .woocommerce-checkout .form-row {
	box-sizing: border-box;
}

/* Consistent control height/typography across inputs, selects, textarea. */
body.nik-ship-modern .woocommerce-checkout .form-row input.input-text,
body.nik-ship-modern .woocommerce-checkout .form-row select,
body.nik-ship-modern .woocommerce-checkout .form-row textarea {
	font-family: inherit;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--nikco-text);
}

body.nik-ship-modern .woocommerce-checkout .form-row input.input-text::placeholder,
body.nik-ship-modern .woocommerce-checkout .form-row textarea::placeholder {
	color: var(--nikco-muted);
	opacity: 0.7;
}

/* Radios & checkboxes: uniform size, aligned with their labels. */
body.nik-ship-modern .woocommerce-checkout input[type="radio"],
body.nik-ship-modern #nik-ship-left-extra input[type="radio"],
body.nik-ship-modern .woocommerce-checkout input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0 10px 0 0;
	vertical-align: middle;
	accent-color: var(--nikco-accent);
	flex: 0 0 auto;
}

/* Shipping method + payment rows: one consistent card, label centred. */
body.nik-ship-modern #shipping_method li,
body.nik-ship-modern #payment ul.payment_methods li {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin: 0 0 10px;
	padding: 14px 16px;
	min-height: 22px;
	font-size: 0.98rem;
}

body.nik-ship-modern #shipping_method li label,
body.nik-ship-modern #payment ul.payment_methods li label {
	display: inline-flex;
	align-items: center;
	margin: 0;
	font-weight: 500;
	cursor: pointer;
}

/* The picker / payment description sits full width under the label. */
body.nik-ship-modern #shipping_method li .nik-ship-picker,
body.nik-ship-modern #payment div.payment_box {
	flex: 0 0 100%;
	margin-top: 12px;
}

body.nik-ship-modern #payment ul.payment_methods li img {
	margin-left: auto;
}

/* "Ship to a different address" and order-notes toggle: tidy rows. */
body.nik-ship-modern .woocommerce-checkout #ship-to-different-address label,
body.nik-ship-modern .woocommerce-checkout .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: center;
	font-weight: 500;
	font-size: 0.95rem;
}

body.nik-ship-modern #ship-to-different-address {
	margin: 4px 0 18px;
}

/* --- Block-style order summary ----------------------------------------- */

body.nik-ship-modern #order_review .shop_table,
body.nik-ship-modern #order_review .shop_table tbody,
body.nik-ship-modern #order_review .shop_table tfoot,
body.nik-ship-modern #order_review .shop_table tr,
body.nik-ship-modern #order_review .shop_table td,
body.nik-ship-modern #order_review .shop_table th {
	display: block;
	width: auto;
}

body.nik-ship-modern #order_review .shop_table thead {
	display: none;
}

/* Product rows. */
body.nik-ship-modern #order_review tr.cart_item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--nikco-border);
}

body.nik-ship-modern #order_review tr.cart_item td {
	padding: 0;
	border: none;
}

body.nik-ship-modern #order_review td.product-name {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	gap: 14px;
}

body.nik-ship-modern #order_review td.product-total {
	flex: 0 0 auto;
	text-align: right;
	font-weight: 600;
	white-space: nowrap;
}

body.nik-ship-modern .nik-ship-sum-media {
	position: relative;
	flex: 0 0 auto;
	display: block;
}

body.nik-ship-modern .nik-ship-sum-media .nik-ship-sum-thumb,
body.nik-ship-modern .nik-ship-sum-media img {
	width: 54px;
	height: 54px;
	object-fit: cover;
	border-radius: var(--nikco-radius);
	border: 1px solid var(--nikco-border);
	display: block;
	margin: 0;
}

body.nik-ship-modern .nik-ship-sum-qty {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	box-sizing: border-box;
	border-radius: 10px;
	background: var(--nikco-accent);
	color: var(--nikco-accent-text);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 20px;
	text-align: center;
}

body.nik-ship-modern .nik-ship-sum-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

body.nik-ship-modern .nik-ship-sum-name {
	font-weight: 600;
	line-height: 1.3;
	color: var(--nikco-text);
}

body.nik-ship-modern .nik-ship-sum-price {
	font-size: 0.9rem;
	color: var(--nikco-text);
}

body.nik-ship-modern .nik-ship-sum-price del {
	color: var(--nikco-muted);
	margin-right: 6px;
}

body.nik-ship-modern .nik-ship-sum-price ins {
	text-decoration: none;
	font-weight: 600;
}

body.nik-ship-modern .nik-ship-sum-attrs,
body.nik-ship-modern .nik-ship-sum-attrs dl,
body.nik-ship-modern .nik-ship-sum-attrs p {
	margin: 0;
	font-size: 0.82rem;
	color: var(--nikco-muted);
	line-height: 1.4;
}

body.nik-ship-modern .nik-ship-sum-attrs dt {
	font-weight: 600;
	display: inline;
	margin: 0 4px 0 0;
}

body.nik-ship-modern .nik-ship-sum-attrs dd {
	display: inline;
	margin: 0;
}

/* Totals rows (subtotal, discount, total) — no dividers between them; the only
   line in the summary is the one under the product list. */
body.nik-ship-modern #order_review tr.cart-subtotal,
body.nik-ship-modern #order_review tr.cart-discount,
body.nik-ship-modern #order_review tr.order-total,
body.nik-ship-modern #order_review tr.fee {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 6px 0;
	border: none;
}

body.nik-ship-modern #order_review tr.order-total {
	padding-top: 12px;
	margin-top: 2px;
	font-size: 1.15rem;
}

body.nik-ship-modern #order_review tr.order-total th,
body.nik-ship-modern #order_review tr.order-total td {
	font-weight: 700;
}

body.nik-ship-modern #order_review tr.cart-subtotal th,
body.nik-ship-modern #order_review tr.cart-discount th {
	font-weight: 500;
	color: var(--nikco-muted);
}

body.nik-ship-modern #order_review tr.cart-discount td {
	color: #1a7f37;
}

/* Coupon relocated into the summary — a plain "Add a coupon" line, no box. It
   sits between the subtotal and the grand total, so no divider above it (the
   grand total below carries the only separating line). */
body.nik-ship-modern .nik-ship-coupon-holder {
	margin: 10px 0 0;
	padding: 0;
	border: none;
}

body.nik-ship-modern .nik-ship-coupon-holder .woocommerce-form-coupon-toggle {
	margin: 0;
}

/* The toggle notice — classic (.woocommerce-info) or the newer block notice
   banner (.wc-block-components-notice-banner) — becomes a plain muted line. */
body.nik-ship-modern .nik-ship-coupon-holder .woocommerce-info,
body.nik-ship-modern .nik-ship-coupon-holder .wc-block-components-notice-banner {
	background: transparent;
	border: none;
	box-shadow: none;
	color: var(--nikco-muted);
	padding: 0;
	margin: 0;
	min-height: 0;
	font-size: 0.9rem;
	align-items: center;
}

/* Drop the info "ℹ" marker (classic ::before or the block-notice SVG). */
body.nik-ship-modern .nik-ship-coupon-holder .woocommerce-info::before,
body.nik-ship-modern .nik-ship-coupon-holder .wc-block-components-notice-banner > svg,
body.nik-ship-modern .nik-ship-coupon-holder .wc-block-components-notice-banner svg {
	display: none;
}

body.nik-ship-modern .nik-ship-coupon-holder .woocommerce-info a,
body.nik-ship-modern .nik-ship-coupon-holder .wc-block-components-notice-banner a {
	color: var(--nikco-accent);
}

body.nik-ship-modern .nik-ship-coupon-holder .wc-block-components-notice-banner__content {
	margin: 0;
}

/* The revealed coupon form: field and button each full width, stacked. */
body.nik-ship-modern .nik-ship-coupon-holder form.checkout_coupon {
	margin: 12px 0 0;
	padding: 0;
	border: none;
	background: transparent;
}

body.nik-ship-modern .nik-ship-coupon-holder form.checkout_coupon .form-row-first,
body.nik-ship-modern .nik-ship-coupon-holder form.checkout_coupon .form-row-last {
	float: none;
	width: 100%;
	margin: 0 0 10px;
}

body.nik-ship-modern .nik-ship-coupon-holder form.checkout_coupon .form-row-last {
	margin-bottom: 0;
}

body.nik-ship-modern .nik-ship-coupon-holder form.checkout_coupon button {
	width: 100%;
	padding: 13px 20px;
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--nikco-accent-text);
	background: var(--nikco-accent);
	border: none;
	border-radius: var(--nikco-radius);
	cursor: pointer;
	transition: filter 0.15s ease;
}

body.nik-ship-modern .nik-ship-coupon-holder form.checkout_coupon button:hover {
	filter: brightness( 1.12 );
}

/* Grand total ("Итого") lifted below the coupon — the final amount, set off by
   the single divider line in the totals area. */
body.nik-ship-modern .nik-ship-total-holder {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--nikco-border);
}

body.nik-ship-modern .nik-ship-total-holder tr.order-total {
	padding: 0;
}

/* When postal address fields are hidden, the "ship to a different address"
   toggle and its (now empty) shipping-address block are pointless — hide them. */
body.nik-ship-hide-address .woocommerce-shipping-fields,
body.nik-ship-hide-address #ship-to-different-address,
body.nik-ship-hide-address .shipping_address {
	display: none !important;
}

/* Privacy-policy note under the form: small, muted — the same size as the field
   captions, not body text. */
body.nik-ship-modern .woocommerce-privacy-policy-text,
body.nik-ship-modern .woocommerce-privacy-policy-text p {
	font-size: 0.72rem;
	line-height: 1.5;
	color: var(--nikco-muted);
	margin: 0 0 14px;
}

/* --- City / branch picker fields: match the main boxed fields exactly ------ */

body.nik-ship-modern .nik-ship-field {
	position: relative;
	box-sizing: border-box;
	margin: 0 0 12px;
	padding: 7px 14px 8px;
	border: 1px solid var(--nikco-border);
	border-radius: var(--nikco-radius);
	background: var(--nikco-field-bg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.nik-ship-modern .nik-ship-field:last-child {
	margin-bottom: 0;
}

body.nik-ship-modern .nik-ship-field:focus-within {
	border-color: var(--nikco-accent);
	box-shadow: 0 0 0 3px color-mix( in srgb, var(--nikco-accent) 16%, transparent );
}

body.nik-ship-modern .nik-ship-label {
	display: block;
	margin: 0;
	font-size: 0.72rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--nikco-muted);
	opacity: 1;
}

body.nik-ship-modern .nik-ship-input {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	min-height: 24px;
	border: none;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-family: inherit;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--nikco-text);
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

/* Caret for the picker's <select> fields, same as the main selects. */
body.nik-ship-modern .nik-ship-field:has( select.nik-ship-input )::after {
	content: "";
	position: absolute;
	right: 16px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--nikco-muted);
	border-bottom: 2px solid var(--nikco-muted);
	transform: translateY( -70% ) rotate( 45deg );
	pointer-events: none;
}

body.nik-ship-modern select.nik-ship-input {
	padding-right: 20px;
}

/* Two-up house / flat row keeps the same gap as the main form. */
body.nik-ship-modern .nik-ship-row {
	gap: var(--nikco-gap);
}

/* Autocomplete suggestions align to the field box. */
body.nik-ship-modern .nik-ship-suggest {
	border-color: var(--nikco-border);
	border-radius: var(--nikco-radius);
	margin-top: 6px;
}
/* Some themes (e.g. burum) turn #customer_details into a two-column grid, which
   squeezes the contact fields and order notes to half the column width. Force a
   single full-width column so each block fills its column. */
body.nik-ship-modern #customer_details {
	display: block !important;
}

body.nik-ship-modern #customer_details .woocommerce-billing-fields,
body.nik-ship-modern #customer_details .woocommerce-shipping-fields,
body.nik-ship-modern #customer_details .woocommerce-additional-fields,
body.nik-ship-modern #customer_details .woocommerce-account-fields,
body.nik-ship-modern #customer_details .woocommerce-billing-fields__field-wrapper,
body.nik-ship-modern #customer_details .woocommerce-additional-fields__field-wrapper {
	width: 100%;
	max-width: none;
	float: none;
}
