.wh {
    --b: #eef1f5;
    --t: #0f172a;
    --a: #2563eb;
    --g: #10b981;
    --y: #f59e0b;
    --r: #ef4444;
    color: var(--t);
    font-family: system-ui, Arial;
    direction: rtl;
}

body.wh-action {
    background: #cbcbcb !important;
}

body.wh-action header,
body.wh-action footer,
body.wh-action #wpadminbar,
body.wh-action .whatsapp_link,
body.wh-action .management-panel,
body.wh-action #acwp-toolbar-btn-wrap {
    display: none !important;
}

.wh .wrap {
    width: calc(100% - 70px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}


.wh .wrap .order-fees,
.wh .wrap .order-details {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #fff;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    border-radius: 8px;
    gap: 30px;
}

.wh .wrap .order-fees {
    margin-top: 10px;
    flex-direction: column;
    gap: 5px;
    background: red;
    color: #fff;
}

.wh .wrap #orders-list h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 10px;
}

.wh .toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.wh .btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #d0d7e2;
    background: #fff;
    cursor: pointer;
}

.wh .btn.primary {
    background: var(--a);
    color: #fff;
    border-color: var(--a);
}

.wh .btn.success {
    background: var(--g);
    color: #fff;
    border-color: var(--g);
}

.wh .btn.warn {
    background: var(--y);
    color: #111;
    border-color: var(--y);
}

.wh .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}

.wh .card {
    grid-column: span 12;
    background: #fff;
    border: 1px solid #e3e7ee;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.wh .card h3 {
    font-size: 18px;
    margin: 0 0 8px;
}

.wh .list {
    max-height: 70vh;
    overflow: auto;
}

.wh .row {
    display: grid;
    grid-template-columns: 60px 4fr 1fr 1fr 1fr 2fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #f1f3f7;
}

.wh button.end-action {
    width: 100%;
    color: #fff !important;
    background: #4CAF50;
    border: none !important;
    position: fixed;
    bottom: 0;
    z-index: 99999;
    left: 0;
}

.wh button.end-action[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.wh .muted {
    opacity: .7;
}

.wh .timer {
    font-variant-numeric: tabular-nums;
}

.wh-container {
    font-family: Arial;
    padding: 10px;
    margin-bottom: 100px;
    margin-top: 20px;
}

.wh-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
    align-items: center;
}

.wh-tabs button:not(.end-action) {
    padding: 8px 16px !important;
    border: none;
    background: #fff !important;
    cursor: pointer;
    border-radius: 6px !important;
    color: #000 !important;
}

.wh-tabs button:not(.end-action).active {
    background: #0073aa !important;
    color: #fff !important;
}

.wh-tab-content {
    display: flex;
    flex-direction: column;
}

.wh-tab-content .tab-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px auto;
    width: 100%;
}

.wh-item img {
    height: 80px;
    width: 80px;
    object-fit: contain;
    object-position: center;
}

.wh-info {
    width: 100%;
}

.wh-info br {
    display: none;
}

.wh-actions {
    display: flex;
    gap: 6px;
}

.wh-actions button {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 50px;
    width: 75px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wh-actions .wh-done {
    background: #4CAF50;
    color: #fff;
}

.wh-actions .wh-scan {
    background: #f59e0b;
    color: #000 !important;
}

.wh-actions .wh-delete,
.wh-actions .wh-missing {
    background: #d9534f;
    color: #fff;
}

.wh-actions .wh-restore,
.wh-actions .wh-change {
    background: #2563eb;
    color: #fff;
}

.wh-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: #fff;
    border-radius: 8px;
    padding: 15px 10px;
    border: 1px solid #eee;
    transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out;
    position: relative;
}

.wh-item > * {
    width: 100%;
}

.wh-item .wh-item-name {
    font-size: 20px;
}

.wh-more-notes,
.wh-more-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: yellow;
    border: 1px solid;
    padding: 5px;
    border-radius: 8px;
}

.wh-more-notes {
    background: #ff4d4f;
    color: #fff;
    border: 1px solid #000;
}

