/* =========================================================
   PLATTERWALA COUNTER BILLING
   FINAL CSS
========================================================= */


/* =========================================================
   HIDE MAIN WEBSITE HEADER ON COUNTER BILLING ONLY
========================================================= */

body:has(#pw-counter-app) header,
body:has(#pw-counter-app) #masthead,
body:has(#pw-counter-app) .site-header,
body:has(#pw-counter-app) .main-header,
body:has(#pw-counter-app) .elementor-location-header,
body:has(#pw-counter-app) .ast-primary-header-bar,
body:has(#pw-counter-app) .ast-above-header-wrap,
body:has(#pw-counter-app) .ast-main-header-wrap,
body:has(#pw-counter-app) .site-branding-header,
body:has(#pw-counter-app) .mobile-header,
body:has(#pw-counter-app) .pwa-install-banner,
body:has(#pw-counter-app) .pwa-header {

    display: none !important;

}


/* =========================================================
   HIDE WEBSITE MOBILE BOTTOM MENU
========================================================= */

body:has(#pw-counter-app) nav,
body:has(#pw-counter-app) .mobile-bottom-nav,
body:has(#pw-counter-app) .mobile-nav,
body:has(#pw-counter-app) .bottom-nav,
body:has(#pw-counter-app) .mobile-menu,
body:has(#pw-counter-app) .site-mobile-nav,
body:has(#pw-counter-app) .pw-mobile-bottom-nav {

    display: none !important;

}


/* =========================================================
   MAIN APP
========================================================= */

#pw-counter-app {

    width: 100%;

    max-width: 100%;

    min-height: 100vh;

    background: #f7f7f7;

    color: #171717;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;

    padding-bottom: 145px;

}


/* =========================================================
   COUNTER BILLING HEADER
========================================================= */

#pw-counter-app
.pw-counter-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding:
        10px
        18px
        8px;

    background: #ffffff;

}


/* =========================================================
   BRAND
========================================================= */

.pw-counter-brand {

    display: flex;

    align-items: center;

    min-width: 0;

}


.pw-counter-logo {

    width: 43px;

    height: 43px;

    flex: 0 0 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}


.pw-counter-logo img {

    width: 100%;

    height: 100%;

    object-fit: contain;

}


.pw-logo-fallback {

    width: 43px;

    height: 43px;

    border-radius: 12px;

    background: #ef2922;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 15px;

    font-weight: 900;

}


/* =========================================================
   BRAND TEXT
========================================================= */

.pw-counter-brand-text {

    margin-left: 9px;

    min-width: 0;

}


.pw-counter-title {

    font-size: 21px;

    line-height: 1;

    font-weight: 900;

    white-space: nowrap;

}


.pw-counter-title span {

    color: #ef2922;

}


.pw-counter-subtitle {

    margin-top: 4px;

    color: #777777;

    font-size: 11px;

}


/* =========================================================
   READY STATUS
========================================================= */

.pw-counter-status {

    flex: 0 0 auto;

    display: flex;

    align-items: center;

    gap: 6px;

    padding:
        8px
        12px;

    border:
        1px solid #e5e5e5;

    border-radius: 22px;

    background: #ffffff;

    font-size: 11px;

    font-weight: 700;

    color: #222222;

}


.pw-status-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #16a34a;

}


/* =========================================================
   SEARCH
========================================================= */

.pw-counter-search {

    padding:
        8px
        18px
        10px;

    background: #ffffff;

}


.pw-counter-search input {

    width: 100%;

    height: 43px;

    border:
        1px solid #e7e7e7;

    border-radius: 14px;

    background: #ffffff;

    padding:
        0
        15px;

    font-size: 14px;

    outline: none;

    box-shadow:
        0 2px 8px
        rgba(0,0,0,.04);

}


.pw-counter-search input:focus {

    border-color: #ef2922;

}


/* =========================================================
   CATEGORIES
========================================================= */

.pw-counter-categories {

    display: flex;

    gap: 8px;

    overflow-x: auto;

    padding:
        4px
        18px
        10px;

    background: #ffffff;

    scrollbar-width: none;

}


.pw-counter-categories::-webkit-scrollbar {

    display: none;

}


.pw-counter-category {

    flex:
        0 0 82px;

    width: 82px;

    height: 76px;

    border:
        1px solid #e6e6e6;

    border-radius: 13px;

    background: #ffffff;

    padding:
        6px
        4px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    cursor: pointer;

}


.pw-counter-category.active {

    background: #ef2922;

    border-color: #ef2922;

    color: #ffffff;

}


.pw-counter-category-image {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #f1f2f3;

}


.pw-counter-category.active
.pw-counter-category-image {

    background:
        rgba(255,255,255,.20);

}


.pw-counter-category-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.pw-category-all-icon,
.pw-category-fallback {

    font-size: 20px;

}


.pw-counter-category-name {

    width: 100%;

    margin-top: 4px;

    font-size: 11px;

    font-weight: 700;

    text-align: center;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}


/* =========================================================
   PRODUCTS - 3 PER ROW
========================================================= */

.pw-counter-products {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    padding:
        0
        18px
        15px;

}


.pw-counter-product {

    min-width: 0;

    overflow: hidden;

    border:
        1px solid #e4e4e4;

    border-radius: 13px;

    background: #ffffff;

    cursor: pointer;

    box-shadow:
        0 2px 5px
        rgba(0,0,0,.04);

    transition:
        transform .12s ease,
        border-color .12s ease;

}


.pw-counter-product:active {

    transform:
        scale(.97);

}


.pw-counter-product.selected {

    border:
        1.5px solid #ef2922;

}


.pw-counter-product-image {

    width: 100%;

    aspect-ratio:
        1 / .76;

    overflow: hidden;

    background: #f1f1f1;

}


.pw-counter-product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}


.pw-product-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 26px;

}


.pw-counter-product-info {

    padding:
        6px
        6px
        7px;

}


.pw-counter-product-name {

    min-height: 29px;

    font-size: 11px;

    line-height: 1.25;

    font-weight: 700;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;

}


.pw-counter-product-price {

    margin-top: 4px;

    font-size: 14px;

    font-weight: 900;

}


.pw-counter-qty {

    display: grid;

    grid-template-columns:
        1fr
        28px
        1fr;

    align-items: center;

    margin-top: 6px;

    height: 28px;

    border-radius: 7px;

    background: #f3f3f3;

    overflow: hidden;

}


.pw-counter-product.selected
.pw-counter-qty {

    background:
        #fff0ef;

}


.pw-counter-qty button {

    height: 100%;

    border: 0;

    background: transparent;

    color: #ef2922;

    font-size: 18px;

    font-weight: 700;

    padding: 0;

    cursor: pointer;

}


.pw-counter-qty-value {

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eeeeee;

    font-size: 12px;

    font-weight: 900;

}


.pw-counter-product.selected
.pw-counter-qty-value {

    background:
        #ffe5e3;

}


/* =========================================================
   LOADING / EMPTY
========================================================= */

.pw-counter-loading,
.pw-counter-empty {

    grid-column:
        1 / -1;

    padding:
        30px
        10px;

    text-align: center;

    color: #888888;

    font-size: 13px;

}


/* =========================================================
   BOTTOM BILL
========================================================= */

.pw-counter-bottom {

    position: fixed;

    left: 0;

    right: 0;

    bottom: 0;

    z-index: 999999;

    background:
        rgba(255,255,255,.98);

    border-top:
        1px solid #e5e5e5;

    padding:
        8px
        18px
        calc(
            8px +
            env(safe-area-inset-bottom)
        );

    box-shadow:
        0 -4px 15px
        rgba(0,0,0,.07);

}


.pw-counter-summary {

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 30px;

}


.pw-counter-item-count {

    font-size: 13px;

}


.pw-counter-total {

    color: #ef2922;

    font-size: 20px;

    font-weight: 900;

}


/* =========================================================
   TWO BUTTONS
========================================================= */

.pw-counter-actions {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 8px;

}


.pw-counter-actions button {

    height: 43px;

    border: 0;

    border-radius: 11px;

    font-size: 12px;

    font-weight: 900;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    white-space: nowrap;

}


.pw-counter-save-print {

    background: #171717;

    color: #ffffff;

}


.pw-counter-print {

    background: #ef2922;

    color: #ffffff;

}


.pw-counter-actions button:active {

    transform:
        scale(.98);

}


.pw-counter-actions button:disabled {

    opacity: .65;

    cursor:
        not-allowed;

}


.pw-counter-save-print.saving {

    opacity: .7;

}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 700px) {

    #pw-counter-app {

        max-width: 650px;

        margin: 0 auto;

    }


    .pw-counter-products {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }


    .pw-counter-bottom {

        left: 50%;

        right: auto;

        width: 650px;

        transform:
            translateX(-50%);

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .pw-counter-products {

        padding-left: 12px;

        padding-right: 12px;

        gap: 6px;

    }


    .pw-counter-categories {

        padding-left: 12px;

        padding-right: 12px;

    }


    .pw-counter-bottom {

        padding-left: 12px;

        padding-right: 12px;

    }


    .pw-counter-actions button {

        font-size: 11px;

    }

}