body.elwan-orders-page{--eo-navy:#044167;--eo-ink:#17364b;--eo-gold:#bd9440;--eo-border:#dfe7ee;--eo-muted:#667c8c;background:#f6f8fa}
body.elwan-orders-page #Content{padding-top:30px!important;padding-bottom:24px!important}
body.elwan-orders-page .woocommerce-MyAccount-content{min-width:0}
body.elwan-orders-page .woocommerce-MyAccount-content>.woocommerce-info{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:18px 22px;border-radius:14px;font-size:13px;line-height:1.9;margin-bottom:22px}
body.elwan-orders-page .woocommerce-MyAccount-content>.woocommerce-info .button{float:none;margin:0;min-height:44px;flex-shrink:0}
.eo-account,.eo-account *{box-sizing:border-box}
.eo-account{color:var(--eo-ink);font-family:'Almarai',Arial,sans-serif;max-width:1200px;width:100%;margin:0 auto;text-align:start}
.eo-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 28px;padding:25px 0}
.eo-eyebrow{display:block;color:var(--eo-gold);font-size:12px;font-weight:700;letter-spacing:.04em;margin-bottom:10px}
.eo-account h1{font:800 clamp(25px,3vw,34px)/1.5 'Almarai',Arial,sans-serif;color:var(--eo-navy);margin:0 0 8px}
.eo-account h2{font:700 20px/1.6 'Almarai',Arial,sans-serif;color:var(--eo-navy);margin:0 0 20px}
.eo-heading p{font-size:14px;color:var(--eo-muted);line-height:1.9;margin:0}
.eo-account .eo-back{display:inline-flex;align-items:center;gap:12px;color:var(--eo-navy);font-weight:700;font-size:13px;text-decoration:none;min-height:44px;flex-shrink:0}
.eo-order-list{display:grid;gap:20px}
.eo-order-card{background:white;border:1px solid var(--eo-border);border-radius:20px;padding:24px 28px;box-shadow:0 5px 24px #133c5505}
.eo-card-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px;border-bottom:1px solid #edf1f5}
.eo-label,.eo-facts dt{display:block;font-size:12px;color:var(--eo-muted);line-height:1.7;margin:0 0 8px;font-weight:400}
.eo-number{display:block;font-size:21px;font-weight:800;color:var(--eo-navy);line-height:1.5;text-decoration:none;direction:ltr;text-align:start}
.eo-status{display:inline-flex;align-items:center;gap:8px;border-radius:30px;padding:8px 14px;background:#fff5df;color:#866019;font-size:12px;font-weight:700;line-height:1.6;white-space:normal}
.eo-status::before{content:'';height:6px;width:6px;border-radius:50%;background:currentColor;flex:none}
.eo-status--processing,.eo-status--shipped{background:#e9f4fa;color:#075f8d}.eo-status--completed,.eo-status--delivered{background:#eaf7f0;color:#24724f}.eo-status--cancelled,.eo-status--failed,.eo-status--refunded{background:#fff0ef;color:#a4443f}
.eo-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:22px 0}
.eo-facts dd{font-size:14px;font-weight:700;line-height:1.9;margin:0;color:var(--eo-ink)}
.eo-total dd{font-size:19px;color:var(--eo-navy)}
.eo-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
body.elwan-orders-page .eo-account a.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 18px!important;min-height:46px;border:1px solid var(--eo-border)!important;border-radius:10px!important;background:white!important;box-shadow:none!important;color:var(--eo-navy)!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;line-height:1.6!important;margin:0!important;text-decoration:none;float:none!important;white-space:normal;text-align:center}
body.elwan-orders-page .eo-account a.button.view,body.elwan-orders-page .eo-account a.button.pay,body.elwan-orders-page .eo-empty a.button{background:var(--eo-navy)!important;color:white!important;border-color:var(--eo-navy)!important}
body.elwan-orders-page .eo-account a.button:after{display:none!important}.eo-account a:hover{filter:brightness(.95)}.eo-account a:focus-visible{outline:3px solid var(--eo-gold);outline-offset:4px}
.eo-pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin:28px 0;font-size:13px}
.eo-empty{background:white;border:1px solid var(--eo-border);border-radius:20px;padding:60px 25px;text-align:center}.eo-empty p{color:var(--eo-muted);margin-bottom:25px}
.eo-view>.eo-heading{margin-top:0;padding-top:14px}
body.elwan-orders-page .eo-view>.eo-back{display:inline-flex;justify-content:center;align-items:center;gap:12px;min-height:48px;padding:12px 20px;margin-bottom:18px;border:1px solid #aac4d6;border-radius:12px;background:#edf5fa;color:var(--eo-navy);font-size:14px;font-weight:700;text-decoration:none;box-shadow:0 2px 6px #04416708}
.eo-view>.eo-back::before{content:'←';font-family:Arial,sans-serif;font-size:22px;line-height:1}
html[dir=rtl] .eo-view>.eo-back::before{content:'→'}
body.elwan-orders-page .eo-view>.eo-back:hover{background:#deedf6;border-color:var(--eo-navy)}
@media(max-width:600px){body.elwan-orders-page .eo-view>.eo-back{width:100%;font-size:14px;min-height:48px;margin-bottom:20px}}
.eo-view-summary{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(115deg,#044167,#123c55);color:white;border-radius:20px;padding:25px 28px;margin-bottom:24px}
.eo-view-summary .eo-label{color:#c5d9e5}.eo-view-summary strong{display:block;font-size:25px;font-weight:800;line-height:1.7;color:white}
.eo-print-notice{font-size:13px;line-height:1.9;color:var(--eo-navy);margin:0}.eo-print-notice:not(:empty){padding:14px 18px;background:#eef5fa;border-radius:12px;margin-bottom:20px}
body.elwan-orders-page .eo-account .woocommerce-order-details,body.elwan-orders-page .eo-account .woocommerce-customer-details,.eo-updates{background:white;border:1px solid var(--eo-border);border-radius:20px;padding:28px;margin:0 0 24px!important;box-shadow:none}
body.elwan-orders-page .eo-account table.shop_table{width:100%;margin:0;border:0!important;border-collapse:collapse;background:white;border-radius:0;table-layout:auto}
body.elwan-orders-page .eo-account table.shop_table :is(th,td){padding:16px 12px!important;border:0!important;border-bottom:1px solid #edf1f5!important;text-align:start!important;background:transparent!important;color:var(--eo-ink);font-size:14px;line-height:1.9;vertical-align:top;overflow-wrap:anywhere}
body.elwan-orders-page .eo-account table.shop_table thead th{color:var(--eo-muted);font-size:12px;font-weight:400;background:#f7f9fb!important}
body.elwan-orders-page .eo-account table.shop_table .product-total{white-space:nowrap;width:28%}
body.elwan-orders-page .eo-account table.shop_table tbody .product-name a{font-weight:700;color:var(--eo-navy);font-size:14px;line-height:1.9}
body.elwan-orders-page .eo-account table.shop_table tfoot th{font-weight:400;color:var(--eo-muted);width:52%}
body.elwan-orders-page .eo-account table.shop_table tfoot td{font-weight:700}
body.elwan-orders-page .eo-account .wc-item-meta{margin:8px 0 0;padding:0;list-style:none;font-size:12px;color:var(--eo-muted)}
body.elwan-orders-page .eo-account .wc-item-meta p{display:inline;font-size:12px}
body.elwan-orders-page .eo-account table.shop_table tr:has(.order-actions--heading){display:none}
body.elwan-orders-page .eo-account .woocommerce-customer-details .col2-set{display:grid;grid-template-columns:1fr 1fr;gap:28px;width:100%;margin:0}
body.elwan-orders-page .eo-account .woocommerce-customer-details .col2-set .woocommerce-column{float:none;width:auto;margin:0;min-width:0}
body.elwan-orders-page .eo-account .woocommerce-customer-details address{border:0;border-radius:0;padding:0;font-style:normal;font-size:14px;line-height:2;color:var(--eo-muted);overflow-wrap:anywhere}
body.elwan-orders-page .eo-account .woocommerce-customer-details p{font-size:13px;line-height:1.9}
body.elwan-orders-page .eo-account .woocommerce-customer-details :is(h2,address,p){text-align:start!important}
body.elwan-orders-page .eo-account .woocommerce-customer-details address p{padding:0!important;margin:8px 0!important}
body.elwan-orders-page .eo-account .woocommerce-customer-details address p::before{position:static!important;display:inline-block;margin-inline-end:8px!important;margin-inline-start:0!important;float:none!important}
/* Remove BeTheme's centered address and its large document-icon column. */
body.elwan-orders-page .eo-account .woocommerce-customer-details{text-align:start!important}
body.elwan-orders-page .eo-account .woocommerce-customer-details address{display:block!important;width:100%!important;padding:0!important;margin:0!important;text-align:start!important;font-size:14px;line-height:1.9}
body.elwan-orders-page .eo-account .woocommerce-customer-details address::before,
body.elwan-orders-page .eo-account .woocommerce-customer-details address p::before{display:none!important;content:none!important}
body.elwan-orders-page .eo-account .woocommerce-customer-details address::first-line{font-weight:700;color:var(--eo-ink)}
body.elwan-orders-page .eo-account .woocommerce-customer-details address p{font-size:13px;overflow-wrap:anywhere}
body.elwan-orders-page #Content .section:has(.eo-account),
body.elwan-orders-page #Content :is(.section_wrapper,.mcb-wrap,.mcb-wrap-inner,.mcb-column,.column_attr,.woocommerce,.woocommerce-MyAccount-content):has(.eo-account){min-height:0!important;height:auto!important;padding-bottom:0!important;margin-bottom:0!important}
body.elwan-orders-page .eo-order-content>.woocommerce-customer-details:last-child{margin-bottom:0!important}
.eo-updates article{padding:16px 0;border-top:1px solid var(--eo-border)}.eo-updates time{font-size:12px;color:var(--eo-muted)}.eo-updates p{font-size:14px;line-height:1.9;margin:8px 0}
@media(max-width:900px){.eo-facts{grid-template-columns:1fr 1fr;gap:18px}.eo-view-summary{align-items:flex-start;flex-direction:column}.eo-heading{align-items:flex-start}}
@media(max-width:600px){body.elwan-orders-page #Content{padding-top:16px!important;padding-bottom:24px!important}.eo-heading{padding:18px 0;margin-bottom:18px;flex-wrap:wrap;gap:14px}.eo-heading p{font-size:13px}.eo-order-card{padding:20px 18px;border-radius:16px}.eo-order-list{gap:16px}.eo-card-top{padding-bottom:16px}.eo-number{font-size:20px}.eo-facts{gap:20px 12px;margin:20px 0}.eo-facts dd{font-size:13px}.eo-total dd{font-size:18px}.eo-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.eo-actions .elwan_invoice:only-child{grid-column:1/-1}.eo-view-summary{padding:22px 18px;border-radius:16px}.eo-view-summary strong{font-size:24px}body.elwan-orders-page .eo-account .woocommerce-order-details,body.elwan-orders-page .eo-account .woocommerce-customer-details,.eo-updates{padding:20px 16px;border-radius:16px}body.elwan-orders-page .eo-account .woocommerce-customer-details .col2-set{grid-template-columns:1fr;gap:25px}body.elwan-orders-page .eo-account table.shop_table :is(th,td){padding:14px 6px!important;font-size:13px}body.elwan-orders-page .eo-account table.shop_table tbody .product-name a{font-size:13px}.eo-account h2{font-size:18px}.eo-status{font-size:11px;padding:7px 11px}body.elwan-orders-page .eo-account a.button{padding:10px!important;font-size:12px!important}}


/* Orders list: widen the order cards and organize the page header. */
body.elwan-orders-page .woocommerce-MyAccount-content > .eo-account:not(.eo-view){width:100%;max-width:none}
body.elwan-orders-page .woocommerce-MyAccount-content > .eo-account:not(.eo-view) > .eo-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:20px;margin:0 0 24px;padding:22px 26px;border:1px solid var(--eo-border);border-radius:18px;background:#fff}
body.elwan-orders-page .woocommerce-MyAccount-content > .eo-account:not(.eo-view) > .eo-heading>div{min-width:0}
body.elwan-orders-page .woocommerce-MyAccount-content > .eo-account:not(.eo-view) > .eo-heading .eo-back{justify-self:start;min-height:44px;padding:10px 16px;border:1px solid #c9dbe7;border-radius:10px;background:#f1f7fb;color:var(--eo-navy);white-space:nowrap}
body.elwan-orders-page:not(:has(.eo-view)) .woocommerce-MyAccount-content>.woocommerce-info{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;justify-content:initial;gap:10px 18px;text-align:start}
@media(max-width:767px){
 body.elwan-orders-page .woocommerce-MyAccount-content > .eo-account:not(.eo-view) > .eo-heading{grid-template-columns:minmax(0,1fr);align-items:start;gap:12px;margin-bottom:18px;padding:18px;border-radius:16px}
 body.elwan-orders-page .woocommerce-MyAccount-content > .eo-account:not(.eo-view) > .eo-heading .eo-back{justify-self:start;white-space:normal}
 body.elwan-orders-page:not(:has(.eo-view)) .woocommerce-MyAccount-content>.woocommerce-info{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px;padding:16px;text-align:start}
 body.elwan-orders-page:not(:has(.eo-view)) .woocommerce-MyAccount-content>.woocommerce-info .button{align-self:flex-start;max-width:100%;white-space:normal}
}


/* Keep the email-confirmation notice compact; never stretch its button. */
body.elwan-orders-page:not(:has(.eo-view)) .woocommerce-MyAccount-content>.woocommerce-info{display:flex;width:fit-content;max-width:100%;margin-inline-start:auto;margin-inline-end:0;align-items:center;justify-content:flex-start;gap:12px 16px;padding:14px 18px;border:1px solid var(--eo-border);border-radius:14px;background:#fff!important;text-align:start}
body.elwan-orders-page:not(:has(.eo-view)) .woocommerce-MyAccount-content>.woocommerce-info .button{width:auto!important;min-width:0!important;max-width:100%;flex:0 0 auto;white-space:nowrap}
@media(max-width:767px){
 body.elwan-orders-page:not(:has(.eo-view)) .woocommerce-MyAccount-content>.woocommerce-info{width:100%;flex-direction:column;align-items:flex-start;gap:10px;padding:14px 16px}
 body.elwan-orders-page:not(:has(.eo-view)) .woocommerce-MyAccount-content>.woocommerce-info .button{align-self:flex-start;white-space:normal}
}
