/* Keep native WooCommerce content and access checks; refine spacing and hierarchy. */
body.woocommerce-order-received .woocommerce-order { max-width:1160px!important; width:100%; margin-inline:auto!important; }
body.woocommerce-order-received p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
 border:0!important; background:#f3f0eb!important; color:#252321!important; padding:25px 24px!important; font-size:22px!important;
 font-weight:600; line-height:1.4!important; text-align:left!important; margin:0 0 20px; box-shadow:none; border-radius:0;
}
body.woocommerce-order-received .woocommerce-order > ul.woocommerce-order-overview {
 display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; width:100%; max-width:none; list-style:none;
 margin:0 0 32px; padding:6px 20px; background:#faf8f5; border:1px solid #e7e3dd;
 text-align:left;
}
body.woocommerce-order-received .woocommerce-order > ul.woocommerce-order-overview li {
 float:none!important; width:auto!important; min-width:0; max-width:none; border:0!important; margin:0!important; padding:17px 12px!important;
 text-align:left!important; display:flex; flex-direction:column; gap:7px; font-size:12px; color:#6c665e; line-height:1.4; overflow-wrap:anywhere;
}
body.woocommerce-order-received .woocommerce-order > ul.woocommerce-order-overview li > span { font-size:12px; color:#6c665e; line-height:1.4; }
body.woocommerce-order-received .woocommerce-order > ul.woocommerce-order-overview li strong { font-size:15px; font-weight:600; color:#252321; line-height:1.5; margin:0; overflow-wrap:anywhere; }
body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title { font-size:20px; line-height:1.4; margin-bottom:18px; }
body.woocommerce-order-received .woocommerce-customer-details { border-top:1px solid #e7e3dd; padding-top:25px; }
body.woocommerce-order-received .woocommerce-customer-details address { font-style:normal; line-height:1.75; }
body.woocommerce-order-received .woocommerce-order-details table th,
body.woocommerce-order-received .woocommerce-order-details table td { padding-block:15px; line-height:1.6; }
body.woocommerce-order-received .woocommerce-order-details table td:last-child { white-space:normal; }
body.woocommerce-order-received .woocommerce-order-details .amount { white-space:nowrap; }
body.woocommerce-account nav.woocommerce-MyAccount-navigation { background:#faf8f5!important; padding:14px; border:1px solid #e7e3dd; }
body.woocommerce-account nav.woocommerce-MyAccount-navigation li a { font-size:14px; padding:13px 15px; line-height:1.4; }
body.woocommerce-account nav.woocommerce-MyAccount-navigation li.is-active a { color:#252321!important; background:#eeebe5!important; }
body.woocommerce-account .woocommerce-MyAccount-content { line-height:1.7; }
body.woocommerce-account .woocommerce-MyAccount-content h2 { font-size:24px; }
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-orders-table { font-size:14px; }
@media(min-width:1024px){
 body.woocommerce-order-received .woocommerce-order:has(>.woocommerce-order-details) { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr); column-gap:48px; align-items:start; }
 body.woocommerce-order-received .woocommerce-order:has(>.woocommerce-order-details)>* { grid-column:1/-1; }
 body.woocommerce-order-received .woocommerce-order:has(>.woocommerce-order-details)>p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received { grid-column:2; grid-row:1; margin:0; }
 body.woocommerce-order-received .woocommerce-order:has(>.woocommerce-order-details)>ul.woocommerce-order-overview { grid-column:2; grid-row:2; grid-template-columns:1fr; padding:8px 14px; }
 body.woocommerce-order-received .woocommerce-order:has(>.woocommerce-order-details)>.woocommerce-order-details { grid-column:1; grid-row:1/span 3; }
 body.woocommerce-order-received .woocommerce-order:has(>.woocommerce-order-details)>.woocommerce-customer-details { grid-column:1; }
}
@media(max-width:767px){
 body.woocommerce-order-received p.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received { padding:20px!important; font-size:21px!important; }
 body.woocommerce-order-received .woocommerce-order > ul.woocommerce-order-overview { padding:4px 8px; }
 body.woocommerce-order-received .woocommerce-order-details table { font-size:13px; }
 body.woocommerce-order-received .woocommerce-order-details table th:first-child { width:64%; }
 body.woocommerce-account nav.woocommerce-MyAccount-navigation { margin-bottom:24px; padding:7px; }
 body.woocommerce-account nav.woocommerce-MyAccount-navigation ul { display:flex!important; flex-wrap:nowrap!important; overflow-x:auto; gap:3px; margin:0; padding:0; list-style:none; scrollbar-width:thin; }
 body.woocommerce-account nav.woocommerce-MyAccount-navigation li { flex:0 0 auto; margin:0; border:0; }
 body.woocommerce-account nav.woocommerce-MyAccount-navigation li a { white-space:nowrap; padding:12px; }
}

/* Woo's float clearfix must not become an extra grid item; keep the summary in two columns on phones/tablets. */
body.woocommerce-order-received .woocommerce-order > ul.woocommerce-order-overview::before,
body.woocommerce-order-received .woocommerce-order > ul.woocommerce-order-overview::after { content:none!important; display:none!important; }
@media(max-width:1023px){
 body.woocommerce-order-received .woocommerce-order > ul.woocommerce-order-overview { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}
