/* ---- Page scaffolding ---- */
.woocommerce-checkout .nikwax-checkout {
	max-width: var(--site-width);
	margin: 20px auto 80px;
	padding: 0 20px;
	box-sizing: border-box;
	color: var(--nikwax-blue);
	font-family: var(--brand-font, "Ubuntu"), sans-serif;

	/* Drive WooCommerce's own field styling to the brand blue (its selectors
	   out-specify ours, so override its variables instead of fighting them). */
	--wc-form-border-color: var(--nikwax-blue);
	--wc-form-border-width: 1px;
	--wc-form-border-radius: 3px;
}

.nikwax-checkout__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 56px;
	align-items: start;
}

.nikwax-checkout__main {
	min-width: 0;
}

.nikwax-checkout__aside {
	position: sticky;
	top: 24px;
}

/* ---- Secure Checkout heading ---- */
.nikwax-checkout__title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 50px;
}

.nikwax-checkout__shield {
	color: var(--nikwax-blue);
	width: 60px;
	height: 64px;
	flex-shrink: 0;
	display: inline-flex;
}

.nikwax-checkout__shield svg {
	width: 100%;
	height: 100%;
}

.nikwax-checkout__title h1 {
	margin: 0;
	color: var(--nikwax-blue);
	font-weight: 700;
	font-size: clamp(22px, 3vw, 34px);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.1;
}

/* ---- Express checkout row ---- */
.nikwax-express {
	margin-bottom: 30px;
}

.nikwax-express__title {
	font-weight: 700;
	color: var(--nikwax-blue);
	margin: 0 0 6px;
	font-size: 15px;
}

.nikwax-express__note {
	font-size: 11px;
	line-height: 1.4;
	color: #6b7280;
	margin: 0 0 12px;
	max-width: 420px;
}

.nikwax-express__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nikwax-express__buttons > * {
	height: 40px;
}

/* ---- Section headings / step labels ---- */
.woocommerce-checkout .nikwax-checkout h3 {
	color: var(--nikwax-blue);
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 18px;
}

.woocommerce-checkout #customer_details {
	display: block;
	width: 100%;
	float: none;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	width: 100%;
	max-width: none;
	float: none;
	padding: 0;
}

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

.woocommerce-checkout #payment div.form-row {
	padding-left:0;
	padding-right:0;
}

.woocommerce-checkout .nikwax-checkout .form-row label {
	display: block;
	color: var(--nikwax-blue);
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
}

.woocommerce-checkout .nikwax-checkout .form-row .required {
	color: var(--nikwax-blue);
	text-decoration: none;
}

.woocommerce-checkout .nikwax-checkout .input-text,
.woocommerce-checkout .nikwax-checkout textarea {
	-webkit-appearance: none;
	appearance: none;
}

.woocommerce-checkout .nikwax-checkout .input-text,
.woocommerce-checkout .nikwax-checkout textarea,
.woocommerce-checkout .nikwax-checkout select,
.woocommerce-checkout .nikwax-checkout .select2-container .select2-selection {
	width: 100%;
	box-sizing: border-box;
	min-height: 52px;
	padding: 12px 25px !important;
	border: 1px solid var(--nikwax-blue) !important;
	border-radius: 3px;
	background-color: #fff;
	color: var(--nikwax-blue) !important;
	font-size: 15px;
	font-family: inherit;
	line-height: 1.3;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	width: 100% !important;
	font-weight: 500 !important;
	border-radius: 0 !important;
}

.woocommerce-checkout input::-webkit-input-placeholder,
.woocommerce-checkout textarea::-webkit-input-placeholder {
  font-weight:300 !important;
}

.woocommerce-checkout input:-moz-placeholder,
.woocommerce-checkout textarea:-moz-placeholder {
  font-weight:300 !important;
}

.woocommerce-checkout input::-moz-placeholder,
.woocommerce-checkout textarea::-moz-placeholder {
  font-weight:300 !important;
}

