/* Mantic Truths – Represent-style checkout */

.woocommerce-checkout, .woocommerce-cart {
	--mt-co-ink: #000;
	--mt-co-mute: #757575;
	--mt-co-line: #dcdcdc;
	--mt-co-soft: #f6f6f6;
}

/* ---- Flatsome "focused" checkout header: remove the second logo ---- */
body.mt-rm-on .cart-header #logo,
body.mt-rm-on .cart-header .logo { display: none !important; }

/* Steps (Shopping cart › Checkout details › Order complete): quieter */
.woocommerce-checkout .checkout-page-title .breadcrumbs,
.woocommerce-cart .checkout-page-title .breadcrumbs {
	font-size: 12px !important;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.woocommerce-checkout .checkout-page-title,
.woocommerce-cart .checkout-page-title { padding-top: 24px; padding-bottom: 8px; }

/* ---- Brand buttons (black instead of orange) on cart + checkout ---- */
.woocommerce-cart .checkout-button,
.woocommerce-cart .button.alt,
.woocommerce-cart .mts-continue-shopping-button,
.woocommerce-checkout #place_order,
.woocommerce-checkout .mts-continue-shopping-button,
.wc-block-checkout .wc-block-components-button:not(.is-link),
.wc-block-components-checkout-place-order-button {
	background: var(--mt-co-ink) !important;
	border-color: var(--mt-co-ink) !important;
	color: #fff !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 600;
}
.woocommerce-cart .checkout-button:hover,
.woocommerce-checkout #place_order:hover,
.wc-block-checkout .wc-block-components-button:not(.is-link):hover { background: #222 !important; }

/* Old theme bar on the cart page: amounts were stacking one per line */
.mts-progress-foot .amount,
.mts-progress-foot .woocommerce-Price-amount,
.mts-progress-foot bdi { display: inline !important; }
.mts-progress-foot > span { display: inline-block; }

/* =========================================================================
 * New (block) checkout
 * ====================================================================== */

/* Old-checkout extras from the theme have no place in the new one */
.woocommerce-checkout .mts-continue-shopping-checkout { display: none; }

.wp-block-woocommerce-checkout,
.mt-checkout-top {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}
.wc-block-checkout { font-size: 14px; color: var(--mt-co-ink); }

/* Section titles */
.wc-block-checkout .wc-block-components-checkout-step__title,
.wc-block-checkout .wc-block-components-title {
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--mt-co-ink);
}
.wc-block-checkout .wc-block-components-checkout-step__description { color: var(--mt-co-mute); font-size: 13px; }
.wc-block-checkout .wc-block-components-checkout-step { margin-bottom: 36px; }

/* Inputs: square, light grey, black on focus */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-textarea,
.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control__input,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input {
	border-radius: 0 !important;
	border: 1px solid var(--mt-co-line) !important;
	box-shadow: none !important;
	background-color: #fff !important;
	color: var(--mt-co-ink);
}
.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-textarea:focus,
.wc-block-checkout .wc-blocks-components-select__select:focus,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control__input:focus {
	border-color: var(--mt-co-ink) !important;
	outline: none !important;
	box-shadow: 0 0 0 1px var(--mt-co-ink) !important;
}
.wc-block-checkout .wc-blocks-components-select__container { border-radius: 0 !important; }
.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-blocks-components-select__label { color: var(--mt-co-mute); }

/* Checkboxes & radios in black */
.wc-block-checkout .wc-block-components-checkbox__input[type="checkbox"] { border-radius: 0 !important; border-color: #9a9a9a !important; }
.wc-block-checkout .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--mt-co-ink) !important; border-color: var(--mt-co-ink) !important; }
.wc-block-checkout .wc-block-components-checkbox__mark { fill: #fff !important; }
.wc-block-checkout .wc-block-components-radio-control__input:checked { border-color: var(--mt-co-ink) !important; }
.wc-block-checkout .wc-block-components-radio-control__input:checked::before { background: var(--mt-co-ink) !important; }
.wc-block-checkout .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-checkout .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 1px var(--mt-co-ink) !important;
	border-radius: 0 !important;
}
.wc-block-checkout .wc-block-components-radio-control--highlight-checked { border-radius: 0 !important; }

/* Links */
.wc-block-checkout a { color: var(--mt-co-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Place order: full width, tall */
.wc-block-checkout .wc-block-checkout__actions_row { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
.wc-block-checkout .wc-block-components-checkout-place-order-button { width: 100%; min-height: 54px; font-size: 14px !important; }
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button { align-self: center; color: var(--mt-co-mute); font-size: 13px; }

/* Express pay buttons: square */
.wc-block-checkout .wc-block-components-express-payment__event-buttons > li,
.wc-block-checkout .wc-block-components-express-payment__event-buttons button { border-radius: 0 !important; }
.wc-block-checkout .wc-block-components-express-payment-continue-rule {
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mt-co-mute);
}

/* Order summary column: grey panel, sticky under the header */
@media (min-width: 700px) {
	.wc-block-checkout .wc-block-checkout__sidebar {
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--mt-h, 72px) + 24px) !important;
	}
}
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block {
	background: var(--mt-co-soft);
	border: 0 !important;
	border-radius: 0 !important;
	padding: 8px 4px 4px;
}
.wc-block-checkout .wc-block-components-order-summary-item__image img { border-radius: 0; }
.wc-block-checkout .wc-block-components-order-summary-item__quantity {
	background: var(--mt-co-ink) !important;
	color: #fff !important;
	border-color: var(--mt-co-ink) !important;
}
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 17px;
	font-weight: 700;
}
.wc-block-checkout .wc-block-components-panel__button,
.wc-block-checkout .wc-block-components-totals-coupon-link { font-size: 13px; }

/* ---- Free-shipping bar ---- */
.mt-checkout-top { margin-top: 8px; margin-bottom: 28px; }
.mt-checkout-top:empty { display: none; }
.mt-ship {
	background: var(--mt-co-soft);
	padding: 16px 20px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--mt-co-ink);
}
.mt-ship__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 10px; }
.mt-ship__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mt-co-mute); }
.mt-ship__status { font-size: 14px; }
.mt-ship__bar { height: 4px; background: rgba(0, 0, 0, .1); overflow: hidden; margin-bottom: 8px; }
.mt-ship__bar span { display: block; height: 100%; background: var(--mt-co-ink); transition: width .4s ease; }
.mt-ship__foot { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--mt-co-mute); }

/* ---- Reassurance line under Place Order ---- */
.mt-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 14px;
	margin-top: 14px;
	font-size: 12px;
	color: var(--mt-co-mute);
}
.mt-trust__lock { display: inline-flex; align-items: center; gap: 6px; color: var(--mt-co-ink); }
.mt-trust a { color: var(--mt-co-mute) !important; }

@media (max-width: 699px) {
	.wp-block-woocommerce-checkout, .mt-checkout-top { padding-left: 16px; padding-right: 16px; }
	.mt-ship__foot { flex-direction: column; gap: 2px; }
}
