/* 1.11.3: isolated WooCommerce classic / Elementor / Checkout Block panel. */
#mtt-delivery-choice {box-sizing:border-box;min-width:0;width:100%;padding:28px;margin:0 0 30px;border:1px solid #d5c6b5;background:#f7f3eb;color:#241d18;clear:both}
#mtt-delivery-choice[hidden] {display:none!important}
#mtt-delivery-choice * {box-sizing:border-box}
#mtt-delivery-choice legend {float:none;display:block;width:auto;max-width:100%;margin:0 0 4px;padding:0;color:#251c16;font:400 clamp(23px,3vw,30px)/1.3 Georgia,'Times New Roman',serif;text-transform:none}
#mtt-delivery-choice .mtt-delivery-lead {margin:0 0 20px!important;color:#6f6052;font:400 14px/1.6 Arial,Helvetica,sans-serif}
#mtt-delivery-choice .mtt-delivery-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#mtt-delivery-choice .mtt-delivery-option {display:flex;align-items:center;gap:13px;min-width:0;min-height:96px;padding:18px 15px;border:1px solid #cbbbaa;background:#fffefa;color:#291f19;cursor:pointer;transition:border-color .15s,box-shadow .15s}
#mtt-delivery-choice .mtt-delivery-option.is-selected,
#mtt-delivery-choice .mtt-delivery-option:has(input:checked) {border:2px solid #30251b;padding:17px 14px;box-shadow:0 0 0 1px #30251b}
#mtt-delivery-choice .mtt-delivery-option:focus-within {outline:3px solid #a27c55;outline-offset:3px}
#mtt-delivery-choice .mtt-delivery-option input[type=radio] {position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;pointer-events:none}
#mtt-delivery-choice .mtt-delivery-option-icon {display:grid;place-items:center;flex:0 0 40px;height:40px;border:1px solid #eadbca;color:#654931;font:26px/1 Arial,Helvetica,sans-serif}
#mtt-delivery-choice .mtt-delivery-option-content {display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
#mtt-delivery-choice .mtt-delivery-option strong {color:#2b2019;font:700 15px/1.3 Arial,Helvetica,sans-serif}
#mtt-delivery-choice .mtt-delivery-option small {color:#68584b;font:400 12px/1.5 Arial,Helvetica,sans-serif}
#mtt-delivery-choice .mtt-delivery-radio {width:20px;height:20px;flex:0 0 20px;border:1.5px solid #8f8070;border-radius:50%;background:#fff}
#mtt-delivery-choice .mtt-delivery-option.is-selected .mtt-delivery-radio,
#mtt-delivery-choice .mtt-delivery-option:has(input:checked) .mtt-delivery-radio {border:6px solid #292019}
#mtt-delivery-choice #mtt-delivery-note {margin:18px 0 0!important;color:#5b4a3c;font:400 13px/1.55 Arial,Helvetica,sans-serif}
/* Only classic fields are suppressed: native Blocks manages its own address
   state, pickup locations and mandatory payment/billing fields. */
form.woocommerce-checkout.mtt-pickup-active :is(#billing_address_1_field,#billing_address_2_field,#billing_city_field,#billing_postcode_field,#billing_state_field,#billing_country_field,#ship-to-different-address,.shipping_address) {display:none!important}
@media(max-width:680px) {
    #mtt-delivery-choice {padding:19px 15px;margin-bottom:23px}
    #mtt-delivery-choice .mtt-delivery-options {grid-template-columns:minmax(0,1fr);gap:10px}
    #mtt-delivery-choice .mtt-delivery-option {min-height:78px;padding:13px}
    #mtt-delivery-choice .mtt-delivery-option.is-selected,
    #mtt-delivery-choice .mtt-delivery-option:has(input:checked) {padding:12px}
    #mtt-delivery-choice legend {font-size:24px}
}

/* Admin-only diagnostic appears solely when block checkout lacks native pickup. */
#mtt-checkout-manager-notice {border-left:4px solid #ac753c;background:#fff7eb;padding:14px 18px;margin:0 0 22px;color:#4e3824;font:14px/1.6 Arial,Helvetica,sans-serif}
#mtt-checkout-manager-notice[hidden] {display:none!important}

/* Keep WooCommerce's native shipping-rate and pickup-location UI present.
   Hiding a whole native block can prevent selection or cost review. */

/* Clear unavailable options without allowing checkout with an invented rate. */
#mtt-delivery-choice .mtt-delivery-option.is-disabled {opacity:.55;background:#f1eee9;cursor:not-allowed;box-shadow:none;border-width:1px;padding:18px 15px}
#mtt-delivery-choice .mtt-delivery-option.is-disabled .mtt-option-unavailable {font-weight:700;color:#665b4d}
#mtt-delivery-choice .mtt-delivery-option.is-disabled:has(input:checked) {box-shadow:none}

/* Compact fields only in our checkout, leaving all other pages untouched. */
form.checkout.mtt-checkout-enhanced :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) .form-row {margin-bottom:13px!important}
form.checkout.mtt-checkout-enhanced :is(.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper) :is(input.input-text,select,textarea) {min-height:45px}
form.checkout.mtt-checkout-enhanced .woocommerce-billing-fields > h3 {margin:0 0 18px}

/* 1.11.3: breathing room for the checkout, including its Elementor/Vonaco
   outer container. Never change other pages or the store's main header. */
body.mtt-quick-checkout-page .mtt-checkout-layout,
body.mtt-quick-checkout-page .mtt-checkout-page-heading {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:1620px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    padding-left:clamp(22px,3.5vw,64px)!important;
    padding-right:clamp(22px,3.5vw,64px)!important;
}
body.mtt-quick-checkout-page .mtt-checkout-layout > #mtt-delivery-choice {margin-top:12px}
body.mtt-quick-checkout-page .mtt-checkout-layout form.checkout,
body.mtt-quick-checkout-page .mtt-checkout-layout form.woocommerce-checkout {min-width:0}
@media(max-width:680px) {
    body.mtt-quick-checkout-page .mtt-checkout-layout,
    body.mtt-quick-checkout-page .mtt-checkout-page-heading {
        padding-left:18px!important;
        padding-right:18px!important;
    }
}
