/* Persian RTL overrides for DD WooCommerce MultiPOS */
html[lang="fa-IR"], body, .ddwcpos-wrapper, .ddwcpos-pos-wrapper, .ddwcpos-login-wrapper, .ddwcpos-kitchen-wrapper,
.ddwcpos-admin-wrap, .woocommerce-page #app, .ddwcpos-invoice-container {
    direction: rtl;
    text-align: right;
}
body, input, select, textarea, button, .button, .ddwcpos-wrapper, .ddwcpos-pos-wrapper, .ddwcpos-login-wrapper,
.ddwcpos-kitchen-wrapper, .ddwcpos-admin-wrap, .ddwcpos-invoice-container {
    font-family: Tahoma, Arial, sans-serif !important;
}
.ddwcpos-pos-wrapper input, .ddwcpos-pos-wrapper textarea, .ddwcpos-pos-wrapper select,
.ddwcpos-admin-wrap input, .ddwcpos-admin-wrap textarea, .ddwcpos-admin-wrap select {
    text-align: right;
}
.ddwcpos-pos-wrapper .dashicons-arrow-left-alt2,
.ddwcpos-pos-wrapper .dashicons-arrow-right-alt2 {
    transform: scaleX(-1);
}
.ddwcpos-invoice-container,
.ddwcpos-invoice-container table,
.ddwcpos-invoice-container p,
.ddwcpos-invoice-container h1,
.ddwcpos-invoice-container h2,
.ddwcpos-invoice-container h3 {
    direction: rtl;
    text-align: right;
}
.ddwcpos-invoice-container .invoice-header,
.ddwcpos-invoice-container .invoice-footer,
.ddwcpos-invoice-container .invoice-header h3 {
    text-align: center;
}
.ddwcpos-invoice-container .invoice-details .left-details {
    float: right !important;
    text-align: right !important;
}
.ddwcpos-invoice-container .invoice-details .right-details {
    float: left !important;
    text-align: left !important;
}
.ddwcpos-invoice-container .product-details table tr th:nth-child(1),
.ddwcpos-invoice-container .product-details table tr td:nth-child(1) {
    text-align: right !important;
}
.ddwcpos-invoice-container .product-details table tr th:nth-child(4),
.ddwcpos-invoice-container .product-details table tr td:nth-child(4) {
    text-align: left !important;
}
.wp-list-table th, .wp-list-table td, .widefat th, .widefat td,
.ddwcpos-table th, .ddwcpos-table td {
    text-align: right;
}
.select2-container, .select2-dropdown, .select2-results, .select2-search__field {
    direction: rtl;
    text-align: right;
}
.ui-datepicker {
    direction: rtl;
    font-family: Tahoma, Arial, sans-serif !important;
}
.woocommerce-filters, .woocommerce-layout, .woocommerce-layout__main, .woocommerce-dashboard__columns {
    direction: rtl;
}

/* POS statistics / transactions RTL and Jalali display fixes */
.ddwcpos-statistics-tab-wrapper,
.ddwcpos-statistics-tab-wrapper * {
    direction: rtl;
}
.ddwcpos-statistics-tab-wrapper .ddwcpos-search-wrapper,
.ddwcpos-statistics-tab-wrapper .ddwcpos-search-input-wrapper,
.ddwcpos-statistics-tab-wrapper .ddwcpos-transactions-list,
.ddwcpos-statistics-tab-wrapper .ddwcpos-list-heading-row,
.ddwcpos-statistics-tab-wrapper .ddwcpos-list-row,
.ddwcpos-statistics-tab-wrapper .ddwcpos-list-details {
    direction: rtl !important;
    text-align: right !important;
}
.ddwcpos-statistics-tab-wrapper .ddwcpos-list-details {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr 1.2fr 1.2fr 1.5fr !important;
    align-items: center;
    gap: 8px;
}
.ddwcpos-statistics-tab-wrapper .ddwcpos-list-details p,
.ddwcpos-statistics-tab-wrapper .ddwcpos-list-details mark,
.ddwcpos-statistics-tab-wrapper input {
    text-align: right !important;
    direction: rtl !important;
}
.ddwcpos-statistics-tab-wrapper .ddwcpos-statistics-summary {
    direction: rtl !important;
}
.ddwcpos-statistics-tab-wrapper .ddwcpos-statistics-summary > div {
    text-align: center !important;
}

