/* Scoped purchase layout; native forms, validation and totals stay intact. */
body.michael-buy-flow #main-content .bal-z-product-info{gap:48px}
body.michael-buy-flow #main-content .bal-z-product-summary h1{font-size:clamp(25px,2.5vw,34px);line-height:1.18;letter-spacing:-.025em;margin-bottom:20px}
body.michael-buy-flow #main-content .bal-z-product-summary .price{margin-block:16px 22px}
body.michael-buy-flow #main-content .bal-z-product-summary .price .amount{font-size:34px;color:#123f39}
body.michael-buy-flow #main-content .bal-z-product-summary form.cart{padding:24px;background:#f6f8f7;border:1px solid #e2e8e5;border-radius:16px}
body.michael-buy-flow #main-content .bal-z-color-options{gap:8px;margin:14px 0 8px}
body.michael-buy-flow #main-content .bal-z-color-options button.michael-photo-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;width:96px;height:86px;padding:6px;border:1px solid #d5ded9;border-radius:8px;background:#fff;box-shadow:none}
body.michael-buy-flow #main-content .bal-z-color-options button.michael-photo-choice[aria-pressed=true]{border:2px solid #174c45;box-shadow:0 0 0 1px #174c45}
body.michael-buy-flow #main-content .bal-z-color-options button.michael-photo-choice img{width:80px;height:50px;object-fit:contain}
body.michael-buy-flow #main-content .bal-z-color-options button.michael-photo-choice>span{position:static;clip:auto;clip-path:none;overflow:visible;width:auto;height:auto;font-size:11px;line-height:1.2;white-space:normal}
body.michael-buy-flow #main-content .bal-z-product-summary .bal-z-lens-entry{margin:18px 0;padding:0;border:0}
body.michael-buy-flow #main-content .bal-z-product-summary .bal-l-open{width:100%;min-height:52px;background:#174c45;color:#fff;border:0;border-radius:28px;font-size:16px;font-weight:700;text-transform:none}
body.michael-buy-flow #main-content .bal-z-product-summary .bal-l-open:disabled{opacity:.45}
body.michael-buy-flow #main-content .michael-lens-help{font-size:14px;line-height:1.5;margin:0 0 12px;color:#405d54}
body.michael-buy-flow #main-content .bal-l-entry-hint{font-size:12px;color:#68766f;margin:10px 0 0}
body.michael-buy-flow #main-content .single_add_to_cart_button{background:white;color:#174c45;border:1px solid #174c45;border-radius:26px;min-height:44px;text-transform:none}
body.michael-buy-flow #main-content .michael-tryon-button{border:1px solid #a3b8af;background:white;color:#174c45;border-radius:24px}
body.michael-buy-flow #main-content .michael-payment-note{font-size:12px;line-height:1.5;color:#64756e;margin:12px 0 22px}
body.michael-buy-flow.woocommerce-checkout .main-page-wrapper{background:#f5f5f7;padding-top:24px}
body.michael-buy-flow.woocommerce-checkout .container{max-width:1200px}
body.michael-buy-flow .bal-z-checkout-header{max-width:1200px;background:white;padding:20px 28px}
.michael-checkout-intro{margin:0 0 28px}
.michael-checkout-intro nav{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:#6b7b74;margin-bottom:22px}
.michael-checkout-intro nav strong,.michael-checkout-intro nav a{color:#7e3fe5}
.michael-checkout-intro h2{font-size:36px;letter-spacing:-.03em;margin:0 0 8px;color:#19191b}
.michael-checkout-intro>p{margin-bottom:22px;color:#61716a;font-size:15px}
.michael-demo-guide{display:flex;align-items:center;gap:24px;justify-content:space-between;border:1px solid #dce7da;background:#eef4e8;border-radius:12px;padding:18px 22px;color:#31513b}
.michael-demo-guide strong{font-size:15px}.michael-demo-guide p{font-size:13px;line-height:1.55;margin:6px 0 0;max-width:75ch}
.michael-fill-sample{flex-shrink:0;min-height:44px;border:1px solid #57795f;background:#fff;color:#204b32;border-radius:24px;padding:10px 20px;text-transform:none;cursor:pointer}
body.michael-buy-flow #main-content form.bal-z-checkout-form{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:28px;align-items:start}
body.michael-buy-flow #main-content .bal-z-checkout-contact{background:#fff;border:1px solid #e5e5e8;border-radius:4px;padding:28px}
body.michael-buy-flow #main-content .bal-z-checkout-contact .form-row{margin-bottom:18px}
body.michael-buy-flow #main-content .bal-z-checkout-contact label{font-size:13px;margin-bottom:7px;color:#333336}
body.michael-buy-flow #main-content .bal-z-checkout-contact input.input-text,
body.michael-buy-flow #main-content .bal-z-checkout-contact select,
body.michael-buy-flow #main-content .select2-container .select2-selection{height:48px;border:1px solid #cccbd0;border-radius:3px;background:white;box-shadow:none;font-size:14px}
body.michael-buy-flow #main-content .bal-z-checkout-contact h3,
body.michael-buy-flow #main-content .bal-z-payment-heading{font-size:21px;text-transform:none;letter-spacing:-.02em;color:#19191b;margin:0 0 24px;padding:0}
body.michael-buy-flow #main-content .bal-z-payment-heading{border-top:1px solid #e3e9e5;padding-top:28px;margin-top:28px}
body.michael-buy-flow #main-content .bal-z-checkout-review{display:block;position:sticky;top:20px;background:#fff;padding:24px;border:1px solid #e5e5e8;border-radius:4px}
body.michael-buy-flow #main-content .bal-z-checkout-review #order_review_heading{font-size:21px;text-transform:none;margin:0 0 20px;padding:0;color:#19191b}
body.michael-buy-flow #main-content .woocommerce-checkout-review-order-table{border:0;padding:0;margin:0;background:transparent}
body.michael-buy-flow #main-content .woocommerce-checkout-review-order-table th,
body.michael-buy-flow #main-content .woocommerce-checkout-review-order-table td{padding:16px 3px;font-size:13px;border-color:#e8e8eb}
body.michael-buy-flow #main-content .woocommerce-checkout-review-order-table .product-name img{display:block;width:170px;max-width:100%;height:96px;object-fit:contain;margin:0 0 12px}
body.michael-buy-flow #main-content .woocommerce-checkout-review-order-table .order-total .amount{font-size:27px;color:#7e3fe5}
body.michael-buy-flow #main-content #payment{background:transparent;padding:0;margin:0;border:0}
body.michael-buy-flow #main-content #payment .payment_methods{border:0;padding:0}
body.michael-buy-flow #main-content #payment .wc_payment_method{padding:16px;border:1px solid #e5e5e8;border-radius:4px;margin-bottom:12px}
body.michael-buy-flow #main-content #payment .payment_box{background:#f6f5f8;padding:14px;border-radius:8px;margin:14px 0 0;font-size:13px;line-height:1.6}
body.michael-buy-flow #main-content #payment .place-order{padding:0}
body.michael-buy-flow #main-content #place_order{display:block;width:100%;min-height:52px;background:#7e3fe5;color:white;border-radius:4px;text-transform:none;font-size:16px}
#michael-payment-address-state{font-size:13px;line-height:1.5;color:#5c653c;background:#f8f6e9;padding:12px 16px;border-radius:8px;margin:0 0 16px}
#michael-payment-address-state[hidden]{display:none}.michael-payment-waiting{opacity:.4;pointer-events:none}
@media(max-width:760px){
 body.michael-buy-flow #main-content form.bal-z-checkout-form{display:flex!important;flex-direction:column;gap:20px}
 body.michael-buy-flow #main-content .bal-z-checkout-contact,body.michael-buy-flow #main-content .bal-z-checkout-review{width:100%;position:static;padding:20px 16px}
 body.michael-buy-flow #main-content .bal-z-checkout-review{order:-1}
 body.michael-buy-flow #main-content .bal-z-checkout-contact{order:0}
 .michael-demo-guide{display:block;padding:16px}.michael-fill-sample{margin-top:14px}.michael-checkout-intro h2{font-size:30px}
 body.michael-buy-flow #main-content .bal-z-product-summary form.cart{padding:18px}
 body.michael-buy-flow #main-content .bal-z-color-options button.michael-photo-choice{width:85px}
}

/* Collapse the mobile item summary independently of the active checkout step. */
body.michael-buy-flow #main-content .michael-summary-toggle{display:none}
body.michael-buy-flow #main-content .woocommerce-billing-fields__field-wrapper,
body.michael-buy-flow #main-content .woocommerce-shipping-fields__field-wrapper{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
body.michael-buy-flow #main-content .bal-z-checkout-contact .form-row{grid-column:1/-1;width:auto;float:none;min-width:0}
body.michael-buy-flow #main-content .bal-z-checkout-contact .form-row-first,
body.michael-buy-flow #main-content .bal-z-checkout-contact .form-row-last{grid-column:auto}
@media(max-width:760px){
 body.michael-buy-flow.woocommerce-checkout .main-page-wrapper{padding-top:16px}
 .michael-checkout-intro{margin-bottom:18px}.michael-checkout-intro nav{margin-bottom:14px}.michael-checkout-intro h2{font-size:26px}
 body.michael-buy-flow #main-content form.bal-z-checkout-form{gap:14px}
 body.michael-buy-flow #main-content .michael-summary-ready{padding:0}
 body.michael-buy-flow #main-content .michael-summary-toggle{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:16px;background:white;color:#222;font-size:14px;text-transform:none;border:0;text-align:left}
 body.michael-buy-flow #main-content .michael-summary-toggle strong{margin-left:auto;color:#7e3fe5}
 body.michael-buy-flow #main-content .michael-summary-ready #order_review_heading{display:none}
 body.michael-buy-flow #main-content .michael-summary-ready:not(.michael-summary-open) #order_review{display:none}
 body.michael-buy-flow #main-content .michael-summary-open #order_review{padding:0 16px 16px}
 body.michael-buy-flow #main-content .michael-summary-open .michael-summary-toggle>span:last-child{transform:rotate(180deg)}
 body.michael-buy-flow #main-content .woocommerce-checkout-review-order-table .product-name img{width:110px;height:64px}
 body.michael-buy-flow #main-content .bal-z-checkout-contact .form-row{margin-bottom:14px}
}

/* Three steps reuse the same native form fields and payment controls. */
body.michael-buy-flow .michael-stepped-checkout [hidden],
body.michael-buy-flow .michael-checkout-intro nav[hidden]{display:none!important}
.michael-checkout-steps{margin:0 0 28px;scroll-margin-top:24px}
.michael-checkout-steps>p{font-size:13px;color:#626268;margin:0 0 16px}
.michael-checkout-steps ol{display:flex;list-style:none;padding:0;margin:0;gap:12px;counter-reset:checkout-step}
.michael-checkout-steps li{flex:1;position:relative;counter-increment:checkout-step;border-top:3px solid #e5e5eb;padding-top:12px;font-size:12px;color:#626268}
.michael-checkout-steps li::before{content:counter(checkout-step) '. ';font-weight:700}
.michael-checkout-steps li[aria-current=step],.michael-checkout-steps li.is-complete{border-color:#7e3fe5;color:#6330b8}
.michael-checkout-steps li[aria-current=step]{font-weight:700}
.michael-contact-summary{border-bottom:1px solid #e5e5e8;margin-bottom:24px;padding-bottom:20px}
.michael-contact-summary>div{margin-bottom:14px}.michael-contact-summary strong,.michael-shipping-summary>strong{font-size:14px}
.michael-contact-summary p,.michael-shipping-summary p{font-size:14px;line-height:1.6;overflow-wrap:anywhere;margin:5px 0}
body.michael-buy-flow [data-checkout-edit]{padding:0;min-height:36px;border:0;background:transparent;text-decoration:underline;color:#6330b8;text-transform:none;font-size:13px;box-shadow:none}
body.michael-buy-flow #main-content .michael-delivery-step h2{font-size:21px;margin:0 0 20px}
.michael-delivery-options{margin:0;border:0}.michael-delivery-options th{display:none}
.michael-delivery-options td{padding:0;border:0}.michael-delivery-options ul{list-style:none;margin:0;padding:0}
.michael-delivery-options li{padding:16px;border:1px solid #d9d7df;border-radius:4px;margin:0 0 12px}
.michael-delivery-options label{display:inline!important;margin-left:8px}
.michael-delivery-empty{color:#626268;font-size:14px}
.michael-shipping-summary{padding:0 0 20px;margin:0 0 24px;border-bottom:1px solid #e5e5e8}
body.michael-buy-flow #main-content .michael-payment-step .bal-z-payment-heading{margin-top:0;padding-top:0;border-top:0}
.michael-checkout-status{font-size:14px;line-height:1.5;color:#643015;margin:14px 0}
.michael-checkout-status:empty{display:none}
.michael-checkout-actions{display:flex;gap:16px;margin-top:24px}
body.michael-buy-flow .michael-checkout-next{flex:1;min-height:52px;background:#7e3fe5;color:white;border:0;border-radius:4px;text-transform:none;font-size:16px}
body.michael-buy-flow .michael-checkout-next:disabled{opacity:.55;cursor:wait}
body.michael-buy-flow .michael-checkout-back{min-height:48px;background:white;border:1px solid #cccbd0;border-radius:4px;text-transform:none;color:#333}
body.michael-buy-flow .michael-address-dialog{width:min(660px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:24px;border:0;border-radius:8px;background:white;color:#333;overflow:auto;box-shadow:0 16px 60px #0003}
body.michael-buy-flow .michael-address-dialog:not([open]){display:none}
.michael-address-dialog::backdrop{background:rgb(0 0 0 / .45)}
.michael-address-dialog-fields{position:relative}
.michael-address-dialog-header{display:flex;align-items:center;gap:16px;margin-bottom:24px}
body.michael-buy-flow #main-content .michael-address-dialog-header h2{margin:0;font-size:22px;text-transform:none;flex:1}
body.michael-buy-flow .michael-address-dialog-header button{background:transparent;border:0;font-size:28px;min-width:44px;min-height:44px;padding:0;color:#333}
.michael-address-dialog .woocommerce-billing-fields>h3,.michael-address-dialog #billing_email_field{display:none!important}
body.michael-buy-flow #main-content .michael-address-dialog .form-row{grid-column:1/-1;float:none;width:auto;min-width:0;margin-bottom:18px}
body.michael-buy-flow #main-content .michael-address-dialog .form-row-first,body.michael-buy-flow #main-content .michael-address-dialog .form-row-last{grid-column:auto}
body.michael-buy-flow #main-content .michael-address-dialog label{font-size:13px;margin-bottom:7px;color:#333}
body.michael-buy-flow #main-content .michael-address-dialog input.input-text,
body.michael-buy-flow #main-content .michael-address-dialog select,
body.michael-buy-flow #main-content .michael-address-dialog .select2-selection{height:48px;border:1px solid #cccbd0;border-radius:3px;background:white;box-shadow:none;font-size:14px}
.michael-address-dialog-status{font-size:14px;line-height:1.5;color:#643015;margin:12px 0}
.michael-address-dialog-status:empty{display:none}
.michael-address-dialog-actions{display:flex;gap:12px;margin-top:20px}
body.michael-buy-flow .michael-address-dialog-actions button{min-height:48px;border:1px solid #cccbd0;border-radius:4px;background:white;color:#333;text-transform:none}
body.michael-buy-flow .michael-address-dialog-actions [data-address-save]{flex:1;background:#7e3fe5;border-color:#7e3fe5;color:white}
body.michael-buy-flow .michael-address-dialog-actions [data-address-save]:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){
 .michael-checkout-steps ol{gap:8px}.michael-checkout-steps li{font-size:11px}
 .michael-checkout-steps{margin-bottom:24px}.michael-contact-summary{margin-bottom:20px}
 .michael-checkout-actions{gap:10px}
 body.michael-buy-flow .michael-address-dialog{padding:20px 16px;width:calc(100% - 24px);max-height:calc(100dvh - 24px)}
}
