.chg-wrap{--chg-green:#13794c;--chg-green-dark:#0b5937;--chg-soft:#edf8f2;--chg-border:#dce8e1;--chg-text:#20372c;--chg-muted:#6d7d75;direction:rtl;color:var(--chg-text);font-family:inherit}.chg-wrap *{box-sizing:border-box}.chg-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.chg-section-head h2{margin:0 0 6px;font-size:clamp(22px,3vw,32px);line-height:1.4}.chg-section-head p{margin:0;color:var(--chg-muted)}.chg-last-sync{background:var(--chg-soft);color:var(--chg-green-dark);border-radius:999px;padding:8px 12px;font-size:13px;white-space:nowrap}.chg-search{display:flex;gap:8px;margin:0 0 18px}.chg-search input{flex:1;min-width:0;border:1px solid var(--chg-border);border-radius:10px;padding:12px 14px;background:#fff;color:inherit;outline:none}.chg-search input:focus{border-color:var(--chg-green);box-shadow:0 0 0 3px rgba(19,121,76,.1)}.chg-search button,.chg-add-btn{border:0;border-radius:10px;background:var(--chg-green);color:#fff;padding:11px 20px;font-weight:700;cursor:pointer;transition:.2s}.chg-search button:hover,.chg-add-btn:hover{background:var(--chg-green-dark)}.chg-table-responsive{overflow:auto;border:1px solid var(--chg-border);border-radius:14px;background:#fff}.chg-price-table{width:100%;min-width:680px;border-collapse:collapse;margin:0}.chg-price-table th{background:#68736e;color:#fff;padding:14px;text-align:center;font-weight:700}.chg-price-table td{padding:13px 14px;text-align:center;border-bottom:1px solid var(--chg-border);border-left:1px solid var(--chg-border)}.chg-price-table tbody:nth-of-type(odd) td{background:#f8faf9}.chg-price-table tbody:last-child tr:last-child td{border-bottom:0}.chg-product-cell{min-width:220px;font-weight:700}.chg-product-cell a{color:var(--chg-text);text-decoration:none}.chg-product-cell small{display:block;margin-top:5px;color:var(--chg-muted);font-weight:400}.chg-price{display:inline-flex;align-items:center;gap:5px;font-weight:800}.chg-trend-up{color:#0b8b50}.chg-trend-down{color:#d33030}.chg-arrow{font-size:18px}.chg-pagination{display:flex;justify-content:center;gap:6px;margin-top:20px;direction:rtl}.chg-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 10px;border:1px solid var(--chg-border);border-radius:9px;background:#fff;color:var(--chg-text);text-decoration:none}.chg-pagination .current,.chg-pagination a:hover{background:var(--chg-green);color:#fff;border-color:var(--chg-green)}.chg-empty{padding:25px;text-align:center;background:#f7faf8;border:1px dashed var(--chg-border);border-radius:12px;color:var(--chg-muted)}.chg-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.chg-product-card{display:grid;grid-template-columns:130px minmax(0,1fr);grid-template-areas:"image main" "image action";gap:12px 16px;padding:14px;border:1px solid var(--chg-border);border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(34,65,50,.04);transition:.2s}.chg-product-card:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(34,65,50,.08)}.chg-product-card.is-busy{opacity:.7;pointer-events:none}.chg-product-image{grid-area:image;display:block;align-self:stretch;border-radius:11px;background:#f5f7f6;overflow:hidden;min-height:130px}.chg-product-image img{display:block;width:100%;height:100%;object-fit:contain}.chg-no-image{display:grid;place-items:center;width:100%;height:100%;color:var(--chg-muted);font-size:12px}.chg-product-main{grid-area:main;min-width:0}.chg-product-main h3{font-size:16px;line-height:1.6;margin:0 0 8px}.chg-product-main h3 a{color:var(--chg-text);text-decoration:none}.chg-tier-list{display:flex;flex-direction:column;gap:4px}.chg-tier-list span{font-size:13px}.chg-tier-list b{color:var(--chg-green-dark);font-size:14px}.chg-tier-list small{display:inline-block;margin-right:4px;padding:2px 6px;border-radius:6px;background:#f0f3f1;color:var(--chg-muted)}.chg-current-price{margin-top:9px;font-size:12px;color:var(--chg-muted)}.chg-current-price strong{color:var(--chg-green-dark);font-size:14px}.chg-product-action{grid-area:action;display:flex;align-items:center;justify-content:space-between;gap:10px;align-self:end}.chg-product-action [data-action-status]{font-size:11px;color:var(--chg-green);margin-right:auto}.chg-product-action [data-action-status].is-error{color:#c92f2f}.chg-add-btn{padding:10px 16px}.chg-qty-controls{display:flex;align-items:center;gap:7px;direction:ltr}.chg-qty-controls button,.chg-qty-controls input{height:40px;border:1px solid var(--chg-border);border-radius:9px;background:#fff;color:var(--chg-text)}.chg-qty-controls button{width:40px;padding:0;font-size:20px;cursor:pointer}.chg-qty-controls button:hover{border-color:var(--chg-green);color:var(--chg-green)}.chg-qty-controls input{width:70px;text-align:center;font-weight:700;appearance:textfield}.chg-qty-controls input::-webkit-inner-spin-button{appearance:none}.chg-minus .chg-trash{display:none}.chg-minus.is-trash{color:#d33030}.chg-minus.is-trash .chg-minus-text{display:none}.chg-minus.is-trash .chg-trash{display:inline;font-size:23px}.chg-wrap .is-hidden{display:none!important}.chg-single-tiers{direction:rtl;margin:12px 0 16px;padding:13px;border-radius:12px;background:#edf8f2;color:#20372c}.chg-single-tiers>strong{display:block;margin-bottom:8px}.chg-single-tiers>div{display:flex;flex-wrap:wrap;gap:7px}.chg-single-tiers span{display:inline-flex;padding:5px 8px;background:#fff;border:1px solid #dce8e1;border-radius:7px;font-size:12px}.chg-price-note{display:block;margin-top:5px;color:#6d7d75;font-size:12px}@media(max-width:900px){.chg-product-grid{grid-template-columns:1fr}}@media(max-width:600px){.chg-section-head{align-items:flex-start;flex-direction:column}.chg-search{flex-direction:column}.chg-search button{width:100%}.chg-product-card{grid-template-columns:92px minmax(0,1fr);grid-template-areas:"image main" "action action";padding:11px;gap:10px}.chg-product-image{min-height:92px}.chg-product-action{align-items:flex-start;flex-direction:column}.chg-product-action [data-action-status]{margin:0}.chg-add-btn,.chg-qty-controls{width:100%}.chg-add-btn{min-height:42px}.chg-qty-controls input{flex:1}.chg-price-table td,.chg-price-table th{padding:11px 10px}}

/* ===== Version 1.1.0: all-source table + reliable single-product controls ===== */
.chg-linked-badge,.chg-unlinked-badge,.chg-source-name{display:none!important}.chg-single-selector{--chg-green:#13794c;--chg-green-dark:#0b5937;--chg-soft:#edf8f2;--chg-border:#dce8e1;--chg-text:#20372c;--chg-muted:#6d7d75;direction:rtl;width:100%;margin:14px 0 18px;padding:16px;border:1px solid var(--chg-border);border-radius:14px;background:linear-gradient(145deg,#f8fcfa,#edf8f2);color:var(--chg-text);box-sizing:border-box}.chg-single-selector *{box-sizing:border-box}.chg-single-selector-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}.chg-single-selector-head strong{font-size:15px;line-height:1.6}.chg-single-selector-head span{color:var(--chg-muted);font-size:11px;line-height:1.7}.chg-single-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.chg-single-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:72px;padding:9px;border:1px solid var(--chg-border);border-radius:10px;background:#fff;color:var(--chg-text);font:inherit;cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}.chg-single-option:hover{border-color:var(--chg-green);transform:translateY(-1px)}.chg-single-option.is-active{border-color:var(--chg-green);box-shadow:0 0 0 3px rgba(19,121,76,.11);background:#fff}.chg-single-option span{font-size:11px;color:var(--chg-muted)}.chg-single-option b{font-size:13px;color:var(--chg-green-dark)}.chg-single-control-row{display:flex;align-items:stretch;justify-content:space-between;gap:10px;margin-top:12px}.chg-single-quantity{display:flex;align-items:center;direction:ltr;min-width:170px;border:1px solid var(--chg-border);border-radius:11px;background:#fff;overflow:hidden}.chg-single-quantity button,.chg-single-quantity input{height:46px;border:0;background:#fff;color:var(--chg-text);font:inherit}.chg-single-quantity button{width:48px;flex:0 0 48px;font-size:22px;cursor:pointer}.chg-single-quantity button:hover{background:var(--chg-soft);color:var(--chg-green)}.chg-single-quantity input{width:74px;min-width:0;flex:1;text-align:center;font-weight:800;appearance:textfield;outline:0}.chg-single-quantity input::-webkit-inner-spin-button{appearance:none}.chg-single-selected-price{display:flex;flex:1;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;border:1px solid var(--chg-border);border-radius:11px;background:#fff}.chg-single-selected-price>span{color:var(--chg-muted);font-size:11px}.chg-single-selected-price strong{white-space:nowrap;color:var(--chg-green-dark);font-size:14px}.chg-single-min-note{display:block;margin-top:9px;color:var(--chg-muted);font-size:11px}.chg-enhanced-product-form .quantity{display:none!important}.chg-enhanced-product-form .single_add_to_cart_button{width:100%;min-height:46px}.chg-single-selector+.chg-price-note{margin-top:0}@media(max-width:720px){.chg-single-selector-head,.chg-single-control-row{flex-direction:column}.chg-single-options{grid-template-columns:1fr}.chg-single-option{min-height:62px}.chg-single-quantity,.chg-single-selected-price{width:100%;min-width:0}.chg-single-selected-price{min-height:54px}}

/* ===== Version 1.1.1: inherit the active theme font everywhere ===== */
.chg-wrap,
.chg-wrap *,
.chg-wrap *::before,
.chg-wrap *::after,
.chg-single-selector,
.chg-single-selector *,
.chg-single-selector *::before,
.chg-single-selector *::after {
    font-family: inherit !important;
}
.chg-wrap button,
.chg-wrap input,
.chg-wrap select,
.chg-wrap textarea,
.chg-single-selector button,
.chg-single-selector input,
.chg-single-selector select,
.chg-single-selector textarea {
    font-family: inherit !important;
}
.chg-source-stock {
    color: var(--chg-green, #13794c) !important;
    font-family: inherit !important;
}
.chg-product-card[aria-busy="true"] .chg-qty-controls,
.chg-product-card[aria-busy="true"] .chg-add-btn {
    cursor: wait;
}

/* 1.1.2: local quantity changes wait briefly before one Ajax request. */
.chg-product-card.is-waiting [data-action-status] {
    opacity: .82;
}

/* 1.1.3: quick-order cart badge removed by design. */

/* 1.1.4: breathing room below the theme breadcrumb on both public plugin pages. */
.chg-price-table-wrap,
.chg-quick-wrap {
    margin-top: 32px;
}
@media (max-width: 767px) {
    .chg-price-table-wrap,
    .chg-quick-wrap {
        margin-top: 22px;
    }
}

/* 1.1.5: prevent WooCommerce/Woodmart from injecting a redundant view-cart link in quick order. */
.chg-quick-wrap a.added_to_cart,
.chg-quick-wrap a.wc-forward.added_to_cart,
.chg-quick-wrap .chg-product-card + a.added_to_cart,
.chg-quick-wrap .chg-product-grid > a.added_to_cart {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

/* 1.1.6: top-aligned quick-order image without the gray image panel. */
.chg-product-card {
    grid-template-areas: "image main" ". action";
}
.chg-product-image {
    align-self: start;
    min-height: 0;
    height: auto;
    padding: 0;
    background: transparent !important;
    overflow: visible;
}
.chg-product-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    object-position: center top;
    border-radius: 10px;
}
.chg-no-image {
    min-height: 110px;
    border: 1px dashed var(--chg-border);
    border-radius: 10px;
    background: transparent;
}
@media (max-width: 600px) {
    .chg-product-card {
        grid-template-areas: "image main" "action action";
    }
    .chg-product-image img {
        max-height: 110px;
    }
}


/* 1.1.7: larger, stable quick-order product images; override theme image caps. */
.chg-quick-wrap .chg-product-card {
    grid-template-columns: 170px minmax(0, 1fr);
    grid-template-areas: "image main" ". action";
    column-gap: 18px;
    align-items: start;
}
.chg-quick-wrap .chg-product-image {
    display: block;
    width: 100%;
    max-width: 170px;
    aspect-ratio: 1 / 1;
    align-self: start;
    justify-self: stretch;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    background: transparent !important;
    overflow: hidden;
}
.chg-quick-wrap .chg-product-image img,
.chg-quick-wrap .chg-product-image img.attachment-medium,
.chg-quick-wrap .chg-product-image img.size-medium {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 12px;
}
.chg-quick-wrap .chg-no-image {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
}
@media (max-width: 600px) {
    .chg-quick-wrap .chg-product-card {
        grid-template-columns: 120px minmax(0, 1fr);
        grid-template-areas: "image main" "action action";
        column-gap: 12px;
    }
    .chg-quick-wrap .chg-product-image {
        max-width: 120px;
    }
}
@media (max-width: 420px) {
    .chg-quick-wrap .chg-product-card {
        grid-template-columns: 1fr;
        grid-template-areas: "image" "main" "action";
    }
    .chg-quick-wrap .chg-product-image {
        width: min(220px, 100%);
        max-width: 220px;
        justify-self: center;
    }
}


/* 1.2.0: unavailable source products remain visible in the public wholesale table. */
.chg-price-table .chg-product-unavailable td {
    background: #fbfbfb;
}
.chg-price-table .chg-unavailable-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff0f0;
    color: #d33030;
    font-weight: 800;
    line-height: 1.4;
}
.chg-price-table .chg-unavailable-min {
    color: var(--chg-muted);
    font-weight: 700;
}
.chg-source-unavailable-price {
    color: #d33030;
    font-weight: 800;
}

/* 1.3.0: always show the quantity unit beside the live quick-order value. */
.chg-quick-wrap .chg-qty-field{
    display:flex;
    align-items:center;
    height:40px;
    min-width:116px;
    margin:0;
    border:1px solid var(--chg-border);
    border-radius:9px;
    background:#fff;
    direction:rtl;
    overflow:hidden;
}
.chg-quick-wrap .chg-qty-field input{
    width:66px;
    min-width:54px;
    height:38px;
    margin:0;
    padding:0 8px;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    background:transparent!important;
    direction:ltr;
    text-align:center;
    font-weight:800;
}
.chg-quick-wrap .chg-qty-unit{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    align-self:stretch;
    padding:0 9px;
    border-right:1px solid var(--chg-border);
    color:var(--chg-muted);
    background:#f8faf9;
    white-space:nowrap;
    font-size:11px;
    font-weight:700;
}
@media(max-width:600px){
    .chg-quick-wrap .chg-qty-field{flex:1;min-width:0}
    .chg-quick-wrap .chg-qty-field input{flex:1;width:auto}
}
