/* Demit Gold 2.36: genuine wide, compact order receipt + addresses + terms. */
body.demit-theme.woocommerce-order-received .demit-inner-shell,
body.demit-theme.woocommerce-order-received .demit-shop-shell,
body.demit-theme.woocommerce-order-received .demit-page,
body.demit-theme.woocommerce-order-received .demit-entry,
body.demit-theme.woocommerce-order-received .demit-entry>.woocommerce,
body.demit-theme.woocommerce-order-received .woocommerce-order,
body.demit-theme.woocommerce-order-received .dg236-receipt{
    width:100%!important;max-width:none!important;min-width:0!important;
    padding-inline:0!important;float:none!important;
}
body.demit-theme.woocommerce-order-received .demit-inner-shell,
body.demit-theme.woocommerce-order-received .demit-shop-shell{
    width:min(94%,1280px)!important;max-width:1280px!important;
    padding-top:16px!important;padding-bottom:32px!important;margin-inline:auto!important;
}
body.demit-theme.woocommerce-order-received .demit-page-header{display:none!important}
body.demit-theme.woocommerce-order-received .demit-entry{overflow:visible!important}
body.demit-theme.woocommerce-order-received .dg236-receipt{
    display:grid;gap:14px;direction:rtl;text-align:right;
    font-size:14px;line-height:1.75;
}
body.demit-theme .dg236-receipt *,body.demit-theme .dg236-account-addressbook *{box-sizing:border-box}
body.demit-theme .dg236-receipt :is(h1,h2,h3,p){margin-top:0!important}
body.demit-theme .dg236-receipt-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:14px 18px;background:#fffefb;border:1px solid #ebe2d4;border-radius:15px;min-width:0}
body.demit-theme .dg236-receipt-heading{min-width:210px;flex:1 1 260px}
body.demit-theme .dg236-eyebrow{display:block;color:#ae8850;font:600 10px Georgia,serif;letter-spacing:1.4px;direction:ltr;text-align:right}
body.demit-theme .dg236-receipt-heading h1{color:#0b4735!important;font-size:clamp(19px,1.9vw,25px)!important;line-height:1.5!important;margin:3px 0 4px!important;padding:0!important;border:0!important;background:none!important}
body.demit-theme .dg236-receipt-heading p{font-size:12px;color:#66776c;margin:0!important}
body.demit-theme .dg236-track-pill{display:flex;align-items:center;gap:10px;max-width:100%;min-width:0;flex-wrap:wrap;border-radius:11px;background:#0b4937;padding:12px 15px;color:#f6f4ed}
body.demit-theme .dg236-track-pill span{font-size:11px;color:#e4d6b9;white-space:nowrap}
body.demit-theme .dg236-track-pill strong{font:600 11px Arial,sans-serif;letter-spacing:.2px;direction:ltr;overflow-wrap:anywhere;word-break:break-all;max-width:265px;color:#fff}
body.demit-theme .dg236-track-pill a{font-size:11px;text-decoration:none!important;color:#efd09a!important;white-space:nowrap}
body.demit-theme .dg236-receipt-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0!important}
body.demit-theme .dg236-receipt-facts>div{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;column-gap:9px;row-gap:5px;min-width:0;border-radius:11px;background:#f9f6ef;border:1px solid #eee5d7;padding:12px 14px}
body.demit-theme .dg236-receipt-facts span{font-size:11px;color:#7b867d}
body.demit-theme .dg236-receipt-facts strong{font-size:12px;color:#0d4938;overflow-wrap:anywhere;text-align:left;line-height:1.6}
body.demit-theme .dg236-receipt-details{width:100%;max-width:none;min-width:0;border:1px solid #e8dfd2;border-radius:14px;background:#fff;overflow:hidden;margin:0!important}
body.demit-theme .dg236-section-title{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;padding:13px 18px 9px}
body.demit-theme .dg236-section-title h2{font-size:17px!important;color:#114634!important;margin:0!important;line-height:1.6!important}
body.demit-theme .dg236-section-title small{font-size:11px;color:#809188}
body.demit-theme table.dg236-receipt-table{display:table!important;table-layout:fixed!important;width:100%!important;max-width:none!important;min-width:0!important;border:0!important;border-spacing:0!important;border-collapse:collapse!important;margin:0!important;overflow:visible!important;background:#fff!important}
body.demit-theme table.dg236-receipt-table thead{display:table-header-group!important}
body.demit-theme table.dg236-receipt-table tbody{display:table-row-group!important}
body.demit-theme table.dg236-receipt-table tr{display:table-row!important}
body.demit-theme table.dg236-receipt-table :is(th,td){display:table-cell!important;padding:12px 16px!important;border:0!important;border-bottom:1px solid #eee9e1!important;float:none!important;white-space:normal!important;overflow-wrap:anywhere!important;vertical-align:middle!important;font-size:12px!important}
body.demit-theme table.dg236-receipt-table th{background:#f7f2e9!important;color:#345449!important;text-align:right!important;font-weight:700!important}
body.demit-theme table.dg236-receipt-table th:first-child{width:65%}
body.demit-theme table.dg236-receipt-table th:nth-child(2){width:12%;text-align:center!important}
body.demit-theme table.dg236-receipt-table th:last-child{width:23%;text-align:left!important}
body.demit-theme table.dg236-receipt-table .dg236-product-detail{display:flex;gap:11px;align-items:center;min-width:0}
body.demit-theme .dg236-product-thumb{display:inline-flex;flex:none;width:44px;height:44px;border-radius:8px;overflow:hidden;background:#f7f3eb}
body.demit-theme .dg236-product-thumb img{width:100%!important;height:100%!important;object-fit:contain!important;border-radius:0!important}
body.demit-theme .dg236-product-detail strong{color:#194538;font-size:13px;font-weight:650}
body.demit-theme .dg236-product-detail small{display:block;color:#8a887e;line-height:1.7;font-size:11px;word-break:break-word}
body.demit-theme table.dg236-receipt-table td.dg236-qty{text-align:center!important}
body.demit-theme table.dg236-receipt-table td.dg236-amount{text-align:left!important;font-weight:650;color:#1b4d3b}
body.demit-theme .dg236-total-list{display:grid;gap:0;margin-inline-start:auto;width:min(100%,440px);padding:5px 18px 12px}
body.demit-theme .dg236-total-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 0;border-bottom:1px dashed #efe8dc;font-size:12px;color:#52655b;min-width:0}
body.demit-theme .dg236-total-row :is(span,strong){margin:0!important;min-width:0;overflow-wrap:anywhere}
body.demit-theme .dg236-total-row strong{font-size:12px;color:#244e40;font-weight:600;text-align:left}
body.demit-theme .dg236-total-row.dg236-grand-total{border:0;background:#eaf5ed;border-radius:8px;padding:10px 12px;margin:6px -6px 0;color:#124b37;font-weight:700}
body.demit-theme .dg236-grand-total strong{font-size:14px;color:#0b4835}
body.demit-theme .dg236-receipt-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
body.demit-theme .dg236-address-card{min-width:0;border:1px solid #eae1d2;border-radius:12px;background:#fffdfa;padding:14px 17px}
body.demit-theme .dg236-address-card header{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}
body.demit-theme .dg236-address-card h3{margin:0!important;font-size:15px!important;color:#164c38!important}
body.demit-theme .dg236-address-card small{font-size:10px;color:#6a987c}
body.demit-theme .dg236-address-card address{font-size:12px!important;line-height:1.9!important;min-height:0!important;color:#4e6155;font-style:normal!important;border:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:0!important;overflow-wrap:anywhere}
body.demit-theme .dg236-address-contact{margin:7px 0 0!important;font-size:11px;color:#647969}
body.demit-theme .dg236-receipt-links{display:flex;flex-wrap:wrap;gap:16px;font-size:12px}
body.demit-theme .dg236-receipt-links a{text-decoration:none!important;color:#0e5940!important;border-bottom:1px solid #b9cbbd}
body.demit-theme .dg236-receipt .dg-track-thankyou{display:none!important}
/* Other payment gateway instructions remain available. */
body.demit-theme .dg236-receipt>.woocommerce-notice{margin:0!important}
/* Compact two-column customer address book. */
body.demit-theme.woocommerce-account .dg236-account-addressbook{width:100%;max-width:none;min-width:0}
body.demit-theme.woocommerce-account .dg236-addressbook-intro{padding:0!important;margin-bottom:16px!important;background:none!important;border:0!important;box-shadow:none!important}
body.demit-theme.woocommerce-account .dg236-addressbook-intro>div>span{font-size:10px;letter-spacing:1.4px;color:#b18f59}
body.demit-theme.woocommerce-account .dg236-addressbook-intro h2{margin:4px 0 5px!important;font-size:clamp(20px,2vw,27px)!important;color:#164636!important}
body.demit-theme.woocommerce-account .dg236-addressbook-intro p{margin:0!important;font-size:12px;color:#708479;background:none!important;border:0!important;padding:0!important}
body.demit-theme.woocommerce-account .woocommerce-MyAccount-content .dg236-account-address-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important;width:100%!important;margin:0!important;padding:0!important}
body.demit-theme.woocommerce-account .woocommerce-MyAccount-content .dg236-account-address-grid>.dg236-account-address-card{display:block!important;float:none!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:155px!important;margin:0!important;border:1px solid #e8dfd0!important;border-radius:14px!important;background:#fffdfa!important;padding:16px 18px!important;box-shadow:none!important}
body.demit-theme .dg236-account-address-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 11px!important;padding:0 0 9px!important;border:0!important;border-bottom:1px solid #efe5d6!important;background:none!important}
body.demit-theme .dg236-account-address-head h3{font-size:15px!important;color:#154b39!important;margin:0!important;line-height:1.5!important}
body.demit-theme .dg236-account-address-head a{display:inline-flex!important;width:auto!important;text-decoration:none!important;font-size:12px!important;color:#9f762f!important;white-space:nowrap!important}
body.demit-theme .dg236-account-address-card address{font-style:normal!important;font-size:12px!important;line-height:2!important;color:#556c5d!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0!important;overflow-wrap:anywhere!important}
body.demit-theme .dg236-no-address{color:#77887f;font-size:12px}
body.demit-theme .dg236-address-extra{font-size:11px;color:#597365;margin:10px 0 0}
/* Make the official terms of service link clearly visible on classic + blocks checkouts. */
body.demit-theme.woocommerce-checkout :is(.woocommerce-terms-and-conditions-checkbox-text a,.dg232-checkout-terms a,.wc-block-checkout__terms a,.wc-block-components-checkout-step__description a,.wc-block-components-checkbox__label a[href*="terms"],.wc-block-components-checkbox__label a[href*="قوانین"]){color:#087048!important;font-weight:800!important;text-decoration:underline!important;text-decoration-color:#c5964d!important;text-decoration-thickness:2px!important;text-underline-offset:5px!important;background:#fff4d5!important;border-radius:4px!important;padding:2px 5px!important}
body.demit-theme.woocommerce-checkout :is(.woocommerce-terms-and-conditions-checkbox-text a,.dg232-checkout-terms a,.wc-block-checkout__terms a):focus-visible{outline:2px solid #b58134;outline-offset:3px}
/* Align terms page to the rest of Demit Gold's 1280px content width. */
body.demit-theme .dg226-guide-page .demit-container{max-width:1280px!important;width:min(94%,1280px)!important;margin-inline:auto!important}
body.demit-theme.demit-terms-page .demit-inner-shell{max-width:1280px!important;width:min(94%,1280px)!important;margin-inline:auto!important}
body.demit-theme.demit-terms-page .demit-entry{max-width:100%!important;width:100%!important}
@media(max-width:900px){
 body.demit-theme .dg236-receipt-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.demit-theme .dg236-receipt-header{padding:12px 14px}
}
@media(max-width:650px){
 body.demit-theme.woocommerce-order-received .demit-inner-shell{width:min(94%,640px)!important;padding-top:6px!important}
 body.demit-theme .dg236-receipt{gap:10px}
 body.demit-theme .dg236-receipt-bottom{grid-template-columns:1fr;gap:9px}
 body.demit-theme .dg236-address-card{padding:12px 14px}
 body.demit-theme .dg236-receipt-header{align-items:stretch}
 body.demit-theme .dg236-track-pill{width:100%;gap:6px;padding:10px}
 body.demit-theme .dg236-track-pill strong{font-size:10px;max-width:100%}
 body.demit-theme .dg236-receipt-facts{gap:7px}
 body.demit-theme .dg236-receipt-facts>div{padding:10px 11px}
 body.demit-theme .dg236-section-title{padding:11px 12px 7px}
 body.demit-theme table.dg236-receipt-table :is(th,td){padding:9px 8px!important;font-size:11px!important}
 body.demit-theme .dg236-product-thumb{width:35px;height:35px}
 body.demit-theme .dg236-product-detail{gap:6px!important}
 body.demit-theme table.dg236-receipt-table th:first-child{width:57%}
 body.demit-theme table.dg236-receipt-table th:nth-child(2){width:13%}
 body.demit-theme table.dg236-receipt-table th:last-child{width:30%}
 body.demit-theme .dg236-total-list{padding:4px 12px 11px;width:100%}
 body.demit-theme.woocommerce-account .woocommerce-MyAccount-content .dg236-account-address-grid{grid-template-columns:1fr!important}
}
