/* Nersi Store — Checkout */

.woocommerce-checkout .site-content--checkout,
.woocommerce-order-received .site-content--checkout,
.woocommerce-order-received .site-content--thankyou {
	padding-top: clamp(20px, 3vw, 32px);
	padding-bottom: clamp(40px, 5vw, 64px);
}

.woocommerce-checkout .entry-title,
.woocommerce-checkout .entry__title,
.woocommerce-order-received .entry-title,
.woocommerce-order-received .entry__title,
.woocommerce-checkout .woocommerce > h2:first-child {
	display: none;
}

/* ── Header & steps ── */

.ns-checkout-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 20px;
}

.ns-checkout-head__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px 16px 14px;
	text-align: center;
	overflow: hidden;
}

.ns-checkout-head__bg {
	position: absolute;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -58%);
	z-index: 0;
	font-size: clamp(1.8rem, 5vw, 3rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	background: linear-gradient(180deg, rgba(245, 184, 0, 0.18) 0%, rgba(26, 26, 26, 0.04) 72%, transparent 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ns-checkout-head__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	max-width: 640px;
}

.ns-checkout-head__eyebrow {
	display: inline-flex;
	padding: 3px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--ns-brand-soft), rgba(255, 255, 255, 0.95));
	color: var(--ns-brand-deep);
	font-size: 0.72rem;
	font-weight: 800;
	box-shadow: 0 0 0 1px rgba(245, 184, 0, 0.2);
}

.ns-checkout-head__title {
	margin: 0;
}

.ns-checkout-head__title-text {
	position: relative;
	display: inline-block;
	font-size: clamp(1.35rem, 2.8vw, 1.75rem);
	font-weight: 900;
	color: var(--ns-black);
	line-height: 1.35;
}

.ns-checkout-head__title-text strong {
	color: var(--ns-brand-deep);
}

.ns-checkout-head__title-text::before,
.ns-checkout-head__title-text::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 18px;
	height: 3px;
	border-radius: 999px;
	background: var(--af-gradient-brand);
}

.ns-checkout-head__title-text::before {
	inset-inline-end: calc(100% + 10px);
}

.ns-checkout-head__title-text::after {
	inset-inline-start: calc(100% + 10px);
}

.ns-checkout-head__desc {
	display: none;
}

.ns-checkout-steps {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 4px;
	margin-bottom: 18px;
}

.ns-checkout-steps__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--af-border);
	color: var(--af-muted);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

a.ns-checkout-steps__item:hover {
	border-color: rgba(245, 184, 0, 0.35);
	color: var(--af-text);
}

.ns-checkout-steps__item.is-active {
	border-color: rgba(245, 184, 0, 0.45);
	background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
	color: var(--af-text);
	box-shadow: 0 6px 18px rgba(245, 184, 0, 0.12);
}

.ns-checkout-steps__item.is-done {
	color: var(--af-text);
}

.ns-checkout-steps__num {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(26, 26, 26, 0.06);
	font-size: 0.72rem;
	font-weight: 900;
}

.ns-checkout-steps__item.is-active .ns-checkout-steps__num {
	background: linear-gradient(145deg, #ffe566, #f5b800);
	color: #1a1a1a;
}

.ns-checkout-steps__sep {
	width: clamp(20px, 4vw, 40px);
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, transparent, rgba(245, 184, 0, 0.45), transparent);
}

/* ── Layout ── */

.woocommerce-checkout form.checkout {
	margin: 0;
}

.woocommerce-checkout #customer_details.col2-set {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	float: none;
	margin: 0;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	float: none;
	width: 100%;
}

.woocommerce-checkout #order_review_heading {
	display: none;
}

body.ns-checkout-page .woocommerce-billing-fields > h3,
body.ns-checkout-page .woocommerce-additional-fields > h3 {
	display: none;
}

.ns-checkout__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
	gap: clamp(16px, 2.5vw, 24px);
	align-items: start;
}

