/* Address -> service -> total -> payment. Native WooCommerce inputs are retained. */
body.thdc-checkout .thdc-services{clear:both;width:100%;box-sizing:border-box;margin:24px 0 32px;padding:28px;border:1px solid #b8b8b8;border-top:3px solid #111;border-radius:8px;background:#fff;color:#111}
body.thdc-checkout .thdc-services h3{margin:0 0 18px}
body.thdc-checkout .thdc-services-table{width:100%;border:0!important;margin:0!important;border-collapse:collapse}
body.thdc-checkout .thdc-services-table th{display:none}
body.thdc-checkout .thdc-services-table td{border:0!important;padding:0!important}
body.thdc-checkout #shipping_method{padding:0!important;margin:0;list-style:none}
body.thdc-checkout #shipping_method li{margin:0 0 10px!important;padding:14px 16px!important;line-height:1.5;border:1px solid #d4d4d4;border-radius:5px;background:#fafafa;text-align:left}
body.thdc-checkout #shipping_method li:has(input:checked){border-color:#111;background:#f1f1f1}
body.thdc-checkout #shipping_method input{accent-color:#111}
body.thdc-checkout #shipping_method label{display:inline!important}
body.thdc-checkout .thmd-checkout{margin:14px 0 20px;padding:16px 20px;border:1px solid #d4d4d4;border-left:3px solid #111;background:#f5f5f5;color:#111}
body.thdc-checkout .thmd-checkout p,body.thdc-checkout .thdc-flow-status{font-size:16px;line-height:1.5;margin:12px 0}
body.thdc-checkout .thdc-services button{min-height:46px;max-width:100%;white-space:normal;border:1px solid #111;border-radius:5px;padding:11px 18px;background:#111!important;color:#fff!important;font-size:16px;font-weight:600;cursor:pointer}
body.thdc-checkout .thdc-services button:hover{background:#333!important}
body.thdc-checkout .thdc-services button:disabled{opacity:.6;cursor:wait}
body.thdc-checkout .thdc-services :focus-visible{outline:3px solid #111;outline-offset:3px;box-shadow:0 0 0 3px #fff}
body.thdc-checkout .thdc-services [hidden]{display:none!important}
body.thdc-checkout .thmd-final-result:empty,body.thdc-checkout .thdc-flow-status:empty{display:none}
body.thdc-checkout .thmd-confirm{margin-top:16px;padding-top:8px;border-top:1px solid #ccc}
body.thdc-checkout .thmd-match-address{font-weight:600}
body.thdc-checkout .thmd-confirm a{color:#111;text-decoration:underline}
body.thdc-checkout .thdc-field-error{display:block;color:#9e3030;font-size:14px;line-height:1.4;margin-top:5px}
body.thdc-checkout .wcpay-express-checkout-wrapper{display:none!important}
body.thdc-checkout.thdc-payment-ready .wcpay-express-checkout-wrapper{display:block!important}
body.thdc-checkout.thdc-ux-ready:not(.thdc-payment-ready) #payment,body.thdc-checkout.thdc-ux-ready:not(.thdc-payment-ready) #thdc-payment-title{display:none!important}
body.thdc-checkout.thdc-ux-ready .thdc-pending{display:none}
body.thdc-checkout #customer_details,body.thdc-checkout #order_review,body.thdc-checkout #order_review_heading{float:none!important;width:100%!important;max-width:100%;box-sizing:border-box}
body.thdc-checkout .woocommerce form.checkout{display:block!important}
body.thdc-checkout #order_review *{overflow-wrap:anywhere}
body.thdc-checkout #thdc-payment-title{margin-top:24px}
@media(max-width:600px){
body.thdc-checkout .thdc-services{padding:20px 16px}
body.thdc-checkout #shipping_method li{padding:12px!important}
body.thdc-checkout .woocommerce .col2-set .col-1,body.thdc-checkout .woocommerce .col2-set .col-2{float:none;width:100%}
body.thdc-checkout .thmd-checkout{padding:12px 14px}
body.thdc-checkout .thdc-continue{width:100%}
body.thdc-checkout #order_review table.shop_table,body.thdc-checkout #order_review table.shop_table thead,body.thdc-checkout #order_review table.shop_table tbody,body.thdc-checkout #order_review table.shop_table tfoot{display:block;width:100%}
body.thdc-checkout #order_review table.shop_table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(6em,auto);width:100%}
body.thdc-checkout #order_review table.shop_table th,body.thdc-checkout #order_review table.shop_table td{display:block;width:auto;min-width:0;box-sizing:border-box}
body.thdc-checkout #order_review dl.variation{display:block!important}
body.thdc-checkout #order_review dl.variation dt,body.thdc-checkout #order_review dl.variation dd{float:none!important;display:block!important;width:100%;margin:0;padding:0}
body.thdc-checkout #order_review dl.variation dd{margin-bottom:8px}
body.thdc-checkout #order_review dl.variation p{margin:0}
}

body.thdc-checkout .thdc-total-stale td{visibility:hidden}

body.thdc-checkout #shipping_method label{font-size:16px!important;line-height:1.5!important}
body.thdc-checkout .thdc-quoted .thmd-checkout{padding:0;background:transparent;border:0;margin:8px 0 18px}
body.thdc-checkout .thdc-quoted .thdc-tariff,body.thdc-checkout .thdc-quoted .thmd-final-result{display:none}
body.thdc-checkout .thdc-quoted .thmd-final{background:#111!important;color:#fff!important}

/* Royal Elementor wraps customer details and order review in its own flex row. */
body.thdc-checkout .woocommerce form.checkout{max-width:860px;margin-left:auto;margin-right:auto}
body.thdc-checkout .wpr-customer-details-wrapper{display:block!important}
body.thdc-checkout .wpr-customer-details-wrapper > *,body.thdc-checkout .wpr-checkout-order-review-table,body.thdc-checkout .wpr-checkout-order-review-table-inner,body.thdc-checkout .wpr-checkout-order-review{width:100%!important;max-width:100%;box-sizing:border-box;float:none!important}
body.thdc-checkout #order_review dl.variation{display:block!important}
body.thdc-checkout #order_review dl.variation dt,body.thdc-checkout #order_review dl.variation dd{display:inline;float:none!important;width:auto;margin:0 4px 0 0}
body.thdc-checkout #order_review dl.variation dd:after{content:"";display:block}

/* Cart presentation only. Do not change payment methods or shipping settings. */
body.woocommerce-cart .woocommerce-message a.button.wc-forward,
body.woocommerce-cart .return-to-shop a.button{background:#111!important;color:#fff!important;border:1px solid #111!important;text-decoration:none}
body.woocommerce-cart .woocommerce-message a.button.wc-forward:hover,
body.woocommerce-cart .return-to-shop a.button:hover{background:#333!important;color:#fff!important}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout{display:flex!important;flex-direction:column!important;align-items:center!important;gap:14px;text-align:center}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button{display:block!important;box-sizing:border-box;width:100%!important;max-width:360px!important;margin:0 auto!important;float:none!important;text-align:center!important;white-space:normal;background:#111!important;color:#fff!important}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout #payment-method-message{box-sizing:border-box;width:100%!important;max-width:360px!important;margin:0 auto!important;padding:0!important;float:none!important;text-align:center}
body.woocommerce-cart a.button:focus-visible{outline:3px solid #111;outline-offset:3px;box-shadow:0 0 0 3px #fff}