.woocommerce-checkout input:-ms-input-placeholder,
.woocommerce-checkout textarea:-ms-input-placeholder {
  font-weight:300 !important;
}


.woocommerce-checkout .nikwax-checkout textarea {
	min-height: 90px;
	resize: vertical;
}

.woocommerce-checkout .nikwax-checkout .input-text::placeholder,
.woocommerce-checkout .nikwax-checkout textarea::placeholder {
	color: var(--nikwax-blue);
	opacity: 0.85;
	font-weight: 600;
}

.woocommerce-checkout .nikwax-checkout .input-text:focus,
.woocommerce-checkout .nikwax-checkout textarea:focus,
.woocommerce-checkout .nikwax-checkout select:focus {
	outline: none;
	border-color: var(--nikwax-blue);
	box-shadow: 0 0 0 3px rgba(24, 65, 131, 0.15);
}

/* Select2 (country) parity with plain inputs */
.woocommerce-checkout .nikwax-checkout .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
}
.woocommerce-checkout .nikwax-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 1.3;
	color: var(--nikwax-blue);
	padding: 0;
}
.woocommerce-checkout .nikwax-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
}

/* "Deliver to a different address" toggle row */
.woocommerce-checkout .nikwax-checkout #ship-to-different-address {
	font-size: 14px;
	font-weight: 400;
	color: var(--nikwax-blue);
	margin: 20px 0;
	border: 1px solid var(--nikwax-blue);
	padding: 12px 25px;
}
.woocommerce-checkout .nikwax-checkout #ship-to-different-address label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
}

.woocommerce-checkout .nikwax-checkout .form-row[id*="marketing"] {
	padding:0 25px;
	margin: 0;
}

.woocommerce-checkout .nikwax-checkout .form-row[id*="marketing"] input {
	margin-right:10px;
}

.woocommerce-checkout .nikwax-checkout .shipping_address {
	border: 1px solid var(--nikwax-blue);
	padding: 20px;
	margin-top: 10px;
	margin-bottom: 20px;
}

/* Checkboxes */
#dotdigital_woocommerce_marketing_checkbox_field label,
#kl_newsletter_checkbox_field label,
.form-row.create-account label {
	font-size: 14px !important;
	font-weight: 400 !important;
    line-height: 20px !important;
}

#kl_newsletter_checkbox_field label,
.form-row.create-account label {
    display: flex;
    align-items: center;
    padding: 0 25px;
}

#kl_newsletter_checkbox_field input,
.form-row.create-account input {
    margin-right: 10px !important;

}

.woocommerce-checkout .nikwax-checkout .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	font-weight: 400;
	color: var(--nikwax-blue);
	line-height: 1.4;
}
.woocommerce-checkout .nikwax-checkout input[type="checkbox"] {
	width: 25px;
	height: 25px;
	margin: 1px 0 0;
	flex-shrink: 0;
	cursor: pointer;
	position: relative;
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid var(--nikwax-blue);
	border-radius: 0;
	background-color: #fff;
	display: inline-block;
}
.woocommerce-checkout .nikwax-checkout input[type="checkbox"]:checked {
	background-color: var(--nikwax-blue);
	border-color: var(--nikwax-blue);
}
.woocommerce-checkout .nikwax-checkout input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	opacity: 0;
}

/* ============================================================
   Step accordion (Sign in / Shipping & Delivery / Payment)
   ============================================================ */
.nikwax-steps {
	margin-top: 6px;
	max-width: 800px;
}

.nikwax-step {
	/* border-bottom: 1px solid #d8dde6; */
	padding: 18px 0;
}
.nikwax-step:first-child { padding-top: 0; }

/* Header row */
.nikwax-step__head {
	display: flex;
	align-items: center;
	gap: 14px;
	cursor: default;
}
.nikwax-step[data-state="done"] .nikwax-step__head { cursor: pointer; }
.nikwax-step[data-locked] .nikwax-step__head { cursor: default; }

.nikwax-step__num {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #c3cad6;      /* pending */
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.15s ease;
}