.ns-checkout__panel {
	padding: clamp(18px, 2.5vw, 24px);
	border-radius: 18px;
	border: 1px solid rgba(26, 26, 26, 0.08);
	background: #fff;
	box-shadow: 0 10px 30px rgba(26, 26, 26, 0.05);
}

.ns-checkout__customer {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.ns-checkout__customer .col-1,
.ns-checkout__customer .col-2 {
	float: none;
	width: auto;
}

.ns-checkout__panel h3 {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--af-border);
	font-size: 1rem;
	font-weight: 900;
	color: var(--af-text);
}

.ns-checkout__panel #ship-to-different-address {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	font-size: 0.88rem;
	font-weight: 700;
}

.ns-checkout__sidebar {
	position: sticky;
	top: 104px;
}

.ns-checkout__summary {
	padding: clamp(18px, 2.5vw, 24px);
	border-radius: 20px;
	border: 1px solid rgba(26, 26, 26, 0.08);
	background: #fff;
	box-shadow: 0 14px 40px rgba(26, 26, 26, 0.07);
}

.ns-checkout__summary-title {
	margin: 0 0 16px;
	font-size: 1.05rem;
	font-weight: 900;
	color: var(--af-text);
}

/* ── Form fields ── */

.woocommerce-checkout .form-row {
	margin-bottom: 14px;
}

.woocommerce-checkout .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.84rem;
	font-weight: 700;
	color: var(--af-text);
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1.5px solid var(--af-border);
	border-radius: 12px;
	background-color: #fafaf9;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--af-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.woocommerce-checkout select {
	appearance: none;
	padding-inline-end: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c5c5c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 14px center;
	background-size: 16px 16px;
	cursor: pointer;
}

.woocommerce-checkout #billing_state_field select,
.woocommerce-checkout #shipping_state_field select,
.woocommerce-checkout #billing_state,
.woocommerce-checkout #shipping_state {
	width: 100%;
}

.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #shipping_country_field {
	display: none !important;
	margin: 0 !important;
}

.woocommerce-checkout #billing_email_field {
	display: none !important;
}

.woocommerce-checkout .select2-container {
	width: 100% !important;
}

.woocommerce-checkout .select2-container .select2-selection--single {
	min-height: 46px;
	height: auto;
	padding: 8px 14px;
	border: 1.5px solid var(--af-border) !important;
	border-radius: 12px !important;
	background: #fafaf9 !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	color: var(--af-text);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.5;
}

.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
	inset-inline-end: 10px;
}

.woocommerce-checkout .select2-container--default.select2-container--open .select2-selection--single,
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: rgba(245, 184, 0, 0.55) !important;
	box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.1);
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
	outline: none;
	border-color: rgba(245, 184, 0, 0.55);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.1);
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
	float: none;
	width: 100%;
}

@media (min-width: 601px) {
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-additional-fields__field-wrapper {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 14px;
	}

	.woocommerce-checkout .form-row-wide,
	.woocommerce-checkout .form-row.place-order,
	.woocommerce-checkout .create-account,
	.woocommerce-checkout #ship-to-different-address {
		grid-column: 1 / -1;
	}
}

.woocommerce-checkout .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--af-muted);
	cursor: pointer;
}

/* ── Order table ── */

.ns-checkout-table {
	width: 100%;
	border-collapse: collapse;
}

.ns-checkout-table thead {
	display: none;
}

body.ns-checkout-page .ns-checkout-table thead {
	display: table-header-group;
}

body.ns-checkout-page .ns-checkout-table thead th {
	padding: 0 0 10px;
	border: 0;
	border-bottom: 1px solid var(--af-border);
	font-size: 0.76rem;
	font-weight: 800;
	color: var(--af-muted);
}

body.ns-checkout-page .ns-checkout-table thead .product-total {
	text-align: end;
}

.ns-checkout-table tbody tr {
	border-bottom: 1px solid var(--af-border);
}

