/* Explicit placement survives WooCommerce country locale class and priority changes. */
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper {
 display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
 gap:12px !important; align-items:start; grid-auto-flow:row;
}
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > .form-row {
 width:100% !important; max-width:100%; min-width:0; float:none !important; clear:none !important;
 margin:0 !important; padding:0 !important; grid-column:1 / -1;
}
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_first_name_field { grid-column:1 !important; grid-row:1 !important; }
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_last_name_field { grid-column:2 !important; grid-row:1 !important; }
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_country_field { grid-column:1 !important; grid-row:2 !important; }
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_state_field { grid-column:2 !important; grid-row:2 !important; }
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_city_field { grid-column:1 !important; grid-row:3 !important; }
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_address_1_field { grid-column:2 !important; grid-row:3 !important; }
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_postcode_field { grid-column:1 !important; grid-row:4 !important; }
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_email_field { grid-column:2 !important; grid-row:4 !important; }
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_phone_field { grid-column:1 !important; grid-row:5 !important; }
body.woocommerce-checkout form.checkout #customer_details #billing_phone_field { max-width:240px; }
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > .form-row label { display:block; min-height:20px; margin:0 0 4px; line-height:20px; }
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper .woocommerce-input-wrapper { display:block; width:100%; }
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper input.input-text,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper select { height:46px; width:100%; }
@media(max-width:600px){
 body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper { grid-template-columns:minmax(0,1fr) !important; }
 body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_first_name_field { grid-column:1 !important; grid-row:1 !important; }
 body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_last_name_field { grid-column:1 !important; grid-row:2 !important; }
 body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_country_field { grid-column:1 !important; grid-row:3 !important; }
 body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_state_field { grid-column:1 !important; grid-row:4 !important; }
 body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_city_field { grid-column:1 !important; grid-row:5 !important; }
 body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_address_1_field { grid-column:1 !important; grid-row:6 !important; }
 body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_postcode_field { grid-column:1 !important; grid-row:7 !important; }
 body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_email_field { grid-column:1 !important; grid-row:8 !important; }
 body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > #billing_phone_field { grid-column:1 !important; grid-row:9 !important; }
 body.woocommerce-checkout form.checkout #customer_details #billing_phone_field { max-width:100%; }
}

/* OTP panels must fill the contact column, including plugin inline max-width. */
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields > div:not(.woocommerce-billing-fields__field-wrapper),
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields > section,
body.woocommerce-checkout form.checkout #customer_details .col-1 > div:not(.woocommerce-billing-fields),
body.woocommerce-checkout form.checkout #customer_details .col-1 > section,
body.woocommerce-checkout form.checkout #customer_details .woocommerce-billing-fields__field-wrapper > :not(.form-row),
body.woocommerce-checkout form.checkout .warp-checkout-left > .warp-otp-full-width,
body.woocommerce-checkout form.checkout .warp-checkout-left .warp-otp-full-width {
 box-sizing:border-box !important; width:100% !important; max-width:100% !important;
 min-width:0 !important; float:none !important; grid-column:1 / -1 !important;
 margin-left:0 !important; margin-right:0 !important; overflow-wrap:anywhere;
}

