/* --- Cart & Checkout --- */
.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce-checkout-payment {
	background-color: var(--wp--preset--color--surface);
}

.woocommerce table.cart th,
.woocommerce table.cart td {
	border-color: var(--wp--preset--color--border);
	color: var(--wp--preset--color--text);
}

/* --- WooCommerce Blocks Checkout (Shopify-level dark) --- */
.wp-block-woocommerce-checkout {
	--checkout-bg: var(--wp--preset--color--background);
	--checkout-surface: var(--wp--preset--color--surface);
	--checkout-text: var(--wp--preset--color--text);
	--checkout-text-muted: var(--wp--preset--color--text-muted);
	--checkout-border: var(--wp--preset--color--border);
	--checkout-accent: var(--wp--preset--color--primary);
}

/* Hide password manager icons/popups on checkout */
.wc-block-checkout com-1password-op-small-icon,
.wc-block-checkout [data-lastpass-icon-root] {
	display: none !important;
}

/* Checkout page: hide default header/footer for clean checkout */
.woocommerce-page.woocommerce-checkout .wp-site-blocks > header,
.woocommerce-page.woocommerce-checkout .wp-site-blocks > footer {
	display: none !important;
}

/* Outer checkout wrapper — centered, max-width */
.wp-block-woocommerce-checkout {
	max-width: 1100px !important;
	margin: 0 auto !important;
	padding: 0 1.5rem 2rem !important;
}

/* Checkout logo header */
.wp-block-woocommerce-checkout::before {
	display: none !important;
}

.muus-checkout-logo-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1.5rem 1.5rem;
	text-align: center;
	border-bottom: 1px solid var(--checkout-border);
}

.muus-checkout-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--wp--preset--color--text);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	text-decoration: none;
}

.muus-checkout-logo__icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