.ns-checkout-table tbody tr:last-child {
	border-bottom: 0;
}

.ns-checkout-table td {
	padding: 12px 0;
	vertical-align: top;
}

.ns-checkout-table td.product-total {
	white-space: nowrap;
	text-align: end;
	font-weight: 800;
	color: var(--af-text);
}

.ns-checkout-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.ns-checkout-item__thumb {
	flex: 0 0 56px;
	overflow: hidden;
	border-radius: 10px;
	background: #f5f5f4;
	border: 1px solid var(--af-border);
}

.ns-checkout-item__thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
}

.ns-checkout-item__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.ns-checkout-item__title {
	font-size: 0.86rem;
	font-weight: 800;
	line-height: 1.45;
	color: var(--af-text);
}

.ns-checkout-item .product-quantity,
.ns-checkout-item dl {
	margin: 0;
	font-size: 0.76rem;
	font-weight: 600;
	color: var(--af-muted);
}

.ns-checkout-table tfoot th,
.ns-checkout-table tfoot td {
	padding: 10px 0;
	font-size: 0.86rem;
	font-weight: 700;
	border-top: 1px solid var(--af-border);
}

body.ns-checkout-page .ns-checkout-table tfoot tr.woocommerce-shipping-totals,
body.ns-checkout-page .ns-checkout-table tfoot tr.shipping {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

body.ns-checkout-page .ns-checkout-table tfoot tr.woocommerce-shipping-totals td,
body.ns-checkout-page .ns-checkout-table tfoot tr.shipping td {
	text-align: start;
	font-weight: 600;
}

body.ns-checkout-page .ns-checkout-table tfoot .woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.ns-checkout-page .ns-checkout-table tfoot .woocommerce-shipping-methods label {
	display: block;
	padding: 8px 10px;
	border-radius: 10px;
	background: var(--af-cream);
	font-size: 0.84rem;
	font-weight: 800;
	color: var(--ns-black);
}

.ns-checkout-table tfoot th {
	color: var(--af-muted);
	text-align: start;
}

.ns-checkout-table tfoot td {
	text-align: end;
	color: var(--af-text);
}

.ns-checkout-table tr.order-total th,
.ns-checkout-table tr.order-total td {
	padding-top: 14px;
	border-top: 2px solid rgba(245, 184, 0, 0.35);
	font-size: 0.95rem;
	font-weight: 900;
	color: var(--af-text);
}

.ns-checkout-table tr.order-total td .amount {
	color: #c62828;
	font-size: 1.05rem;
}

/* ── Payment ── */

.woocommerce-checkout #payment {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--af-border);
	background: transparent;
}

.woocommerce-checkout #payment ul.payment_methods {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	border: 0;
}

.woocommerce-checkout #payment ul.payment_methods li {
	margin: 0 0 8px;
	padding: 12px 14px;
	border: 1.5px solid var(--af-border);
	border-radius: 12px;
	background: #fafaf9;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.woocommerce-checkout #payment ul.payment_methods li:hover,
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > input:checked + label {
	border-color: rgba(245, 184, 0, 0.4);
}

.woocommerce-checkout #payment ul.payment_methods li input {
	margin-inline-end: 8px;
}

.woocommerce-checkout #payment ul.payment_methods li label {
	display: inline-flex;
	align-items: center;
	font-size: 0.88rem;
	font-weight: 800;
	cursor: pointer;
}

.woocommerce-checkout #payment div.payment_box {
	margin: 10px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--af-border);
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--af-muted);
}

.woocommerce-checkout #payment div.form-row.place-order {
	margin: 0;
	padding: 0;
}

.woocommerce-checkout #place_order {
	width: 100%;
	min-height: 52px;
	padding: 12px 20px !important;
	border-radius: 14px !important;
	background: linear-gradient(145deg, #1a1a1a, #2d2d2d) !important;
	color: #f5b800 !important;
	font-size: 0.95rem !important;
	font-weight: 900 !important;
	box-shadow: 0 10px 28px rgba(26, 26, 26, 0.2) !important;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.woocommerce-checkout #place_order:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 32px rgba(26, 26, 26, 0.28) !important;
}