.ddwcpos-fa-invoice-img img{width:28px!important;height:28px!important;object-fit:cover;border-radius:4px}.ddwcpos-fa-balance-box{margin-top:10px;border:1px solid #999;background:#f2f4fb;padding:8px;font-weight:700;text-align:left}

/* Persian dashboard/reports polishing */
body.ddwcpos-fa-reports-dashboard #app,
body.ddwcpos-fa-reports-dashboard .woocommerce-layout,
body.ddwcpos-fa-reports-dashboard .woocommerce-layout__primary,
body.ddwcpos-fa-reports-dashboard .woocommerce-dashboard__dashboard-charts,
body.ddwcpos-fa-reports-dashboard .woocommerce-card,
body.ddwcpos-fa-reports-dashboard .components-popover,
body.ddwcpos-fa-reports-dashboard .components-modal__frame {
	direction: rtl;
	text-align: right;
	font-family: Tahoma, Arial, sans-serif;
}
body.ddwcpos-fa-reports-dashboard .woocommerce-dashboard__columns {
	direction: rtl;
}
body.ddwcpos-fa-reports-dashboard .woocommerce-chart__types,
body.ddwcpos-fa-reports-dashboard .woocommerce-filters__basic-filters,
body.ddwcpos-fa-reports-dashboard .woocommerce-card__header {
	flex-direction: row-reverse;
}
body.ddwcpos-fa-reports-dashboard .woocommerce-chart__interval-select {
	margin-left: 0;
	margin-right: auto;
}

/* Persian admin polish for MultiPOS */
body.wp-admin[class*="ddwcpos"],
body.wp-admin .ddwcpos-fa-admin,
body.wp-admin .ddwcpos-fa-admin * {
  font-family: Tahoma, Arial, sans-serif;
}
body.wp-admin .ddwcpos-fa-admin,
body.wp-admin .ddwcpos-fa-admin .wrap,
body.wp-admin .ddwcpos-fa-admin table,
body.wp-admin .ddwcpos-fa-admin input,
body.wp-admin .ddwcpos-fa-admin select,
body.wp-admin .ddwcpos-fa-admin textarea,
body.wp-admin .ddwcpos-fa-admin .components-card,
body.wp-admin .ddwcpos-fa-admin .woocommerce-layout {
  direction: rtl;
  text-align: right;
}
body.wp-admin .ddwcpos-fa-admin .tablenav .actions,
body.wp-admin .ddwcpos-fa-admin .alignleft {
  float: right;
}
body.wp-admin .ddwcpos-fa-admin .alignright {
  float: left;
}
body.wp-admin .ddwcpos-fa-admin .row-actions,
body.wp-admin .ddwcpos-fa-admin .subsubsub {
  direction: rtl;
}
body.wp-admin .ddwcpos-fa-admin .wp-list-table th,
body.wp-admin .ddwcpos-fa-admin .wp-list-table td {
  text-align: right;
}
body.wp-admin .ddwcpos-fa-admin .select2-container,
body.wp-admin .ddwcpos-fa-admin .select2-container .select2-selection--single .select2-selection__rendered {
  direction: rtl;
  text-align: right;
}
body.wp-admin #toplevel_page_ddwc-multipos-management .wp-menu-name,
body.wp-admin #toplevel_page_ddwc-multipos-management .wp-submenu a {
  direction: rtl;
  text-align: right;
}
.ddwcpos-fa-report{margin:20px 20px 0 0;background:#fff;border:1px solid #dcdcde;padding:20px;direction:rtl;text-align:right}.ddwcpos-fa-report h1{margin:0 0 18px}.ddwcpos-fa-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.ddwcpos-fa-filters input{direction:ltr}.ddwcpos-fa-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:18px}.ddwcpos-fa-card{border:1px solid #dcdcde;border-radius:8px;padding:14px;background:#f6f7f7}.ddwcpos-fa-card span{display:block;color:#646970;margin-bottom:8px}.ddwcpos-fa-card strong{font-size:22px;color:#1d2327}.ddwcpos-fa-report table{text-align:right}.ddwcpos-fa-report th{text-align:right}
.ddwcpos-fa-report .ddwcpos-jalali-date{direction:ltr;text-align:center;min-width:120px;font-family:Tahoma,Arial,sans-serif}.ddwcpos-fa-report .description{margin:6px 0 14px;color:#646970}.ddwcpos-fa-invoice-banner-settings .form-table th{text-align:right}.ddwcpos-fa-invoice-banner-settings input[type=url]{direction:ltr;text-align:left}

/* v27: remove obsolete manual نقدی/چکی product price switch; customer tariff controls pricing */
#ddwcpos-fa-cheque-switch,
.ddwcpos-fa-price-switch,
.ddwcpos-fa-cheque-switch-react-direct,
.ddwcpos-price-type-switch,
.ddwcpos-fa-price-type,
.ddwcpos-payment-type-toggle{display:none!important;visibility:hidden!important;width:0!important;height:0!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;}


// v37.60: اصلاح UI حرفه‌ای تأمین کالا
// تصویر محصول 145px
// فرم افزودن محصول مرتب دو ستونه
// فیلد دسته‌بندی فقط برای محصول جدید
// فوکوس روی قیمت خرید + Enter
// سرچ تا 100 محصول موجود/ناموجود

/* v39.68 - Mobile products redesign (POS sales screen only) */
@media (max-width: 767px){
  body.ddwcpos-pos-page,
  body:has(.ddwcpos-products-tab-wrapper){
    background:
      radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 32%),
      linear-gradient(180deg,#f8fafc 0%, #eef2f7 100%) !important;
  }
  .ddwcpos-products-tab-wrapper{
    --side-width:60px;
    --fa-product-line:#e5ebf3;
    --fa-product-shadow:0 8px 24px rgba(15,23,42,.055);
    display:grid !important;
    grid-template-columns:var(--side-width) minmax(0,1fr) !important;
    gap:10px !important;
    align-items:start !important;
    direction:rtl !important;
    padding:10px 10px 86px !important;
    min-height:calc(100vh - 70px) !important;
    overflow:visible !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-category-wrapper{
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
    position:sticky !important;
    top:78px !important;
    z-index:20 !important;
    width:var(--side-width) !important;
    min-width:var(--side-width) !important;
    max-height:calc(100vh - 98px) !important;
    overflow:auto !important;
    padding:2px 0 72px !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    scrollbar-width:none !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-category-wrapper::-webkit-scrollbar{display:none!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-category-wrapper > h2{display:none!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-categories-container{
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
    overflow:visible !important;
    padding:0 !important;
    width:100% !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-category-card{
    width:100% !important;
    min-width:0 !important;
    min-height:62px !important;
    height:auto !important;
    border-radius:18px !important;
    border:1px solid rgba(231,235,242,.92) !important;
    background:rgba(255,255,255,.76) !important;
    box-shadow:0 3px 12px rgba(15,23,42,.04) !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
    text-decoration:none !important;
    color:#4b5563 !important;
    font-size:10px !important;
    font-weight:900 !important;
    overflow:hidden !important;
    backdrop-filter:blur(12px) !important;
    -webkit-backdrop-filter:blur(12px) !important;
    padding:6px 3px !important;
    margin:0 !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-category-card svg,
  .ddwcpos-products-tab-wrapper .ddwcpos-category-card .anticon{
    width:24px !important;
    height:24px !important;
    border-radius:10px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#f2f5f9 !important;
    color:#667085 !important;
    font-size:15px !important;
    margin:0 !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-category-card img{
    width:24px!important;height:24px!important;border-radius:10px!important;object-fit:cover!important;margin:0!important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-category-card p{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    text-align:center !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    color:inherit !important;
    font:inherit !important;
    line-height:1.35 !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active{
    background:linear-gradient(180deg,#1e293b 0%, #0f172a 100%) !important;
    border-color:#0f172a !important;
    color:#fff !important;
    box-shadow:0 10px 22px rgba(15,23,42,.20) !important;
    border-radius:28px !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active svg,
  .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active .anticon{background:rgba(255,255,255,.13)!important;color:#fff!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-search-wrapper{
    grid-column:2 !important;
    min-width:0 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:9px !important;
    overflow:visible !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-search-wrapper > h2{display:none!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-search-input-wrapper{
    position:sticky !important;
    top:0 !important;
    z-index:25 !important;
    padding:7px !important;
    border-radius:22px !important;
    background:rgba(255,255,255,.72) !important;
    border:1px solid rgba(255,255,255,.82) !important;
    backdrop-filter:blur(18px) !important;
    -webkit-backdrop-filter:blur(18px) !important;
    box-shadow:0 8px 24px rgba(15,23,42,.07) !important;
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    gap:8px !important;
    margin:0 0 2px !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-search-input{
    flex:1 1 100% !important;
    height:46px !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
    padding:0 13px !important;
    border-radius:17px !important;
    background:rgba(255,255,255,.88) !important;
    border:1px solid rgba(231,235,242,.9) !important;
    box-shadow:0 3px 12px rgba(15,23,42,.04) !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-search-input input{
    width:100%!important;border:0!important;outline:none!important;background:transparent!important;
    font-family:inherit!important;font-size:13.5px!important;color:#18212f!important;box-shadow:none!important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-icon-card{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    border-radius:17px !important;
    border:1px solid rgba(231,235,242,.95) !important;
    background:rgba(255,255,255,.88) !important;
    box-shadow:0 3px 12px rgba(15,23,42,.04) !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin:0 !important;
    padding:0 !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-search-input-wrapper > span{
    min-height:30px !important;
    padding:0 10px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border-radius:999px !important;
    background:rgba(23,32,51,.92) !important;
    border:1px solid rgba(23,32,51,.92) !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:900 !important;
    white-space:nowrap !important;
    margin-inline-start:auto !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-grid.ddwcpos-products-list{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
    padding-bottom:80px !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-grid-item-odd,
  .ddwcpos-products-tab-wrapper .ddwcpos-grid-item-even{padding:0 5px 10px 5px!important;overflow:visible!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card{
    position:relative !important;
    width:100% !important;
    min-width:0 !important;
    height:auto !important;
    min-height:0 !important;
    overflow:hidden !important;
    border-radius:23px !important;
    background:#fff !important;
    border:1px solid rgba(229,235,243,.95) !important;
    box-shadow:0 8px 24px rgba(15,23,42,.055) !important;
    padding:0 !important;
    display:flex !important;
    flex-direction:column !important;
    gap:0 !important;
    transform:translateZ(0) !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card:active{transform:scale(.985)!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-thumb{
    width:100% !important;
    aspect-ratio:1/1 !important;
    height:auto !important;
    min-height:0 !important;
    background:#f7f9fc !important;
    overflow:hidden !important;
    position:relative !important;
    border-radius:0 !important;
    padding:0 !important;
    display:block !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-image,
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-image > img,
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-thumb img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    display:block !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-image{position:absolute!important;inset:0!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-badge{
    height:26px !important;
    padding:0 8px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:5px !important;
    border-radius:999px !important;
    backdrop-filter:blur(12px) !important;
    -webkit-backdrop-filter:blur(12px) !important;
    font-size:10.7px !important;
    font-weight:1000 !important;
    white-space:nowrap !important;
    box-shadow:0 3px 10px rgba(15,23,42,.05) !important;
    position:absolute !important;
    z-index:2 !important;
    max-width:calc(100% - 16px) !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-badge i{font-style:normal!important;font-size:12px!important;line-height:1!important;flex:0 0 auto!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-stock{
    top:8px !important;
    right:8px !important;
    background:rgba(255,243,212,.62) !important;
    border:1px solid rgba(235,205,139,.88) !important;
    color:#c38b1a !important;
    direction:ltr !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-price{
    left:8px !important;
    bottom:8px !important;
    background:rgba(236,249,242,.66) !important;
    border:1px solid rgba(181,233,202,.9) !important;
    color:#169c5d !important;
    font-size:14px !important;
    direction:ltr !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-price *{color:inherit!important;font:inherit!important;text-decoration:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-info{
    padding:10px 10px 12px !important;
    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;
    min-height:74px !important;
    height:auto !important;
    text-align:right !important;
    background:#fff !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-title{
    margin:0 !important;
    min-height:28px !important;
    font-size:9px !important;
    line-height:1.55 !important;
    font-weight:900 !important;
    color:#101828 !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2 !important;
    -webkit-box-orient:vertical !important;
    overflow:hidden !important;
    direction:rtl !important;
    text-align:right !important;
    padding:0 !important;
    max-width:100% !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-qty{
    margin-top:auto !important;
    height:31px !important;
    display:grid !important;
    grid-template-columns:32px 1fr 32px !important;
    gap:7px !important;
    align-items:center !important;
    direction:ltr !important;
    position:relative !important;
    z-index:3 !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-qty button,
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-count{
    height:31px !important;
    border:1px solid #e7edf5 !important;
    background:#fff !important;
    color:#172033 !important;
    border-radius:10px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    font-family:inherit !important;
    font-weight:900 !important;
    padding:0 !important;
    min-width:0 !important;
    box-shadow:none !important;
  }
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-qty button{width:32px!important;background:#f8fafc!important;font-size:19px!important;line-height:1!important;cursor:pointer!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-qty button:disabled{opacity:.42!important;cursor:not-allowed!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-count{font-size:13px!important;padding:0 8px!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-hidden-stock{display:none!important}
}
@media (max-width:370px){
  .ddwcpos-products-tab-wrapper{--side-width:56px;gap:9px!important;padding-inline:10px!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-category-card{min-height:58px!important;border-radius:16px!important;font-size:9px!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active{border-radius:24px!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-search-input,.ddwcpos-products-tab-wrapper .ddwcpos-icon-card{height:44px!important;border-radius:16px!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-info{padding:9px 9px 11px!important;min-height:70px!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-title{font-size:9px!important;min-height:26px!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-price{font-size:13px!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-qty{grid-template-columns:30px 1fr 30px!important;gap:6px!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-qty button{width:30px!important;height:30px!important}
  .ddwcpos-products-tab-wrapper .ddwcpos-fa-v68-count{height:30px!important;font-size:12px!important}
}

/* v39.69 marker: mobile products forced styles live in assets/css/pos.css to ensure load order. */


/* v39.72 - final polish for mobile products categories/search/cards */
@media (max-width:767px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-wrapper{
    gap:7px!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input-wrapper{
    min-height:60px!important;
    padding:7px!important;
    border-radius:22px!important;
    background:rgba(255,255,255,.72)!important;
    border:1px solid rgba(255,255,255,.82)!important;
    box-shadow:0 8px 24px rgba(15,23,42,.07)!important;
    backdrop-filter:blur(18px)!important;
    -webkit-backdrop-filter:blur(18px)!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input{
    height:46px!important;
    min-height:46px!important;
    border-radius:17px!important;
    background:rgba(255,255,255,.88)!important;
    border:1px solid rgba(231,235,242,.9)!important;
    box-shadow:0 3px 12px rgba(15,23,42,.04)!important;
    padding:0 13px!important;
    gap:10px!important;
    flex:1 1 auto!important;
    min-width:0!important;
    overflow:hidden!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input svg,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input .anticon{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    color:#667085!important;
    background:transparent!important;
    padding:0!important;
    border-radius:0!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input input,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input .ddwcpos-form-control{
    width:100%!important;
    height:100%!important;
    border:0!important;
    outline:none!important;
    background:transparent!important;
    box-shadow:none!important;
    font-family:inherit!important;
    font-size:13.5px!important;
    font-weight:700!important;
    color:#18212f!important;
    padding:0!important;
    margin:0!important;
    min-width:0!important;
    text-align:right!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input input::placeholder{color:#98a2b3!important;font-weight:700!important;}

  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-wrapper,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-container,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-all-categories-popup-content > div{
    direction:rtl!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-container > div,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-all-categories-popup-content > div{
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
    width:100%!important;
    padding:0!important;
    margin:0!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card{
    width:100%!important;
    min-width:0!important;
    max-width:60px!important;
    min-height:62px!important;
    height:62px!important;
    border-radius:18px!important;
    border:1px solid rgba(231,235,242,.92)!important;
    background:rgba(255,255,255,.76)!important;
    box-shadow:0 3px 12px rgba(15,23,42,.04)!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    color:#4b5563!important;
    font-size:10px!important;
    font-weight:900!important;
    overflow:hidden!important;
    backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;
    padding:6px 3px!important;
    margin:0!important;
    text-decoration:none!important;
    box-sizing:border-box!important;
  }
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card{max-width:78px!important;width:78px!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card.ddwcpos-category-active{
    background:linear-gradient(180deg,#1e293b 0%,#0f172a 100%)!important;
    border-color:#0f172a!important;
    color:#fff!important;
    border-radius:28px!important;
    box-shadow:0 10px 22px rgba(15,23,42,.20)!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card img,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card > .anticon,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card > svg,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card .ddwcpos-fa-v72-cat-icon,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card img,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card > .anticon,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card > svg,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card .ddwcpos-fa-v72-cat-icon{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    min-height:24px!important;
    border-radius:10px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#f2f5f9!important;
    color:#667085!important;
    object-fit:cover!important;
    padding:4px!important;
    margin:0!important;
    line-height:1!important;
    font-size:14px!important;
    flex:0 0 auto!important;
    box-sizing:border-box!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active img,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active > .anticon,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active > svg,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active .ddwcpos-fa-v72-cat-icon,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card.ddwcpos-category-active img,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card.ddwcpos-category-active > .anticon,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card.ddwcpos-category-active > svg,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card.ddwcpos-category-active .ddwcpos-fa-v72-cat-icon{
    background:rgba(255,255,255,.13)!important;
    color:#fff!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card p,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card p{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    color:inherit!important;
    font:inherit!important;
    line-height:1.35!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-grid.ddwcpos-products-list .ddwcpos-grid-item-odd,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-grid.ddwcpos-products-list .ddwcpos-grid-item-even{
    padding:0 3px 11px!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card{
    margin-bottom:3px!important;
  }
}
@media (max-width:370px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card{max-width:56px!important;height:58px!important;min-height:58px!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-grid.ddwcpos-products-list .ddwcpos-grid-item-odd,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-grid.ddwcpos-products-list .ddwcpos-grid-item-even{padding-bottom:10px!important;}
}


/* v39.73 - mobile products category SVG icons, safe quickfilters, desktop rescue */
@media (max-width:767px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters button:not(.active){display:none!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters{min-height:31px!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card > .anticon,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card > svg,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card > .anticon,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card > svg{display:none!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card .ddwcpos-fa-v73-cat-icon,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card .ddwcpos-fa-v73-cat-icon{
    width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;
    border-radius:10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
    background:#f2f5f9!important;color:#667085!important;padding:4px!important;margin:0!important;line-height:1!important;
    flex:0 0 auto!important;box-sizing:border-box!important;overflow:hidden!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active .ddwcpos-fa-v73-cat-icon,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card.ddwcpos-category-active .ddwcpos-fa-v73-cat-icon{background:rgba(255,255,255,.13)!important;color:#fff!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card .ddwcpos-fa-v73-cat-icon:before,
  html body .ddwcpos-all-categories-popup .ddwcpos-category-card .ddwcpos-fa-v73-cat-icon:before{
    content:"";display:block;width:16px;height:16px;background:currentColor;
    -webkit-mask:var(--fa-cat-icon) center/contain no-repeat;mask:var(--fa-cat-icon) center/contain no-repeat;
  }
  .ddwcpos-fa-v73-cat-all{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='6' height='6' rx='1.2' fill='none' stroke='black' stroke-width='2'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1.2' fill='none' stroke='black' stroke-width='2'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1.2' fill='none' stroke='black' stroke-width='2'/%3E%3Crect x='14' y='14' width='6' height='6' rx='1.2' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-cable{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 7v10M16 7v10M6 9h4M14 9h4M10 14h4M6 17h12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-charger{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3v5M15 3v5M7 8h10v5a5 5 0 0 1-10 0V8zM12 18v3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-glass{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='7' y='3' width='10' height='18' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M9 18h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-case{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='8' y='3' width='10' height='18' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M11 6h1M6 8v10' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-audio{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 12v4a3 3 0 0 1-3 3M16 12v4a3 3 0 0 0 3 3M8 12a4 4 0 1 1 4-4v13M16 12a4 4 0 1 0-4-4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-power{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='5' width='12' height='15' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M10 3h4M9 12h6M12 9v6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-speaker{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 10v4h4l5 4V6l-5 4H4zM16 9a4 4 0 0 1 0 6M18 6a8 8 0 0 1 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-memory{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='3' width='12' height='18' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M9 7h6M9 11h6M9 15h3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-holder{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10l-1 10H8L7 4zM12 14v6M8 20h8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-watch{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l1 4H8l1-4zM8 17h8l-1 4H9l-1-4z' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-tools{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 6l4 4M4 20l7-7M13 5l6 6-3 3-6-6 3-3zM5 5l4 4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}
  .ddwcpos-fa-v73-cat-other{--fa-cat-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");}
}
@media (min-width:768px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-badge,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-qty{display:none!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-thumb{aspect-ratio:auto!important;height:auto!important;min-height:auto!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-image{width:100%!important;height:100%!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-info{display:block!important;padding:10px!important;min-height:auto!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-title{font-size:inherit!important;line-height:inherit!important;min-height:0!important;display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-hidden-stock{display:block!important;}
}


/* v39.74 - active mobile product quick filters */
@media (max-width:767px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters{
    display:flex!important;gap:7px!important;overflow:auto!important;min-height:31px!important;padding:0 1px 2px!important;scrollbar-width:none!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters::-webkit-scrollbar{display:none!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters button,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters button:not(.active){
    display:inline-flex!important;flex:0 0 auto!important;height:31px!important;padding:0 10px!important;border-radius:999px!important;
    background:rgba(255,255,255,.72)!important;border:1px solid rgba(231,235,242,.86)!important;color:#4b5563!important;
    font-size:11px!important;font-weight:900!important;align-items:center!important;justify-content:center!important;opacity:1!important;pointer-events:auto!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters button.active{
    background:#eef4ff!important;color:#2563eb!important;border-color:#dbe6ff!important;
  }
}

/* v39.90 - mirror mobile polish */
@media only screen and (max-width: 767px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v71-header-mini{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters .ddwcpos-fa-v90-products-result-count{margin-right:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important;padding:0 9px!important;border-radius:999px!important;background:rgba(255,255,255,.78)!important;border:1px solid rgba(15,23,42,.08)!important;color:#475569!important;font-size:10px!important;font-weight:950!important;white-space:nowrap!important;}
}


/* v39.92/v39.93 - lighter product search visual identity */
@media only screen and (max-width: 767px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-product-search-top-logo{
    width:127px!important;
    height:38px!important;
    margin:0 auto 6px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    pointer-events:none!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-product-search-top-logo img{
    width:127px!important;
    height:38px!important;
    max-width:127px!important;
    max-height:38px!important;
    object-fit:contain!important;
    display:block!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input .ddwcpos-fa-product-search-logo{
    display:none!important;
  }
}

/* v40.13 - desktop product cleanup and price restore */
@media (min-width:768px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v71-header-mini,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-price{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    position:absolute!important;
    left:8px!important;
    bottom:8px!important;
    right:auto!important;
    top:auto!important;
    z-index:3!important;
    height:28px!important;
    padding:0 9px!important;
    border-radius:999px!important;
    background:rgba(236,249,242,.82)!important;
    border:1px solid rgba(181,233,202,.95)!important;
    color:#169c5d!important;
    font-size:13px!important;
    font-weight:1000!important;
    backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;
  }
}

/* v40.14 - desktop product image badges like mobile */
@media (min-width:768px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card{
    overflow:hidden!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-thumb{
    position:relative!important;
    overflow:hidden!important;
    background:#f7f9fc!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-image,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-image > img,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-thumb img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    display:block!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-badge{
    display:inline-flex!important;
    visibility:visible!important;
    opacity:1!important;
    position:absolute!important;
    z-index:5!important;
    height:28px!important;
    min-height:28px!important;
    max-width:calc(100% - 16px)!important;
    padding:0 9px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    border-radius:999px!important;
    font-size:12px!important;
    font-weight:1000!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    box-shadow:0 4px 12px rgba(15,23,42,.08)!important;
    backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;
    pointer-events:none!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-badge i{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-style:normal!important;
    font-size:12px!important;
    line-height:1!important;
    flex:0 0 auto!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-stock{
    top:8px!important;
    right:8px!important;
    left:auto!important;
    bottom:auto!important;
    background:rgba(255,243,212,.82)!important;
    border:1px solid rgba(235,205,139,.95)!important;
    color:#c38b1a!important;
    direction:ltr!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-price{
    left:8px!important;
    bottom:8px!important;
    right:auto!important;
    top:auto!important;
    background:rgba(236,249,242,.86)!important;
    border:1px solid rgba(181,233,202,.96)!important;
    color:#169c5d!important;
    direction:ltr!important;
    font-size:13px!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-price *,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-stock *{
    color:inherit!important;
    font:inherit!important;
    text-decoration:none!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-hidden-stock{
    display:none!important;
  }
}

/* v40.26 - apply mobile product card UI to desktop, keep desktop categories in their original top position */
@media (min-width:768px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-product-image-left.ddwcpos-fa-v68-product-card,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-product-image-top.ddwcpos-fa-v68-product-card{position:relative!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;overflow:hidden!important;border-radius:23px!important;background:#fff!important;border:1px solid rgba(229,235,243,.95)!important;box-shadow:0 8px 24px rgba(15,23,42,.055)!important;padding:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;transform:translateZ(0)!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-product-thumbnail.ddwcpos-fa-v68-thumb,html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-thumb{width:100%!important;aspect-ratio:1/1!important;height:auto!important;min-height:0!important;background:#f7f9fc!important;overflow:hidden!important;position:relative!important;border-radius:0!important;padding:0!important;display:block!important;flex:0 0 auto!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-image,html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-image > img,html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;margin:0!important;border:0!important;border-radius:0!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-image{position:absolute!important;inset:0!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-badge{display:inline-flex!important;visibility:visible!important;opacity:1!important;height:26px!important;min-height:26px!important;padding:0 8px!important;align-items:center!important;justify-content:center!important;gap:5px!important;border-radius:999px!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;font-size:10.7px!important;font-weight:1000!important;line-height:1!important;white-space:nowrap!important;box-shadow:0 3px 10px rgba(15,23,42,.05)!important;position:absolute!important;z-index:5!important;max-width:calc(100% - 16px)!important;overflow:hidden!important;text-overflow:ellipsis!important;pointer-events:none!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-badge i{font-style:normal!important;font-size:12px!important;line-height:1!important;flex:0 0 auto!important;color:inherit!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-stock{top:8px!important;right:8px!important;left:auto!important;bottom:auto!important;background:rgba(255,243,212,.62)!important;border:1px solid rgba(235,205,139,.88)!important;color:#c38b1a!important;direction:ltr!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-price{left:8px!important;bottom:8px!important;right:auto!important;top:auto!important;background:rgba(236,249,242,.66)!important;border:1px solid rgba(181,233,202,.9)!important;color:#169c5d!important;font-size:14px!important;direction:ltr!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-price *,html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-stock *{color:inherit!important;font:inherit!important;text-decoration:none!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-product-details.ddwcpos-fa-v68-info,html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-info{padding:10px 10px 12px!important;display:flex!important;flex-direction:column!important;gap:8px!important;min-height:74px!important;height:auto!important;text-align:right!important;background:#fff!important;flex:1 1 auto!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-title{margin:0!important;min-height:28px!important;max-height:31px!important;font-size:9px!important;line-height:1.55!important;font-weight:900!important;color:#101828!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;direction:rtl!important;text-align:right!important;padding:0!important;max-width:100%!important;white-space:normal!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-qty{margin-top:auto!important;height:31px!important;display:grid!important;grid-template-columns:32px 1fr 32px!important;gap:7px!important;align-items:center!important;direction:ltr!important;position:relative!important;z-index:3!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-qty button,html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-count{height:31px!important;border:1px solid #e7edf5!important;background:#fff!important;color:#172033!important;border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-family:inherit!important;font-weight:900!important;padding:0!important;min-width:0!important;box-shadow:none!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-qty button{width:32px!important;background:#f8fafc!important;font-size:19px!important;line-height:1!important;cursor:pointer!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-qty button:disabled{opacity:.42!important;cursor:not-allowed!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-count{font-size:13px!important;padding:0 8px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-fa-v68-hidden-stock,html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card.ddwcpos-fa-v68-product-card .ddwcpos-product-details .instock:not(.ddwcpos-fa-v68-stock){display:none!important;}
}

/* v40.27 - full desktop products chrome refresh: mobile-like search/categories/quickfilters, categories stay on top */
@media (min-width:768px){
  html body .ddwcpos-products-tab-wrapper{
    --dd-fa-card-bg:#ffffff;
    --dd-fa-page-bg:#f3f5f8;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-wrapper,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-products-search-wrapper{
    position:sticky!important;
    top:8px!important;
    z-index:25!important;
    padding:7px!important;
    margin:0 0 10px!important;
    border-radius:22px!important;
    background:rgba(255,255,255,.72)!important;
    border:1px solid rgba(255,255,255,.82)!important;
    backdrop-filter:blur(18px)!important;
    -webkit-backdrop-filter:blur(18px)!important;
    box-shadow:0 8px 24px rgba(15,23,42,.07)!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input-wrapper{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    grid-template-columns:none!important;
    width:100%!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-products-search-wrapper .ddwcpos-search-input,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input-wrapper > div:first-child{
    flex:1 1 auto!important;
    min-width:0!important;
    height:46px!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    padding:0 13px!important;
    border-radius:17px!important;
    background:rgba(255,255,255,.88)!important;
    border:1px solid rgba(231,235,242,.9)!important;
    box-shadow:0 3px 12px rgba(15,23,42,.04)!important;
    overflow:hidden!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input input,
  html body .ddwcpos-products-tab-wrapper input.ddwcpos-form-control[placeholder*="محصول"],
  html body .ddwcpos-products-tab-wrapper input.ddwcpos-form-control[placeholder*="SKU"],
  html body .ddwcpos-products-tab-wrapper input.ddwcpos-form-control[placeholder*="بارکد"]{
    width:100%!important;
    height:46px!important;
    border:0!important;
    outline:none!important;
    background:transparent!important;
    box-shadow:none!important;
    padding:0!important;
    margin:0!important;
    font-size:13.5px!important;
    font-weight:800!important;
    color:#18212f!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input-wrapper button,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input-wrapper .ant-btn,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-wrapper button{
    width:46px!important;
    min-width:46px!important;
    height:46px!important;
    border-radius:17px!important;
    border:1px solid rgba(231,235,242,.95)!important;
    background:rgba(255,255,255,.88)!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    margin:0!important;
    box-shadow:0 3px 12px rgba(15,23,42,.04)!important;
    color:#667085!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-wrapper,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-wrapper,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-list,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-list{
    width:100%!important;
    max-width:100%!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    padding:2px 2px 8px!important;
    margin:0 0 8px!important;
    position:relative!important;
    top:auto!important;
    right:auto!important;
    left:auto!important;
    height:auto!important;
    max-height:none!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-wrapper::-webkit-scrollbar,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-wrapper::-webkit-scrollbar,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-list::-webkit-scrollbar,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-list::-webkit-scrollbar{display:none!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card{
    flex:0 0 68px!important;
    width:68px!important;
    max-width:68px!important;
    min-width:68px!important;
    height:64px!important;
    min-height:64px!important;
    border-radius:18px!important;
    border:1px solid rgba(231,235,242,.92)!important;
    background:rgba(255,255,255,.76)!important;
    box-shadow:0 3px 12px rgba(15,23,42,.04)!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    padding:6px 4px!important;
    overflow:hidden!important;
    color:#4b5563!important;
    text-decoration:none!important;
    backdrop-filter:blur(12px)!important;
    -webkit-backdrop-filter:blur(12px)!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.active{
    background:linear-gradient(180deg,#1e293b 0%,#0f172a 100%)!important;
    border-color:#0f172a!important;
    color:#fff!important;
    border-radius:24px!important;
    box-shadow:0 10px 22px rgba(15,23,42,.20)!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card img,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card > .anticon,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card > svg,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card .ddwcpos-fa-v73-cat-icon{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    min-height:24px!important;
    border-radius:10px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#f2f5f9!important;
    color:#667085!important;
    padding:4px!important;
    margin:0!important;
    line-height:1!important;
    object-fit:contain!important;
    flex:0 0 auto!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active img,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active > .anticon,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active > svg,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active .ddwcpos-fa-v73-cat-icon,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.active .ddwcpos-fa-v73-cat-icon{
    background:rgba(255,255,255,.13)!important;
    color:#fff!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card p,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card span:not(.anticon):not(.ddwcpos-fa-v73-cat-icon){
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:10px!important;
    line-height:1.35!important;
    font-weight:900!important;
    color:inherit!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v71-header-mini{display:none!important;height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;visibility:hidden!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    height:auto!important;
    min-height:31px!important;
    gap:7px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:0 1px 7px!important;
    margin:0 0 8px!important;
    scrollbar-width:none!important;
    align-items:center!important;
    pointer-events:auto!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters::-webkit-scrollbar{display:none!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters button,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters button:not(.active){
    display:inline-flex!important;
    flex:0 0 auto!important;
    height:31px!important;
    min-height:31px!important;
    padding:0 10px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.72)!important;
    border:1px solid rgba(231,235,242,.86)!important;
    color:#4b5563!important;
    font-size:11px!important;
    font-weight:900!important;
    align-items:center!important;
    justify-content:center!important;
    opacity:1!important;
    pointer-events:auto!important;
    box-shadow:none!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters button.active{
    background:#eef4ff!important;
    color:#2563eb!important;
    border-color:#dbe6ff!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters .ddwcpos-fa-v90-products-result-count{
    margin-right:auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:30px!important;
    padding:0 9px!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.78)!important;
    border:1px solid rgba(15,23,42,.08)!important;
    color:#475569!important;
    font-size:10px!important;
    font-weight:950!important;
    white-space:nowrap!important;
  }
}

/* v40.28 - desktop product categories compact one-line pills */
@media (min-width:768px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-wrapper,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-wrapper,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-list,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-list{
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:4px 2px 10px!important;
    margin:0 0 8px!important;
    min-height:50px!important;
    height:auto!important;
    max-height:58px!important;
    white-space:nowrap!important;
    scrollbar-width:none!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-wrapper::-webkit-scrollbar,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-wrapper::-webkit-scrollbar,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-list::-webkit-scrollbar,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-list::-webkit-scrollbar{display:none!important;}

  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:86px!important;
    max-width:170px!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    border-radius:17px!important;
    display:inline-flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
    padding:0 10px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    line-height:1!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.ddwcpos-category-active,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card.active{
    border-radius:18px!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card img,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card > .anticon,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card > svg,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card .ddwcpos-fa-v73-cat-icon,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card .ddwcpos-fa-v72-cat-icon{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    min-height:24px!important;
    flex:0 0 24px!important;
    margin:0!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card p,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card span:not(.anticon):not(.ddwcpos-fa-v73-cat-icon):not(.ddwcpos-fa-v72-cat-icon){
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    width:auto!important;
    max-width:118px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1!important;
    height:14px!important;
    max-height:14px!important;
    font-size:11px!important;
    text-align:right!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-card br{display:none!important;}
}


/* v40.34 REAL - desktop product search wrapper, quickfilters, categories below quickfilters, popups */
@media (min-width:768px){
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-wrapper,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-products-search-wrapper,
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-search="1"]{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    overflow:visible!important;
    padding:12px!important;
    margin:0 0 12px!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.78)!important;
    border:1px solid rgba(231,235,242,.95)!important;
    box-shadow:0 10px 26px rgba(15,23,42,.075)!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-wrapper > h2,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-products-search-wrapper > h2{
    display:block!important;
    margin:0 0 10px!important;
    font-size:17px!important;
    font-weight:950!important;
    color:#111827!important;
    line-height:1.4!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input-wrapper{
    width:100%!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 46px 46px auto!important;
    gap:9px!important;
    align-items:center!important;
    box-sizing:border-box!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input-wrapper > div:first-child{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:48px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input input,
  html body .ddwcpos-products-tab-wrapper input.ddwcpos-form-control{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-icon-card,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-barcode-icon{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    flex:0 0 46px!important;
    border-radius:16px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-search-input-wrapper > span:not(.anticon){
    height:36px!important;
    padding:0 10px!important;
    border-radius:999px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
    background:rgba(255,255,255,.82)!important;
    border:1px solid rgba(15,23,42,.08)!important;
    color:#475569!important;
    font-size:12px!important;
    font-weight:950!important;
  }

  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters,
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-quickfilters="1"]{
    width:100%!important;
    max-width:100%!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:4px 2px!important;
    margin:10px 0 8px!important;
    scrollbar-width:none!important;
    border-radius:0!important;
    background:transparent!important;
    border:0!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters::-webkit-scrollbar{display:none!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters > button,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters > button:not(.active){
    height:36px!important;
    min-width:70px!important;
    padding:0 13px!important;
    border-radius:999px!important;
    font-size:12.5px!important;
    font-weight:950!important;
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
    line-height:1!important;
  }
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v70-quickfilters .ddwcpos-fa-v90-products-result-count{
    height:34px!important;
    min-width:78px!important;
    margin-right:auto!important;
    flex:0 0 auto!important;
    font-size:12px!important;
    font-weight:950!important;
  }

  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"],
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-wrapper[data-ddwcpos-fa-v4034-cats="1"],
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-wrapper[data-ddwcpos-fa-v4034-cats="1"],
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-container[data-ddwcpos-fa-v4034-cats="1"],
  html body .ddwcpos-products-tab-wrapper .ddwcpos-category-list[data-ddwcpos-fa-v4034-cats="1"],
  html body .ddwcpos-products-tab-wrapper .ddwcpos-categories-list[data-ddwcpos-fa-v4034-cats="1"]{
    width:100%!important;
    max-width:100%!important;
    height:66px!important;
    min-height:66px!important;
    max-height:66px!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:9px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:3px 2px 7px!important;
    margin:0 0 13px!important;
    scrollbar-width:none!important;
    position:relative!important;
    top:auto!important;
    right:auto!important;
    left:auto!important;
  }
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"]::-webkit-scrollbar{display:none!important;}
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"] .ddwcpos-category-card{
    flex:0 0 82px!important;
    width:82px!important;
    min-width:82px!important;
    max-width:82px!important;
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
    box-sizing:border-box!important;
    border-radius:18px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    padding:6px 6px!important;
    overflow:hidden!important;
    text-align:center!important;
  }
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"] .ddwcpos-category-card.ddwcpos-fa-v4034-extra-cat:not(.is-force-show){display:none!important;}
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"].is-expanded .ddwcpos-category-card.ddwcpos-fa-v4034-extra-cat{display:flex!important;}
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"] .ddwcpos-fa-v73-cat-icon,
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"] .ddwcpos-category-card img,
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"] .ddwcpos-category-card svg{
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    max-width:25px!important;
    display:block!important;
    flex:0 0 25px!important;
    opacity:1!important;
    visibility:visible!important;
  }
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"] .ddwcpos-category-card p,
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"] .ddwcpos-category-card span:not(.anticon):not(.ddwcpos-fa-v73-cat-icon),
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"] .ddwcpos-category-card strong,
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"] .ddwcpos-category-card small{
    width:100%!important;
    max-width:100%!important;
    display:block!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.2!important;
    max-height:16px!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    font-size:12px!important;
    font-weight:950!important;
    text-align:center!important;
    color:inherit!important;
  }
  html body .ddwcpos-products-tab-wrapper [data-ddwcpos-fa-v4034-cats="1"] .ddwcpos-category-card br{display:none!important;}
  html body .ddwcpos-products-tab-wrapper .ddwcpos-fa-v4034-more-cats{
    flex:0 0 116px!important;
    width:116px!important;
    height:60px!important;
    border-radius:18px!important;
    border:1px dashed rgba(37,99,235,.26)!important;
    background:rgba(37,99,235,.08)!important;
    color:#2563eb!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 10px!important;
    font-size:12px!important;
    font-weight:950!important;
    white-space:nowrap!important;
    cursor:pointer!important;
  }

  html body .ddwcpos-products-tab-wrapper .ddwcpos-products-list,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-products-wrapper,
  html body .ddwcpos-products-tab-wrapper .ddwcpos-products{
    gap:16px!important;
    row-gap:18px!important;
    column-gap:16px!important;
  }

  html body .ant-modal-root .ant-modal-wrap,
  html body .ant-modal-wrap{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100vh!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:24px!important;
    overflow:auto!important;
    z-index:100000!important;
  }
  html body .ant-modal-root .ant-modal,
  html body .ant-modal-wrap .ant-modal,
  html body .ant-modal{
    top:auto!important;
    margin:0 auto!important;
    transform:none!important;
    max-width:min(620px,calc(100vw - 48px))!important;
    width:auto!important;
    min-width:min(420px,calc(100vw - 48px))!important;
    padding-bottom:0!important;
  }
  html body .ant-modal-content{
    max-height:calc(100vh - 64px)!important;
    overflow:auto!important;
    border-radius:22px!important;
  }
}
@media (max-width:767px){
  html body .ant-modal-wrap{align-items:flex-end!important;padding:12px!important;}
  html body .ant-modal{max-width:100%!important;min-width:0!important;width:100%!important;margin:0!important;}
}

/* v40.40 - Desktop products root redesign, approved preview implementation. Desktop only; mobile stays untouched. */
@media (min-width:768px){
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"]{
    --ddwcpos-v4040-line:#e7edf5;
    --ddwcpos-v4040-text:#101828;
    --ddwcpos-v4040-muted:#64748b;
    --ddwcpos-v4040-blue:#2563eb;
    --ddwcpos-v4040-blue-soft:#eef4ff;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-wrapper[data-ddwcpos-fa-v4040-search="1"],
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-products-search-wrapper[data-ddwcpos-fa-v4040-search="1"]{
    width:100%!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    overflow:visible!important;
    padding:14px!important;
    margin:0 0 12px!important;
    border-radius:22px!important;
    background:#fff!important;
    border:1px solid var(--ddwcpos-v4040-line)!important;
    box-shadow:none!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-wrapper > h2,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-products-search-wrapper > h2{
    display:none!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-input-wrapper{
    width:100%!important;
    max-width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    gap:10px!important;
    align-items:center!important;
    box-sizing:border-box!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-input,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-input-wrapper > div:first-child{
    width:100%!important;
    min-width:0!important;
    height:52px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    border-radius:18px!important;
    background:#f8fafc!important;
    border:1px solid var(--ddwcpos-v4040-line)!important;
    box-shadow:none!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-input input,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] input.ddwcpos-form-control{
    min-width:0!important;
    width:100%!important;
    max-width:100%!important;
    height:52px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    outline:0!important;
    color:var(--ddwcpos-v4040-text)!important;
    font-size:15px!important;
    font-weight:850!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-icon-card,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-barcode-icon{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    flex:0 0 52px!important;
    border-radius:18px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    background:#fff!important;
    border:1px solid var(--ddwcpos-v4040-line)!important;
    box-shadow:none!important;
    color:#334155!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-input-wrapper > span:not(.anticon),
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-hidden-result="1"],
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-hidden="1"]{
    display:none!important;
  }

  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-fa-v70-quickfilters[data-ddwcpos-fa-v4040-quickfilters="1"]{
    width:100%!important;
    max-width:100%!important;
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:0!important;
    margin:0 0 12px!important;
    scrollbar-width:none!important;
    border-radius:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-fa-v70-quickfilters[data-ddwcpos-fa-v4040-quickfilters="1"]::-webkit-scrollbar{display:none!important;}
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-fa-v70-quickfilters[data-ddwcpos-fa-v4040-quickfilters="1"] > button,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-fa-v70-quickfilters[data-ddwcpos-fa-v4040-quickfilters="1"] > button:not(.active){
    height:38px!important;
    min-width:72px!important;
    padding:0 15px!important;
    border-radius:999px!important;
    border:1px solid var(--ddwcpos-v4040-line)!important;
    background:#fff!important;
    color:#475569!important;
    box-shadow:none!important;
    font-size:13px!important;
    font-weight:900!important;
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
    line-height:1!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-fa-v70-quickfilters[data-ddwcpos-fa-v4040-quickfilters="1"] > button.active{
    background:var(--ddwcpos-v4040-blue-soft)!important;
    color:var(--ddwcpos-v4040-blue)!important;
    border-color:#dbe6ff!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-fa-v70-quickfilters[data-ddwcpos-fa-v4040-quickfilters="1"] .ddwcpos-fa-v90-products-result-count{
    height:36px!important;
    min-width:78px!important;
    margin-right:auto!important;
    flex:0 0 auto!important;
    padding:0 12px!important;
    border-radius:999px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:12px!important;
    font-weight:950!important;
    color:var(--ddwcpos-v4040-muted)!important;
    background:#fff!important;
    border:1px solid var(--ddwcpos-v4040-line)!important;
    box-shadow:none!important;
    white-space:nowrap!important;
  }

  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"]{
    width:100%!important;
    max-width:100%!important;
    height:78px!important;
    min-height:78px!important;
    max-height:78px!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    gap:10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:0!important;
    margin:0 0 12px!important;
    scrollbar-width:none!important;
    position:relative!important;
    top:auto!important;
    right:auto!important;
    left:auto!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"]::-webkit-scrollbar{display:none!important;}
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-fa-v4034-more-cats{display:none!important;}
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-menu-card{
    flex:0 0 92px!important;
    width:92px!important;
    min-width:92px!important;
    max-width:92px!important;
    height:72px!important;
    min-height:72px!important;
    max-height:72px!important;
    box-sizing:border-box!important;
    border-radius:20px!important;
    border:1px solid var(--ddwcpos-v4040-line)!important;
    background:#fff!important;
    box-shadow:none!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    padding:7px!important;
    overflow:hidden!important;
    text-align:center!important;
    color:#475569!important;
    font-size:12px!important;
    font-weight:950!important;
    cursor:pointer!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card.ddwcpos-category-active,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card.active,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-menu-card.ddwcpos-category-active,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-menu-card.active{
    background:linear-gradient(180deg,#1e293b,#0f172a)!important;
    color:#fff!important;
    border-color:#0f172a!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card svg.ddwcpos-fa-v4040-cat-icon,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-menu-card svg.ddwcpos-fa-v4040-cat-icon,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card img[data-ddwcpos-fa-v4040-cat-image="1"],
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-menu-card img[data-ddwcpos-fa-v4040-cat-image="1"]{
    width:23px!important;
    height:23px!important;
    min-width:23px!important;
    max-width:23px!important;
    display:block!important;
    flex:0 0 23px!important;
    opacity:1!important;
    visibility:visible!important;
    object-fit:cover!important;
    border-radius:8px!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card > .anticon,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card > svg:not(.ddwcpos-fa-v4040-cat-icon),
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-fa-v73-cat-icon,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-fa-v72-cat-icon{
    display:none!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card p,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card span:not(.anticon):not(.ddwcpos-fa-v73-cat-icon):not(.ddwcpos-fa-v4040-cat-icon),
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card strong,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card small{
    width:100%!important;
    max-width:100%!important;
    display:block!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    line-height:1.2!important;
    max-height:17px!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    font-size:12px!important;
    font-weight:950!important;
    text-align:center!important;
    color:inherit!important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] [data-ddwcpos-fa-v4040-cats="1"] .ddwcpos-category-card br{display:none!important;}

  html body .ant-modal-wrap[data-ddwcpos-fa-v4040-popup="1"],
  html body .ddwcpos-all-categories-popup[data-ddwcpos-fa-v4040-popup="1"],
  html body .ddwcpos-popup[data-ddwcpos-fa-v4040-popup="1"],
  html body .ddwcpos-modal[data-ddwcpos-fa-v4040-popup="1"]{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100vh!important;
    min-height:100vh!important;
    display:grid!important;
    place-items:center!important;
    padding:24px!important;
    overflow:auto!important;
    z-index:1000000!important;
    box-sizing:border-box!important;
  }
  html body .ant-modal-wrap[data-ddwcpos-fa-v4040-popup="1"] .ant-modal,
  html body .ant-modal[data-ddwcpos-fa-v4040-popup="1"]{
    top:auto!important;
    margin:0 auto!important;
    transform:none!important;
    max-width:min(760px,calc(100vw - 48px))!important;
    width:auto!important;
    min-width:min(420px,calc(100vw - 48px))!important;
    padding-bottom:0!important;
  }
  html body .ant-modal-wrap[data-ddwcpos-fa-v4040-popup="1"] .ant-modal-content,
  html body .ddwcpos-all-categories-popup[data-ddwcpos-fa-v4040-popup="1"] .ddwcpos-all-categories-popup-content,
  html body .ddwcpos-popup[data-ddwcpos-fa-v4040-popup="1"] > div,
  html body .ddwcpos-modal[data-ddwcpos-fa-v4040-popup="1"] > div{
    max-height:calc(100vh - 64px)!important;
    overflow:auto!important;
    border-radius:28px!important;
  }
}

/* v40.52 - POS desktop popup viewport centering + stable native categories. */
@media (min-width: 768px) {
  html body .ddwcpos-popup[data-ddwcpos-fa-v4040-popup="1"] {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    overflow: auto !important;
    z-index: 999999 !important;
    box-sizing: border-box !important;
  }
  html body .ddwcpos-popup[data-ddwcpos-fa-v4040-popup="1"] .ddwcpos-popup-content {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: auto !important;
    max-width: min(520px, calc(100vw - 48px)) !important;
    max-height: calc(100vh - 48px) !important;
    overflow: auto !important;
  }
  html body .ddwcpos-popup-overlay[data-ddwcpos-fa-v4040-popup="1"] {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: none !important;
    z-index: 999998 !important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-category-card.ddwcpos-fa-v4034-extra-cat {
    display: flex !important;
  }
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] button.ddwcpos-fa-v4034-more-cats {
    display: none !important;
  }
}

/* v40.53 - stronger exact popup/category override; product cards untouched. */
@media (min-width:768px){
  html body .ddwcpos-container .ddwcpos-tabs-container .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-wrapper[data-ddwcpos-fa-v4040-search="1"] > .ddwcpos-popup[data-ddwcpos-fa-v4040-popup="1"],
  html body .ddwcpos-container .ddwcpos-tabs-container .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-popup[data-ddwcpos-fa-v4053-popup-fixed]{position:fixed!important;inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;height:100vh!important;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important;margin:0!important;padding:24px!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:auto!important;z-index:1000005!important;box-sizing:border-box!important;}
  html body .ddwcpos-container .ddwcpos-tabs-container .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-wrapper[data-ddwcpos-fa-v4040-search="1"] > .ddwcpos-popup[data-ddwcpos-fa-v4040-popup="1"] > .ddwcpos-popup-content,
  html body .ddwcpos-container .ddwcpos-tabs-container .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-popup[data-ddwcpos-fa-v4053-popup-fixed] > .ddwcpos-popup-content{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;transform:none!important;margin:auto!important;max-width:min(520px,calc(100vw - 48px))!important;max-height:calc(100vh - 48px)!important;overflow:auto!important;box-sizing:border-box!important;}
  html body .ddwcpos-container .ddwcpos-tabs-container .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-wrapper[data-ddwcpos-fa-v4040-search="1"] > .ddwcpos-popup-overlay[data-ddwcpos-fa-v4040-popup="1"]{position:fixed!important;inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;height:100vh!important;transform:none!important;z-index:1000004!important;}
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-categories-container > a.ddwcpos-category-card.ddwcpos-fa-v4034-extra-cat{display:flex!important;visibility:visible!important;pointer-events:auto!important;}
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] button.ddwcpos-fa-v4034-more-cats{display:none!important;visibility:hidden!important;pointer-events:none!important;}
}

/* v40.59 - Desktop products duplicate more-cat + stable modal root refinements. */
@media (min-width: 769px){
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-categories-container > a.ddwcpos-category-card.ddwcpos-fa-v4059-duplicate-more-hidden,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-categories-container > a.ddwcpos-category-card:not(.ddwcpos-fa-v4034-extra-cat)[title="مشاهده همه"]{
    display:none!important;visibility:hidden!important;pointer-events:none!important;
  }
  #ddwcpos-fa-modal-root[data-ddwcpos-fa-v4059-modal-root]{
    position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:2147483000!important;pointer-events:none!important;overflow:visible!important;direction:rtl!important;
  }
  #ddwcpos-fa-modal-root[data-ddwcpos-fa-v4059-modal-root] > .ddwcpos-popup-overlay,
  #ddwcpos-fa-modal-root[data-ddwcpos-fa-v4059-modal-root] > .ddwcpos-fa-v4058-category-overlay{pointer-events:auto!important;}
  #ddwcpos-fa-modal-root[data-ddwcpos-fa-v4059-modal-root] > .ddwcpos-popup,
  #ddwcpos-fa-modal-root[data-ddwcpos-fa-v4059-modal-root] > .ddwcpos-all-categories-popup{pointer-events:auto!important;}
  #ddwcpos-fa-modal-root .ddwcpos-fa-v4059-empty-cats{padding:18px;text-align:center;color:#64748b;font-weight:800;}
}

/* v40.60 - React-safe popup styling in original React parent. */
@media (min-width: 769px){
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-popup[data-ddwcpos-fa-v4053-popup-fixed],
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-wrapper > .ddwcpos-popup[data-ddwcpos-fa-v4040-popup="1"]{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;min-width:0!important;max-width:none!important;min-height:0!important;max-height:none!important;margin:0!important;padding:24px!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:auto!important;z-index:2147483002!important;box-sizing:border-box!important;background:transparent!important;pointer-events:auto!important;}
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-popup-overlay[data-ddwcpos-fa-v4053-popup-fixed],
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-search-wrapper > .ddwcpos-popup-overlay[data-ddwcpos-fa-v4040-popup="1"]{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;transform:none!important;z-index:2147483001!important;background:rgba(15,23,42,.20)!important;pointer-events:auto!important;}
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-popup[data-ddwcpos-fa-v4053-popup-fixed] > .ddwcpos-popup-content,
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-popup-content[data-ddwcpos-fa-v4058-popup-content-fixed],
  html body .ddwcpos-products-tab-wrapper[data-ddwcpos-fa-v4040-products="1"] .ddwcpos-popup-content[data-ddwcpos-fa-v4053-popup-content-fixed]{position:relative!important;inset:auto!important;transform:none!important;margin:auto!important;width:min(560px,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;max-height:calc(100vh - 48px)!important;overflow:auto!important;box-sizing:border-box!important;z-index:2147483003!important;background:#fff!important;border-radius:28px!important;box-shadow:0 30px 80px rgba(15,23,42,.24)!important;padding:25px!important;direction:rtl!important;}
}

/* v40.67 - Desktop customers mobile-inspired native layout. */
@media (min-width: 769px){
  body:has(.ddwcpos-customers-tab-wrapper){
    background:#f4f7fb!important;
  }
  .ddwcpos-container:has(.ddwcpos-customers-tab-wrapper){
    background:linear-gradient(180deg,#f8fafc 0%,#eef4fb 100%)!important;
  }
  .ddwcpos-container:has(.ddwcpos-customers-tab-wrapper) .ddwcpos-tabs-container{
    overflow:hidden!important;
    height:100vh!important;
  }
  .ddwcpos-customers-tab-wrapper{
    direction:rtl!important;
    display:grid!important;
    grid-template-columns:minmax(520px,1.08fr) minmax(430px,.92fr)!important;
    gap:18px!important;
    height:100vh!important;
    min-height:0!important;
    padding:18px!important;
    background:
      radial-gradient(circle at 12% 4%,rgba(37,99,235,.10),transparent 28%),
      radial-gradient(circle at 88% 2%,rgba(16,185,129,.10),transparent 26%),
      linear-gradient(180deg,#f8fafc 0%,#eef4fb 100%)!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-list-wrapper{
    order:1!important;
    min-width:0!important;
    min-height:0!important;
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    padding:0!important;
    background:transparent!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-manage-customer-wrapper.ddwcpos-fa-native-manage-customer-wrapper{
    order:2!important;
    min-width:0!important;
    min-height:0!important;
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    padding:0!important;
    background:rgba(255,255,255,.78)!important;
    border:1px solid rgba(255,255,255,.92)!important;
    border-radius:30px!important;
    box-shadow:0 20px 50px rgba(15,23,42,.10)!important;
    backdrop-filter:blur(18px)!important;
    -webkit-backdrop-filter:blur(18px)!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customers-head{
    flex:0 0 auto!important;
    margin:0 0 12px!important;
    padding:14px!important;
    border-radius:28px!important;
    background:rgba(255,255,255,.84)!important;
    border:1px solid rgba(255,255,255,.94)!important;
    box-shadow:0 16px 40px rgba(15,23,42,.08)!important;
    backdrop-filter:blur(18px)!important;
    -webkit-backdrop-filter:blur(18px)!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customers-titlebar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin:0 0 12px!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customers-titlebar h2,
  .ddwcpos-fa-native-customer-form-head h2{
    margin:0!important;
    color:#111827!important;
    font-size:22px!important;
    line-height:1.25!important;
    font-weight:950!important;
    letter-spacing:-.4px!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customers-searchline{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) max-content!important;
    gap:12px!important;
    align-items:center!important;
    margin:0!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-search-input{
    height:48px!important;
    border-radius:18px!important;
    display:flex!important;
    align-items:center!important;
    gap:9px!important;
    padding:0 14px!important;
    background:rgba(248,250,252,.96)!important;
    border:1px solid rgba(15,23,42,.08)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.75)!important;
    min-width:0!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-search-input svg{
    width:18px!important;height:18px!important;color:#64748b!important;fill:currentColor!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-form-control{
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    color:#111827!important;
    font-size:14px!important;
    font-weight:700!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-native-refresh.ddwcpos-native-refresh-customers{
    height:48px!important;
    min-width:160px!important;
    margin:0!important;
    border-radius:18px!important;
    padding:0 18px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    border:0!important;
    background:linear-gradient(135deg,#16a34a,#22c55e)!important;
    color:#fff!important;
    box-shadow:0 12px 26px rgba(22,163,74,.20)!important;
    font-size:13px!important;
    font-weight:950!important;
    white-space:nowrap!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customers-results{
    flex:0 0 auto!important;
    display:flex!important;
    justify-content:flex-start!important;
    align-items:center!important;
    margin:0 2px 10px!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customers-results span{
    display:inline-flex!important;
    align-items:center!important;
    height:30px!important;
    padding:0 12px!important;
    border-radius:999px!important;
    background:rgba(15,23,42,.055)!important;
    color:#64748b!important;
    font-size:12px!important;
    font-weight:900!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-list{
    flex:1 1 auto!important;
    height:auto!important;
    min-height:0!important;
    overflow:auto!important;
    direction:rtl!important;
    padding:0 2px 18px!important;
    scrollbar-width:thin!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-list > div{
    width:100%!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-list-row{
    width:100%!important;
    box-sizing:border-box!important;
    padding:0 0 12px!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-list-details.ddwcpos-fa-native-customer-card{
    position:relative!important;
    width:calc(100% - 4px)!important;
    min-height:118px!important;
    height:118px!important;
    display:grid!important;
    grid-template-columns:58px minmax(0,1fr) 150px!important;
    align-items:center!important;
    gap:14px!important;
    padding:14px!important;
    overflow:hidden!important;
    cursor:pointer!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.84)!important;
    border:1px solid rgba(255,255,255,.95)!important;
    box-shadow:0 13px 34px rgba(15,23,42,.075)!important;
    backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-list-details.ddwcpos-fa-native-customer-card:hover{
    transform:translateY(-1px)!important;
    box-shadow:0 18px 42px rgba(15,23,42,.11)!important;
    border-color:rgba(34,197,94,.34)!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-list-details.ddwcpos-fa-native-customer-card:before{
    content:""!important;
    position:absolute!important;
    inset:0 auto 0 0!important;
    width:5px!important;
    background:linear-gradient(180deg,#22c55e,#2563eb)!important;
    opacity:.8!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-card img{
    width:58px!important;
    height:58px!important;
    border-radius:20px!important;
    object-fit:cover!important;
    background:linear-gradient(135deg,rgba(34,197,94,.13),rgba(37,99,235,.13)),#eef2ff!important;
    box-shadow:0 10px 20px rgba(15,23,42,.10)!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-info{
    min-width:0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:5px!important;
    align-content:center!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-info h3{
    margin:0!important;
    font-size:16px!important;
    font-weight:950!important;
    color:#16a34a!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-info p{
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
    max-width:100%!important;
    color:#64748b!important;
    font-size:12.5px!important;
    font-weight:750!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-info p:first-of-type{
    display:none!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-info svg{
    width:14px!important;height:14px!important;flex:0 0 auto!important;color:#64748b!important;fill:currentColor!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-info .ddwcpos-fa-native-customer-balance{
    width:max-content!important;
    max-width:100%!important;
    display:inline-flex!important;
    align-items:center!important;
    border-radius:999px!important;
    padding:5px 9px!important;
    font-size:12px!important;
    font-weight:950!important;
    background:rgba(100,116,139,.09)!important;
    color:#475569!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-info .ddwcpos-fa-native-customer-balance.is-debit{
    background:rgba(239,68,68,.10)!important;color:#dc2626!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-info .ddwcpos-fa-native-customer-balance.is-credit{
    background:rgba(22,163,74,.11)!important;color:#047857!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-info .ddwcpos-fa-native-customer-balance.is-zero{
    background:rgba(37,99,235,.08)!important;color:#2563eb!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions{
    display:grid!important;
    grid-template-columns:44px 44px!important;
    grid-auto-rows:40px!important;
    gap:8px!important;
    align-items:center!important;
    justify-content:end!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card{
    margin:0!important;
    padding:0!important;
    min-width:0!important;
    width:44px!important;
    height:40px!important;
    border-radius:15px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    background:rgba(255,255,255,.82)!important;
    border:1px solid rgba(15,23,42,.08)!important;
    box-shadow:0 8px 16px rgba(15,23,42,.055)!important;
    color:#334155!important;
    font-size:0!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card svg{
    width:18px!important;height:18px!important;fill:currentColor!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card[title*="حذف"]{
    color:#dc2626!important;background:rgba(254,242,242,.88)!important;border-color:rgba(239,68,68,.16)!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card[title*="انتخاب"],
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card[title*="فعلی"]{
    grid-column:1 / -1!important;
    width:96px!important;
    height:40px!important;
    justify-self:end!important;
    padding:0 10px!important;
    border:0!important;
    color:#fff!important;
    font-size:12px!important;
    font-weight:950!important;
    background:linear-gradient(135deg,#16a34a,#22c55e)!important;
    box-shadow:0 10px 22px rgba(22,163,74,.20)!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card[title*="فعلی"]{
    background:linear-gradient(135deg,#2563eb,#60a5fa)!important;
    box-shadow:0 10px 22px rgba(37,99,235,.18)!important;
  }
  .ddwcpos-fa-native-customer-form-head{
    flex:0 0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    padding:18px 20px 12px!important;
    border-bottom:1px solid rgba(15,23,42,.06)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.70))!important;
  }
  .ddwcpos-fa-native-customer-form{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:auto!important;
    display:flex!important;
    flex-direction:column!important;
    gap:12px!important;
    padding:16px 20px 20px!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  .ddwcpos-fa-native-customer-form .ddwcpos-form-group-column-2,
  .ddwcpos-fa-native-customer-form .ddwcpos-form-group-column-1{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:12px!important;
    width:100%!important;
  }
  .ddwcpos-fa-native-customer-form label,
  .ddwcpos-fa-native-customer-form .ddwcpos-fa-customer-price-tier-field label{
    display:flex!important;
    flex-direction:column!important;
    gap:7px!important;
    margin:0!important;
    color:#475569!important;
    font-size:12px!important;
    font-weight:900!important;
    line-height:1.5!important;
  }
  .ddwcpos-fa-native-customer-form input,
  .ddwcpos-fa-native-customer-form select{
    width:100%!important;
    min-height:48px!important;
    border-radius:17px!important;
    border:1px solid rgba(15,23,42,.09)!important;
    background:rgba(248,250,252,.98)!important;
    color:#111827!important;
    font-size:14px!important;
    font-weight:750!important;
    padding:0 14px!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;
    outline:0!important;
  }
  .ddwcpos-fa-native-customer-form input:focus,
  .ddwcpos-fa-native-customer-form select:focus{
    border-color:rgba(37,99,235,.40)!important;
    box-shadow:0 0 0 4px rgba(37,99,235,.10)!important;
    background:#fff!important;
  }
  .ddwcpos-fa-native-customer-form > label,
  .ddwcpos-fa-native-customer-form > .ddwcpos-fa-customer-price-tier-field,
  .ddwcpos-fa-native-customer-form > .ddwcpos-fa-native-customer-more-toggle,
  .ddwcpos-fa-native-customer-form > button{
    width:100%!important;
  }
  .ddwcpos-fa-native-customer-form .ddwcpos-fa-native-customer-more-field,
  .ddwcpos-fa-native-customer-form .ddwcpos-form-group-column-2.ddwcpos-fa-native-customer-more-field{
    display:none!important;
  }
  .ddwcpos-fa-native-customer-form.is-more-open .ddwcpos-fa-native-customer-more-field,
  .ddwcpos-fa-native-customer-form.is-more-open .ddwcpos-form-group-column-2.ddwcpos-fa-native-customer-more-field{
    display:grid!important;
  }
  .ddwcpos-fa-native-customer-form.is-more-open label.ddwcpos-fa-native-customer-more-field{
    display:flex!important;
  }
  .ddwcpos-fa-native-customer-more-toggle{
    min-height:46px!important;
    border-radius:17px!important;
    margin:0!important;
    border:1px dashed rgba(37,99,235,.28)!important;
    background:rgba(37,99,235,.08)!important;
    color:#1d4ed8!important;
    font-size:13px!important;
    font-weight:950!important;
    box-shadow:none!important;
  }
  .ddwcpos-fa-native-customer-form button.ddwcpos-button,
  .ddwcpos-fa-native-customer-form button.ddwcpos-button-secondary{
    min-height:48px!important;
    border-radius:18px!important;
    margin:0!important;
    font-size:14px!important;
    font-weight:950!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
  }
  .ddwcpos-fa-native-customer-form button.ddwcpos-button{
    background:linear-gradient(135deg,#111827,#334155)!important;
    color:#fff!important;
    box-shadow:0 14px 28px rgba(17,24,39,.18)!important;
  }
  .ddwcpos-fa-native-customer-form button.ddwcpos-button-secondary{
    background:rgba(100,116,139,.10)!important;
    color:#334155!important;
    box-shadow:none!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-no-results{
    margin:auto!important;
    position:static!important;
    color:#64748b!important;
  }
}

@media (min-width: 769px) and (max-width: 1120px){
  .ddwcpos-customers-tab-wrapper{
    grid-template-columns:minmax(430px,1fr) minmax(360px,.85fr)!important;
    gap:12px!important;
    padding:12px!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-list-details.ddwcpos-fa-native-customer-card{
    grid-template-columns:50px minmax(0,1fr) 112px!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions{
    grid-template-columns:40px 40px!important;
  }
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card[title*="انتخاب"],
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card[title*="فعلی"]{
    width:88px!important;
    font-size:11px!important;
  }
}


/* v40.68 - Desktop customers final polish mirror. */
@media (min-width: 769px){
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-info > p.ddwcpos-fa-native-customer-balance{display:none!important;}
  .ddwcpos-customers-tab-wrapper .ddwcpos-list-details.ddwcpos-fa-native-customer-card{grid-template-columns:62px minmax(0,1fr) 118px!important;min-height:122px!important;height:122px!important;overflow:hidden!important;}
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-card img{display:block!important;width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;opacity:1!important;visibility:visible!important;object-fit:cover!important;border-radius:21px!important;}
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-info h3{display:block!important;visibility:visible!important;opacity:1!important;color:#16a34a!important;min-height:21px!important;max-width:100%!important;}
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions{grid-template-columns:38px 38px!important;grid-auto-rows:36px!important;gap:7px!important;width:108px!important;max-width:108px!important;justify-self:end!important;overflow:hidden!important;}
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card{width:38px!important;height:36px!important;border-radius:13px!important;}
  .ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card[title*="انتخاب"],.ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card[title*="کنونی"],.ddwcpos-customers-tab-wrapper .ddwcpos-fa-native-customer-actions .ddwcpos-icon-card[title*="فعلی"]{width:84px!important;max-width:84px!important;height:36px!important;padding:0 8px!important;font-size:11.5px!important;line-height:1!important;overflow:hidden!important;white-space:nowrap!important;}
}


/* v41.19: product grid scroll/image stability */
html body .ddwcpos-products-tab-wrapper .ddwcpos-grid.ddwcpos-products-list{
  contain: layout paint style !important;
  will-change: scroll-position !important;
}
html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card{
  contain: layout paint style !important;
  content-visibility: auto;
  contain-intrinsic-size: 160px 120px;
}
html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card img.ddwcpos-fa-v68-image,
html body .ddwcpos-products-tab-wrapper .ddwcpos-product-card .ddwcpos-product-thumbnail img{
  transform: translateZ(0);
  backface-visibility: hidden;
}
