/**
 * Checkout styles (scoped): Shopify-like clean cards, two-column layout, sticky summary.
 * Uses CSS variables injected inline.
 */

/* Prevent horizontal overflow on mobile */
html, body {
	overflow-x: hidden !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.woocommerce-checkout.msc-checkout-active,
body.woocommerce-cart.msc-checkout-active {
	overflow-x: hidden !important;
	width: 100% !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-checkout-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 18px 16px 40px;
	font-size: var(--msc-base);
	color: #111827;
	overflow-x: hidden !important;
	box-sizing: border-box !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-checkout-wrap,
body.woocommerce-checkout.msc-checkout-active form.checkout,
body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid {
	overflow-x: hidden !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-checkout-wrap::-webkit-scrollbar,
body.woocommerce-checkout.msc-checkout-active form.checkout::-webkit-scrollbar,
body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid::-webkit-scrollbar {
	display: none !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid {
	width: 100% !important;
	clear: both !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid:before,
body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid:after {
	content: "";
	display: table;
}

body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid:after {
	clear: both;
}

body.woocommerce-checkout.msc-checkout-active .msc-left,
body.woocommerce-checkout.msc-checkout-active .msc-right {
	float: none !important;
	clear: none !important;
	width: auto !important;
	max-width: 100% !important;
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-checkout-wrap {
		padding: 8px 8px 10px;
	}
}

body.woocommerce-checkout.msc-checkout-active form.checkout {
	width: 100%;
	max-width: 100%;
}

body.woocommerce-checkout.msc-checkout-active form.checkout {
	padding-top: 0 !important;
}

body.woocommerce-checkout.msc-checkout-active .col2-set {
	float: none !important;
	width: auto !important;
	padding-right: 0 !important;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-checkout-review-order {
	float: none !important;
	width: auto !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-right,
body.woocommerce-checkout.msc-checkout-active .msc-summary {
	margin-top: 0 !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-left,
body.woocommerce-checkout.msc-checkout-active .msc-right {
	min-width: 0;
}

body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid {
	display: grid !important;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) !important;
	gap: 18px !important;
	align-items: start !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid > .msc-left,
body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid > .msc-right {
	display: block !important;
	flex: initial !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-left {
	grid-column: 1;
}

body.woocommerce-checkout.msc-checkout-active .msc-right {
	grid-column: 2;
}

body.woocommerce-checkout.msc-checkout-active .msc-payment-right {
	width: 100%;
	max-width: 100%;
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid {
		grid-template-columns: 1fr !important;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-left,
	body.woocommerce-checkout.msc-checkout-active .msc-right {
		grid-column: auto;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-card {
	background: var(--msc-card);
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: var(--msc-radius);
	padding: 16px;
	box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
}

body.woocommerce-checkout.msc-checkout-active .msc-section-sep {
	height: 1px;
	background: rgba(17, 24, 39, 0.08);
	margin: 14px 0;
}

body.woocommerce-checkout.msc-checkout-active .msc-section-sep.msc-payment-sep {
	display: block !important;
	margin-top: 24px !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-payment-title {
	margin-top: 0 !important;
	margin-bottom: 16px !important;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}

.woocommerce-checkout .msc-card + .msc-card {
	margin-top: 14px;
}

body.woocommerce-checkout.msc-checkout-active .msc-card-title {
	margin: 0 0 12px;
	font-weight: var(--msc-font-heading, 700);
	font-size: 16px;
	position: relative;
}

/* Remove any unwanted icons or boxes next to card titles or in summary area */
body.woocommerce-checkout.msc-checkout-active .msc-card-title::before,
body.woocommerce-checkout.msc-checkout-active .msc-card-title::after,
body.woocommerce-checkout.msc-checkout-active .msc-card-title i,
body.woocommerce-checkout.msc-checkout-active .msc-card-title svg,
body.woocommerce-checkout.msc-checkout-active .msc-card-title input[type="checkbox"],
body.woocommerce-checkout.msc-checkout-active .msc-summary .in-sozlesme-onay-checkboxes,
body.woocommerce-checkout.msc-checkout-active .msc-summary [name="contract_combined_checkbox"],
body.woocommerce-checkout.msc-checkout-active .msc-summary .in-sozlesme-onay-checkbox,
body.woocommerce-checkout.msc-checkout-active .msc-summary .form-row.in-sozlesme-onay-checkbox {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	position: absolute !important;
	pointer-events: none !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-login-row {
	font-size: 13px;
	background: rgba(23, 115, 176, 0.07);
	border: 1px solid rgba(23, 115, 176, 0.18);
	padding: 10px 12px;
	border-radius: var(--msc-radius);
	margin-bottom: 14px;
}

.woocommerce-checkout .msc-login-row a {
	color: var(--msc-primary);
	text-decoration: none;
	font-weight: 600;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout.msc-checkout-active .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout.msc-checkout-active .woocommerce-additional-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-billing-fields__field-wrapper {
	border: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}

/* Force İlçe, Fatura tipi, Telefon and all select fields to full width */
body.woocommerce-checkout.msc-checkout-active .msc-left .form-row select,
body.woocommerce-checkout.msc-checkout-active .msc-left .form-row select + .select2-container,
body.woocommerce-checkout.msc-checkout-active .msc-left .form-row select + .select2-container .select2-selection,
body.woocommerce-checkout.msc-checkout-active .msc-left .form-row select + .select2-container--default,
body.woocommerce-checkout.msc-checkout-active .msc-field select,
body.woocommerce-checkout.msc-checkout-active .msc-field select + .select2-container,
body.woocommerce-checkout.msc-checkout-active .msc-field select + .select2-container .select2-selection {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

body.woocommerce-checkout.msc-checkout-active .form-row select + .select2-container {
	display: block !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-field.msc-col-12 select + .select2-container,
body.woocommerce-checkout.msc-checkout-active .msc-field.msc-col-12 select {
	width: 100% !important;
}

/* Force specific fields by ID to full width */
body.woocommerce-checkout.msc-checkout-active #billing_district_field select + .select2-container,
body.woocommerce-checkout.msc-checkout-active #billing_district_field select,
body.woocommerce-checkout.msc-checkout-active #billing_neighborhood_field select + .select2-container,
body.woocommerce-checkout.msc-checkout-active #billing_neighborhood_field select,
body.woocommerce-checkout.msc-checkout-active [id*="district"] select + .select2-container,
body.woocommerce-checkout.msc-checkout-active [id*="district"] select,
body.woocommerce-checkout.msc-checkout-active [id*="invoice"] select + .select2-container,
body.woocommerce-checkout.msc-checkout-active [id*="invoice"] select,
body.woocommerce-checkout.msc-checkout-active [id*="fatura"] select + .select2-container,
body.woocommerce-checkout.msc-checkout-active [id*="fatura"] select {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Prevent horizontal overflow on mobile */
body.woocommerce-checkout.msc-checkout-active,
body.woocommerce-cart.msc-checkout-active {
	overflow-x: hidden !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-checkout-wrap,
body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid,
body.woocommerce-checkout.msc-checkout-active .msc-left,
body.woocommerce-checkout.msc-checkout-active .msc-right {
	max-width: 100%;
	overflow-x: hidden;
}

/* Hide Siparişi Tamamla on cart page */
body.woocommerce-cart.msc-checkout-active .msc-mobile-bar,
body.woocommerce-cart.msc-checkout-active .msc-mobile-bottom-place-order,
body.woocommerce-cart.msc-checkout-active .msc-end-place-order,
body.woocommerce-cart.msc-checkout-active .msc-page-end-actions {
	display: none !important;
}

.woocommerce-checkout .msc-field.msc-col-6,
.woocommerce-checkout .msc-field.msc-col-12 {
	padding-right: 0;
}

.woocommerce-checkout .msc-field.msc-col-6 {
	flex: 0 0 calc(50% - 6px);
	max-width: calc(50% - 6px);
	box-sizing: border-box;
}

.woocommerce-checkout .msc-field.msc-col-12 {
	flex: 0 0 100%;
	max-width: 100%;
	box-sizing: border-box;
}

@media (max-width: 640px) {
	.woocommerce-checkout .msc-field.msc-col-6 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

@media (max-width: 980px) {
	.woocommerce-checkout.msc-checkout-active .msc-field.msc-col-6 {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-input {
	border-radius: var(--msc-radius);
	border: 1px solid rgba(17, 24, 39, 0.12);
	padding: 10px 12px;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-input {
		padding: 8px 10px;
		min-height: 38px;
		font-size: 14px;
	}
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-card {
		padding: 12px;
	}
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .woocommerce-billing-fields,
	body.woocommerce-checkout.msc-checkout-active .woocommerce-shipping-fields,
	body.woocommerce-checkout.msc-checkout-active .woocommerce-additional-fields {
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
	}
	body.woocommerce-checkout.msc-checkout-active .woocommerce-billing-fields fieldset,
	body.woocommerce-checkout.msc-checkout-active .woocommerce-shipping-fields fieldset {
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-contact {
		width: 100%;
	}
	body.woocommerce-checkout.msc-checkout-active .woocommerce-billing-fields__field-wrapper,
	body.woocommerce-checkout.msc-checkout-active .woocommerce-shipping-fields__field-wrapper,
	body.woocommerce-checkout.msc-checkout-active .woocommerce-additional-fields__field-wrapper {
		gap: 8px;
	}
	body.woocommerce-checkout.msc-checkout-active .form-row {
		margin: 0;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-left .form-row {
		margin-bottom: 10px;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-left .form-row label {
		margin-bottom: 6px;
	}
	/* Prevent horizontal scroll and slippage on mobile */
	html, body {
		overflow-x: hidden !important;
		width: 100vw !important;
	}
	#page, .site, #content, .site-content, main, article, footer, header,
	.woocommerce, .woocommerce-page, .msc-checkout-wrap, .msc-checkout-grid, 
	.msc-left, .msc-right, form.checkout, .woocommerce-billing-fields, 
	.woocommerce-shipping-fields, .woocommerce-checkout-review-order {
		overflow-x: hidden !important;
		max-width: 100% !important;
		width: 100% !important;
		box-sizing: border-box !important;
		float: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	body.woocommerce-checkout.msc-checkout-active,
	body.woocommerce-checkout.msc-checkout-active * {
		box-sizing: border-box !important;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-checkout-wrap,
	body.woocommerce-checkout.msc-checkout-active form.checkout,
	body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid,
	body.woocommerce-checkout.msc-checkout-active .msc-left,
	body.woocommerce-checkout.msc-checkout-active .msc-right,
	body.woocommerce-checkout.msc-checkout-active .msc-card,
	body.woocommerce-checkout.msc-checkout-active .msc-field,
	body.woocommerce-checkout.msc-checkout-active .msc-left .form-row,
	body.woocommerce-checkout.msc-checkout-active .msc-left .form-row-first,
	body.woocommerce-checkout.msc-checkout-active .msc-left .form-row-last,
	body.woocommerce-checkout.msc-checkout-active .msc-left input[type="text"],
	body.woocommerce-checkout.msc-checkout-active .msc-left input[type="tel"],
	body.woocommerce-checkout.msc-checkout-active .msc-left input[type="email"],
	body.woocommerce-checkout.msc-checkout-active .msc-left input[type="number"],
	body.woocommerce-checkout.msc-checkout-active .msc-left input[type="password"],
	body.woocommerce-checkout.msc-checkout-active .msc-left select,
	body.woocommerce-checkout.msc-checkout-active .msc-left textarea,
	body.woocommerce-checkout.msc-checkout-active .msc-left .form-row select + .select2-container,
	body.woocommerce-checkout.msc-checkout-active .msc-left .form-row select + .select2-container .select2-selection {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
		clear: both !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-progress-line,
	body.woocommerce-cart.msc-checkout-active .msc-progress-line {
		min-width: 0 !important;
	}
	body.woocommerce-checkout.msc-checkout-active .woocommerce-terms-and-conditions-wrapper,
	body.woocommerce-checkout.msc-checkout-active .woocommerce-terms-and-conditions-wrapper * {
		white-space: normal !important;
		max-width: 100% !important;
	}
	/* Collapse any excessive bottom empty space on mobile */
	body.woocommerce-checkout.msc-checkout-active #content,
	body.woocommerce-checkout.msc-checkout-active .site-content,
	body.woocommerce-checkout.msc-checkout-active main,
	body.woocommerce-checkout.msc-checkout-active article,
	body.woocommerce-checkout.msc-checkout-active #colophon,
	body.woocommerce-checkout.msc-checkout-active footer {
		padding-bottom: 0 !important;
		margin-bottom: 0 !important;
	}
}

.woocommerce-checkout .msc-input:focus {
	border-color: var(--msc-primary, #1773b0);
	border-width: 2px;
	box-shadow: 0 0 0 4px rgba(23, 115, 176, 0.15);
	outline: none;
}

body.woocommerce-checkout.msc-checkout-active .msc-field label {
	transition: transform 0.2s ease, color 0.2s ease;
}

body.woocommerce-checkout.msc-checkout-active .msc-field:focus-within label {
	color: var(--msc-primary, #1773b0);
}

body.woocommerce-checkout.msc-checkout-active .msc-field.woocommerce-invalid .msc-input,
body.woocommerce-checkout.msc-checkout-active .msc-field.woocommerce-invalid-required-field .msc-input {
	border-color: #dc2626;
	border-width: 2px;
}

body.woocommerce-checkout.msc-checkout-active .msc-field.woocommerce-invalid .msc-input:focus,
body.woocommerce-checkout.msc-checkout-active .msc-field.woocommerce-invalid-required-field .msc-input:focus {
	border-color: #dc2626;
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

/* Globally strip away all auto-green highlights from validated fields */
body.woocommerce-checkout.msc-checkout-active .woocommerce-validated .msc-input,
body.woocommerce-checkout.msc-checkout-active .woocommerce-validated input,
body.woocommerce-checkout.msc-checkout-active .woocommerce-validated select,
body.woocommerce-checkout.msc-checkout-active .woocommerce-validated textarea,
body.woocommerce-checkout.msc-checkout-active .woocommerce-validated .select2-selection {
	border-color: rgba(17, 24, 39, 0.12) !important;
	background-image: none !important;
	box-shadow: none !important;
}
body.woocommerce-checkout.msc-checkout-active .woocommerce-validated::after {
	display: none !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-field-error {
	color: #dc2626;
	font-size: 12px;
	margin-top: 4px;
	display: block;
}

body.woocommerce-checkout.msc-checkout-active .msc-summary-sticky {
	position: static !important;
	top: auto !important;
	contain: none !important;
}

@media (max-width: 980px) {
	.woocommerce-checkout .msc-summary-sticky {
		position: static;
		top: auto;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-cart-items {
	display: grid;
	gap: 10px;
	margin-bottom: 12px;
}

.woocommerce-checkout .msc-cart-item {
	display: grid;
	grid-template-columns: 46px 1fr auto;
	gap: 10px;
	align-items: center;
}

.woocommerce-checkout .msc-cart-thumb img {
	width: 46px;
	height: 46px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid rgba(17, 24, 39, 0.08);
}

.woocommerce-checkout .msc-cart-title {
	font-weight: var(--msc-font-important, 600);
	font-size: 13px;
	line-height: 1.2;
}

body.woocommerce-checkout.msc-checkout-active .msc-cart-qty {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.06);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

body.woocommerce-checkout.msc-checkout-active .msc-cart-price {
	font-weight: 800;
	font-size: 13px;
	white-space: nowrap;
}

.woocommerce-checkout .msc-cart-meta {
	font-size: 12px;
	opacity: .75;
}

body.woocommerce-checkout.msc-checkout-active .msc-trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 12px;
}

body.woocommerce-checkout.msc-checkout-active .msc-trust.msc-trust-count-1 {
	grid-template-columns: 1fr;
	justify-items: center;
}

body.woocommerce-checkout.msc-checkout-active .msc-trust.msc-trust-count-2 {
	grid-template-columns: repeat(2, 1fr);
}

body.woocommerce-checkout.msc-checkout-active .msc-trust.msc-trust-count-1 .msc-trust-badge,
body.woocommerce-checkout.msc-checkout-active .msc-trust.msc-trust-count-2 .msc-trust-badge {
	padding: 8px 10px;
	font-size: 12px;
}

.woocommerce-checkout .msc-trust-badge {
	border: 1px dashed rgba(17, 24, 39, 0.18);
	border-radius: var(--msc-radius);
	padding: 8px 10px;
	font-size: 12px;
	line-height: 1.4;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background: rgba(17, 24, 39, 0.02);
	transition: all 0.2s ease;
}

.woocommerce-checkout .msc-trust-badge:hover {
	border-color: rgba(17, 24, 39, 0.25);
	background: rgba(17, 24, 39, 0.04);
}

.woocommerce-checkout .msc-trust-badge-icon {
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-trust {
		gap: 6px;
		margin-top: 10px;
	}
	.woocommerce-checkout .msc-trust-badge {
		padding: 6px;
		font-size: 11px;
	}
}

.woocommerce-checkout #place_order,
.woocommerce-checkout button#place_order {
	background: var(--msc-btn);
	border-radius: var(--msc-radius);
	padding: 12px 14px;
	font-weight: var(--msc-font-heading, 700);
	width: 100%;
}

body.woocommerce-checkout.msc-checkout-active .msc-summary-shipping {
	display: none !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-totals-list {
	display: grid;
	gap: 8px;
	padding-top: 10px;
	margin-top: 12px;
	border-top: 1px solid rgba(17, 24, 39, 0.08);
}

body.woocommerce-checkout.msc-checkout-active .msc-totals-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: center;
	font-size: 13px;
}

body.woocommerce-checkout.msc-checkout-active .msc-totals-row strong {
	font-weight: var(--msc-font-heading, 700);
}

body.woocommerce-checkout.msc-checkout-active .msc-totals-total {
	font-size: 15px;
}

body.woocommerce-checkout.msc-checkout-active .msc-totals-note {
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.25;
	opacity: .7;
	justify-self: end;
}

body.woocommerce-checkout.msc-checkout-active .msc-coupon {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(100px, 140px);
	gap: 10px;
	align-items: center;
	margin: 10px 0 12px;
	width: 100%;
	max-width: 100%;
	overflow: visible;
}

@media (max-width: 480px) {
	body.woocommerce-checkout.msc-checkout-active .msc-coupon {
		grid-template-columns: 1fr;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-coupon .msc-coupon-apply {
		width: 100%;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-coupon .msc-coupon-input {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 44px;
}

body.woocommerce-checkout.msc-checkout-active .msc-coupon .msc-coupon-apply {
	justify-self: stretch;
	min-width: 0;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	height: 44px;
	width: 100%;
	max-width: 100%;
	white-space: nowrap;
}

body.woocommerce-checkout.msc-checkout-active .msc-coupon-applied {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
	max-width: 100%;
	overflow: visible;
}

body.woocommerce-checkout.msc-checkout-active .msc-coupon-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 999px;
	border: 1px solid rgba(23, 115, 176, 0.18);
	background: rgba(23, 115, 176, 0.06);
	font-size: 12px;
	line-height: 1;
	max-width: 100%;
	min-height: 34px;
}

body.woocommerce-checkout.msc-checkout-active .msc-coupon-chip .msc-coupon-code {
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

body.woocommerce-checkout.msc-checkout-active .msc-coupon-chip .msc-coupon-remove {
	appearance: none;
	border: 1px solid rgba(17, 24, 39, 0.10);
	background: rgba(255, 255, 255, 0.85);
	color: rgba(17, 24, 39, 0.75);
	font-weight: 900;
	width: 18px;
	height: 18px;
	min-width: 18px;
	max-width: 18px;
	flex: 0 0 18px;
	border-radius: 999px;
	padding: 0 !important;
	margin: 0;
	cursor: pointer;
	line-height: 1;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: none;
	outline: none;
}

body.woocommerce-checkout.msc-checkout-active .msc-coupon-chip .msc-coupon-remove:hover {
	background: rgba(255, 255, 255, 0.98);
}

body.woocommerce-checkout.msc-checkout-active .msc-coupon-chip input,
body.woocommerce-checkout.msc-checkout-active .msc-coupon-chip .input-text,
body.woocommerce-checkout.msc-checkout-active .msc-coupon-chip .msc-coupon-code {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	width: auto !important;
	max-width: 100% !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 420px) {
	body.woocommerce-checkout.msc-checkout-active .msc-coupon {
		grid-template-columns: minmax(0, 1fr) minmax(96px, 140px);
		gap: 8px;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump {
	border: 1px solid rgba(23, 115, 176, 0.18);
	background: rgba(23, 115, 176, 0.04);
	margin-top: 12px;
	padding: 14px;
	position: relative;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-title {
	font-weight: 800;
	font-size: 14px;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

body.woocommerce-checkout.msc-checkout-active .msc-bump-discount,
body.woocommerce-checkout.msc-checkout-active .msc-bump-timer {
	white-space: nowrap;
}

body.woocommerce-checkout.msc-checkout-active .msc-bump-timer {
	display: inline-flex !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 10px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(244, 63, 94, 0.14);
	color: #e11d48;
	font-size: 12px;
	font-weight: 800;
}

body.woocommerce-checkout.msc-checkout-active .msc-bump-discount {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 8px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.14);
	background: color-mix(in srgb, var(--msc-bump-badge) 14%, transparent);
	color: var(--msc-bump-badge);
	font-size: 12px;
	font-weight: 800;
}

body.woocommerce-checkout.msc-checkout-active .msc-bump-inline-toast {
	position: absolute;
	left: 12px;
	right: 12px;
	top: -8px;
	margin: 0;
	padding: 9px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(16, 185, 129, 0.12));
	border: 1px solid rgba(255, 255, 255, 0.16);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #0b1220;
	font-weight: 800;
	font-size: 13px;
	line-height: 1;
	opacity: 0;
	transform: translateY(6px) scale(0.98);
	pointer-events: none;
	transition: opacity .16s ease, transform .16s ease;
	z-index: 5;
	text-align: center;
}

body.woocommerce-checkout.msc-checkout-active .msc-bump-inline-toast.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-desc {
	font-size: 12px;
	opacity: .8;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-body {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-check {
	display: flex;
	gap: 10px;
	align-items: center;
	font-weight: 600;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-product {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: center;
	font-size: 13px;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-grid {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 12px;
	align-items: start;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-actions {
	grid-column: 1 / -1;
	justify-content: stretch;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 10px;
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-order-bump-grid {
		grid-template-columns: 44px 1fr;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-img img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid rgba(17, 24, 39, 0.08);
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-order-bump-grid {
		grid-template-columns: 44px 1fr;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-order-bump-img img {
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-order-bump-actions {
		width: 100%;
		justify-content: stretch;
		flex-wrap: wrap;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-order-bump-actions .button {
		width: 100% !important;
		white-space: normal;
		height: auto;
		min-height: 40px;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 400px) {
	body.woocommerce-checkout.msc-checkout-active .msc-order-bump-actions {
		grid-template-columns: 1fr;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-actions .button {
	width: auto !important;
	min-width: 0;
	white-space: nowrap;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-actions .button {
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	min-height: 36px;
}

body.woocommerce-checkout.msc-checkout-active .msc-bump-decline {
	background: transparent;
	border: 1px solid rgba(17, 24, 39, 0.18);
	color: #111827;
}

body.woocommerce-checkout.msc-checkout-active .msc-bump-add {
	background: #81d742;
	border: 1px solid #81d742;
	color: #fff;
}

body.woocommerce-checkout.msc-checkout-active .msc-bump-decline[disabled],
body.woocommerce-checkout.msc-checkout-active .msc-bump-add[disabled] {
	opacity: .55;
	cursor: not-allowed;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump[data-bump-added="yes"] .msc-bump-add[disabled] {
	opacity: 1;
	background: #16a34a;
	border-color: #16a34a;
	color: #fff;
}

body.woocommerce-checkout.msc-checkout-active .msc-confetti {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
}

body.woocommerce-checkout.msc-checkout-active .msc-confetti-piece {
	position: absolute;
	width: 7px;
	height: 9px;
	background: var(--msc-c);
	border-radius: 2px;
	opacity: 0;
	animation: mscConfettiPop 1400ms cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes mscConfettiPop {
	0% { transform: translate(0,0) rotate(0deg) scale(0.9); opacity: 0; }
	8% { opacity: 1; }
	65% { opacity: 1; }
	100% { transform: translate(var(--msc-x), var(--msc-y)) rotate(var(--msc-r)) scale(1); opacity: 0; }
}

body.woocommerce-checkout.msc-checkout-active .msc-toast {
	position: fixed;
	left: 50%;
	bottom: 86px;
	transform: translateX(-50%);
	background: rgba(17, 24, 39, 0.92);
	color: #fff;
	padding: 10px 12px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
	z-index: 10000;
}

body.woocommerce-checkout.msc-checkout-active .msc-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(-4px);
}

body.woocommerce-checkout.msc-checkout-active .msc-notices-in-right {
	margin: 0 0 12px;
}

body.woocommerce-checkout.msc-checkout-active .msc-notices-in-right .woocommerce-info,
body.woocommerce-checkout.msc-checkout-active .msc-notices-in-right .woocommerce-message,
body.woocommerce-checkout.msc-checkout-active .msc-notices-in-right .woocommerce-error {
	margin-top: 0;
}

body.woocommerce-checkout.msc-checkout-active .msc-summary-shipping {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid rgba(17, 24, 39, 0.08);
}

body.woocommerce-checkout.msc-checkout-active #msc-shipping-fragment ul,
body.woocommerce-checkout.msc-checkout-active #msc-shipping-fragment li {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-checkout.msc-checkout-active #msc-shipping-fragment li {
	border: 1px solid rgba(17, 24, 39, 0.10);
	border-radius: var(--msc-radius);
	padding: 10px 12px;
	margin-top: 10px;
}

body.woocommerce-checkout.msc-checkout-active #msc-shipping-fragment label {
	font-size: 13px;
	font-weight: 600;
}

body.woocommerce-checkout.msc-checkout-active #msc-shipping-fragment label .amount,
body.woocommerce-checkout.msc-checkout-active #msc-shipping-fragment label .woocommerce-Price-amount {
	display: none !important;
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-order-bump-actions {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-old {
	text-decoration: line-through;
	opacity: .6;
	margin-right: 8px;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-new {
	font-weight: 800;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

body.woocommerce-checkout.msc-checkout-active .order-bump-animations-enabled .msc-order-bump {
	transition: all 0.3s ease;
}

body.woocommerce-checkout.msc-checkout-active .order-bump-animations-enabled .msc-order-bump.msc-bump-added {
	animation: msc-bump-pulse 0.5s ease;
}

body.woocommerce-checkout.msc-checkout-active .order-bump-animations-enabled .msc-order-bump-price-change {
	animation: msc-price-bounce 0.4s ease;
}

@keyframes msc-bump-pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.02); }
	100% { transform: scale(1); }
}

@keyframes msc-price-bounce {
	0%, 100% { transform: scale(1); }
	25% { transform: scale(1.1); }
	50% { transform: scale(0.95); }
	75% { transform: scale(1.05); }
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-Price-amount,
body.woocommerce-checkout.msc-checkout-active .woocommerce-Price-currencySymbol,
body.woocommerce-checkout.msc-checkout-active .msc-order-bump-new .woocommerce-Price-currencySymbol,
body.woocommerce-checkout.msc-checkout-active .msc-order-bump-old .woocommerce-Price-currencySymbol {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-feature-settings: normal;
	font-variant: normal;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-new .woocommerce-Price-currencySymbol,
body.woocommerce-checkout.msc-checkout-active .msc-order-bump-old .woocommerce-Price-currencySymbol {
	unicode-bidi: embed;
	direction: ltr;
	font-size: inherit;
	line-height: inherit;
}

body.woocommerce-checkout.msc-checkout-active .msc-card-title {
	font-size: 15px;
}

body.woocommerce-checkout.msc-checkout-active #order_review_heading,
body.woocommerce-checkout.msc-checkout-active h3 {
	font-size: 15px;
	line-height: 1.25;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-checkout-review-order,
body.woocommerce-checkout.msc-checkout-active #order_review {
	font-size: 14px !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-sizing: border-box !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	display: block !important;
}

body.woocommerce-checkout.msc-checkout-active #payment,
body.woocommerce-checkout.msc-checkout-active .woocommerce-checkout-payment {
	margin: 0 !important;
	margin-top: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	display: block !important;
	box-sizing: border-box !important;
}

body.woocommerce-checkout.msc-checkout-active #payment::before,
body.woocommerce-checkout.msc-checkout-active #payment::after {
	display: none !important;
}

body.woocommerce-checkout.msc-checkout-active #payment .payment_methods {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
	background: transparent;
	border: none;
}

/* Apple-style: clean rows with hairline dividers inside a rounded box */
body.woocommerce-checkout.msc-checkout-active #payment ul.payment_methods {
	background: #ffffff !important;
	border: 1px solid #e5e7eb !important;
	border-radius: 12px !important;
	padding: 0 !important;
	margin: 16px 0 !important;
	overflow: hidden !important;
	list-style: none !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li {
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	background: #ffffff !important;
	list-style: none !important;
	border-bottom: 1px solid #e5e7eb !important;
	transition: background 0.15s ease;
	position: relative;
	overflow: visible;
	box-shadow: none !important;
}

body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li:last-child {
	border-bottom: none !important;
}

body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li:hover {
	background: rgba(0, 0, 0, 0.01) !important;
}

body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li:has(input[type="radio"]:checked) {
	background: #ffffff !important;
}

/* Hide ALL standalone and nested radio inputs absolutely */
body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li input[type="radio"] {
	opacity: 0 !important;
	position: absolute !important;
	left: -9999px !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Fix mobile horizontal overflow completely */
html, body {
	max-width: 100% !important;
}
body.woocommerce-checkout.msc-checkout-active,
body.woocommerce-cart.msc-checkout-active {
	overflow-x: hidden !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* Hide Native WooCommerce blockUI overlay during checkout to avoid double spinners */
body.woocommerce-checkout.msc-checkout-active form.woocommerce-checkout .blockUI.blockOverlay {
	display: none !important;
	opacity: 0 !important;
}

/* Label is the whole clickable row */
body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li > label,
body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li label {
	display: flex !important;
	align-items: center !important;
	padding: 16px 20px !important;
	margin: 0 !important;
	cursor: pointer !important;
	position: relative !important;
	border: 2px solid transparent !important;
	border-radius: 12px !important;
	transition: all 0.2s ease !important;
	gap: 14px !important;
	justify-content: flex-start !important;
	line-height: 1.4 !important;
	width: 100% !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	color: #1f2937 !important;
	letter-spacing: -0.01em !important;
	box-sizing: border-box !important;
	user-select: none !important;
}

/* Custom radio indicator via CSS pseudo-element */
body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li > label::before {
	content: '' !important;
	display: block !important;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	max-width: 20px !important;
	border-radius: 50% !important;
	border: 2px solid #d2d2d7 !important; /* Apple gray */
	background: #ffffff !important;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	flex-shrink: 0 !important;
	box-sizing: border-box !important;
}

/* Selected state: premium green circle with inner white ring and filled green dot */
body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li:has(input[type="radio"]:checked) > label::before {
	border-color: #10b981 !important;
	background: #10b981 !important;
	box-shadow: inset 0 0 0 4px #ffffff !important;
}

body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li:has(input[type="radio"]:checked) > label {
	color: #111827 !important;
	font-weight: 600 !important;
}

/* Payment box: subtle details panel */
body.woocommerce-checkout.msc-checkout-active #payment div.payment_box {
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	margin: 0 !important;
	padding: 0px 20px 18px 54px !important; /* beautifully offset align text under label */
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: #6b7280 !important;
	box-shadow: none !important;
}

body.woocommerce-checkout.msc-checkout-active #payment div.payment_box p {
	margin: 0 !important;
	padding: 0 !important;
}

body.woocommerce-checkout.msc-checkout-active #payment div.payment_box::before {
	display: none !important;
}


@media (min-width: 981px) {
	body.woocommerce-checkout.msc-checkout-active .msc-right {
		position: relative;
		top: auto;
		align-self: stretch;
	}
}

@media (min-width: 981px) {
	body.woocommerce-checkout.msc-checkout-active .msc-summary-sticky {
		position: static !important;
		top: auto !important;
		align-self: flex-start;
	}
}

@media (min-width: 981px) {
	body.woocommerce-checkout.msc-checkout-active .msc-right,
	body.woocommerce-checkout.msc-checkout-active .msc-summary {
		overflow: visible !important;
	}
}

@media (min-width: 981px) {
	body.woocommerce-checkout.msc-checkout-active .msc-left-shipping table th,
	body.woocommerce-checkout.msc-checkout-active .msc-left-shipping .woocommerce-shipping-totals th,
	body.woocommerce-checkout.msc-checkout-active .msc-left-shipping .shipping th,
	body.woocommerce-checkout.msc-checkout-active .msc-left-shipping td[data-title]:before,
	body.woocommerce-checkout.msc-checkout-active .msc-left-shipping .shipping td:before {
		display: none !important;
	}
}

@media (min-width: 981px) {
	body.woocommerce-checkout.msc-checkout-active .msc-left-shipping > .msc-card-title {
		display: none !important;
	}
}

/* Notices */
@media (min-width: 981px) {
	body.woocommerce-checkout.msc-checkout-active .msc-notices-in-right {
		max-width: 100%;
	}
}

body.woocommerce-checkout.msc-checkout-active #payment div.payment_box p {
	margin: 0 0 8px;
}

body.woocommerce-checkout.msc-checkout-active #payment div.payment_box p:last-child {
	margin-bottom: 0;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-terms-and-conditions-wrapper {
	margin-top: 14px;
}

body.woocommerce-checkout.msc-checkout-active .create-account,
body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields {
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}

body.woocommerce-checkout.msc-checkout-active .create-account .form-row,
body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields .form-row {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.woocommerce-checkout.msc-checkout-active .motta-free-shipping-bar,
body.woocommerce-checkout.msc-checkout-active .free-shipping-bar {
	display: none !important;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-terms-and-conditions-wrapper .form-row {
	margin: 0;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-terms-and-conditions-wrapper label {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.25;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
	margin-top: 2px;
	flex: 0 0 auto;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields,
body.woocommerce-checkout.msc-checkout-active .create-account {
	max-width: 100%;
}
body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields {
	margin-top: 18px !important;
}
body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields .create-account {
	margin-top: 0 !important;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields .form-row,
body.woocommerce-checkout.msc-checkout-active .create-account .form-row {
	margin: 0 0 10px;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields input,
body.woocommerce-checkout.msc-checkout-active .create-account input {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields .form-row,
body.woocommerce-checkout.msc-checkout-active .create-account .form-row,
body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields .form-row-wide,
body.woocommerce-checkout.msc-checkout-active .create-account .form-row-wide {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

body.woocommerce-checkout.msc-checkout-active .create-account > label,
body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields > label {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	line-height: 1.25;
	margin: 0 0 10px;
	max-width: 100%;
}

body.woocommerce-checkout.msc-checkout-active .create-account > label input[type="checkbox"],
body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields > label input[type="checkbox"] {
	margin-top: 2px;
	flex: 0 0 auto;
	width: auto !important;
	max-width: none !important;
}

body.woocommerce-checkout.msc-checkout-active .create-account .password-input,
body.woocommerce-checkout.msc-checkout-active .create-account .password-input-wrapper {
	width: 100%;
	max-width: 100%;
}

body.woocommerce-checkout.msc-checkout-active .create-account .password-input input,
body.woocommerce-checkout.msc-checkout-active .create-account .password-input-wrapper input {
	width: 100% !important;
}

body.woocommerce-checkout.msc-checkout-active .create-account .show-password-input {
	right: 12px;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-password-strength,
body.woocommerce-checkout.msc-checkout-active .woocommerce-password-hint {
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.25;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-terms-and-conditions-wrapper label {
	font-size: 13px;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-info,
body.woocommerce-checkout.msc-checkout-active .woocommerce-message,
body.woocommerce-checkout.msc-checkout-active .woocommerce-error {
	padding: 10px 12px;
	margin: 10px 0;
	border-radius: var(--msc-radius);
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-info > :last-child,
body.woocommerce-checkout.msc-checkout-active .woocommerce-message > :last-child,
body.woocommerce-checkout.msc-checkout-active .woocommerce-error > :last-child {
	margin-bottom: 0;
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .woocommerce-info,
	body.woocommerce-checkout.msc-checkout-active .woocommerce-message,
	body.woocommerce-checkout.msc-checkout-active .woocommerce-error {
		padding: 8px 10px;
		margin: 8px 0;
		font-size: 13px;
		line-height: 1.25;
	}
}

.woocommerce-checkout .msc-mobile-bottom-place-order {
	display: none;
	margin-top: 10px;
}

@media (max-width: 980px) {
	.woocommerce-checkout .msc-mobile-bottom-place-order {
		display: block;
		width: 100% !important;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-bottom-place-order {
		display: block;
		width: 100%;
		padding: 8px 12px;
		border-radius: var(--msc-radius);
		font-weight: 800;
		min-height: 40px;
	}
}

@media (min-width: 981px) {
	body.woocommerce-checkout.msc-checkout-active .msc-mobile-bottom-place-order {
		display: none !important;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-grid {
	grid-template-columns: 48px 1fr;
}

body.woocommerce-checkout.msc-checkout-active .msc-order-bump-actions {
	grid-column: 1 / -1;
	justify-content: flex-end;
	margin-top: 8px;
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li > label {
		padding: 14px 4px;
		line-height: 1.25;
		word-break: break-word;
		font-size: 14px;
		gap: 12px;
	}
	body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li > label::before {
		width: 18px;
		height: 18px;
		min-width: 18px;
	}
	body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li > .payment_box,
	body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li > div.payment_box {
		padding: 10px 34px !important;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-page-end-actions {
	max-width: 1120px;
	margin: 18px auto 28px;
	padding: 0 16px;
}

@media (min-width: 981px) {
	body.woocommerce-checkout.msc-checkout-active .msc-page-end-actions {
		display: none !important;
	}
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-page-end-actions {
		padding: 0 8px;
		margin: 10px auto 0;
	}
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-page-end-actions {
		display: block;
	}
}

@media (min-width: 981px) {
	body.woocommerce-checkout.msc-checkout-active .msc-notices-in-right {
		position: sticky;
		top: 18px;
		z-index: 2;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-notices-in-right .woocommerce-info,
	body.woocommerce-checkout.msc-checkout-active .msc-notices-in-right .woocommerce-message,
	body.woocommerce-checkout.msc-checkout-active .msc-notices-in-right .woocommerce-error {
		padding: 8px 10px;
		font-size: 12px;
		line-height: 1.25;
		border-radius: 10px;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-end-place-order {
	width: 100% !important;
	padding: 12px 14px;
	border-radius: var(--msc-radius);
	font-weight: 900;
	display: none;
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-end-place-order {
		background: var(--msc-mobile-end-btn) !important;
		border-color: var(--msc-mobile-end-btn) !important;
		color: #fff !important;
		display: block;
	}
}

body.woocommerce-checkout.msc-checkout-active #msc-shipping-fragment th,
body.woocommerce-checkout.msc-checkout-active #msc-shipping-fragment .woocommerce-shipping-methods + p {
	display: none !important;
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active input,
	body.woocommerce-checkout.msc-checkout-active select,
	body.woocommerce-checkout.msc-checkout-active textarea {
		max-width: 100% !important;
		box-sizing: border-box;
	}
	body.woocommerce-checkout.msc-checkout-active .woocommerce-account-fields,
	body.woocommerce-checkout.msc-checkout-active .create-account {
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
	}
}


body.woocommerce-checkout.msc-checkout-active .woocommerce-shipping-methods {
	margin: 10px 0 0;
}

body.woocommerce-checkout.msc-checkout-active .msc-progress-indicator,
body.woocommerce-cart.msc-checkout-active .msc-progress-indicator,
body.woocommerce-order-received.msc-checkout-active .msc-progress-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 24px;
	padding: 16px 24px;
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
	border: 1.5px solid rgba(16, 185, 129, 0.15);
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(16, 185, 129, 0.06);
}

body.woocommerce-checkout.msc-checkout-active .msc-progress-step,
body.woocommerce-cart.msc-checkout-active .msc-progress-step,
body.woocommerce-order-received.msc-checkout-active .msc-progress-step,
body.msc-checkout-active .msc-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
	flex: 0 0 auto;
}

body.woocommerce-checkout.msc-checkout-active .msc-progress-number,
body.woocommerce-cart.msc-checkout-active .msc-progress-number,
body.woocommerce-order-received.msc-checkout-active .msc-progress-number,
body.msc-checkout-active .msc-progress-number {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
	background: rgba(17, 24, 39, 0.06);
	color: rgba(17, 24, 39, 0.4);
	transition: all 0.4s cubic-bezier(.4,0,.2,1);
	border: 2px solid transparent;
}

body.woocommerce-checkout.msc-checkout-active .msc-progress-step.msc-progress-active .msc-progress-number,
body.woocommerce-cart.msc-checkout-active .msc-progress-step.msc-progress-active .msc-progress-number,
body.woocommerce-order-received.msc-checkout-active .msc-progress-step.msc-progress-active .msc-progress-number,
body.msc-checkout-active .msc-progress-step.msc-progress-active .msc-progress-number {
	background: #10b981;
	color: #ffffff;
	border-color: #10b981;
	box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

body.msc-checkout-active .msc-progress-step.msc-progress-completed .msc-progress-number {
	background: #10b981;
	color: #ffffff;
	border-color: #10b981;
}

body.woocommerce-checkout.msc-checkout-active .msc-progress-label,
body.woocommerce-cart.msc-checkout-active .msc-progress-label,
body.woocommerce-order-received.msc-checkout-active .msc-progress-label,
body.msc-checkout-active .msc-progress-label {
	font-size: 13px;
	font-weight: 600;
	color: rgba(17, 24, 39, 0.45);
	white-space: nowrap;
	transition: color 0.3s ease;
}

body.woocommerce-checkout.msc-checkout-active .msc-progress-step.msc-progress-active .msc-progress-label,
body.woocommerce-cart.msc-checkout-active .msc-progress-step.msc-progress-active .msc-progress-label,
body.woocommerce-order-received.msc-checkout-active .msc-progress-step.msc-progress-active .msc-progress-label,
body.msc-checkout-active .msc-progress-step.msc-progress-active .msc-progress-label {
	color: #059669;
	font-weight: 700;
}

body.msc-checkout-active .msc-progress-step.msc-progress-completed .msc-progress-label {
	color: #10b981;
}

body.woocommerce-checkout.msc-checkout-active .msc-progress-line,
body.woocommerce-cart.msc-checkout-active .msc-progress-line,
body.woocommerce-order-received.msc-checkout-active .msc-progress-line,
body.msc-checkout-active .msc-progress-line {
	flex: 1;
	height: 2.5px;
	background: rgba(17, 24, 39, 0.08);
	max-width: 80px;
	margin: 0 8px;
	transition: background 0.3s ease;
	border-radius: 2px;
}

body.woocommerce-checkout.msc-checkout-active .msc-progress-line.msc-progress-active,
body.woocommerce-cart.msc-checkout-active .msc-progress-line.msc-progress-active,
body.woocommerce-order-received.msc-checkout-active .msc-progress-line.msc-progress-active,
body.msc-checkout-active .msc-progress-line.msc-progress-active {
	background: #10b981;
}

body.msc-checkout-active .msc-progress-line.msc-progress-line-done {
	background: #10b981;
}

/* Checkmark icon inside progress circles */
body.msc-checkout-active .msc-progress-check .msc-check-icon {
	width: 16px;
	height: 16px;
	stroke: #fff;
	stroke-width: 3;
}

/* Trendyol-style animated checkmark for step 3 on confirmation page */
body.msc-checkout-active .msc-progress-check-animated {
	animation: msc-check-circle-pop 0.6s cubic-bezier(.4,0,.2,1) forwards;
}

body.msc-checkout-active .msc-check-animate polyline {
	stroke-dasharray: 30;
	stroke-dashoffset: 30;
	animation: msc-check-draw 0.4s 0.3s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes msc-check-circle-pop {
	0% { transform: scale(0); opacity: 0; }
	50% { transform: scale(1.2); opacity: 1; }
	70% { transform: scale(0.9); }
	100% { transform: scale(1); opacity: 1; }
}

@keyframes msc-check-draw {
	0% { stroke-dashoffset: 30; }
	100% { stroke-dashoffset: 0; }
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-progress-indicator,
	body.woocommerce-cart.msc-checkout-active .msc-progress-indicator,
	body.woocommerce-order-received.msc-checkout-active .msc-progress-indicator {
		padding: 12px 8px;
		margin-bottom: 16px;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-progress-label,
	body.woocommerce-cart.msc-checkout-active .msc-progress-label,
	body.woocommerce-order-received.msc-checkout-active .msc-progress-label {
		font-size: 11px;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-progress-number,
	body.woocommerce-cart.msc-checkout-active .msc-progress-number,
	body.woocommerce-order-received.msc-checkout-active .msc-progress-number {
		width: 30px;
		height: 30px;
		font-size: 12px;
	}
	body.woocommerce-checkout.msc-checkout-active .msc-progress-line,
	body.woocommerce-cart.msc-checkout-active .msc-progress-line,
	body.woocommerce-order-received.msc-checkout-active .msc-progress-line {
		max-width: 40px;
		margin: 0 4px;
	}
}

body.woocommerce-checkout.msc-checkout-active .msc-page-title {
	font-size: 28px;
	line-height: 1.15;
	margin: 0 0 16px;
	font-weight: var(--msc-font-heading, 700);
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-checkout-active .msc-page-title {
		font-size: 22px;
	}
}

.woocommerce-checkout #place_order,
.woocommerce-checkout button#place_order {
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

body.woocommerce-checkout.msc-checkout-active .micro-interactions-enabled #place_order:hover,
body.woocommerce-checkout.msc-checkout-active .micro-interactions-enabled button#place_order:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	filter: brightness(1.05);
}

body.woocommerce-checkout.msc-checkout-active .micro-interactions-enabled #place_order:active,
body.woocommerce-checkout.msc-checkout-active .micro-interactions-enabled button#place_order:active {
	transform: translateY(0);
}

body.woocommerce-checkout.msc-checkout-active .micro-interactions-enabled .msc-bump-add:hover,
body.woocommerce-checkout.msc-checkout-active .micro-interactions-enabled .msc-bump-decline:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.woocommerce-checkout.msc-checkout-active .micro-interactions-enabled .msc-coupon-apply:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

body.woocommerce-checkout.msc-checkout-active #place_order.msc-loading::after,
body.woocommerce-checkout.msc-checkout-active button#place_order.msc-loading::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: msc-spin 0.6s linear infinite;
	top: 50%;
	left: 50%;
	margin-left: -8px;
	margin-top: -8px;
}

body.woocommerce-checkout.msc-checkout-active #place_order.msc-loading,
body.woocommerce-checkout.msc-checkout-active button#place_order.msc-loading {
	color: transparent;
	pointer-events: none;
}

@keyframes msc-spin {
	to { transform: rotate(360deg); }
}

body.woocommerce-checkout.msc-checkout-active .msc-success-checkmark {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-left: 8px;
	vertical-align: middle;
}

body.woocommerce-checkout.msc-checkout-active .msc-success-checkmark::before {
	content: '✓';
	display: inline-block;
	color: #16a34a;
	font-weight: bold;
	animation: msc-success-pop 0.3s ease;
}

@keyframes msc-success-pop {
	0% { transform: scale(0); }
	50% { transform: scale(1.2); }
	100% { transform: scale(1); }
}

/* =============================================
   Trendyol-style Thank You Success Animation
   ============================================= */

body.msc-checkout-active .msc-thankyou-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 48px 24px 36px;
	margin-bottom: 28px;
}

body.msc-checkout-active .msc-thankyou-check-circle {
	width: 100px;
	height: 100px;
	margin-bottom: 24px;
}

body.msc-checkout-active .msc-thankyou-checkmark {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	display: block;
}

/* Animated circle background */
body.msc-checkout-active .msc-thankyou-check-bg {
	stroke: #10b981;
	stroke-width: 2;
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	animation: msc-thankyou-circle 0.6s 0.1s cubic-bezier(0.65, 0, 0.45, 1) forwards;
	fill: none;
}

/* Animated checkmark path */
body.msc-checkout-active .msc-thankyou-check-path {
	stroke: #10b981;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: msc-thankyou-check 0.35s 0.55s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* Circle fill animation */
@keyframes msc-thankyou-circle {
	0% {
		stroke-dashoffset: 166;
	}
	100% {
		stroke-dashoffset: 0;
	}
}

/* Checkmark draw animation */
@keyframes msc-thankyou-check {
	0% {
		stroke-dashoffset: 48;
	}
	100% {
		stroke-dashoffset: 0;
	}
}

body.msc-checkout-active .msc-thankyou-title {
	font-size: 24px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 8px;
	opacity: 0;
	transform: translateY(10px);
	animation: msc-thankyou-fade-in 0.4s 0.7s ease forwards;
}

body.msc-checkout-active .msc-thankyou-subtitle {
	font-size: 15px;
	color: #6b7280;
	margin: 0;
	opacity: 0;
	transform: translateY(10px);
	animation: msc-thankyou-fade-in 0.4s 0.85s ease forwards;
}

@keyframes msc-thankyou-fade-in {
	0% {
		opacity: 0;
		transform: translateY(10px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 980px) {
	body.msc-checkout-active .msc-thankyou-success {
		padding: 32px 16px 24px;
	}
	body.msc-checkout-active .msc-thankyou-check-circle,
	body.msc-checkout-active .msc-thankyou-checkmark {
		width: 80px;
		height: 80px;
	}
	body.msc-checkout-active .msc-thankyou-title {
		font-size: 20px;
	}
	body.msc-checkout-active .msc-thankyou-subtitle {
		font-size: 14px;
	}
}

.woocommerce-checkout .msc-mobile-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	background: #fff;
	border-top: 1px solid rgba(17, 24, 39, 0.08);
	padding: 10px 12px;
}

.woocommerce-checkout .msc-mobile-bar-inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: center;
}

.woocommerce-checkout .msc-mobile-place-order {
	background: var(--msc-mobile-btn) !important;
	border-color: var(--msc-mobile-btn) !important;
	color: #fff !important;
}

.woocommerce-checkout .msc-mobile-total {
	font-weight: 700;
}

@media (max-width: 980px) {
	body.woocommerce-checkout.msc-mobile-bar-enabled .msc-mobile-bar {
		display: none !important; /* Force hide mobile bar */
	}
	body.woocommerce-checkout.msc-mobile-bar-enabled {
		padding-bottom: 0 !important;
	}
	body.woocommerce-checkout.msc-mobile-bar-enabled #place_order,
	body.woocommerce-checkout.msc-mobile-bar-enabled button#place_order {
		display: block !important; /* Ensure default button is visible */
	}
	/* Teşekkür sayfasında mobile bar'ı gizle */
	body.woocommerce-order-received .msc-mobile-bar {
		display: none !important;
	}
	body.woocommerce-order-received.msc-mobile-bar-enabled {
		padding-bottom: 0 !important;
	}
}

/* Premium Glassmorphism Loader Overlay */
.msc-loader-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 2147483647 !important;
	background: rgba(255, 255, 255, 0.98) !important;
	backdrop-filter: blur(15px) !important;
	-webkit-backdrop-filter: blur(15px) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0 !important;
}

.msc-loader-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

/* Ensure centering on mobile by disabling potential parent transforms only when loader is active */
body.msc-loader-active {
	overflow: hidden !important;
}

.msc-loader-content {
	text-align: center;
	padding: 40px 20px;
	width: 100%;
	max-width: 400px;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	position: relative !important;
	z-index: 10 !important;
}

.msc-loader-spinner {
	width: 60px;
	height: 60px;
	border: 4px solid rgba(16, 185, 129, 0.1);
	border-top-color: #10b981; /* Premium Green */
	border-radius: 50%;
	margin-bottom: 24px;
	animation: msc-spin 0.8s linear infinite;
}

.msc-loader-title {
	font-size: 20px;
	font-weight: 800;
	color: #111827;
	margin: 0 0 10px 0;
	letter-spacing: -0.02em;
}

.msc-loader-subtitle {
	font-size: 14px;
	color: #4b5563;
	margin: 0;
	line-height: 1.5;
}

@keyframes msc-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Force terms checkbox to sit perfectly side-by-side with text */
body.woocommerce-checkout.msc-checkout-active .woocommerce-terms-and-conditions-wrapper label.checkbox,
body.woocommerce-checkout.msc-checkout-active [class*="sozlesme"] label {
	display: flex !important;
	align-items: flex-start !important;
	gap: 8.5px !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 12px 0 !important;
	padding: 0 !important;
	cursor: pointer !important;
	font-size: 12.5px !important;
	line-height: 1.4 !important;
	text-align: left !important;
	white-space: normal !important;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-terms-and-conditions-wrapper label.checkbox input[type="checkbox"],
body.woocommerce-checkout.msc-checkout-active [class*="sozlesme"] input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
	max-width: 18px !important;
	flex: 0 0 18px !important;
	margin: 2px 0 0 0 !important;
	accent-color: #2563eb !important; /* Premium Blue for all checkboxes */
	display: inline-block !important;
	clear: none !important;
	float: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	position: static !important;
}




/* Disable any scrolling on the right column / order review */
body.woocommerce-checkout.msc-checkout-active .msc-right,
body.woocommerce-checkout.msc-checkout-active .msc-summary,
body.woocommerce-checkout.msc-checkout-active #order_review,
body.woocommerce-checkout.msc-checkout-active .woocommerce-checkout-review-order-table,
body.woocommerce-checkout.msc-checkout-active .woocommerce-checkout-review-order-table tbody {
    max-height: none !important;
    overflow-y: visible !important;
}


/* Fix sticky button cropping issue by ensuring no overflow hiding */
body.woocommerce-checkout.msc-checkout-active .msc-checkout-wrap,
body.woocommerce-checkout.msc-checkout-active form.checkout,
body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid,
body.woocommerce-checkout.msc-checkout-active .msc-right,
body.woocommerce-checkout.msc-checkout-active .msc-summary {
    overflow: visible !important;
}

/* --- COMPREHENSIVE ALIGNMENT & WIDTH FIXES --- */

/* Fix top alignment of left and right columns */
body.woocommerce-checkout.msc-checkout-active .msc-left,
body.woocommerce-checkout.msc-checkout-active .msc-right,
body.woocommerce-checkout.msc-checkout-active .msc-left > .msc-card,
body.woocommerce-checkout.msc-checkout-active .msc-right .msc-summary > .msc-card {
    margin-top: 0 !important;
}

/* Fix spacing and sizing of input rows to be perfectly balanced */
body.woocommerce-checkout.msc-checkout-active .woocommerce-billing-fields h3,
body.woocommerce-checkout.msc-checkout-active .woocommerce-shipping-fields h3 {
    display: none !important;
}

body.woocommerce-checkout.msc-checkout-active .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout.msc-checkout-active .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout.msc-checkout-active .woocommerce-additional-fields__field-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 14px !important;
    margin: 0 !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-left .form-row {
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-left .form-row-first,
body.woocommerce-checkout.msc-checkout-active .msc-left .form-row-last,
body.woocommerce-checkout.msc-checkout-active .msc-left .msc-col-6 {
    flex: 0 0 calc(50% - 7px) !important;
    max-width: calc(50% - 7px) !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-left .form-row-wide,
body.woocommerce-checkout.msc-checkout-active .msc-left .msc-col-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    body.woocommerce-checkout.msc-checkout-active .msc-left .form-row-first,
    body.woocommerce-checkout.msc-checkout-active .msc-left .form-row-last,
    body.woocommerce-checkout.msc-checkout-active .msc-left .msc-col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Fix heights of coupon field and button */
body.woocommerce-checkout.msc-checkout-active .msc-coupon .msc-coupon-input {
    height: 44px !important;
    padding: 10px 14px !important;
    margin: 0 !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-coupon .msc-coupon-apply {
    height: 44px !important;
    padding: 10px 14px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   MINIMALIST REDESIGN (SHOPIFY/IKAS STYLE) - CUSTOM STYLES
   ========================================================================== */

/* 1. Flat & Borderless Left Column / Soft Gray Right Column */
body.woocommerce-checkout.msc-checkout-active .msc-left > .msc-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-right .msc-summary > .msc-card {
    background: #f9fafb !important;
    border: 1px solid rgba(17, 24, 39, 0.06) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    box-shadow: none !important;
}

/* 2. Minimize Separator Lines */
body.woocommerce-checkout.msc-checkout-active .msc-section-sep {
    display: none !important;
}

/* 3. Coupon and Notes Toggle buttons */
.msc-coupon-toggle-wrap {
    margin-bottom: 8px !important;
}
.msc-notes-toggle-wrap {
    margin: 4px 0 !important;
    padding: 0 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
}
.msc-coupon-toggle-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--msc-primary, #1773b0) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: opacity 0.15s ease !important;
    outline: none !important;
}
.msc-notes-toggle-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--msc-primary, #1773b0) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    transition: opacity 0.15s ease !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
}
.msc-coupon-toggle-btn:hover,
.msc-notes-toggle-btn:hover {
    opacity: 0.8 !important;
}
.msc-coupon-toggle-btn .msc-toggle-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease;
}
.msc-coupon-toggle-btn.is-active .msc-toggle-arrow {
    transform: rotate(180deg);
}

/* Smooth toggle collapse state */
.msc-coupon {
    margin-top: 10px !important;
    margin-bottom: 14px !important;
}
.msc-order-notes {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

/* 4. Slim & Minimalist Progress Bar */
body.woocommerce-checkout.msc-checkout-active .msc-progress-indicator,
body.woocommerce-cart.msc-checkout-active .msc-progress-indicator,
body.woocommerce-order-received.msc-checkout-active .msc-progress-indicator {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 0 !important;
    margin-bottom: 32px !important;
    gap: 24px !important;
    justify-content: center !important; /* Centered on desktop */
}
body.woocommerce-checkout.msc-checkout-active .msc-progress-step,
body.msc-checkout-active .msc-progress-step {
    flex-direction: row !important;
    gap: 10px !important;
    align-items: center !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-progress-number,
body.msc-checkout-active .msc-progress-number {
    width: 36px !important; /* Larger circles on desktop */
    height: 36px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    background: rgba(17, 24, 39, 0.05) !important;
    color: #6b7280 !important;
    border: none !important;
    box-shadow: none !important;
}
body.msc-checkout-active .msc-progress-step.msc-progress-active .msc-progress-number {
    background: var(--msc-primary, #1773b0) !important;
    color: #fff !important;
}
body.msc-checkout-active .msc-progress-step.msc-progress-completed .msc-progress-number {
    background: #10b981 !important;
    color: #fff !important;
}
body.msc-checkout-active .msc-progress-check .msc-check-icon {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 3.5 !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-progress-label,
body.msc-checkout-active .msc-progress-label {
    font-size: 16px !important; /* Larger font size on desktop */
    font-weight: 500 !important;
    color: #6b7280 !important;
}
body.msc-checkout-active .msc-progress-step.msc-progress-active .msc-progress-label {
    color: #111827 !important;
    font-weight: 600 !important;
}
body.msc-checkout-active .msc-progress-step.msc-progress-completed .msc-progress-label {
    color: #111827 !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-progress-line,
body.msc-checkout-active .msc-progress-line {
    height: 2px !important;
    background: rgba(17, 24, 39, 0.08) !important;
    max-width: 100px !important; /* Longer line on desktop */
    margin: 0 10px !important;
}
body.msc-checkout-active .msc-progress-line.msc-progress-active,
body.msc-checkout-active .msc-progress-line.msc-progress-line-done {
    background: #10b981 !important;
}

/* 5. Floating Label Inputs & select boxes */

/* Ensure equal spacing between all input fields */
body.woocommerce-checkout.msc-checkout-active .msc-field {
    position: relative !important;
    margin-bottom: 18px !important;
}

/* If fields are within a flex wrapper, use the flex gap and remove margin-bottom to avoid double spacing */
body.woocommerce-checkout.msc-checkout-active .woocommerce-billing-fields__field-wrapper .msc-field,
body.woocommerce-checkout.msc-checkout-active .woocommerce-shipping-fields__field-wrapper .msc-field,
body.woocommerce-checkout.msc-checkout-active .woocommerce-additional-fields__field-wrapper .msc-field {
    margin-bottom: 0 !important;
}

/* Set flexible margins and gaps for the columns grid */
body.woocommerce-checkout.msc-checkout-active .msc-checkout-grid {
    gap: 28px !important;
}
body.woocommerce-checkout.msc-checkout-active .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout.msc-checkout-active .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout.msc-checkout-active .woocommerce-additional-fields__field-wrapper {
    gap: 18px !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-left .form-row-first,
body.woocommerce-checkout.msc-checkout-active .msc-left .form-row-last,
body.woocommerce-checkout.msc-checkout-active .msc-left .msc-col-6 {
    flex: 0 0 calc(50% - 9px) !important;
    max-width: calc(50% - 9px) !important;
}

/* Hide placeholders by default when field is empty to prevent overlap with the absolute label */
body.woocommerce-checkout.msc-checkout-active .msc-field input::placeholder,
body.woocommerce-checkout.msc-checkout-active .msc-field textarea::placeholder {
    color: transparent !important;
    transition: color 0.15s ease !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-field:focus-within input::placeholder,
body.woocommerce-checkout.msc-checkout-active .msc-field:focus-within textarea::placeholder {
    color: #9ca3af !important;
}

/* Label styling: perfectly centered when flat/empty */
body.woocommerce-checkout.msc-checkout-active .msc-field label.msc-label {
    position: absolute !important;
    left: 12px !important;
    top: 18px !important;
    pointer-events: none !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
    transition: all 0.15s ease-out !important;
    margin: 0 !important;
    line-height: 1 !important;
    z-index: 10 !important;
    background: transparent !important;
    transform: none !important;
}

/* Inputs styled with premium height (52px) and generous padding */
body.woocommerce-checkout.msc-checkout-active .msc-field input.msc-input,
body.woocommerce-checkout.msc-checkout-active .msc-field select.msc-input,
body.woocommerce-checkout.msc-checkout-active .msc-field textarea.msc-input {
    height: 52px !important;
    padding: 22px 12px 6px 12px !important;
    font-size: 14px !important;
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: var(--msc-radius, 8px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
    color: #111827 !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-field textarea.msc-input {
    height: 90px !important;
    padding-top: 24px !important;
}

/* Select2 container selection element - NO internal padding to avoid double spacing */
body.woocommerce-checkout.msc-checkout-active .msc-field .select2-container--default .select2-selection--single {
    height: 52px !important;
    padding: 0 !important; /* Reset padding to 0 */
    border: 1px solid #d1d5db !important;
    border-radius: var(--msc-radius, 8px) !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
}

/* Premium chevron arrow for native select boxes */
body.woocommerce-checkout.msc-checkout-active .msc-field select.msc-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
    padding-right: 28px !important;
}

/* Floating Label state (on focus or when containing value) */
body.woocommerce-checkout.msc-checkout-active .msc-field.msc-floating-active label.msc-label,
body.woocommerce-checkout.msc-checkout-active .msc-field:has(input:not(:placeholder-shown)) label.msc-label,
body.woocommerce-checkout.msc-checkout-active .msc-field:has(textarea:not(:placeholder-shown)) label.msc-label {
    top: 8px !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* Always float labels for selects/select2 elements as they always show some default text/option */
body.woocommerce-checkout.msc-checkout-active .msc-field:has(select) label.msc-label,
body.woocommerce-checkout.msc-checkout-active .msc-field:has(.select2-container) label.msc-label {
    top: 8px !important;
    font-size: 11px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
}

body.woocommerce-checkout.msc-checkout-active .msc-field:focus-within label.msc-label {
    color: var(--msc-primary, #1773b0) !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-field input.msc-input:focus,
body.woocommerce-checkout.msc-checkout-active .msc-field textarea.msc-input:focus {
    border-color: var(--msc-primary, #1773b0) !important;
    box-shadow: 0 0 0 1px var(--msc-primary, #1773b0) !important;
    outline: none !important;
}

/* Select2 dropdown floating label support */
body.woocommerce-checkout.msc-checkout-active .msc-field .select2-container--default .select2-selection--single {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1 !important;
    padding-top: 22px !important;
    padding-left: 12px !important;
    padding-right: 28px !important;
    color: #111827 !important;
    font-size: 14px !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-field .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 52px !important;
    right: 12px !important;
}

/* Asterisk design */
body.woocommerce-checkout.msc-checkout-active .msc-field label.msc-label abbr.required {
    color: #ef4444 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    margin-left: 2px !important;
}

/* 6. Minimal Checkout Header */
body.woocommerce-checkout.msc-checkout-active .msc-checkout-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid rgba(17, 24, 39, 0.06) !important;
    margin-bottom: 24px !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-header-left, 
body.woocommerce-checkout.msc-checkout-active .msc-header-right {
    flex: 1 1 0% !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-header-right {
    text-align: right !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-header-logo {
    flex: 0 0 auto !important;
    text-align: center !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-back-to-cart {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    transition: color 0.15s ease !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-back-to-cart:hover {
    color: var(--msc-primary, #1773b0) !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-back-arrow {
    display: inline-block !important;
    vertical-align: middle !important;
    transition: transform 0.15s ease !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-back-to-cart:hover .msc-back-arrow {
    transform: translateX(-3px) !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-logo-img {
    max-height: 40px !important;
    width: auto !important;
    display: block !important;
    margin: 0 auto !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-logo-text {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    letter-spacing: -0.5px !important;
}

/* 7. Apple/Shopify Payment list layout */
body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li .payment_box {
    background: #f9fafb !important;
    border: 1px solid rgba(17, 24, 39, 0.05) !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin: 12px 16px 16px 16px !important;
    font-size: 13px !important;
    color: #4b5563 !important;
    box-shadow: none !important;
}
body.woocommerce-checkout.msc-checkout-active #payment .payment_methods li .payment_box::before {
    display: none !important;
}
body.woocommerce-checkout.msc-checkout-active .msc-section-sep.msc-payment-sep {
    display: block !important;
    margin: 10px 0 !important;
}

/* 8. Responsiveness Adjustments */
@media (max-width: 980px) {
    body.woocommerce-checkout.msc-checkout-active .msc-right .msc-summary > .msc-card {
        padding: 16px !important;
        background: #f9fafb !important;
    }
    body.woocommerce-checkout.msc-checkout-active .msc-left > .msc-card {
        padding: 0 !important;
    }
    body.woocommerce-checkout.msc-checkout-active .msc-checkout-header {
        padding: 16px 0 !important;
        margin-bottom: 20px !important;
    }
    body.woocommerce-checkout.msc-checkout-active .msc-logo-text {
        font-size: 18px !important;
    }
    body.woocommerce-checkout.msc-checkout-active .msc-progress-indicator {
        justify-content: center !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    body.woocommerce-checkout.msc-checkout-active .msc-progress-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
    }
    body.woocommerce-checkout.msc-checkout-active .msc-progress-check .msc-check-icon {
        width: 12px !important;
        height: 12px !important;
        stroke-width: 4 !important;
    }
    body.woocommerce-checkout.msc-checkout-active .msc-progress-label {
        font-size: 13px !important;
    }
    body.woocommerce-checkout.msc-checkout-active .msc-progress-line {
        max-width: 45px !important;
        margin: 0 4px !important;
        height: 1.5px !important;
    }
}

/* 9. Select2 Dropdown and Options Premium Styling */
body.woocommerce-checkout.msc-checkout-active .msc-field:has(.select2-container--open) {
    z-index: 9999 !important;
}
body.woocommerce-checkout.msc-checkout-active .select2-container--open .select2-dropdown {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

body.woocommerce-checkout.msc-checkout-active .select2-container--open .select2-dropdown--below {
    margin-top: 2px !important;
}

body.woocommerce-checkout.msc-checkout-active .select2-container--open .select2-dropdown--above {
    margin-top: -2px !important;
}

body.woocommerce-checkout.msc-checkout-active .select2-container .select2-search--dropdown {
    padding: 8px 12px !important;
}

body.woocommerce-checkout.msc-checkout-active .select2-container .select2-search--dropdown .select2-search__field {
    height: 38px !important;
    padding: 8px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    outline: none !important;
    box-sizing: border-box !important;
}

body.woocommerce-checkout.msc-checkout-active .select2-container .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--msc-primary, #1773b0) !important;
    box-shadow: 0 0 0 1px var(--msc-primary, #1773b0) !important;
}

body.woocommerce-checkout.msc-checkout-active .select2-container .select2-results__options {
    max-height: 250px !important;
    padding: 4px !important;
}

body.woocommerce-checkout.msc-checkout-active .select2-container .select2-results__option {
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #374151 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, color 0.15s ease !important;
}

body.woocommerce-checkout.msc-checkout-active .select2-container .select2-results__option--highlighted[aria-selected],
body.woocommerce-checkout.msc-checkout-active .select2-container .select2-results__option[aria-selected="true"] {
    background-color: rgba(23, 115, 176, 0.08) !important;
    color: var(--msc-primary, #1773b0) !important;
}

body.woocommerce-checkout.msc-checkout-active .select2-container .select2-results__option--highlighted[aria-selected="true"] {
    background-color: var(--msc-primary, #1773b0) !important;
    color: #ffffff !important;
}