/* ── Mobile sticky place order CTA ── */
@media (max-width: 991px) {
	body.ns-checkout-page {
		padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
	}

	body.ns-checkout-page #payment div.form-row.place-order {
		position: static;
		margin: 0;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	body.ns-checkout-page #payment .woocommerce-privacy-policy-text {
		display: none !important;
	}

	body.ns-checkout-page #place_order {
		position: fixed;
		inset-inline: 16px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		z-index: 490;
		width: calc(100% - 32px);
		max-width: 520px;
		margin: 0 auto;
		min-height: 52px !important;
		font-size: 0.98rem !important;
		border-radius: 999px !important;
		box-shadow: 0 -10px 28px rgba(26, 26, 26, 0.12), 0 10px 28px rgba(26, 26, 26, 0.2) !important;
	}
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
	margin-bottom: 12px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--af-muted);
}

/* ── Coupon & notices ── */

.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .checkout_coupon {
	margin-bottom: 16px;
}

.woocommerce-checkout .checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 14px;
	border-radius: 14px;
	border: 1px dashed rgba(245, 184, 0, 0.45);
	background: #fffdf5;
}

.woocommerce-checkout .checkout_coupon .input-text {
	flex: 1 1 180px;
	min-width: 0;
}

.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.woocommerce-order-received .woocommerce-message,
.woocommerce-order-received .woocommerce-info,
.woocommerce-order-received .woocommerce-error {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 12px;
	border: 0;
	font-size: 0.86rem;
	font-weight: 700;
	list-style: none;
}

.woocommerce-checkout .woocommerce-message,
.woocommerce-order-received .woocommerce-message {
	background: rgba(245, 184, 0, 0.14);
	color: var(--ns-brand-deep);
}

.woocommerce-checkout .woocommerce-info,
.woocommerce-order-received .woocommerce-info {
	background: rgba(26, 26, 26, 0.06);
	color: var(--af-text);
}

.woocommerce-checkout .woocommerce-error,
.woocommerce-order-received .woocommerce-error {
	background: rgba(198, 40, 40, 0.1);
	color: #b71c1c;
}

/* ── Thank you ── */

.ns-thankyou {
	max-width: min(100%, 920px);
	margin-inline: auto;
}

.ns-thankyou-hero {
	margin-bottom: clamp(18px, 3vw, 26px);
	padding: clamp(22px, 4vw, 32px) clamp(18px, 3vw, 28px);
	border-radius: 20px;
	background: linear-gradient(135deg, #fffbeb 0%, rgba(245, 184, 0, 0.1) 100%);
	border: 1px solid rgba(245, 184, 0, 0.28);
	box-shadow: 0 14px 36px rgba(26, 26, 26, 0.05);
}

.ns-thankyou-hero--failed {
	background: linear-gradient(135deg, #fff5f5 0%, rgba(198, 40, 40, 0.08) 100%);
	border-color: rgba(198, 40, 40, 0.22);
}

.ns-thankyou-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.ns-thankyou-hero__icon {
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: linear-gradient(145deg, #ffe566, #f5b800);
	color: #1a1a1a;
	box-shadow: 0 10px 24px rgba(245, 184, 0, 0.35);
}

.ns-thankyou-hero--failed .ns-thankyou-hero__icon {
	background: linear-gradient(145deg, #ffcdd2, #ef5350);
	color: #fff;
	box-shadow: 0 10px 24px rgba(198, 40, 40, 0.25);
}

.ns-thankyou-hero__icon svg {
	width: 32px;
	height: 32px;
}

.ns-thankyou-hero__icon span {
	font-size: 1.75rem;
	font-weight: 900;
	line-height: 1;
}

.ns-thankyou-hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	max-width: 520px;
}

.ns-thankyou-hero__eyebrow {
	display: inline-flex;
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--ns-brand-deep);
	font-size: 0.72rem;
	font-weight: 800;
	box-shadow: 0 0 0 1px rgba(245, 184, 0, 0.2);
}

.ns-thankyou-hero__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.8vw, 1.85rem);
	font-weight: 900;
	color: var(--af-text);
}

