/* Shared native commerce surfaces. Business state remains owned by WooCommerce. */
body .woocommerce :is(.woocommerce-orders-table,.woocommerce-checkout-review-order-table,.woocommerce-table--order-details){width:100%;border:1px solid var(--jd-line);border-collapse:separate;border-spacing:0;border-radius:16px;overflow:hidden;background:var(--jd-glass-soft);color:var(--jd-text);font-family:var(--jd-font);font-size:14px;line-height:1.9}
body .woocommerce :is(.woocommerce-orders-table,.woocommerce-checkout-review-order-table,.woocommerce-table--order-details) :is(th,td){padding:16px 20px;border:0;border-bottom:1px solid var(--jd-line);text-align:start;vertical-align:middle;overflow-wrap:anywhere}
body .woocommerce :is(.woocommerce-orders-table,.woocommerce-checkout-review-order-table,.woocommerce-table--order-details) thead th{background:var(--jd-glass-strong);color:var(--jd-text);font-weight:750;font-size:13px}
body .woocommerce :is(.woocommerce-orders-table,.woocommerce-checkout-review-order-table,.woocommerce-table--order-details) tbody tr:nth-child(even)>*{background:var(--jd-glass-soft)}
body .woocommerce :is(.woocommerce-orders-table,.woocommerce-checkout-review-order-table,.woocommerce-table--order-details) tbody tr:nth-child(odd)>*{background:transparent}
body .woocommerce :is(.woocommerce-orders-table,.woocommerce-checkout-review-order-table,.woocommerce-table--order-details) tfoot th{font-weight:600;color:var(--jd-muted)}
body .woocommerce :is(.woocommerce-checkout-review-order-table,.woocommerce-table--order-details) tfoot tr:last-child>*{border-bottom:0;font-size:17px;font-weight:750;color:var(--jd-text)}
.jd-order-status{--jd-status-color:var(--jd-muted);display:inline-flex;align-items:center;gap:8px;padding:5px 12px;min-height:34px;border:1px solid color-mix(in srgb,var(--jd-status-color) 40%,transparent);border-radius:10px;background:color-mix(in srgb,var(--jd-status-color) 10%,transparent);color:var(--jd-status-color);font-size:12px;font-weight:700;white-space:nowrap}
.jd-order-status::before{content:"";width:6px;height:6px;flex:none;border-radius:50%;background:currentColor}
.jd-order-status[data-status=completed]{--jd-status-color:var(--jd-success)}
.jd-order-status[data-status=processing]{--jd-status-color:var(--jd-info)}
.jd-order-status:is([data-status=pending],[data-status=on-hold]){--jd-status-color:var(--jd-warning)}
.jd-order-status[data-status=failed]{--jd-status-color:var(--jd-error)}
.jd-checkout-address,.jd-order-address{padding:24px;border:1px solid var(--jd-line);border-radius:16px;background:var(--jd-glass-soft);margin-bottom:24px}
.jd-checkout-address h3,.jd-order-address h2{font-size:20px;margin:0 0 16px}
.jd-checkout-address label{display:block;margin-bottom:8px;font-weight:600}
.jd-checkout-address select{width:100%;min-height:48px}
.jd-checkout-address-summary{padding:16px 0 0;color:var(--jd-muted);line-height:2;text-align:justify;text-align-last:start}
body .woocommerce-billing-fields>h3{font-size:22px;margin:0 0 24px}
body .woocommerce-billing-fields__field-wrapper>[hidden]{display:none!important}
body .woocommerce form.checkout .form-row select{min-height:48px;width:100%;color:var(--jd-text);background:var(--jd-glass-soft);border:1px solid var(--jd-line);border-radius:12px;padding:10px 12px}
body.woocommerce-cart .woocommerce table.shop_table td.actions{vertical-align:middle}
.jd-cart-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0}
body.woocommerce-cart .woocommerce .jd-cart-actions .coupon{float:none!important;display:flex;align-items:center;gap:10px;padding:0;min-width:0}
body.woocommerce-cart .woocommerce .jd-cart-actions .coupon input.input-text{float:none;width:200px!important;min-width:0;min-height:46px;margin:0;padding:10px 14px}
body.woocommerce-cart .woocommerce .jd-cart-actions :is(button,input){margin-block:0;vertical-align:middle}
body.woocommerce-cart .woocommerce .jd-cart-actions button{float:none;min-height:46px;white-space:nowrap}
body.woocommerce-cart .woocommerce a.remove{display:grid;place-items:center;width:36px;height:36px;min-width:36px;padding:0;line-height:1;font-size:0;border-radius:50%;margin:auto}
body.woocommerce-cart .woocommerce a.remove svg{display:block;width:18px;height:18px;margin:0}
body.jd-order-received .jd-page-intro{display:none!important}
.jd-receipt{display:grid;gap:24px;margin:0 0 32px}
.jd-receipt-header{display:flex;gap:20px;align-items:flex-start;padding:28px;border:1px solid var(--jd-line);border-radius:18px;background:var(--jd-glass-soft)}
.jd-receipt-mark{display:grid;place-items:center;flex:none;width:56px;height:56px;border:1px solid var(--jd-line);border-radius:16px;background:var(--jd-glass-strong);color:var(--jd-action)}
.jd-receipt-mark svg{width:28px;height:28px}.jd-receipt-header h1{font-size:clamp(23px,3vw,32px);margin:0 0 12px}.jd-receipt-header p{margin:0;color:var(--jd-muted);text-align:justify;text-align-last:start}
.jd-receipt-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0}
.jd-receipt-facts>div{padding:20px;border:1px solid var(--jd-line);border-radius:14px;background:var(--jd-glass-soft);min-width:0}.jd-receipt-facts dt{font-size:12px;color:var(--jd-muted);margin-bottom:8px}.jd-receipt-facts dd{margin:0;font-size:15px;font-weight:700;overflow-wrap:anywhere}
.jd-order-address address{margin:0;border:0;padding:0;font-style:normal;line-height:2;color:var(--jd-text)}
.jd-receipt-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:800px){.jd-receipt-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.jd-cart-actions{flex-direction:column;align-items:stretch}body.woocommerce-cart .woocommerce .jd-cart-actions .coupon{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;gap:8px}body.woocommerce-cart .woocommerce .jd-cart-actions .coupon input.input-text{width:100%!important}body.woocommerce-cart .woocommerce .jd-cart-actions>button{width:100%}.jd-receipt-header,.jd-checkout-address,.jd-order-address{padding:20px}.jd-receipt-header{gap:12px}.jd-receipt-mark{width:44px;height:44px;border-radius:12px}body .woocommerce :is(.woocommerce-orders-table,.woocommerce-checkout-review-order-table,.woocommerce-table--order-details) :is(th,td){padding:14px 12px}.jd-order-status{white-space:normal}}
@media(forced-colors:active){.jd-order-status{color:CanvasText;border-color:CanvasText;background:Canvas}.jd-receipt-mark{color:ButtonText}.jd-order-status::before{background:CanvasText}}