.muus-checkout-logo:hover {
	color: var(--checkout-accent, #c8a97e);
}

/* Inner sidebar layout — preserve 2-column flex */
.wc-block-components-sidebar-layout.wc-block-checkout {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.wc-block-components-sidebar-layout.wc-block-checkout::before {
	display: none !important;
}

/* Main form area */
.wc-block-checkout__main {
	padding-right: 2.5rem !important;
}

/* Section cards — each fieldset as a card */
.wc-block-checkout fieldset,
.wc-block-checkout__order-notes {
	background-color: var(--checkout-surface) !important;
	border: 1px solid var(--checkout-border) !important;
	border-radius: 8px !important;
	padding: 1.5rem !important;
	margin-bottom: 1.25rem !important;
}

/* Section headings */
.wc-block-checkout .wc-block-components-title,
.wc-block-checkout h2 {
	color: var(--checkout-text) !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
	font-family: var(--wp--preset--font-family--body) !important;
	letter-spacing: 0.03em !important;
	text-transform: uppercase !important;
	margin-bottom: 1rem !important;
}

/* Hide duplicate fieldset legend (screen-reader text shown as heading) */
.wc-block-checkout fieldset > .screen-reader-text {
	position: absolute !important;
	clip: rect(0, 0, 0, 0) !important;
}

/* Input fields */
.wc-block-checkout input[type="text"],
.wc-block-checkout input[type="email"],
.wc-block-checkout input[type="tel"],
.wc-block-checkout input[type="number"],
.wc-block-checkout input[type="password"],
.wc-block-checkout select,
.wc-block-checkout textarea,
.wc-block-components-text-input input,
.wc-block-components-text-input textarea,
.wc-block-components-combobox .components-combobox-control input,
.wc-block-components-form .wc-block-components-text-input input {
	background-color: var(--checkout-bg) !important;
	color: var(--checkout-text) !important;
	border: 1px solid var(--checkout-border) !important;
	border-radius: 6px !important;
	padding: 1.5rem 0.85rem 0.45rem !important;
	font-size: 0.875rem !important;
	transition: border-color 0.2s ease !important;
	line-height: 1.4 !important;
}

.wc-block-checkout select,
.wc-block-components-combobox .components-combobox-control input {
	background-color: var(--checkout-bg) !important;
	color: var(--checkout-text) !important;
	border-radius: 6px !important;
	padding: 1.5rem 0.85rem 0.45rem !important;
}

/* Labels — floating behavior */
.wc-block-components-text-input label,
.wc-block-components-combobox label {
	color: var(--checkout-text-muted) !important;
	position: absolute !important;
	top: 25px !important;
	transform: translateY(-50%) !important;
	left: 0.85rem !important;
	font-size: 0.875rem !important;
	transition: all 0.15s ease !important;
	pointer-events: none !important;
}

/* Label floats up when input has value or focus */
.wc-block-components-text-input.is-active label,
.wc-block-components-text-input label.is-active,
.wc-block-components-combobox.is-active label,
.wc-block-components-text-input:focus-within label {
	top: 0.4rem !important;
	transform: none !important;
	font-size: 0.68rem !important;
	color: var(--checkout-accent) !important;
}

/* Focus state — accent border */
.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus,
.wc-block-checkout select:focus,
.wc-block-checkout textarea:focus {
	border-color: var(--checkout-accent) !important;
	box-shadow: 0 0 0 1px var(--checkout-accent) !important;
	outline: none !important;
}

/* Form field spacing */
.wc-block-checkout .wc-block-components-address-form > div,
.wc-block-checkout .wc-block-components-address-form > p {
	margin-bottom: 0.75rem !important;
}

/* Smart address form: enable flex ordering so address comes before city/state/postcode */
.wc-block-components-address-form {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
}

.wc-block-components-address-form > * {
	width: 100%;
	flex: 0 0 100%;
}

@media (min-width: 481px) {
	.wc-block-components-address-form .wc-block-components-address-form__first_name,
	.wc-block-components-address-form .wc-block-components-address-form__last_name,
	.wc-block-components-address-form .wc-block-components-address-form__muus-patronymic {
		flex: 1 1 0% !important;
		width: 0 !important;
		min-width: 0 !important;
	}
}
@media (max-width: 480px) {
	.wc-block-components-address-form .wc-block-components-address-form__first_name,
	.wc-block-components-address-form .wc-block-components-address-form__last_name,
	.wc-block-components-address-form .wc-block-components-address-form__muus-patronymic {
		flex: 0 0 100% !important;
		width: 100% !important;
	}
}

.wc-block-components-address-form .wc-block-components-address-form__first_name {
	order: -10 !important;
}

.wc-block-components-address-form .wc-block-components-address-form__last_name {
	order: -9 !important;
}

/* Patronymic field (RU only) — same row as first/last name */
.wc-block-components-address-form .wc-block-components-address-form__muus-patronymic {
	order: -8 !important;
	margin-top: 0 !important;
	height: 50px !important;
}
.wc-block-components-address-form__muus-patronymic input {
	height: 100% !important;
}

.wc-block-components-address-form__country {
	order: -7 !important;
}

.wc-block-components-address-form__address_1 {
	order: -6 !important;
}

/* Hidden auto-fill fields (city, state, postcode) — revealed by DaData or manual click */
.muus-auto-field-hidden {
	display: none !important;
}

.muus-auto-field-revealed {
	animation: muusFadeIn 0.3s ease;
}

@keyframes muusFadeIn {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* "Enter address manually" link */
.muus-manual-address-btn {
	order: -2 !important;
	width: 100%;
	background: none;
	border: none;
	color: var(--checkout-muted, #999);
	font-size: 0.8rem;
	padding: 0;
	margin: -0.25rem 0 0.5rem;
	cursor: pointer;
	text-align: left;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.muus-manual-address-btn:hover {
	color: var(--checkout-accent, #c8a97e);
}

/* Fix white strips on country/region select dropdowns */
.wc-blocks-components-select__container {
	background-color: transparent !important;
}

/* Gold label for select dropdowns (country, region) to match text inputs */
.wc-blocks-components-select__label {
	color: var(--wp--preset--color--primary) !important;
}

/* Ensure consistent gap around country field */
.wc-block-components-address-form__country {
	margin-top: 0.75rem !important;
	margin-bottom: 0.75rem !important;
}

/* Order summary sidebar */
.wc-block-checkout__sidebar {
	background-color: var(--checkout-surface) !important;
	padding: 1.5rem !important;
	border-radius: 8px !important;
	border: 1px solid var(--checkout-border) !important;
	position: sticky !important;
	top: 2rem !important;
}

.wc-block-checkout__sidebar .wc-block-components-title,
.wc-block-checkout__sidebar h2,
.wc-block-components-order-summary .wc-block-components-title,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-title,
.wc-block-components-checkout-order-summary__title-text {
	color: var(--checkout-text) !important;
	font-size: 1rem !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	font-weight: 600 !important;
}

/* Order summary */
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper {
	border-color: var(--checkout-border) !important;
}

/* Remove inner border on order summary — outer sidebar border is enough */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
	border: none !important;
}

/* Uniform padding for all totals rows (Товары, Доставка, Промокод) */
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper {
	padding: 0.6rem 0 !important;
	margin: 0 !important;
}

/* Hide empty fee/discount blocks that create phantom gaps */
.wp-block-woocommerce-checkout-order-summary-fee-block:empty,
.wp-block-woocommerce-checkout-order-summary-discount-block:empty,
.wc-block-components-totals-wrapper:empty {
	display: none !important;
}

/* Remove border between subtotal and shipping */
.wp-block-woocommerce-checkout-order-summary-shipping-block {
	border-top: none !important;
}

/* Remove double line between shipping and coupon after sidebar reorder */
.wc-block-components-totals-wrapper:has(.wc-block-components-totals-coupon) {
	border-top: none !important;
}

/* Each product row — flex layout */
.wc-block-components-order-summary .wc-block-components-order-summary-item {
	display: flex !important;
	align-items: center !important;
	gap: 14px !important;
	padding: 12px 0 !important;
}

/* Product image — square thumbnail */
.wc-block-components-order-summary .wc-block-components-order-summary-item__image {
	display: block !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	width: 56px !important;
	height: 56px !important;
	min-width: 56px !important;
	background-color: #1a1a1a !important;
	flex-shrink: 0 !important;
	padding-bottom: 0 !important;
	margin: 0 !important;
	float: none !important;
	position: relative !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image img {
	width: 56px !important;
	height: 56px !important;
	max-width: 56px !important;
	object-fit: cover !important;
	display: block !important;
}

/* Description area — name + price in one row */
.wc-block-components-order-summary .wc-block-components-order-summary-item__description {
	display: flex !important;
	flex: 1 !important;
	align-items: center !important;
	min-width: 0 !important;
	vertical-align: unset !important;
	padding: 0 !important;
	margin: 0 !important;
	color: var(--checkout-text-muted) !important;
	font-size: 0.8rem !important;
}

/* Product name */
.wc-block-components-order-summary-item__description h3 {
	margin: 0 !important;
	flex: 1 1 0% !important;
	min-width: 60px !important;
	color: #fff !important;
	word-break: break-word !important;
}

.wc-block-components-order-summary-item__description h3,
.wc-block-components-order-summary-item__description h3 a {
	color: #fff !important;
	font-size: 0.75rem !important;
	font-weight: 400 !important;
	text-transform: none !important;
	text-decoration: none !important;
	line-height: 1.35 !important;
	letter-spacing: 0.01em !important;
	transition: color 0.2s;
}

.wc-block-components-order-summary-item__description h3 a:hover {
	color: var(--checkout-accent, #c8a97e) !important;
}

.wc-block-components-order-summary-item__image a.muus-product-link {
	display: block;
}

.wc-block-components-order-summary-item {
	cursor: pointer;
}

.muus-qty-badge {
	color: var(--checkout-text-muted, #888) !important;
	font-size: 0.8rem !important;
	font-weight: 400 !important;
}

/* Hide unit price and metadata (total on the right is enough) */
.wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
.wc-block-components-order-summary-item__individual-price,
.wc-block-components-order-summary-item__description .wc-block-components-product-badge {
	display: none !important;
}

/* Total price — gold accent */
.wc-block-components-order-summary-item__total-price {
	color: var(--checkout-accent) !important;
	font-weight: 600 !important;
	font-size: 0.9rem !important;
	white-space: nowrap !important;
	padding-left: 12px !important;
}

/* Quantity badge — hide */
.wc-block-components-order-summary-item__quantity {
	display: none !important;
}

/* Totals */
.wc-block-components-totals-item__label {
	color: var(--checkout-text-muted) !important;
}

/* Hide shipping label in sidebar until JS strips parenthesized days — prevents flash */
.wc-block-components-totals-shipping .wc-block-components-totals-item__label {
	visibility: hidden;
}
.wc-block-components-totals-shipping .wc-block-components-totals-item__label.muus-clean {
	visibility: visible;
}

.wc-block-components-totals-item__value {
	color: var(--checkout-text) !important;
	font-weight: 600;
}

.wc-block-components-totals-wrapper:last-child {
	border-top: none !important;
}

.wc-block-components-totals-footer-item {
	border-top: 1px solid var(--checkout-border) !important;
	padding: 0.85rem 0 !important;
	margin: 0 !important;
}

/* Align Итого padding with other totals rows */
.wc-block-components-totals-footer-item.wc-block-components-totals-item {
	padding-left: 16px !important;
	padding-right: 16px !important;
}

.wc-block-checkout__sidebar .wc-block-components-totals-footer-item + .wc-block-components-totals-wrapper,
.wc-block-checkout__sidebar .wc-block-components-totals-wrapper:has(.wc-block-components-totals-footer-item) {
	padding: 0 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: var(--checkout-text) !important;
	font-weight: 600 !important;
	font-size: 1rem !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	color: var(--checkout-accent) !important;
}

/* Notices */
.wc-block-components-notice-banner {
	background-color: var(--checkout-surface) !important;
	color: var(--checkout-text) !important;
	border: 1px solid var(--checkout-border) !important;
	border-radius: 8px !important;
	padding: 1rem 1.25rem !important;
}

.wc-block-components-notice-banner.is-success {
	border-left: 3px solid var(--checkout-accent) !important;
}

.wc-block-components-notice-banner.is-error,
.wc-block-checkout__payment-method .wc-block-components-notice-banner {
	border-left: 3px solid #c0392b !important;
}

.wc-block-components-notice-banner.is-warning,
.wc-block-components-notice-banner.is-info {
	border-left: 3px solid var(--checkout-accent) !important;
}

.wc-block-components-notice-banner a {
	color: var(--checkout-accent) !important;
}

/* Validation errors */
.wc-block-components-validation-error {
	color: #e74c3c !important;
	font-size: 0.78rem !important;
	margin-top: 0.3rem !important;
}

/* Place Order button — full width, prominent */
.wc-block-components-checkout-place-order-button {
	background-color: var(--checkout-accent) !important;
	color: var(--checkout-bg) !important;
	border: none !important;
	border-radius: 6px !important;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 700;
	font-size: 0.9rem !important;
	padding: 1.1rem 2rem !important;
	transition: all 0.2s ease;
	width: 100%;
}

.wc-block-components-checkout-place-order-button:hover {
	background-color: var(--checkout-text) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Actions row — button + return link */
.wc-block-checkout__actions_row {
	margin-top: 1.5rem !important;
	padding-top: 1.5rem !important;
	border-top: 1px solid var(--checkout-border) !important;
	display: flex;
	align-items: center;
	gap: 1rem;
}


/* Coupons */
.wc-block-components-totals-coupon__content input {
	background-color: var(--checkout-bg) !important;
	color: var(--checkout-text) !important;
	border: 1px solid var(--checkout-border) !important;
	border-radius: 6px !important;
}

.wc-block-components-totals-coupon__content button {
	background-color: var(--checkout-surface) !important;
	color: var(--checkout-text) !important;
	border: 1px solid var(--checkout-border) !important;
	border-radius: 6px !important;
	transition: border-color 0.2s ease;
}

.wc-block-components-totals-coupon__content button:hover {
	border-color: var(--checkout-accent) !important;
	color: var(--checkout-accent) !important;
}

/* Checkbox */
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input {
	accent-color: var(--checkout-accent);
}

.wc-block-checkout .wc-block-components-checkbox__label {
	color: var(--checkout-text-muted) !important;
	font-size: 0.85rem !important;
}

/* Hide guest checkout text */
.wc-block-checkout__guest-checkout,
.wc-block-checkout__guest-checkout-notice {
	display: none !important;
}

/* Terms text */
.wc-block-checkout__actions_row > span {
	color: var(--checkout-text-muted) !important;
	font-size: 0.78rem !important;
	line-height: 1.4 !important;
}

.wc-block-checkout__actions_row > span a {
	color: var(--checkout-accent) !important;
	text-decoration: underline !important;
}

/* Place Order button moved to sidebar */
.wc-block-checkout__sidebar .wc-block-checkout__actions {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0.85rem !important;
	border-top: 1px solid var(--checkout-border) !important;
}

.wc-block-checkout__sidebar .wc-block-checkout__actions_row {
	margin-top: 0 !important;
	padding-top: 0 !important;
	border-top: none !important;
}

.wc-block-checkout__sidebar .wc-block-components-checkout-place-order-button {
	font-size: 0.85rem !important;
	padding: 0.9rem 1.5rem !important;
	letter-spacing: 0.08em !important;
}

.wc-block-checkout__sidebar .wc-block-checkout__actions_row > span {
	font-size: 0.72rem !important;
}

.muus-checkout-legal {
	color: var(--checkout-text-muted, #888) !important;
	font-size: 0.7rem !important;
	line-height: 1.5 !important;
	margin-top: 0.35rem !important;
	text-align: center !important;
}

.muus-checkout-legal a {
	color: var(--checkout-text-muted, #888) !important;
	text-decoration: underline !important;
	transition: color 0.2s;
}

.muus-checkout-legal a:hover {
	color: var(--checkout-accent, #c8a97e) !important;
}

/* Hide default WC terms (replaced by custom legal text in sidebar) */
.wc-block-checkout__terms {
	display: none !important;
}

/* Shipping method radio buttons — card grid */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 0.75rem !important;
}

.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option {
	background-color: var(--checkout-surface) !important;
	border: 1.5px solid var(--checkout-border) !important;
	border-radius: 10px !important;
	padding: 1rem 1rem 1rem 3.5rem !important;
	margin-bottom: 0 !important;
	transition: border-color 0.2s ease, background-color 0.2s ease !important;
	outline: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	min-height: 72px !important;
}

.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:focus,
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:focus-within {
	outline: none !important;
	box-shadow: none !important;
}

.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:has(input:checked) {
	border-color: var(--checkout-accent) !important;
}

/* Hide native radio input */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__input {
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	pointer-events: none !important;
}

/* Remove default WooCommerce highlight overlay on shipping and payment radio */
.wc-block-components-radio-control--highlight-checked::after,
.wc-block-components-radio-control__option::after {
	display: none !important;
}

/* Carrier icon placeholder (injected via JS) */
.muus-carrier-icon {
	position: absolute;
	left: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.muus-carrier-icon svg {
	width: 28px;
	height: 28px;
}

.muus-carrier-days {
	display: block;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--checkout-text-muted, #888) !important;
	margin-top: 0.15rem;
}

/* ── CDEK Map Widget ── */
/* Reset dark checkout theme inside CDEK widget so map controls stay light */
.wp-block-shipping-cdek-map {
	border-radius: 12px;
	overflow: hidden;
	margin-top: 0.75rem;
}

#cdek-map {
	transition: height 0.3s ease, opacity 0.2s ease;
}

/* Search input — override dark checkout input styles */
.wp-block-shipping-cdek-map input[type="text"],
.wp-block-shipping-cdek-map input {
	background-color: #fff !important;
	color: #333 !important;
	border: 1px solid #ccc !important;
	border-radius: 8px !important;
	padding: 0.5rem 0.75rem !important;
	font-size: 0.875rem !important;
}

.wp-block-shipping-cdek-map input::placeholder {
	color: #999 !important;
}

/* "Выбрать" button inside CDEK widget — black text on green */
.wp-block-shipping-cdek-map button[class*="cdek-"],
#cdek-map button[class*="cdek-"] {
	color: #000 !important;
	font-weight: 600 !important;
	border-radius: 8px !important;
}

/* Selected office info card */
.cdek-office-info {
	background: var(--checkout-surface, #1a1a1a) !important;
	color: var(--checkout-text, #e8e5e0) !important;
	border: 1px solid var(--checkout-border, #333) !important;
	border-radius: 8px !important;
	padding: 0.75rem 1rem !important;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cdek-office-info::before {
	filter: invert(1) !important;
}

/* "Выбрать пункт выдачи" / "Изменить ПВЗ" button */
.open-pvz-btn {
	background-color: var(--checkout-accent, #c8a97e) !important;
	border: none !important;
	border-radius: 8px !important;
	color: #111 !important;
	font-weight: 600 !important;
	padding: 0.65rem 1.25rem !important;
	cursor: pointer !important;
	font-size: 0.85rem !important;
	transition: opacity 0.2s ease !important;
}

.open-pvz-btn:hover {
	opacity: 0.85 !important;
}

.open-pvz-btn a {
	color: inherit !important;
	text-decoration: none !important;
}

/* Compact selected-office summary shown after map collapses */
.muus-selected-office {
	background: var(--checkout-surface, #1a1a1a);
	border: 1.5px solid var(--checkout-accent, #c8a97e);
	border-radius: 10px;
	padding: 0.85rem 1rem;
	margin-top: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.muus-selected-office-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	color: var(--checkout-accent, #c8a97e);
}

.muus-selected-office-details {
	flex: 1;
	min-width: 0;
}

.muus-selected-office-name {
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--checkout-text, #e8e5e0);
}

.muus-selected-office-address {
	font-size: 0.78rem;
	color: var(--checkout-text-muted, #888);
	margin-top: 0.15rem;
}

.muus-selected-office-change {
	color: var(--checkout-accent, #c8a97e);
	font-size: 0.78rem;
	font-weight: 500;
	cursor: pointer;
	flex-shrink: 0;
	text-decoration: none;
	border: none;
	background: none;
	padding: 0;
}

.muus-selected-office-change:hover {
	text-decoration: underline;
}

/* Label & price layout inside card */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label {
	color: var(--checkout-text) !important;
	font-size: 0.88rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
}

.wc-block-components-shipping-rates-control .wc-block-components-radio-control__description {
	color: var(--checkout-text-muted) !important;
	font-size: 0.78rem !important;
}

.wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label {
	color: var(--checkout-accent) !important;
	font-weight: 600 !important;
	font-size: 0.88rem !important;
}

/* ── Payment method cards — grid layout ── */
.wc-block-checkout__payment-method .wc-block-components-radio-control {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 0.75rem !important;
}

.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
	background-color: var(--checkout-surface) !important;
	border: 1.5px solid var(--checkout-border) !important;
	border-radius: 10px !important;
	padding: 0 !important;
	overflow: hidden !important;
	transition: border-color 0.2s ease, background-color 0.2s ease !important;
	outline: none !important;
	box-shadow: none !important;
}

.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option--checked-option-highlighted {
	border-color: var(--checkout-accent) !important;
}

.wc-block-checkout__payment-method .wc-block-components-radio-control__option {
	padding: 1rem 1.25rem !important;
	margin: 0 !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	cursor: pointer !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 0.5rem !important;
	min-height: 72px !important;
}

.wc-block-checkout__payment-method .wc-block-components-radio-control__input {
	position: absolute !important;
	opacity: 0 !important;
	width: 0 !important;
	height: 0 !important;
	pointer-events: none !important;
}

.wc-block-checkout__payment-method .wc-block-components-radio-control__option-layout {
	width: 100% !important;
}

.wc-block-checkout__payment-method .wc-block-components-radio-control__label-group {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
}

.wc-block-checkout__payment-method .wc-block-components-radio-control__label {
	color: var(--checkout-text) !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	flex: 1 !important;
}

/* Inner span with text + icon — flex row */
.wc-block-checkout__payment-method .wc-block-components-radio-control__label > span {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
}

/* Payment gateway icon */
.wc-block-checkout__payment-method .wc-block-components-radio-control__label img {
	float: none !important;
	margin: 0 !important;
	height: 26px !important;
	width: auto !important;
	object-fit: contain !important;
	flex-shrink: 0 !important;
}

/* Description text below the label */
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content {
	padding: 0.5rem 1.25rem 1rem !important;
	color: var(--checkout-text-muted) !important;
	font-size: 0.78rem !important;
	line-height: 1.4 !important;
	border-top: 1px solid var(--checkout-border) !important;
}

/* Mobile: stack payment cards vertically */
@media (max-width: 480px) {
	.wc-block-checkout__payment-method .wc-block-components-radio-control {
		grid-template-columns: 1fr !important;
	}
}

/* Generic radio controls (non-payment, non-shipping) */
.wc-block-components-radio-control__option {
	color: var(--checkout-text) !important;
}

.wc-block-components-radio-control__label,
.wc-block-components-radio-control__description {
	color: var(--checkout-text) !important;
}

.wc-block-components-radio-control__secondary-label {
	color: var(--checkout-accent) !important;
	font-weight: 600 !important;
}

/* Mobile: stack shipping cards vertically */
@media (max-width: 480px) {
	.wc-block-components-shipping-rates-control .wc-block-components-radio-control {
		grid-template-columns: 1fr !important;
	}
}

/* Shipping address compact display */
.wc-block-components-address-card {
	background-color: var(--checkout-bg) !important;
	border: 1px solid var(--checkout-border) !important;
	border-radius: 6px !important;
	padding: 0.85rem 1rem !important;
}

.wc-block-components-address-card__address-info span {
	color: var(--checkout-text) !important;
}

.wc-block-components-address-card__edit {
	color: var(--checkout-accent) !important;
	font-size: 0.85rem !important;
}

/* Phone field: hide in address section (moved to contact via JS) */
.wc-block-components-address-form__phone {
	display: none !important;
}

/* "Use same address for billing": hidden on both sites. It ships checked, so
   hiding it pins billing to the delivery address. Across 133 orders on the two
   stores not one paid order ever carried a genuinely different billing address
   (the handful of mismatches were case/ZIP+4/transliteration noise), and neither
   YooKassa nor Robokassa asks us for a separate card address. The label was also
   actively misleading in Russian — WooCommerce translates "billing" as
   "выставление счетов", which reads as invoicing rather than the card address.
   The billing form itself is NOT hidden: a session that already unchecked the box
   must stay able to fill it, or checkout would fail on invisible required fields. */
.wc-block-checkout__use-address-for-billing {
	display: none !important;
}

/* DaData Address Suggestions dropdown */
.muus-suggest-dropdown {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background-color: #222;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
	max-height: 280px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--border) transparent;
}

.muus-suggest-item {
	display: block;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #fff;
	cursor: pointer;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: background-color 0.15s ease;
	white-space: normal !important;
	overflow-wrap: break-word;
	word-break: break-word;
}

.muus-suggest-item:last-child {
	border-bottom: none;
}

.muus-suggest-item:hover,
.muus-suggest-item--active {
	background-color: rgba(200, 169, 126, 0.15);
	color: var(--wp--preset--color--primary);
}

@media (max-width: 781px) {
	.muus-suggest-dropdown {
		max-height: 180px;
	}
	.muus-suggest-item {
		padding: 0.85rem 1rem;
		font-size: 0.95rem;
	}
}

/* Return to cart link — hidden */
.wc-block-components-checkout-return-to-cart-button {
	display: none !important;
}

/* Expand buttons (+ Add apartment, Add coupons) */
.wc-block-checkout button:not(.wc-block-components-checkout-place-order-button) {
	color: var(--checkout-text-muted) !important;
	font-size: 0.82rem !important;
}

.wc-block-components-totals-coupon button[aria-expanded] {
	color: var(--checkout-text) !important;
}

/* Mobile responsive */
@media (max-width: 781px) {
	/* Prevent iOS Safari auto-zoom on input focus (requires >= 16px) */
	.wc-block-checkout input[type="text"],
	.wc-block-checkout input[type="email"],
	.wc-block-checkout input[type="tel"],
	.wc-block-checkout input[type="number"],
	.wc-block-checkout input[type="password"],
	.wc-block-checkout select,
	.wc-block-checkout textarea,
	.wc-block-components-text-input input,
	.wc-block-components-text-input textarea,
	.wc-block-components-combobox .components-combobox-control input {
		font-size: 16px !important;
	}

	.wc-block-checkout__main {
		padding-right: 0 !important;
		order: 1;
	}

	.wc-block-checkout {
		padding: 1rem !important;
		display: flex !important;
		flex-direction: column !important;
	}

	.wc-block-checkout::before {
		font-size: 1.3rem;
		padding-bottom: 1rem;
		margin-bottom: 1.5rem;
		order: 0;
	}

	.wc-block-checkout fieldset {
		padding: 1.25rem 1rem !important;
	}

	.wc-block-checkout__sidebar {
		position: static !important;
		margin-top: 0.5rem;
		padding-top: 0 !important;
		order: 2;
	}

	.wc-block-components-checkout-order-summary__title {
		margin-top: 0 !important;
		padding-top: 0.75rem !important;
	}

	/* Hide duplicate order summary rendered inside the actions block on mobile */
	.wc-block-checkout__actions .wp-block-woocommerce-checkout-order-summary-block {
		display: none !important;
	}
}