.wh-item .wh-item-panel {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wh-item-info {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.wh-actions-info {
    margin-top: 5px;
    font-size: 18px;
    font-weight: bold;
    border-top: 1px solid #c1c1c1;
    padding-top: 5px;
}

.wh-item.wh-extra {
    background: #cfdcf6;
    border-color: #2563eb;
}

.wh-item.wh-full {
    background: #eaffea;
    border-color: #52c41a;
}

.wh-item.wh-partial {
    background: #fffbe6;
    border-color: #ffe58f;
}

.wh-item.wh-deleted,
.wh-item.wh-missing {
    background: #fff1f0;
    border-color: #ff4d4f;
}

/* .wh-item.wh-extra-order-item::after {
    content: "תוספת להזמנה";
    font-size: 12px;
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: translateY(50%);
    background: #000;
    color: #fff;
    padding: 3px;
    border-radius: 5px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
} */

.wh-item ul.wh-item-attributes-list {
    position: absolute;
    bottom: 100%;
    right: 10px;
    transform: translateY(50%);
    list-style: none;
    display: flex;
    gap: 10px;
}

.wh-item ul.wh-item-attributes-list li {
    font-size: 12px;
    background: #fff;
    color: #000;
    border: 1px solid;
    padding: 3px 5px;
    border-radius: 5px;
}

.wh-status {
    font-weight: 700;
    margin-top: 10px;
}

.wh-item.wh-missing .wh-status {
    color: #c62828; 
}

.wh-item.wh-partial .wh-status {
    color: #d48806; 
}

.wh-item.wh-full .wh-status {
    color: #1a7f37; 
}

.not-hebrew-alert {
    display: none;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 50px;
}

.not-hebrew-alert > h3 {
    color: red;
    font-size: 22px;
    margin-bottom: 3px;
}

.not-hebrew-alert > p {
    font-size: 16px;
}

.wh-tab-content[data-tab="delete"] .wh-collect-count,
.wh-tab-content[data-tab="missing"] .wh-collect-count,
.wh-tab-content[data-tab="done"] .wh-collect-count {
    display: none;
}

.add-product-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    transition: opacity .6s ease;
    background: rgba(255, 255, 255, .8);
    opacity: 0;
    pointer-events: none;
    padding: 50px;
    z-index: 999;
}

.add-product-popup.open {
    opacity: 1;
    pointer-events: all;
}

.add-product-popup .add-product-to-check-order-panel {
    width: 100%;   
}

.wh-item-qty,
.wh-item-price {
    cursor: pointer;
}

.wh-buttons-container {
    position: fixed;
    top: 20px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wh-buttons-container .wh-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 16px;
    padding: 0;
    min-height: auto
}

.wh-buttons-container .wh-btn.pause {
    background: #f59e0b;
}

.wh-buttons-container .wh-btn.add {
    background: #2563eb;
}

span.wh-item-notes {
    color: red;
}

input#search-input {
    border-radius: 8px;
}

button.call-to-collecter {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ffce2f;
    color: black !important;
    font-weight: bold;
    border-radius: 15px;
    box-shadow: 0 0 15px 2px rgb(170 170 170 / 30%);
    letter-spacing: 1px;
    font-size: 12px;
}

button.call-to-collecter i {
    margin-left: 5px;
    display: block;
}

mark.order-notes {
    display: block;
    margin: 20px auto 0;
    width: max-content;
    max-width: 100%;
    padding: 5px;
    font-size: 20px;
    border: 1px solid;
}

.calling-popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: none;
    z-index: 9999999;
}

.calling-popup p {
    font-size: 25px;
    color: #fff;
    font-weight: bold;
}

.calling-popup.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

#action-timer {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 20px;
    text-shadow: 1px 1px black;
}

@media(max-width: 900px) {
    .wh-item .wh-item-panel {
        flex-direction: column;
    }

    .wh-item .wh-item-panel > * {
        width: 100%;
    }

    .wh-item .wh-item-panel .wh-info {
        text-align: center;
    }

    .wh-actions {
        justify-content: center;
    }

    .wh-more-info {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    /* .wh-more-info > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 110px;
        text-align: center;
    } */

    /* .wh-more-info > div > small {
        white-space: nowrap;
    } */
}