@media(max-width:768px){body .woocommerce table.woocommerce-orders-table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number{display:block!important;text-align:start!important;background:var(--jd-glass-strong);font-size:16px}body .woocommerce table.woocommerce-orders-table.shop_table_responsive tbody tr{border-bottom:8px solid var(--jd-bg)}}

body.woocommerce-cart .woocommerce .jd-cart-actions .coupon::before,body.woocommerce-cart .woocommerce .jd-cart-actions .coupon::after{display:none}
@media(max-width:800px){body.woocommerce-cart .woocommerce .jd-cart-actions .coupon input.input-text{grid-column:1;grid-row:1}body.woocommerce-cart .woocommerce .jd-cart-actions .coupon button.button{grid-column:2;grid-row:1;width:auto!important;float:none!important;padding-inline:14px}}

body .woocommerce-billing-fields__field-wrapper>.jd-checkout-known{display:none!important}

@media(max-width:700px){body.woocommerce-cart .woocommerce table.shop_table_responsive tbody th.product-name{display:block!important;grid-column:2;grid-row:1;text-align:start!important;padding:4px 0!important;padding-inline-end:44px!important;border:0!important;background:transparent!important}}

/* Payment stays within the native checkout form, directly after the order notes. */
body.woocommerce-checkout #customer_details .col-2{min-width:0}
body.woocommerce-checkout #customer_details #payment{margin-top:24px;border:1px solid var(--jd-line);border-radius:16px;background:var(--jd-glass-soft);color:var(--jd-text);overflow:hidden}
body.woocommerce-checkout #customer_details #payment ul.payment_methods{padding:20px;border-bottom:1px solid var(--jd-line);margin:0}
body.woocommerce-checkout #customer_details #payment ul.payment_methods li{line-height:2}
body.woocommerce-checkout #customer_details #payment .payment_box{background:var(--jd-glass-strong);color:var(--jd-muted);border-radius:12px;line-height:2}
body.woocommerce-checkout #customer_details #payment .payment_box::before{border-bottom-color:var(--jd-glass-strong)}
body.woocommerce-checkout #customer_details #payment .payment_box p{text-align:justify;text-align-last:start}
body.woocommerce-checkout #customer_details #payment .place-order{padding:20px;margin:0}
body.woocommerce-checkout #customer_details #payment #place_order{float:none;width:100%;min-height:48px;margin:0;border-radius:12px;background:var(--jd-action);color:var(--jd-on-action)}