/* Notices are never allowed to consume a checkout content column. */
body.woocommerce-checkout form.checkout > :not(.warp-checkout-left):not(.warp-checkout-summary) {grid-column:1 / -1;min-width:0;}
body.woocommerce-checkout form.checkout::before,body.woocommerce-checkout form.checkout::after {display:none!important;content:none!important;}
body.woocommerce-checkout form.checkout > .warp-checkout-left {grid-column:1;grid-row:auto;}
body.woocommerce-checkout form.checkout > .warp-checkout-summary {grid-column:2;grid-row:auto;}
body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup:empty {display:none;}
body.woocommerce-checkout .warp-inline-checkout-error {display:block;color:#b42318;font-size:12px;margin:5px 0 0;line-height:1.4;}
@media(max-width:800px){body.woocommerce-checkout form.checkout > .warp-checkout-summary {grid-column:1;grid-row:auto;} }

/* Order confirmation: keep the native order table and customer details side by side. */
body.woocommerce-order-received .woocommerce-order {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px 28px;align-items:start;}
body.woocommerce-order-received .woocommerce-order > * {grid-column:1/-1;min-width:0;margin-top:0;}
body.woocommerce-order-received .woocommerce-order > .woocommerce-order-details {grid-column:1;grid-row:auto;margin:0;}
body.woocommerce-order-received .woocommerce-order > .woocommerce-customer-details {grid-column:2;grid-row:auto;margin:0;padding:20px;background:#f5f7fb;border:1px solid #dce4f0;border-radius:12px;}
body.woocommerce-order-received .woocommerce-order-details table {width:100%;table-layout:auto;overflow-wrap:anywhere;}
body.woocommerce-order-received .woocommerce-order-details .product-name {overflow-wrap:anywhere;}
body.woocommerce-order-received .woocommerce-customer-details address {width:100%;border:0;padding:0;margin:12px 0 0;font-style:normal;overflow-wrap:anywhere;}
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column__title {margin:0 0 12px;}
body.woocommerce-order-received .woocommerce-order-details .woocommerce-order-details__title {margin:0 0 14px;}
@media(max-width:900px){body.woocommerce-order-received .woocommerce-order {grid-template-columns:minmax(0,1fr);gap:20px;}body.woocommerce-order-received .woocommerce-order > .woocommerce-order-details,body.woocommerce-order-received .woocommerce-order > .woocommerce-customer-details {grid-column:1;}}
@media(min-width:901px){body.woocommerce-order-received .woocommerce-order > .woocommerce-order-details:has(~ .woocommerce-customer-details) {grid-column:1;}body.woocommerce-order-received .woocommerce-order > .woocommerce-order-details + .woocommerce-customer-details {grid-column:2;}}

/* Align the address card with the top of the order table on desktop. */
@media(min-width:901px){
 body.woocommerce-order-received .woocommerce-order > .woocommerce-customer-details {margin-top:45px;}
}
body.woocommerce-order-received .warp-duplicate-invoice[hidden]{display:none!important;}

/* 2.0.31: order confirmation table cells must not inherit card title clamping. */
body.woocommerce-order-received .woocommerce-order-details table td.product-name {
 display:table-cell; -webkit-line-clamp:unset; -webkit-box-orient:initial;
 overflow:visible; height:auto; min-height:0; max-height:none; white-space:normal;
 overflow-wrap:anywhere; vertical-align:middle;
}
body.woocommerce-order-received .woocommerce-order-details td.product-name a {
 display:inline; white-space:normal; overflow-wrap:anywhere;
}
@media(max-width: 767px){
 body.woocommerce-order-received .woocommerce-order {gap:16px;}
 body.woocommerce-order-received ul.woocommerce-order-overview {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;
  padding:14px; margin:0; list-style:none; background:#f5f7fb;
  border:1px solid #dce4f0; border-radius:10px;
 }
 body.woocommerce-order-received ul.woocommerce-order-overview::before,
 body.woocommerce-order-received ul.woocommerce-order-overview::after {display:none;content:none;}
 body.woocommerce-order-received ul.woocommerce-order-overview li {
  float:none; width:auto; min-width:0; margin:0; padding:0; border:0;
  font-size:10px; line-height:1.5; overflow-wrap:anywhere;
 }
 body.woocommerce-order-received ul.woocommerce-order-overview li strong {
  display:block; font-size:13px; line-height:1.45; margin-top:3px; overflow-wrap:anywhere;
 }
 body.woocommerce-order-received ul.woocommerce-order-overview li.woocommerce-order-overview__payment-method {grid-column:1/-1;}
 body.woocommerce-order-received .woocommerce-order > p {margin:0;}
 body.woocommerce-order-received .woocommerce-order-details table {table-layout:fixed;}
 body.woocommerce-order-received .woocommerce-order-details table th,
 body.woocommerce-order-received .woocommerce-order-details table td {padding:10px 8px; font-size:12px; line-height:1.5;}
 body.woocommerce-order-received .woocommerce-order-details table .product-name {width:64%;}
 body.woocommerce-order-received .woocommerce-order-details table .product-total {width:36%; text-align:right; vertical-align:middle;}
 body.woocommerce-order-received .woocommerce-order-details table td .button {white-space:normal; max-width:100%; overflow-wrap:anywhere; text-align:center; padding:9px;}
 body.woocommerce-order-received .woocommerce-order > .woocommerce-customer-details {margin-top:0;}
}