.ns-thankyou-hero__desc {
	margin: 0;
	color: var(--af-muted);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.7;
}

.ns-thankyou-hero__stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	max-width: 420px;
}

.ns-thankyou-hero__stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid var(--af-border);
	background: #fff;
}

.ns-thankyou-hero__stat--total {
	background: var(--af-cream);
	border-color: rgba(245, 184, 0, 0.35);
}

.ns-thankyou-hero__stat-num {
	font-size: 1.15rem;
	font-weight: 900;
	color: var(--ns-brand-deep);
}

.ns-thankyou-hero__stat-num--price {
	font-size: 0.95rem;
}

.ns-thankyou-hero__stat-label {
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--af-muted);
}

.ns-checkout-thankyou__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
	padding: 28px 20px;
	border-radius: 18px;
	background: linear-gradient(135deg, #fffbeb 0%, rgba(245, 184, 0, 0.12) 100%);
	border: 1px solid rgba(245, 184, 0, 0.28);
	text-align: center;
}

.ns-checkout-thankyou__icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: linear-gradient(145deg, #ffe566, #f5b800);
	color: #1a1a1a;
	box-shadow: 0 10px 24px rgba(245, 184, 0, 0.35);
}

.ns-checkout-thankyou__icon svg {
	width: 30px;
	height: 30px;
}

.ns-checkout-thankyou__success .woocommerce-thankyou-order-received {
	margin: 0;
	padding: 0;
	background: transparent;
	color: var(--af-text);
	font-size: 1rem;
	font-weight: 800;
}

.ns-checkout-thankyou__details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.ns-checkout-thankyou__details li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	border-radius: 14px;
	border: 1px solid var(--af-border);
	background: #fff;
	box-shadow: 0 8px 22px rgba(26, 26, 26, 0.04);
}

.ns-checkout-thankyou__detail-label {
	color: var(--af-muted);
	font-size: 0.76rem;
	font-weight: 700;
}

.ns-checkout-thankyou__details strong {
	font-size: 0.95rem;
	font-weight: 900;
	color: var(--af-text);
}

.ns-thankyou-details {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 4px;
}

.ns-thankyou-details .ns-thankyou-order {
	padding: clamp(18px, 3vw, 24px);
	border-radius: 18px;
	border: 1px solid var(--af-border);
	background: #fff;
	box-shadow: 0 10px 28px rgba(26, 26, 26, 0.04);
}

.woocommerce-order-details__title {
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--ns-black);
	font-size: 1rem;
	font-weight: 900;
	color: var(--af-text);
}

.ns-thankyou-order__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(240px, 290px);
	gap: clamp(16px, 3vw, 24px);
	align-items: start;
}

.ns-thankyou-order__main {
	min-width: 0;
}

body.ns-thankyou-page .ns-thankyou-table {
	width: 100%;
}

body.ns-thankyou-page .ns-thankyou-table thead {
	display: table-header-group;
}

body.ns-thankyou-page .ns-thankyou-table thead th {
	padding: 0 0 10px;
	border: 0;
	border-bottom: 1px solid var(--af-border);
	font-size: 0.76rem;
	font-weight: 800;
	color: var(--af-muted);
}

body.ns-thankyou-page .ns-thankyou-table thead .product-total {
	text-align: end;
}

body.ns-thankyou-page .ns-thankyou-table tbody tr {
	border-bottom: 1px solid var(--af-border);
}

body.ns-thankyou-page .ns-thankyou-table tbody tr:last-child {
	border-bottom: 0;
}