.nikwax-step[data-state="done"] .nikwax-step__head {
	border-bottom:1px solid #000;
	padding:10px 0;
}

.nikwax-step[data-state="active"] .nikwax-step__num { background: var(--nikwax-blue); }
.nikwax-step[data-state="done"] .nikwax-step__num   { background: var(--nikwax-green); }

.nikwax-step__title {
	font-size: 18px;
	font-weight: 700;
	color: #9aa3b2;           /* pending */
}
.nikwax-step[data-state="active"] .nikwax-step__title  {color: var(--nikwax-blue);}

.nikwax-step[data-state="done"] .nikwax-step__title {color: var(--nikwax-green);}


.nikwax-step__actions {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
.nikwax-step__edit {
	font-size: 14px;
	font-weight: 600;
	color: var(--nikwax-blue);
	text-decoration: underline;
	display: none;
}
.nikwax-step__check {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--nikwax-green);
	color: #fff;
	display: none;
	align-items: center;
	justify-content: center;
}
.nikwax-step__check svg { width: 14px; height: 14px; }

.nikwax-step[data-state="done"] .nikwax-step__edit  { display: inline; }
.nikwax-step[data-state="done"] .nikwax-step__check { display: inline-flex; }

/* Body panel + collapsed summary */
.nikwax-step__panel {
	display: none;
	padding: 20px 0 5px 0;
}
.nikwax-step[data-state="active"] .nikwax-step__panel { display: block; }

.nikwax-step__summary {
	display: none;
	padding: 10px 0 0 42px;
	color: var(--nikwax-blue);
	font-size: 14px;
	line-height: 1.55;
}
.nikwax-step[data-state="done"] .nikwax-step__summary:not(:empty) { display: block; }

.nikwax-signin__note { margin: 0; color: var(--nikwax-blue); }

/* ---- Guest sign-in radio cards ---- */
.nikwax-signin {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 600px;
}
.nikwax-signin__card {
	border: 1px solid #d3d9e2;
	border-radius: 3px;
	padding: 16px 20px;
	transition: border-color 0.15s ease;
}
.nikwax-signin__card.is-open {
	border-color: var(--nikwax-blue);
}
.nikwax-signin__radio {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: var(--nikwax-blue);
	cursor: pointer;
}
.nikwax-signin__radio input[type="radio"] {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--nikwax-green);
	flex-shrink: 0;
}
.nikwax-signin__body {
	display: none;
	padding-top: 16px;
}
.nikwax-signin__card.is-open .nikwax-signin__body {
	display: block;
}
.woocommerce-checkout .nikwax-checkout .nikwax-signin__body .form-row {
	margin-bottom: 12px;
}
.nikwax-signin__forgot {
	display: inline-block;
	font-size: 13px;
	color: var(--nikwax-blue);
	text-decoration: underline;
	margin: 2px 0 14px;
}
.nikwax-signin__newsletter {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--nikwax-blue);
	margin: 4px 0 16px;
	cursor: pointer;
}
.nikwax-signin__newsletter input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--nikwax-blue);
	margin: 0;
}
/* Sign-in card buttons are the green/arrow primary style (via .button.alt) */
.woocommerce-checkout .nikwax-checkout .nikwax-signin__btn {
	margin-top: 4px;
}

/* "Continue" buttons inside a step share the primary green style but shouldn't
   be full-width like Pay Now */
.woocommerce-checkout .nikwax-checkout .nikwax-step__next {
	width: auto;
	min-width: 240px;
	margin-top: 18px;
}

@media screen and (max-width: 600px) {
	.nikwax-step__panel,
	.nikwax-step__summary { padding-left: 0; }
	.woocommerce-page form .form-row-first, .woocommerce-page form .form-row-last { width:100%; }
	.nikwax-checkout__shield {;width: 40px;height: 44px;}
	
}

/* ============================================================
   Your Order panel
   ============================================================ */
