/* Mench Deposits & Layaway: the product tiles. Everything is scoped under .mdep; colours follow the Mench navy palette. */
.mdep{--mdep-fg:#142b49;--mdep-primary:#173b63;--mdep-primary-dark:#142b49;--mdep-line:#dce3ee;--mdep-control:#b9c8dc;--mdep-tint:#edf3fb;--mdep-quiet:#f6f8fc;--mdep-muted:#5b6b80;--mdep-r:12px;color:var(--mdep-fg);font-size:1rem;line-height:1.5;box-sizing:border-box;max-width:100%;min-width:0}
.mdep *,.mdep *::before,.mdep *::after{box-sizing:border-box}
.mdep[hidden],.mdep [hidden]{display:none!important}
.mdep-tiles{flex:0 0 100%;width:100%;margin:0 0 20px;text-align:left}
.mdep-form{max-width:640px;margin:0 auto}
.mdep-title{margin:0 0 16px;font-size:1.4rem;line-height:1.25;color:var(--mdep-fg)}

/* The radio group */
.mdep .mdep-group{margin:0;padding:0;border:0;min-width:0}
.mdep .mdep-legend{display:block;float:none;width:auto;margin:0 0 8px;padding:0;font-size:.95rem;font-weight:600;line-height:1.35;color:var(--mdep-fg)}
.mdep .mdep-tiles__list{display:grid;gap:8px}
.mdep .mdep-note{margin:8px 0 0;font-size:.8125rem;line-height:1.4;color:var(--mdep-muted)}

/* One tile: the whole card is the click target (44px or taller) */
.mdep .mdep-tile{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;margin:0;padding:12px 14px;border:1px solid var(--mdep-control);border-radius:var(--mdep-r);background:#fff;color:var(--mdep-fg);cursor:pointer;font-weight:400}
.mdep .mdep-tile:hover{background:var(--mdep-tint)}
.mdep .mdep-tile:has(input:checked){background:var(--mdep-tint);border-color:var(--mdep-primary);box-shadow:0 0 0 1px var(--mdep-primary)}
.mdep .mdep-tile:has(input:focus-visible){outline:2px solid var(--mdep-primary);outline-offset:2px}
.mdep .mdep-tile__input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--mdep-primary)}
.mdep .mdep-tile__body{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px}
.mdep .mdep-tile__title{font-size:1rem;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.mdep .mdep-tile__sub{font-size:.875rem;line-height:1.35;color:var(--mdep-muted);overflow-wrap:anywhere}
.mdep .mdep-tile__amount{flex:none;margin-left:auto;padding-left:8px;font-size:1.0625rem;font-weight:700;color:var(--mdep-primary-dark);white-space:nowrap}
@media (prefers-reduced-motion:no-preference){.mdep .mdep-tile{transition:background .15s,border-color .15s,box-shadow .15s}}

/* A complete form (shortcode, block, Elementor widget) */
.mdep .mdep-attrs{display:grid;gap:12px;margin:0 0 16px}
.mdep .mdep-attr__label{display:block;margin:0 0 6px;font-size:.95rem;font-weight:600;color:var(--mdep-fg)}
.mdep .mdep-input{display:block;width:100%;max-width:100%;min-height:44px;margin:0;padding:10px 12px;font:inherit;line-height:1.3;color:var(--mdep-fg);background:#fff;border:1px solid var(--mdep-control);border-radius:10px;box-shadow:none}
.mdep .mdep-input:focus-visible{outline:2px solid var(--mdep-primary);outline-offset:1px;border-color:var(--mdep-primary)}
.mdep .mdep-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px;margin:0}
.mdep .mdep-actions .quantity{margin:0}
.mdep .mdep-actions .quantity .qty{min-height:48px;margin:0}
.mdep .mdep-submit,.mdep button.mdep-submit{display:inline-flex;align-items:center;justify-content:center;flex:1 1 220px;min-height:48px;margin:0;padding:0 24px;font:inherit;font-weight:600;color:#fff;background:var(--mdep-primary);border:0;border-radius:10px;cursor:pointer;text-transform:none;text-decoration:none}
.mdep .mdep-submit:hover,.mdep button.mdep-submit:hover{filter:brightness(.9);color:#fff;background:var(--mdep-primary)}
.mdep .mdep-submit:focus-visible{outline:2px solid var(--mdep-primary);outline-offset:3px}
@media (max-width:480px){.mdep .mdep-actions .quantity,.mdep .mdep-submit{flex:1 1 100%}.mdep .mdep-tile{padding:12px}}

/* Express payment buttons (Apple Pay, Google Pay, Link ...) skip the tiles: hidden on the product page while a plan tile is
   checked. The script sets data-mdep-plan on <html>. Known wrappers of WooPayments, Stripe and PayPal; the cart refuses a
   purchase without a valid choice either way. */
html[data-mdep-plan] #wcpay-payment-request-wrapper,
html[data-mdep-plan] #wcpay-payment-request-button-separator,
html[data-mdep-plan] #wcpay-express-checkout-wrapper,
html[data-mdep-plan] #wcpay-express-checkout-button-separator,
html[data-mdep-plan] .wcpay-payment-request-wrapper,
html[data-mdep-plan] .wcpay-express-checkout-wrapper,
html[data-mdep-plan] #wc-stripe-payment-request-wrapper,
html[data-mdep-plan] #wc-stripe-payment-request-button-separator,
html[data-mdep-plan] #wc-stripe-express-checkout-element,
html[data-mdep-plan] #wc-stripe-express-checkout-button-separator,
html[data-mdep-plan] .wc-stripe-product-checkout-container,
html[data-mdep-plan] .wc-block-components-express-payment--product,
html[data-mdep-plan] #ppc-button-ppcp-gateway{display:none!important}
