/* ---------- Cart & checkout ---------- */
.mgz-checkout-header .wp-block-site-title { margin: 0; font-size: var(--wp--preset--font-size--large); }
.mgz-secure { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--wp--preset--color--muted); font-weight: 600; }
.mgz-secure::before { content: ""; width: 16px; height: 16px; background: #2e7d32; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 018 0v3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 018 0v3'/%3E%3C/svg%3E") center/contain no-repeat; }
.mgz-checkout-page { background: var(--wp--preset--color--surface); min-height: 70vh; }
.mgz-checkout-page .wp-block-post-content > .wp-block-woocommerce-checkout { margin-top: 0; }
.wc-block-checkout { --mgz-field-h: 52px; }
.wc-block-checkout__main { background: var(--wp--preset--color--base); border-radius: var(--mgz-radius-lg); padding: clamp(1rem, 3vw, 2.25rem) !important; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.wc-block-checkout__sidebar .wc-block-components-sidebar, .wc-block-checkout__sidebar.is-sticky { background: var(--wp--preset--color--base); border-radius: var(--mgz-radius-lg); padding: 1.25rem 1.5rem !important; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.wc-block-checkout__sidebar.is-sticky { top: 1.5rem !important; }
.wc-block-components-checkout-step { padding-bottom: 1.25rem !important; margin-bottom: 1.25rem !important; border-bottom: 1px solid var(--wp--preset--color--border); }
.wc-block-components-checkout-step:last-of-type { border-bottom: 0; }
.wc-block-components-checkout-step::after { display: none !important; }
.wc-block-components-checkout-step__container::after { display: none !important; }
.wc-block-components-checkout-step__heading { margin: 0 0 .9rem !important; }
.wc-block-components-checkout-step__title { font-family: var(--wp--preset--font-family--jost) !important; font-size: var(--wp--preset--font-size--large) !important; font-weight: 600 !important; }
.wc-block-checkout .wc-block-components-checkout-step__heading-content, .wc-block-components-checkout-step__description { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.wc-block-checkout__form--with-step-numbers .wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__title::before { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.wc-block-components-text-input input, .wc-block-components-text-input textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-address-form select { min-height: var(--mgz-field-h, 52px) !important; border: 1.5px solid var(--wp--custom--color--control-border) !important; border-radius: var(--mgz-radius) !important; background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--contrast) !important; box-shadow: none !important; transition: border-color .15s, box-shadow .15s; font-size: 16px !important; }
.wc-block-components-text-input input:focus, .wc-blocks-components-select .wc-blocks-components-select__select:focus, .wc-block-components-combobox input:focus { border-color: var(--wp--preset--color--contrast) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--contrast) 12%, transparent) !important; outline: none !important; }
.wc-block-components-text-input.has-error input, .wc-blocks-components-select.has-error select { border-color: var(--wp--preset--color--sale) !important; }
.wc-block-components-validation-error { font-size: 12px !important; color: var(--wp--preset--color--sale) !important; }
.wc-block-components-text-input label, .wc-blocks-components-select__label { color: var(--wp--preset--color--muted) !important; }
.wc-block-components-text-input.is-active input:not(:placeholder-shown):valid:not(:focus) { border-color: var(--wp--custom--color--control-border) !important; }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border: 1.5px solid var(--wp--preset--color--border) !important; border-radius: var(--mgz-radius) !important; margin-bottom: .6rem !important; box-shadow: none !important; transition: border-color .15s, background .15s; background: var(--wp--preset--color--base); }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control__option:has(input:checked), .wc-block-components-radio-control-accordion-option:has(input:checked) { border-color: var(--wp--preset--color--contrast) !important; background: var(--wp--preset--color--surface); box-shadow: none !important; }
.wc-block-components-radio-control--highlight-checked::after, .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted::after { display: none !important; }
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked { border-color: var(--wp--preset--color--contrast) !important; }
.wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before { background: var(--wp--preset--color--contrast) !important; }
.wc-block-checkout__shipping-method-option, .wc-block-checkout__shipping-method .wc-block-checkout__shipping-method-container > * { border-radius: var(--mgz-radius) !important; }
.wc-block-checkout__shipping-method-option--selected { border-color: var(--wp--preset--color--contrast) !important; box-shadow: none !important; }
.wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button { min-height: 56px !important; width: 100%; font-size: 1rem !important; font-weight: 700 !important; letter-spacing: .02em; background: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--on-accent) !important; border-radius: var(--mgz-radius) !important; box-shadow: 0 6px 18px color-mix(in srgb, var(--wp--preset--color--accent) 30%, transparent); }
.wc-block-components-checkout-place-order-button:hover, .wc-block-cart__submit-button:hover { background: var(--wp--preset--color--accent-dark) !important; }
.wc-block-checkout__actions_row { gap: 1rem; flex-wrap: wrap-reverse; }
.wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.wc-block-components-order-summary-item__image img { border-radius: var(--mgz-radius); }
.wc-block-components-order-summary-item__quantity { background: var(--wp--preset--color--contrast) !important; color: var(--wp--preset--color--base) !important; border: 0 !important; box-shadow: none !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value, .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: 1.15rem !important; font-weight: 700 !important; }
.wc-block-components-totals-coupon-link, .wc-block-components-panel__button { font-size: var(--wp--preset--font-size--small) !important; font-weight: 600; }
.wc-block-checkout__terms { font-size: 12px; color: var(--wp--preset--color--muted); }
.wc-block-components-notice-banner { border-radius: var(--mgz-radius) !important; }
.wc-block-components-express-payment { border-radius: var(--mgz-radius-lg) !important; }
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container::before, .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container::after { border-color: var(--wp--preset--color--border) !important; }
.wc-block-components-express-payment--checkout .wc-block-components-express-payment__content { border-color: var(--wp--preset--color--border) !important; border-radius: 0 0 var(--mgz-radius-lg) var(--mgz-radius-lg) !important; }
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--wp--preset--color--contrast) !important; border-color: var(--wp--preset--color--contrast) !important; }
.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--wp--preset--color--base) !important; }
@media (max-width: 781px) {
	.mgz-checkout-page { padding-top: .75rem !important; }
	.wc-block-checkout__main { padding: 1rem !important; border-radius: var(--mgz-radius); }
	.wc-block-components-checkout-place-order-button { position: sticky; bottom: 10px; z-index: 5; }
}
/* Sameday easybox inside the block checkout */
.sameday-blocks-locker { margin: .75rem 0 0 !important; padding: 1rem !important; border: 1.5px dashed var(--wp--preset--color--border) !important; border-radius: var(--mgz-radius) !important; background: var(--wp--preset--color--surface) !important; }
.sameday-blocks-locker .sameday_select_locker, button.sameday_select_locker { display: inline-flex !important; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 50px; margin: 0 !important; padding: .8rem 1.25rem !important; border: 0 !important; border-radius: var(--mgz-radius) !important; background: var(--wp--preset--color--contrast) !important; color: var(--wp--preset--color--base) !important; font: 600 .95rem/1.2 var(--wp--preset--font-family--inter) !important; cursor: pointer; text-transform: none !important; box-shadow: none !important; }
.sameday-blocks-locker .sameday_select_locker::before, button.sameday_select_locker::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0113 0c0 5-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6-6.5-11a6.5 6.5 0 0113 0c0 5-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E") center/contain no-repeat; }
.sameday-blocks-locker .sameday_select_locker:hover { background: var(--wp--preset--color--accent) !important; }
.sameday-blocks-ship-to { margin-top: .75rem !important; padding: .85rem 1rem !important; border-radius: var(--mgz-radius) !important; background: var(--wp--preset--color--base) !important; border: 1.5px solid color-mix(in srgb, #2e7d32 40%, var(--wp--preset--color--border)) !important; font-size: var(--wp--preset--font-size--small); line-height: 1.5; }
.sameday-blocks-ship-to strong, .sameday-blocks-ship-to b { display: block; font-size: var(--wp--preset--font-size--medium); }

/* Cart block */
.wc-block-cart .wc-block-cart-items__header { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--wp--preset--color--muted); }
.wc-block-cart-item__image img { border-radius: var(--mgz-radius); }
.wc-block-cart__sidebar { background: var(--wp--preset--color--surface); border-radius: var(--mgz-radius-lg); padding: 1.25rem 1.5rem !important; }
.wc-block-components-quantity-selector { border-radius: 999px !important; }
.wc-block-components-quantity-selector::after { border-radius: 999px !important; border-color: var(--wp--custom--color--control-border) !important; }

.mgz-checkout-footer { background: var(--wp--preset--color--surface); font-size: 12px; }
.mgz-checkout-footer p { margin: 0; }
/* Order confirmation additional fields */
.wc-block-order-confirmation-additional-fields-wrapper table, .wc-block-order-confirmation-additional-fields dl { width: 100%; }
.wc-block-order-confirmation-additional-fields-wrapper td, .wc-block-order-confirmation-additional-fields-wrapper th, .wc-block-order-confirmation-additional-fields dt, .wc-block-order-confirmation-additional-fields dd { padding: .5rem .9rem !important; }

.wc-block-cart-items__row .wc-block-components-product-name { font-weight: 600; font-size: 15px; }
.wc-block-cart-item__image img { border-radius: 8px; }
.wc-block-checkout__contact-fields .wc-block-components-address-form__magazin-is-company, .wc-block-checkout__contact-fields .wc-block-components-checkbox { margin-top: .9rem !important; }
.wc-block-checkout__contact-fields .wc-block-components-checkout-step__description, .wc-block-checkout__guest-checkout-notice { font-size: 13px; color: var(--wp--preset--color--muted); margin-top: .4rem !important; }
.wc-block-components-checkout-step { margin-bottom: 1.75rem !important; }
.wc-block-components-checkout-step__heading { margin-bottom: .75rem !important; }
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { min-height: 54px; font-size: 16px !important; }
.mgz-cart-trust { margin-top: var(--wp--preset--spacing--40); }
@media (max-width: 599px) {
	.wc-block-components-checkout-step { margin-bottom: 1.25rem !important; }
	.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select { min-height: 50px; }
}

/* ---------- v1.4 Checkout header title + trust line (both styles) ---------- */
.mgz-co-title { display: none; align-items: center; gap: .25rem; font-weight: 700; font-size: 1.0625rem; }
.mgz-co-title__back { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin-left: -8px; color: inherit; }
.mgz-co-trust { display: none; }

/* ---------- v1.4 Checkout "app" style ---------- */
.mgz-checkout-app .mgz-co-title { display: flex; }
.mgz-checkout-app .mgz-co-trust { display: block; overflow: hidden; background: color-mix(in srgb, var(--mgz-leaf, #5aa832) 12%, #fff); color: #2b6a12; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.mgz-co-trust__track { display: inline-flex; gap: 1.75rem; padding: .45rem 1rem; animation: mgz-marquee 22s linear infinite; }
.mgz-co-trust__track span::before { content: "✓ "; }
@keyframes mgz-marquee { from { transform: translateX(0); } to { transform: translateX(-35%); } }
@media (min-width: 782px) { .mgz-co-trust__track { animation: none; width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .mgz-co-trust__track { animation: none; } }
.mgz-checkout-app .mgz-checkout-header { padding-top: .5rem !important; padding-bottom: .5rem !important; }
@media (max-width: 781px) {
	.mgz-checkout-app .mgz-checkout-header .wp-block-site-logo, .mgz-checkout-app .mgz-checkout-header .wp-block-site-title { display: none !important; }
	.mgz-checkout-app .mgz-checkout-header .mgz-secure { font-size: 0 !important; }
}

.mgz-checkout-app .mgz-checkout-page { background: #f2f2f2; padding-top: 0 !important; }
.mgz-checkout-app .wc-block-checkout { --mgz-field-h: 48px; }
.mgz-checkout-app .wc-block-checkout__main { background: transparent; box-shadow: none; padding: 0 !important; border-radius: 0; }
.mgz-checkout-app .wc-block-checkout__form > .wc-block-components-checkout-step, .mgz-checkout-app .wc-block-checkout__form > fieldset, .mgz-checkout-app .wc-block-checkout__form > .wc-block-checkout__add-note, .mgz-checkout-app .wc-block-checkout__form > .wc-block-checkout__terms { background: var(--wp--preset--color--base); margin: 0 0 8px !important; padding: 1rem clamp(1rem, 3vw, 1.75rem) !important; border-radius: 0; }
.mgz-checkout-app .wc-block-components-checkout-step__title { font-size: .9375rem !important; font-weight: 800; }
.mgz-checkout-app .wc-block-components-checkout-step__heading { margin-bottom: .6rem !important; }
.mgz-checkout-app .wc-block-components-text-input input, .mgz-checkout-app .wc-block-components-combobox .wc-block-components-combobox-control input, .mgz-checkout-app .wc-blocks-components-select__select { border-radius: 10px !important; font-size: 15px !important; }
.mgz-checkout-app .wc-block-components-address-form > *, .mgz-checkout-app .wc-block-components-text-input { margin-top: 10px !important; }
/* the address card gets the airmail stripe */
.mgz-checkout-app .wc-block-checkout__shipping-fields, .mgz-checkout-app .wc-block-checkout__billing-fields:only-of-type { position: relative; padding-bottom: 1.4rem !important; }
.mgz-checkout-app .wc-block-checkout__shipping-fields::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: repeating-linear-gradient(-45deg, #e5484d 0 12px, transparent 12px 20px, #3b82f6 20px 32px, transparent 32px 40px); }
/* shipping and payment: a clean list instead of boxed cards */
.mgz-checkout-app .wc-block-components-radio-control--highlight-checked, .mgz-checkout-app .wc-block-checkout__payment-method .wc-block-components-radio-control { border: 0 !important; }
.mgz-checkout-app .wc-block-components-radio-control__option, .mgz-checkout-app .wc-block-components-radio-control-accordion-option { border: 0 !important; border-bottom: 1px solid var(--wp--preset--color--border) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; margin: 0 !important; padding-top: .9rem !important; padding-bottom: .9rem !important; }
.mgz-checkout-app .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option { border-bottom: 0 !important; }
.mgz-checkout-app .wc-block-components-radio-control__option-checked, .mgz-checkout-app .wc-block-components-radio-control-accordion-option--checked-option-highlighted { font-weight: 700; }
.mgz-checkout-app .wc-block-components-radio-control > :last-child, .mgz-checkout-app .wc-block-components-radio-control-accordion-option:last-child { border-bottom: 0 !important; }
.mgz-checkout-app .wc-block-components-radio-control-accordion-content { padding-top: 0 !important; font-size: .8125rem; color: var(--wp--preset--color--muted); }
.mgz-checkout-app .wc-block-components-payment-method-icons { margin: 0 0 0 auto !important; }
.mgz-checkout-app .wc-block-components-payment-method-icon { height: 22px !important; width: auto !important; }
/* summary as its own white section */
.mgz-checkout-app .wc-block-checkout__sidebar .wc-block-components-sidebar, .mgz-checkout-app .wc-block-checkout__sidebar.is-sticky { border-radius: 0; box-shadow: none; }
@media (min-width: 782px) {
	.mgz-checkout-app .mgz-checkout-page { padding-top: 1.25rem !important; }
	.mgz-checkout-app .wc-block-checkout__form > * { border-radius: 12px !important; }
	.mgz-checkout-app .wc-block-checkout__sidebar .wc-block-components-sidebar, .mgz-checkout-app .wc-block-checkout__sidebar.is-sticky { border-radius: 12px; }
}
/* sticky total + place order bar on phones */
.mgz-co-total { display: none; }
@media (max-width: 781px) {
	.mgz-checkout-app .wc-block-checkout__actions { position: static; }
	.mgz-checkout-app .wc-block-checkout__actions_row { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; margin: 0 !important; background: var(--wp--preset--color--base); padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)) !important; box-shadow: 0 -6px 20px rgba(0,0,0,.08); flex-wrap: nowrap !important; align-items: center; gap: .75rem !important; }
	.mgz-checkout-app .mgz-checkout-page { padding-bottom: 6rem !important; }
	.mgz-checkout-app .wc-block-checkout__sidebar.is-sticky { position: static !important; }
	.mgz-checkout-app .wc-block-checkout__actions_row .wc-block-components-checkout-return-to-cart-button { display: none !important; }
	.mgz-checkout-app .mgz-co-total { display: flex; flex-direction: column; line-height: 1.1; flex: none; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
	.mgz-checkout-app .mgz-co-total b { font-size: 1.25rem; font-weight: 800; }
	.mgz-checkout-app .mgz-co-total small { font-size: .6875rem; color: var(--wp--preset--color--muted); }
	.mgz-checkout-app .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { flex: 1 1 auto; width: auto !important; min-height: 50px; border-radius: 999px !important; box-shadow: none !important; }
	.mgz-checkout-app .wc-block-checkout__sidebar { margin-bottom: 8px !important; }
	.mgz-checkout-app .wc-block-checkout__form > .wc-block-components-checkout-step:first-child { margin-top: 0 !important; }
	.mgz-checkout-app .wc-block-components-notices, .mgz-checkout-app .wc-block-store-notices, .mgz-checkout-app .mgz-checkout-page > .woocommerce-notices-wrapper { margin: 0 !important; }
}
@media (max-width: 781px) {
	.mgz-checkout-app .wc-block-checkout__actions_row { flex-direction: row !important; justify-content: space-between !important; }
	.mgz-checkout-app .wc-block-checkout__actions_row .mgz-co-total { order: -1; }
	.mgz-checkout-app .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button { order: 2; max-width: 62%; margin: 0 !important; }
}

/* ---------- v1.5.1 core invoice fields (order location) and open-package ---------- */
.wc-block-checkout__order-fields .wc-block-components-address-form__magazin-cui,
.wc-block-checkout__order-fields .wc-block-components-address-form__magazin-company,
.wc-block-checkout__order-fields .wc-block-components-address-form__magazin-reg-com { margin-top: .6rem !important; }
.wc-block-checkout__order-fields .wc-block-components-checkbox { margin-top: .75rem !important; }
.wc-block-checkout__order-fields .wc-block-components-text-input__help { font-size: 12.5px; color: var(--wp--preset--color--muted); }
/* Keep checkout columns and progress banners on the same centered grid. */
body.woocommerce-checkout { --mgz-checkout-width: 1152px; --mgz-checkout-sticky-top: 5.5rem; }
body.woocommerce-checkout.admin-bar { --mgz-checkout-sticky-top: calc(5.5rem + 32px); }
body.woocommerce-checkout :is(.wp-block-woocommerce-checkout, .mgz-spend-host, .mgz-checkout-loyalty, .mgz-checkout-update, .wp-block-post-content > .woocommerce, .mgz-classic-checkout) {
	width: 100%;
	max-width: var(--mgz-checkout-width) !important;
	margin-inline: auto !important;
	box-sizing: border-box;
}
.mgz-checkout-update { color: var(--wp--preset--color--sale); font-size: .875rem; }
.mgz-checkout-update:empty { margin-block: 0; }
.mgz-checkout-controls { display: flex; align-items: center; gap: .125rem; width: max-content; max-width: 100%; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.mgz-checkout-controls button {
	display: inline-grid; place-items: center; flex: 0 0 44px; inline-size: 44px; min-block-size: 44px;
	padding: 0; border: 1px solid var(--wp--custom--color--control-border); border-radius: 8px;
	background: var(--wp--preset--color--base); color: inherit; font: inherit; cursor: pointer;
}
.mgz-checkout-controls button:disabled { opacity: .48; cursor: default; }
.mgz-checkout-controls button[data-edit="remove"] { margin-inline-start: .25rem; }
.mgz-checkout-qty { min-width: 1.5rem; text-align: center; }
.wc-block-checkout .wc-block-components-order-summary-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .75rem; }
.wc-block-checkout .wc-block-components-order-summary-item__image { width: 72px; }
.wc-block-checkout .wc-block-components-order-summary-item__image img,
.mgz-classic-product-image img { display: block; width: 72px; height: 72px; max-width: none; max-height: none; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.wc-block-checkout .wc-block-components-order-summary-item__description { padding-inline: 0; min-width: 0; }
.wc-block-checkout .wc-block-components-order-summary-item__total-price { width: auto; }
.wc-block-checkout .mgz-checkout-editable .wc-block-components-product-name { overflow-wrap: anywhere; }
.wc-block-checkout .wc-block-components-order-summary-item:has(.mgz-checkout-controls) .wc-block-components-order-summary-item__quantity,
.mgz-classic-checkout .mgz-checkout-editable > .product-quantity { display: none; }
.mgz-classic-product-image { float: inline-start; margin: 0 .75rem .4rem 0; }
.mgz-classic-summary { min-width: 0; padding: 1rem; border-radius: var(--mgz-radius-lg); background: var(--wp--preset--color--base); }
.mgz-classic-summary > summary { cursor: pointer; font-weight: 700; }
.mgz-classic-summary .product-name { text-align: start; }
.mgz-classic-checkout #order_review_heading { display: none; }

@media (min-width: 1000px) {
	.wc-block-checkout.wc-block-components-sidebar-layout,
	.wc-block-checkout .wc-block-components-sidebar-layout:has(> .wc-block-checkout__sidebar),
	.mgz-classic-checkout {
		display: grid !important;
		grid-template-columns: minmax(0, 1.32fr) minmax(min(44%, 480px), 1fr);
		gap: 1.5rem;
		align-items: start;
	}
	.wc-block-checkout .wc-block-checkout__main,
	.wc-block-checkout .wc-block-checkout__sidebar {
		width: 100% !important; min-width: 0; max-width: none; margin: 0 !important; box-sizing: border-box;
	}
	.wc-block-checkout .wc-block-checkout__main { max-width: 640px; }
	.wc-block-checkout .wc-block-checkout__sidebar,
	.wc-block-checkout .wc-block-checkout__sidebar.is-sticky,
	.mgz-classic-summary {
		position: sticky !important;
		top: var(--mgz-checkout-sticky-top) !important;
		max-height: calc(100dvh - var(--mgz-checkout-sticky-top) - 1rem);
		overflow-y: auto;
	}
	.mgz-classic-checkout #customer_details { grid-column: 1; grid-row: 1; width: 100%; }
	.mgz-classic-checkout #order_review { display: contents; }
	.mgz-classic-checkout #payment { grid-column: 1; grid-row: 2; width: 100%; }
	.mgz-classic-summary { grid-column: 2; grid-row: 1 / span 2; }
	.mgz-classic-checkout #customer_details > :is(.col-1, .col-2) { float: none; width: 100%; }
}
@media (max-width: 999px) {
	.wc-block-checkout.wc-block-components-sidebar-layout,
	.wc-block-checkout .wc-block-components-sidebar-layout:has(> .wc-block-checkout__sidebar),
	.mgz-classic-checkout { display: flex !important; flex-direction: column; }
	.wc-block-checkout .wc-block-checkout__main,
	.wc-block-checkout .wc-block-checkout__sidebar { width: 100% !important; margin-inline: 0 !important; box-sizing: border-box; }
	.wc-block-checkout .wc-block-checkout__sidebar,
	.wc-block-checkout .wc-block-checkout__sidebar.is-sticky { order: -1; position: static !important; }
	.mgz-classic-checkout #order_review { display: contents; }
	.mgz-classic-summary { order: -1; margin-bottom: 1rem; }
}
@media (max-width: 480px) {
	.wc-block-checkout .wc-block-components-order-summary-item { grid-template-columns: auto minmax(0, 1fr); }
	.wc-block-checkout .wc-block-components-order-summary-item__total-price { grid-column: 2; justify-self: start; text-align: start; }
}