.nikwax-order {
	border: 1px solid var(--nikwax-blue);
	background: #fff;
	overflow: hidden;
}

.nikwax-order__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: var(--nikwax-blue);
	color: #fff;
	padding: 18px 20px;
}
.nikwax-order__head h2 {
	margin: 0;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.nikwax-order__icon {
	width: 26px;
	height: 26px;
	display: inline-flex;
	color: #fff;
}
.nikwax-order__icon svg { width: 100%; height: 100%; }

/* Product + totals table */
.nikwax-order .shop_table {
	width: 100% !important;
	border: 0 !important;
	margin: 0 !important;
	border-collapse: collapse !important;
	background: transparent;
}
.nikwax-order .shop_table th,
.nikwax-order .shop_table td {
	border: 0;
	padding: 0;
}

/* Product rows (white area) */
.nikwax-order .shop_table tbody { display: block; padding: 20px; }
.nikwax-order .shop_table tbody tr.cart_item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 4px 0;
}

.nikwax-order .shop_table tbody tr.cart_item td {
	border: 0;
}

.nikwax-order .shop_table tbody .product-name {
	width: 96px;
	flex-shrink: 0;
}
.nikwax-order .shop_table tbody .product-name img {
	width: 100%;
	height: auto;
	display: block;
}
.nikwax-order .shop_table tbody .product-total {
	flex: 1;
	text-align: left;
	color: var(--nikwax-blue);
	font-size: 14px;
}
.nikwax-order .order-product__title {
	font-weight: 700;
	color: var(--nikwax-blue);
	margin: 0 0 6px;
	font-size: 15px;
}
.nikwax-order .product-attrs__order_table {
	font-size: 13px;
	color: var(--nikwax-blue);
}
.nikwax-order .product-attrs__order_table .product-quantity { font-weight: 700; display: block; margin-bottom: 2px; }
.nikwax-order .product-attribute { margin: 0 0 2px; }
.nikwax-order .product-total .woocommerce-Price-amount { display: block; margin-top: 6px; font-weight: 700; }

/* Totals (blue area) */
.nikwax-order .shop_table tfoot {
	display: block;
	background: var(--nikwax-blue);
	color: #fff;
	padding: 8px 20px 0;
}
.nikwax-order .shop_table tfoot tr {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.nikwax-order .shop_table tfoot tr:last-child {border-bottom: 0;border-top: 1px solid rgba(255, 255, 255, 1);}
.nikwax-order .shop_table tfoot th,
.nikwax-order .shop_table tfoot td {
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	text-align: right;
	border-top: unset !important;
}
.nikwax-order .shop_table tfoot th { font-weight: 400; text-align: left; border-top: unset !important; }
.nikwax-order .shop_table tfoot .order-total th,
.nikwax-order .shop_table tfoot .order-total td {
	font-weight: 700;
	font-size: 15px;
}
.nikwax-order .shop_table tfoot .order-total .woocommerce-Price-amount { font-weight: 700; }
.nikwax-order .shop_table tfoot small { font-weight: 400; font-size: 11px; }

/* Secure badge */
.nikwax-order__secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px;
	padding-bottom: 25px;
	font-size: 12px;
	font-weight: 600;
	background: var(--nikwax-blue);
	color: #fff;
}
.nikwax-order__secure-icon {
	width: 16px;
	height: 16px;
	display: inline-flex;
	color: var(--nikwax-blue);
}
.nikwax-order__secure-icon svg { width: 100%; height: 100%; }

span.nikwax-order__secure-icon path:nth-of-type(1) {
    fill: #fff !important;
}

span.nikwax-order__secure-icon path:nth-of-type(2) {
    fill: var(--nikwax-blue) !important;
}

/* ============================================================
   Payment (moved into the left column)
   ============================================================ */
.nikwax-checkout__payment-slot:empty { display: none; }

.woocommerce-checkout .nikwax-checkout #payment {
	background: transparent;
	border-radius: 0;
	margin-top: 4px;
}

