/* Cart / checkout / thank-you (loaded only on cart + checkout pages, after mlc.css). */

/* ---- Shared ------------------------------------------------------------- */
.mlc-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mlc-btn--lg { min-height: 52px; width: 100%; padding: 8px 20px; text-align: center; }
.page-checkout, .cart-container.page-wrapper { padding-top: 0; }
.checkout-page-title.page-title { display: none; }
.mlc-page-h1 { margin: 20px 0 24px; }
.woocommerce-notices-wrapper { margin: 0; }

/* Notices: Flatsome prints them above the page in a full-width band; keep the band transparent and box the message to the page width. */
.woocommerce-message.message-wrapper, .woocommerce-info.message-wrapper, ul.woocommerce-error.message-wrapper { background: transparent; padding: 0; margin: 0; border-radius: 0; list-style: none; }
.message-wrapper .message-container.container { margin: 16px auto 0; padding: 12px 16px; border: solid transparent; border-width: 0 15px; background-clip: padding-box; border-radius: var(--mlc-r-sm); background-color: var(--mlc-bg-mint); color: #14532D; font-weight: 600; box-sizing: border-box; }
ul.woocommerce-error.message-wrapper li { margin: 0; }
ul.woocommerce-error .message-container.container { background-color: var(--mlc-bg-peach); color: #8A2B0E; }
.woocommerce-info.message-wrapper .message-container.container { background-color: var(--mlc-bg-blue); color: var(--mlc-navy); }
.message-wrapper .message-container .button { margin: 0 0 0 8px; }
.mlc-card .mlc-h3, .mlc-summary .mlc-h3, .mlc-review .mlc-h3 { margin: 0; }

/* Steps bar */
.mlc-steps-wrap { padding-top: 28px; padding-bottom: 0; }
.mlc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-weight: 600; color: var(--mlc-muted); }
.mlc-steps__item { display: flex; align-items: center; gap: 8px; margin: 0; }
.mlc-steps__item a { color: inherit; text-decoration: none; }
.mlc-steps__item a:hover { text-decoration: underline; }
.mlc-steps__dot { width: 30px; height: 30px; border-radius: 999px; border: 2px solid var(--mlc-line-strong); display: flex; align-items: center; justify-content: center; font-size: 14px; box-sizing: border-box; color: var(--mlc-muted); }
.mlc-steps__item--current, .mlc-steps__item--done { color: var(--mlc-navy); }
.mlc-steps__item--current .mlc-steps__dot { background: var(--mlc-navy); border-color: var(--mlc-navy); color: #fff; }
.mlc-steps__item--done .mlc-steps__dot { background: var(--mlc-bg-mint); border-color: var(--mlc-bg-mint); color: var(--mlc-green); }
.mlc-steps__dot svg { stroke-width: 3; }
.mlc-steps__line { width: 40px; height: 2px; margin: 0; background: var(--mlc-line-strong); list-style: none; }
.mlc-steps__line--on { background: var(--mlc-navy); }

/* Rows used by the cart summary and the checkout summary */
.mlc-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mlc-row > span:last-child { font-weight: 600; text-align: right; }
.mlc-row .amount { font-size: inherit; color: inherit; font-weight: inherit; }
.mlc-row--total { border-top: 1px solid var(--mlc-line); padding-top: 16px; }
.mlc-row--total > span:first-child { font-weight: 700; }
.mlc-row--total > span:last-child, .mlc-row--total strong { font-size: 26px; font-weight: 700; color: var(--mlc-navy); }
.mlc-row .woocommerce-remove-coupon { margin-left: 6px; font-size: 13px; }

/* Free-shipping progress */
.mlc-freeship { background: var(--mlc-bg-yellow); border-radius: var(--mlc-r-md); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; color: var(--mlc-navy); margin: 0; }
.mlc-freeship__msg { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.mlc-freeship__msg .amount { font-size: inherit; color: inherit; }
.mlc-freeship__bar { height: 10px; border-radius: 999px; background: #fff; overflow: hidden; }
.mlc-freeship__bar span { display: block; height: 100%; background: var(--mlc-navy); border-radius: 999px; }

/* Fixed bottom bars (phones only) */
.mlc-bar { display: none; }

/* ---- Cart ---------------------------------------------------------------- */
.mlc-cart { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.mlc-cart__main { flex: 999 1 600px; min-width: 0; }
.mlc-cart__side { flex: 1 1 340px; min-width: 0; float: none; width: auto; }
.woocommerce-cart-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.mlc-cart-items { display: flex; flex-direction: column; gap: 14px; }

.mlc-ci { position: relative; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0; padding: 16px; border: 1px solid var(--mlc-line); border-radius: var(--mlc-r-md); background: #fff; }
.mlc-ci__thumb { flex: 0 0 auto; margin: 0; }
.mlc-ci__thumb img { display: block; width: 104px; height: 104px; object-fit: cover; border-radius: var(--mlc-r-sm); background: var(--mlc-bg-grey); }
.mlc-ci__info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mlc-ci__info > a { font-weight: 600; color: var(--mlc-ink); text-decoration: none; }
.mlc-ci__info > a:hover { text-decoration: underline; }
.mlc-ci .variation { margin: 0; display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 14px; color: var(--mlc-muted); }
.mlc-ci .variation dt { margin: 0; float: none; clear: none; font-weight: 400; }
.mlc-ci .variation dd { margin: 0; }
.mlc-ci .variation dd p { margin: 0; }
.mlc-ci__unit .amount { font-size: inherit; font-weight: 700; color: var(--mlc-navy); }
.mlc-ci__qty { margin: 0; }
.mlc-ci .ux-quantity, .mlc-ci .quantity { display: inline-flex; align-items: center; height: 48px; margin: 0; border: 2px solid var(--mlc-line-strong); border-radius: 999px; overflow: hidden; background: #fff; box-sizing: border-box; }
.mlc-ci .ux-quantity .ux-quantity__button, .mlc-ci .ux-quantity input.button { width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent; box-shadow: none; color: var(--mlc-navy); font-size: 20px; font-weight: 400; line-height: 1; text-transform: none; }
.mlc-ci .ux-quantity input.qty { width: 36px; height: 44px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-weight: 700; font-size: 15px; text-align: center; -moz-appearance: textfield; }
.mlc-ci .ux-quantity input.qty::-webkit-outer-spin-button, .mlc-ci .ux-quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mlc-ci__total { min-width: 110px; text-align: right; font-weight: 700; font-size: 17px; }
.mlc-ci__total .amount { font-size: inherit; color: inherit; font-weight: inherit; }
.mlc-ci__remove { margin: 0; }
.mlc-ci .mlc-ci__remove a.remove { display: flex !important; align-items: center; justify-content: center; position: static; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--mlc-bg-grey); color: var(--mlc-muted) !important; font-size: 0; line-height: 1; }
.mlc-ci .mlc-ci__remove a.remove:hover, .mlc-ci .mlc-ci__remove a.remove:focus-visible { background: var(--mlc-bg-blue); color: var(--mlc-navy) !important; }
.mlc-cart-actions { display: flex; flex-direction: column; align-items: flex-start; }
.mlc-back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--mlc-navy); text-decoration: none; }
.mlc-back-link:hover { text-decoration: underline; }

/* Summary box: one padding layer, title, coupon on top */
.mlc-summary { background: var(--mlc-bg-grey); border: 0; border-radius: var(--mlc-r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.mlc-coupon { margin: 0; }
.mlc-coupon .coupon { display: flex; gap: 8px; margin: 0; }
.mlc-coupon input.input-text { flex: 1 1 auto; min-width: 0; height: 48px; margin: 0; padding: 0 14px; border: 2px solid var(--mlc-line-strong); border-radius: var(--mlc-r-sm); background: #fff; box-shadow: none; font: inherit; }
.mlc-coupon .button { flex: 0 0 auto; height: 48px; min-height: 48px; margin: 0; padding: 0 18px; border: 2px solid var(--mlc-navy); border-radius: var(--mlc-r-sm); background: #fff; color: var(--mlc-navy); font-weight: 700; text-transform: none; letter-spacing: 0; box-shadow: none; }
.mlc-coupon .button:hover { background: var(--mlc-navy); color: #fff; }
.mlc-summary .cart_totals { background: transparent; border: 0; padding: 0; margin: 0; width: auto; float: none; display: flex; flex-direction: column; gap: 16px; }
.mlc-ct__rows { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--mlc-line); padding-top: 16px; }
.mlc-summary .wc-proceed-to-checkout { margin: 0; padding: 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button, .wc-proceed-to-checkout .checkout-button { line-height: 1.2;  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; height: 54px; margin: 0; padding: 0; border-radius: 999px; background: var(--mlc-navy); color: #fff; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.woocommerce .wc-proceed-to-checkout a.checkout-button:hover, .wc-proceed-to-checkout .checkout-button:hover { background: var(--mlc-navy-dark); }
.mlc-summary .mlc-note-center { margin: 0; }
.mlc-upsell { margin-top: 56px; }
.mlc-upsell .mlc-h2 { margin: 0 0 20px; }

/* ---- Empty cart (woocommerce/cart/cart-empty.php): the mini cart's empty state as a white card ------------- */
.mlc-cart-empty { max-width: 720px; margin: 0 auto; padding: 8px 0 56px; text-align: center; }
.mlc-cart-empty .woocommerce-notices-wrapper:empty { display: none; }
.mlc-cart-empty .woocommerce-notices-wrapper { margin-bottom: 16px; text-align: left; }
.mlc-cart-empty__card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 32px; border: 1px solid var(--mlc-line); border-radius: var(--mlc-r-lg); background: #fff; }
.mlc-cart-empty__icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 4px; border-radius: 50%; background: var(--mlc-bg-blue); color: var(--mlc-navy); }
.mlc-cart-empty__title { margin: 0; font-family: var(--mlc-font-head); font-size: 24px; font-weight: 800; line-height: 1.25; color: var(--mlc-navy); }
.mlc-cart-empty__text { max-width: 440px; margin: 0; font-size: 15px; line-height: 1.55; color: var(--mlc-muted-2); }
.mlc-cart-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.mlc-cart-empty__actions .mlc-btn:focus-visible, .mlc-cart-empty__ages .mlc-chip:focus-visible { outline: 3px solid var(--mlc-navy); outline-offset: 2px; }
.mlc-cart-empty__ages { align-self: stretch; margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--mlc-line); }
.mlc-cart-empty__label { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--mlc-muted); }
.mlc-cart-empty__ages .mlc-chips { justify-content: center; }
.mlc-cart-empty__ages .mlc-chip { min-height: 44px; } /* a row of links: full tap target (UI rule 11) */

/* ---- Checkout form ---------------------------------------------------------- */
.mlc-co { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin: 0; }
.mlc-co__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.mlc-co__cards, .mlc-co .woocommerce-billing-fields { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; border: 0; }
.mlc-co__side { flex: 1 1 360px; min-width: 0; background: var(--mlc-bg-grey); border-radius: var(--mlc-r-lg); padding: 24px; box-sizing: border-box; }
#order_review { display: flex; flex-direction: column; gap: 16px; background: transparent; padding: 0 !important; border: 0 !important; border-radius: 0; }
.mlc-card { margin: 0; padding: 24px; border: 1px solid var(--mlc-line); border-radius: var(--mlc-r-lg); background: #fff; display: flex; flex-direction: column; gap: 16px; box-sizing: border-box; }
.mlc-card .form-row { margin: 0; padding: 0; float: none; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.mlc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mlc-fields #billing_email_field, .mlc-fields #billing_address_1_field, .mlc-fields--address .form-row-wide { grid-column: 1 / -1; }
.mlc-card .woocommerce-input-wrapper { display: block; }
.mlc-card label { margin: 0; font-weight: 600; color: var(--mlc-ink); font-size: 14px; }
.mlc-card label .optional { font-weight: 400; color: var(--mlc-muted); }
.mlc-card label .required { color: inherit; text-decoration: none; }
.mlc-card .form-row input.input-text, .mlc-card .form-row textarea {
	width: 100%; min-height: 48px; margin: 0; padding: 0 14px; border: 2px solid var(--mlc-line-strong); border-radius: var(--mlc-r-sm); box-shadow: none; font-size: 15px; background: #fff; box-sizing: border-box;
}
.mlc-card .form-row textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.mlc-card .select2-container { width: 100% !important; }
.mlc-card .form-row input.input-text:focus, .mlc-card .form-row textarea:focus { border-color: var(--mlc-navy); outline: 3px solid var(--mlc-navy); outline-offset: 1px; }
.mlc-card .woocommerce-invalid input.input-text { border-color: #B42318; background: #FFF8F7; }
.mlc-addr { display: flex; flex-direction: column; gap: 16px; }
.mlc-addr-help { margin: 0; font-size: 13px; color: var(--mlc-muted); }
.mlc-card--delivery:has(.mlc-ship input[value^="local_pickup"]:checked) .mlc-addr--pickup-optional,
.mlc-card--delivery:has(.mlc-ship input[value^="pickup_location"]:checked) .mlc-addr--pickup-optional { display: none; }
.mlc-notes { display: flex; flex-direction: column; gap: 16px; }
.mlc-gift label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; }
.mlc-gift input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--mlc-navy); flex: 0 0 auto; }

/* Option cards (shipping and payment) */
.mlc-ship { display: flex; flex-direction: column; gap: 16px; }
.mlc-ship__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mlc-opt { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 16px; border: 2px solid var(--mlc-line-strong); border-radius: var(--mlc-r-md); background: #fff; color: var(--mlc-ink); font-weight: 400; cursor: pointer; box-sizing: border-box; min-height: 72px; }
.mlc-opt input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.mlc-opt:has(input:checked) { border-color: var(--mlc-navy); background: var(--mlc-bg-blue); }
.mlc-opt:has(input:focus-visible) { outline: 3px solid var(--mlc-navy); outline-offset: 2px; }
.mlc-opt__title { font-weight: 700; color: var(--mlc-navy); }
.mlc-opt__desc { font-size: 14px; color: var(--mlc-muted); }
.mlc-opt__fee { font-weight: 700; color: var(--mlc-ink); }
.mlc-opt__fee .amount { font-size: inherit; color: inherit; }
.mlc-ship__empty { margin: 0; color: var(--mlc-muted); }
.mlc-pickup-box { background: var(--mlc-bg-mint); border-radius: var(--mlc-r-md); padding: 16px; color: #14532D; }

.mlc-pay { display: block; }
.mlc-pay .wc_payment_methods { list-style: none; margin: 0 !important; padding: 0 !important; border: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.mlc-pay .wc_payment_methods > li { position: relative; margin: 0 !important; padding: 0 !important; border: 2px solid var(--mlc-line-strong) !important; border-radius: var(--mlc-r-md); background: #fff; list-style: none; }
.mlc-pay .wc_payment_methods > li:has(input:checked) { border-color: var(--mlc-navy) !important; background: var(--mlc-bg-blue); }
.mlc-pay .wc_payment_methods > li:has(input:focus-visible) { outline: 3px solid var(--mlc-navy); outline-offset: 2px; }
.mlc-pay .wc_payment_methods input.input-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.mlc-pay .wc_payment_methods > li > label { position: relative; display: flex; flex-direction: column; margin: 0; padding: 14px 16px 14px 50px; min-height: 44px; cursor: pointer; font-size: 15px; }
.mlc-pay .wc_payment_methods > li > label::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid var(--mlc-navy); border-radius: 999px; box-sizing: border-box; background: #fff; }
.mlc-pay .wc_payment_methods > li:has(input:checked) > label::after { content: ""; position: absolute; left: 21px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 999px; background: var(--mlc-navy); }
.mlc-pay .wc_payment_methods > li > label .mlc-opt__title { color: var(--mlc-ink); }
.mlc-pay .payment_box { margin: 0; padding: 0 16px 16px 50px; background: transparent; color: var(--mlc-muted-2); }
.mlc-pay .payment_box::before { display: none; }

/* Order summary (checkout aside) */
.mlc-review__toggle { display: none; }
.mlc-review__body { display: flex; flex-direction: column; gap: 16px; }
.mlc-review__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mlc-review__head a { font-size: 14px; font-weight: 600; }
.mlc-review__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mlc-review__lines li { display: flex; gap: 12px; align-items: center; margin: 0; }
.mlc-review-thumb { position: relative; display: block; flex: 0 0 auto; }
.mlc-review-thumb img { display: block; width: 60px; height: 60px; object-fit: cover; border-radius: var(--mlc-r-sm); background: #fff; }
.mlc-review-qty { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: var(--mlc-navy); color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; }
.mlc-review-name { flex: 1 1 auto; min-width: 0; font-size: 14px; }
.mlc-review-name .variation { margin: 2px 0 0; font-size: 13px; color: var(--mlc-muted); }
.mlc-review-name .variation dt, .mlc-review-name .variation dd, .mlc-review-name .variation p { display: inline; margin: 0; float: none; }
.mlc-review-price { font-weight: 600; text-align: right; }
.mlc-review-price .amount { font-size: inherit; color: inherit; }
.mlc-review__rows { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--mlc-line); padding-top: 16px; }
.mlc-review .mlc-row--total > span:last-child, .mlc-review .mlc-row--total strong { font-size: 24px; }

#payment.woocommerce-checkout-payment { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
#payment .place-order { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
#payment .woocommerce-terms-and-conditions-wrapper { margin: 0; }
#payment .woocommerce-terms-and-conditions-wrapper:empty { display: none; }
#place_order { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; height: 54px; margin: 0; padding: 0; border-radius: 999px; background: var(--mlc-navy); color: #fff; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; float: none; }
#place_order:hover { background: var(--mlc-navy-dark); }
.mlc-legal { order: 2; margin: 0; font-size: 13px; color: var(--mlc-muted); text-align: center; }
.mlc-help-box { order: 3; display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px 14px; border-radius: var(--mlc-r-sm); background: #fff; font-size: 14px; color: var(--mlc-muted-2); }
.mlc-help-box .mlc-icon { color: var(--mlc-navy); }
.mlc-turnstile { margin: 0; }

/* ---- Thank-you --------------------------------------------------------------- */
.mlc-ty-hero { margin-top: 28px; padding: 36px; border-radius: var(--mlc-r-lg); background: var(--mlc-bg-mint); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.mlc-ty-hero__icon { flex: 0 0 auto; width: 80px; height: 80px; border-radius: 999px; background: var(--mlc-green); color: #fff; display: flex; align-items: center; justify-content: center; }
.mlc-ty-hero__icon svg { stroke-width: 2.6; }
.mlc-ty-hero__text { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.mlc-ty-hero .mlc-page-h1 { margin: 0; color: #14532D; }
.mlc-ty-hero p { margin: 0; color: #14532D; }
/* Order page opened without access (other browser / private window): banner, notice, then one centred login or verify-email card. */
.woocommerce-notices-wrapper:has(+ .mlc-gate) { max-width: 480px; margin: 0 auto; }
.mlc-acct-card.mlc-gate { max-width: 480px; margin: 24px auto 40px; } /* two classes: mlc-account.css loads later and zeroes card margins */
.mlc-gate .woocommerce-error { margin: 0; }
.mlc-ty-grid { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; align-items: flex-start; }
.mlc-ty-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.mlc-ty-aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mlc-ty-card { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.mlc-ty-card > p { margin: 0; color: var(--mlc-muted-2); }
.mlc-ty-card .mlc-h3 { margin: 0; }
.mlc-ty-summary { background: var(--mlc-bg-grey); border-radius: var(--mlc-r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.mlc-ty-summary .mlc-h3 { margin: 0; font-size: 22px; }
.mlc-ty-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.mlc-ty-line .amount, .mlc-ty-total .amount { font-size: inherit; color: inherit; }
.mlc-ty-line > span:last-child { white-space: nowrap; }
.mlc-ty-line--sep { border-top: 1px solid var(--mlc-line); padding-top: 12px; font-size: 15px; }
.mlc-ty-line--sep strong { font-weight: 600; }
.mlc-ty-total { display: flex; justify-content: space-between; align-items: baseline; }
.mlc-ty-total > span { font-weight: 700; }
.mlc-ty-total strong { font-size: 22px; font-weight: 700; color: var(--mlc-navy); }
.mlc-ty-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mlc-muted-2); }
.mlc-ty-meta--sep { border-top: 1px solid var(--mlc-line); padding-top: 12px; }
.mlc-qr { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; background: var(--mlc-bg-blue); border-radius: var(--mlc-r-md); padding: 18px; }
.mlc-qr img { width: 220px; height: auto; border-radius: var(--mlc-r-sm); background: #fff; }
.mlc-qr dl { flex: 1 1 240px; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.mlc-qr dt { color: var(--mlc-muted-2); font-weight: 400; text-transform: none; font-size: 15px; }
.mlc-qr dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 36px; overflow-wrap: anywhere; }
/* "Sao chép" next to amount / account / transfer note: a quiet text button (owner: no pill, it must not pull the eye off the QR). */
.mlc-copy { display: inline-flex; align-items: center; gap: 4px; height: 36px; margin: 0 0 0 auto; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: var(--mlc-navy); font-family: var(--mlc-font); font-size: 13px; font-weight: 600; line-height: 1; text-transform: none; letter-spacing: 0; cursor: pointer; transition: background-color .15s, color .15s; }
.mlc-copy[hidden] { display: none; }
.mlc-copy:hover { background: rgba(20, 42, 108, .08); color: var(--mlc-navy); }
.mlc-copy:focus-visible { outline: 3px solid var(--mlc-navy); outline-offset: 2px; }
.mlc-copy.is-copied, .mlc-copy.is-copied:hover { color: var(--mlc-green); background: transparent; }
.mlc-steps-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.mlc-steps-cards li { margin: 0; background: var(--mlc-bg-grey); border-radius: var(--mlc-r-md); padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--mlc-muted-2); }
.mlc-steps-cards li span { width: 32px; height: 32px; border-radius: 999px; background: var(--mlc-navy); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mlc-steps-cards li strong { color: var(--mlc-navy); font-size: 15px; }

/* ---- Phones ------------------------------------------------------------------- */
@media (max-width: 849px) {
	/* The slim header shows the title: the page H1 stays for screen readers only. */
	.woocommerce-cart .mlc-page-h1,
	.woocommerce-checkout:not(.woocommerce-order-received) .mlc-page-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
	.woocommerce-cart .mlc-steps-wrap,
	.woocommerce-checkout:not(.woocommerce-order-received) .mlc-steps-wrap { display: none; }
	.mlc-steps-wrap { padding-top: 16px; }
	.mlc-steps { gap: 6px 8px; font-size: 13px; }
	.mlc-steps__line { width: 14px; }
	.mlc-page-h1 { font-size: 26px; }
	.mlc-ty-hero { padding: 24px 20px; margin-top: 16px; }
	.mlc-ty-hero .mlc-page-h1 { font-size: 26px; }
	.mlc-ty-hero__icon { width: 64px; height: 64px; }
	.mlc-ty-hero__icon svg { width: 36px; height: 36px; }
	.mlc-ty-grid { margin-top: 20px; }
	.mlc-qr img { width: 180px; margin: 0 auto; }
	.mlc-qr dl { flex-basis: 100%; grid-template-columns: minmax(0, 1fr); gap: 0; }
	.mlc-qr dt { margin-top: 8px; font-size: 13px; }
	.mlc-qr dd { min-height: 44px; }
	.mlc-copy { height: 44px; margin-right: -8px; } /* full tap target, still a text button */

	/* Room for the fixed bars */
	.woocommerce-cart .page-checkout,
	.woocommerce-checkout:not(.woocommerce-order-received) .page-checkout { padding-bottom: 150px; }
	.woocommerce-cart .cart-container,
	.woocommerce-checkout:not(.woocommerce-order-received) .cart-container { padding-top: 0; }
	.mlc-bar { display: flex; flex-direction: column; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; margin: 0; padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--mlc-line); box-shadow: 0 -4px 16px rgba(20, 42, 108, .1); box-sizing: border-box; }
	.mlc-bar__ship { display: flex; justify-content: space-between; font-size: 14px; color: var(--mlc-muted-2); }
	.mlc-bar__ship strong { font-weight: 600; color: var(--mlc-ink); }
	.mlc-bar__ship .amount, .mlc-bar__total .amount { font-size: inherit; color: inherit; font-weight: inherit; }
	.mlc-bar__row { display: flex; align-items: center; gap: 12px; }
	.mlc-bar__total { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; color: var(--mlc-muted-2); }
	.mlc-bar__total strong { font-size: 22px; font-weight: 700; color: var(--mlc-navy); }
	.mlc-bar__total strong .amount { font-size: inherit; color: inherit; }
	.mlc-bar__cta { display: flex; align-items: center; justify-content: center; height: 52px; min-height: 52px; margin: 0; padding: 0 26px; border: 0; border-radius: 999px; background: var(--mlc-navy); color: #fff; font-family: var(--mlc-font); font-size: 15px; font-weight: 700; text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; }
	.mlc-bar__cta:hover { background: var(--mlc-navy-dark); color: #fff; }

	/* Cart */
	.mlc-cart { gap: 0; }
	.mlc-freeship { border-radius: var(--mlc-r-sm); padding: 12px 14px; font-size: 14px; gap: 8px; }
	.mlc-freeship__bar { height: 8px; }
	.mlc-cart-items { gap: 0; }
	.mlc-ci { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-areas: "thumb info info" "thumb qty total"; gap: 4px 12px; align-items: center; padding: 14px 0; border: 0; border-bottom: 1px solid var(--mlc-line); border-radius: 0; background: transparent; }
	.mlc-ci__thumb { grid-area: thumb; align-self: start; }
	.mlc-ci__thumb img { width: 80px; height: 80px; }
	.mlc-ci__info { grid-area: info; padding-right: 44px; flex: none; }
	.mlc-ci__info > a { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.mlc-ci .variation { font-size: 13px; color: var(--mlc-muted-2); }
	.mlc-ci__unit { display: none; }
	.mlc-ci__qty { grid-area: qty; }
	.mlc-ci .ux-quantity, .mlc-ci .quantity { height: 40px; }
	.mlc-ci .ux-quantity .ux-quantity__button, .mlc-ci .ux-quantity input.button { width: 40px; height: 36px; font-size: 18px; }
	.mlc-ci .ux-quantity input.qty { width: 28px; height: 36px; }
	.mlc-ci__total { grid-area: total; min-width: 0; font-size: 15px; color: var(--mlc-navy); }
	.mlc-ci__remove { position: absolute; top: 6px; right: 0; }
	.mlc-cart-actions { padding-top: 4px; }
	.mlc-cart__side { flex-basis: 100%; }
	.mlc-summary { background: transparent; padding: 12px 0 0; gap: 12px; }
	.mlc-summary__title { display: none; }
	.mlc-coupon input.input-text, .mlc-coupon .button { height: 46px; min-height: 46px; }
	.mlc-coupon input.input-text { font-size: 16px; }
	.mlc-coupon .button { padding: 0 16px; }
	.mlc-ct__rows { border-top: 0; padding-top: 0; }
	.mlc-ct__rows .cart-subtotal, .mlc-ct__rows .shipping { display: none; }
	.mlc-summary .mlc-row--total, .mlc-summary .wc-proceed-to-checkout, .mlc-summary .mlc-note-center { display: none; }
	.mlc-upsell { margin-top: 32px; }
	.mlc-upsell .mlc-h2 { font-size: 24px; }
	.mlc-cart-empty { padding: 16px 0 32px; }
	.mlc-cart-empty__card { padding: 28px 16px; border-radius: var(--mlc-r-md); }
	.mlc-cart-empty__title { font-size: 22px; }
	.mlc-cart-empty__actions { align-self: stretch; }
	.mlc-cart-empty__actions .mlc-btn { flex: 1 1 100%; }

	/* Checkout: light page, white cards, collapsible summary on top */
	.woocommerce-checkout:not(.woocommerce-order-received) #main,
	.woocommerce-checkout:not(.woocommerce-order-received) .page-checkout { background: var(--mlc-bg-grey); }
	.woocommerce-checkout:not(.woocommerce-order-received) .page-checkout { padding-left: 0; padding-right: 0; }
	.mlc-co { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; }
	.mlc-co__side, #order_review { display: contents; }
	.mlc-co__main { order: 1; flex: none; gap: 12px; padding: 0 12px; }
	.mlc-co__cards, .mlc-co .woocommerce-billing-fields { gap: 12px; }
	.mlc-review { order: 0; }
	#payment.woocommerce-checkout-payment { order: 2; padding: 0 12px; }
	.mlc-review__toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; margin: 0; padding: 0 16px; border: 0; border-bottom: 1px solid var(--mlc-line); border-radius: 0; background: var(--mlc-bg-blue); color: var(--mlc-navy); font: inherit; font-weight: 600; text-transform: none; letter-spacing: 0; text-align: left; cursor: pointer; box-shadow: none; }
	.mlc-review__toggle strong { font-weight: 700; }
	.mlc-review__toggle .amount { font-size: inherit; color: inherit; }
	.mlc-review__body { display: none; padding: 16px; background: #fff; border-bottom: 1px solid var(--mlc-line); }
	.mlc-co--review-open .mlc-review__body { display: flex; }
	.mlc-review__head { display: none; }
	.mlc-card { padding: 16px; border: 0; border-radius: var(--mlc-r-md); gap: 12px; }
	.mlc-card .mlc-h3 { font-family: var(--mlc-font); font-size: 16px; font-weight: 700; }
	.mlc-card .form-row { gap: 4px; }
	.mlc-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.mlc-card .form-row input.input-text, .mlc-card .form-row textarea { font-size: 16px; }
	.mlc-ship__grid { gap: 8px; }
	.mlc-opt { padding: 12px; border-radius: var(--mlc-r-sm); }
	.mlc-opt__title { font-size: 14px; }
	.mlc-opt__desc { font-size: 13px; color: var(--mlc-muted-2); }
	.mlc-pickup-box { border-radius: var(--mlc-r-sm); padding: 12px; font-size: 14px; }
	.mlc-pay .wc_payment_methods > li { border-radius: var(--mlc-r-sm); }
	#place_order { display: none; }
	.mlc-legal { padding-top: 4px; }
	.mlc-help-box { margin-bottom: 8px; }
}

@media (min-width: 850px) and (max-width: 1100px) {
	.mlc-ship__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Sticky summary (desktop) ----------------------------------------------------
   Nothing above the columns clips or scrolls, so sticky works as long as the column is not stretched:
   .mlc-co / .mlc-cart use align-items: flex-start. --mlc-sticky-top is set by the header script when
   the header is visible; 24px is the fallback. */
@media (min-width: 850px) {
	.mlc-co__side,
	.mlc-cart__side { position: sticky; top: var(--mlc-side-top, var(--mlc-sticky-top, 24px)); align-self: flex-start; transition: top .2s ease; }
	/* No inner scrollbars (UI standard 10): a tall column scrolls with the page and sticks by its bottom (mlc.js initStickySides). */
}
@media (min-width: 850px) and (prefers-reduced-motion: reduce) {
	.mlc-co__side, .mlc-cart__side { transition: none; }
}