body.ns-thankyou-page .ns-thankyou-table td.product-total {
	white-space: nowrap;
	text-align: end;
	font-weight: 800;
	color: var(--af-text);
}

body.ns-thankyou-page .ns-thankyou-table tfoot th,
body.ns-thankyou-page .ns-thankyou-table tfoot td {
	padding: 10px 0;
	font-size: 0.86rem;
	font-weight: 700;
	border-top: 1px solid var(--af-border);
}

body.ns-thankyou-page .ns-thankyou-table tfoot th {
	color: var(--af-muted);
	text-align: start;
}

body.ns-thankyou-page .ns-thankyou-table tfoot td {
	text-align: end;
	color: var(--af-text);
}

body.ns-thankyou-page .ns-thankyou-table tr.order_total th,
body.ns-thankyou-page .ns-thankyou-table tr.order_total td {
	padding-top: 14px;
	border-top: 2px solid rgba(245, 184, 0, 0.35);
	font-size: 0.95rem;
	font-weight: 900;
	color: var(--af-text);
}

body.ns-thankyou-page .ns-thankyou-table tr.order_total td .amount {
	color: #c62828;
	font-size: 1.05rem;
}

body.ns-thankyou-page .ns-thankyou-table .order-actions-button {
	margin-inline-end: 8px;
}

.ns-thankyou-order__aside {
	position: sticky;
	top: 104px;
}

.ns-thankyou-order__aside .ns-thankyou-customer {
	margin: 0;
	padding: 16px;
	border-radius: 14px;
	border: 1px solid var(--af-border);
	background: var(--af-cream);
	box-shadow: none;
}

.ns-thankyou-customer .woocommerce-column__title {
	margin: 0 0 10px;
	font-size: 0.88rem;
	font-weight: 900;
	color: var(--af-text);
}

.ns-thankyou-customer .addresses {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0;
}

.ns-thankyou-customer address {
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	font-style: normal;
	font-size: 0.84rem;
	line-height: 1.85;
	color: var(--af-text);
}

.ns-thankyou-customer .woocommerce-customer-details--phone,
.ns-thankyou-customer .woocommerce-customer-details--email {
	margin: 8px 0 0;
	font-weight: 700;
	font-size: 0.84rem;
}

.ns-checkout-thankyou__failed {
	padding: 20px;
	border-radius: 14px;
	background: rgba(198, 40, 40, 0.08);
	border: 1px solid rgba(198, 40, 40, 0.2);
}

.ns-checkout-thankyou__failed .woocommerce-thankyou-order-failed-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 14px 0 0;
}

.ns-checkout-thankyou__failed .button.pay {
	background: linear-gradient(145deg, #ffe566, #f5b800) !important;
	border: 0 !important;
	color: #1a1a1a !important;
	font-weight: 900 !important;
	cursor: pointer;
}

body.ns-thankyou-page .ns-checkout-head {
	margin-bottom: clamp(14px, 2.5vw, 22px);
}

/* ── Responsive ── */

@media (max-width: 960px) {
	.ns-checkout__layout {
		grid-template-columns: 1fr;
	}

	.ns-checkout__sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	body.ns-checkout-page .ns-checkout-head .ns-checkout-steps,
	body.ns-thankyou-page .ns-checkout-head .ns-checkout-steps {
		display: none;
	}

	.ns-checkout-head__title-text::before,
	.ns-checkout-head__title-text::after {
		width: 12px;
	}
}

@media (max-width: 600px) {
	.ns-checkout__panel,
	.ns-checkout__summary {
		padding: 16px;
		border-radius: 16px;
	}

	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-additional-fields__field-wrapper {
		display: block;
	}

	.ns-thankyou-hero__stats {
		grid-template-columns: 1fr;
	}

	.ns-thankyou-order__body {
		grid-template-columns: 1fr;
	}

	.ns-thankyou-order__aside {
		position: static;
	}
}