/* Payment method list — each method as a bordered, selectable card */
.woocommerce-checkout .nikwax-checkout #payment .payment_methods {
	list-style: none;
	border: 0;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.woocommerce-checkout .nikwax-checkout #payment .wc_payment_method {
	border: 1px solid #d3d9e2;
	border-radius: 3px;
	padding: 16px 18px;
	background: #fff;
}
.woocommerce-checkout .nikwax-checkout #payment .wc_payment_method > label {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	color: var(--nikwax-blue);
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.woocommerce-checkout .nikwax-checkout #payment .wc_payment_method > label img {
	max-height: 28px;
	width: auto;
	margin: 0 0 0 auto;
	display: inline-block;
}
.woocommerce-checkout .nikwax-checkout #payment input.input-radio,
.woocommerce-checkout .nikwax-checkout #payment input[type="radio"] {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--nikwax-green);
	flex-shrink: 0;
}
.woocommerce-checkout .nikwax-checkout #payment .payment_box {
	position: relative;
	margin: 14px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid #eceff3;
	background: transparent;
	color: var(--nikwax-blue);
	font-size: 13px;
	line-height: 1.5;
}
.woocommerce-checkout .nikwax-checkout #payment .payment_box::before {
	display: none; /* remove the default speech-bubble arrow */
}
.woocommerce-checkout .nikwax-checkout #payment .payment_box p { margin: 0; }

/* Card brand icons + gift-card block (appear once a card gateway is active) */
.woocommerce-checkout .nikwax-checkout #payment .wc-credit-card-form-card-icons,
.woocommerce-checkout .nikwax-checkout #payment .payment-brand-icons img {
	max-height: 24px;
	width: auto;
}

.woocommerce-checkout .nikwax-checkout #payment .wc-no-payment-methods-notice,
.woocommerce-checkout .nikwax-checkout .woocommerce-info {
	border-top-color: var(--nikwax-blue);
	background: #f6f6f6;
}

/* Place order / primary buttons — green with a yellow arrow */
.woocommerce-checkout .nikwax-checkout #place_order,
.woocommerce-checkout .nikwax-checkout button.button.alt,
.woocommerce-checkout .nikwax-checkout .button.alt {
	position: relative;
	display: block;
	width: 100%;
	background: var(--nikwax-green);
	color: #fff;
	border: 0;
	border-radius: 3px;
	padding: 18px 48px 18px 24px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	text-transform: none;
	cursor: pointer;
	transition: background 0.15s ease;
}
.woocommerce-checkout .nikwax-checkout #place_order:hover,
.woocommerce-checkout .nikwax-checkout button.button.alt:hover {
	background: #006b34;
}
.woocommerce-checkout .nikwax-checkout #place_order::after,
.woocommerce-checkout .nikwax-checkout button.button.alt::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 12px solid var(--golden-yellow);
}

.woocommerce-checkout span.woocommerce-terms-and-conditions-checkbox-text {
    font-weight: 400;
    padding: 0 0 0 10px;
}

.woocommerce-checkout span.woocommerce-terms-and-conditions-checkbox-text a {
    text-decoration: underline;
    color: inherit;
}

/* Terms row */
.woocommerce-checkout .nikwax-checkout .woocommerce-terms-and-conditions-wrapper {
	margin: 18px 0;
	font-size: 13px;
}

/* ---- Coupon form (kept minimal / tidy) ---- */
.woocommerce-checkout .checkout_coupon.woocommerce-form-coupon {
	max-width: var(--site-width);
	margin: 20px auto 0;
	padding: 20px;
	border: 1px solid var(--nikwax-blue);
	border-radius: 3px;
}

.woocommerce-checkout #order_comments_field label {
	display: none;
}


/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 1000px) {
	.nikwax-checkout__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.nikwax-checkout__aside {
		position: static;
		order: -1; /* summary first on mobile */
	}
	.nikwax-steps {max-width:100%;}
	.woocommerce-checkout .nikwax-checkout {padding-left:0;padding-right:0;}
}
