/* Initial hidden state with transition */

#qr-scanner-modal {
    position: fixed;
    transition: bottom 0.5s ease-in-out;
    z-index: 99999;
    background-color: #ffffff;
    padding: 40px 15px;
    text-align: center !important;
    box-shadow: 0px 0px 5px #e3e3e3;
    max-width: 600px;
    min-width: 400px;
    display: flex;
    justify-content: center;
    border-radius: 15px;
    margin: 30px;
}

#qr-scanner-modal h2{
    color: #0067F6 !important;
    font-size: 25px;
    margin: 0 0 .7em;
    font-weight: 600;
}


.qr-overlay {
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    display: flex;
    align-items: center;
    position: fixed;
    z-index: 9999999;
    height: 100%;
    bottom: 0;
    left: 0;
    width: 100%;
    visibility: hidden;
}

#close-scanner {
    position: absolute;
    top: 10px;
    right: 20px;
    background-color: transparent;
    color: #0067f6;
    font-size: 16px;
    padding: 2px 8px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

.custom-shop-page-section {
    background-color: var(--e-global-color-dbb4126);
    padding: 0px;
    margin: 10px 0px;
    border-radius: 10px;
}

.tablenumber {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#scan-table-number {
    background-color: #ffffff !important;
    color: #001657 !important;
    border-width: 2px;
    border-color: #001657;
    font-weight: 500;
    margin-top: 20px;
    font-size: 16px;
    padding: 16px;
}

#preview {
    width: 80% !important;
    height: 70% !important;
    transform: scaleX(-1);
    margin: auto;
    display: none;
}

.custom-shop-page-section h5,
.cwd-tablenumber {
    font-size: var(--e-global-typography-08bba94-font-size) !important;
    color: var(--e-global-color-15baad2) !important;
    margin: 0px;
}

.custom-shop-page-section .cwd-tablenumber {
    margin-right: 10px;
}

.tablenumber {
    font-family: var(--e-global-typography-ccb799a-font-family);
    font-size: var(--e-global-typography-08bba94-font-size) !important;
    font-weight: var(--e-global-typography-08bba94-font-weight);
}

.custom-shop-page-section .scan-table {
    background-color: #ffffff;
    color: #001657;
    border-width: 2px;
    border-color: #001657;
    font-family: var(--e-global-typography-ccb799a-font-family);
    font-size: var(--e-global-typography-08bba94-font-size);
    padding: 5px 10px;
}

button.scan-table[disabled], button.scan-table[disabled]:hover {
    opacity: 0.6 !important;
    cursor: not-allowed !important
}

.custom-shop-page-section .scan-table:hover {
    background-color: #001657;
    color: #ffffff;
}

.custom-shop-page-section .scan-table-section {
    border-width: 2px;
    border-style: solid;
    border-color: transparent;
    border-radius: 25px;
    padding: 3px;
}

.custom-shop-page-section .scan-table-section:focus {
    border-color: #0067f6 !important;
}

.cwd-woocommerce-cart-section {
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: var(--e-global-color-4083cc5);
    /* Change this color as per your design */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    /* Ensure it's on top */
    text-align: center;
}

.cwd-woocommerce-cart-section p {
    margin-bottom: 0;
    color: #ffffff;
}

.cart-content {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 10px 0px;
    justify-content: space-around;
}

.cart-content p {
    margin-bottom: 0px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.cart-content a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.wp-block-woocommerce-cart.alignwide {
    margin: auto !important;
}

.ast-scroll-to-top-right {
    right: 8px !important;
    bottom: 20px !important;
}

/* Adjust for mobile devices */

@media screen and (max-width: 768px) {
    .cwd-woocommerce-cart-section {
        padding: 10px 8px;
        font-size: 14px;
    }
}

/* Further adjustments for small screens */

@media screen and (max-width: 480px) {
    .cwd-woocommerce-cart-section {
        padding: 15px 10px;
        font-size: 12px;
    }
}

@media only screen and (max-width: 600px) {
    /*Category List*/
    .cwd-product-categories {
        display: block;
    }

    .cwd-product-categories-list {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        /* Space between items */
    }

    .cwd-product-category {
        flex: 1 1 calc(50% - 20px);
        /* Two items per row, accounting for gap */
        box-sizing: border-box;
        text-align: center;
        padding: 10px;
    }

    .cwd-product-category img.cwd-category-image {
        max-width: 100%;
        height: auto;
        margin-bottom: 10px;
        border-radius: 5px;
        /* Optional: rounded image corners */
    }

    .cwd-product-category a.cwd-category-name {
        display: block;
        font-size: 16px;
        color: #333;
        text-decoration: none;
    }

    /*End*/

    .woocommerce-result-count,
    .woocommerce-ordering,
    .ast-woo-product-category,
    .star-rating {
        display: none !important;
    }

    ul.products.columns-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        flex-direction: row !important;
    }

    .woocommerce-js ul.products li.product a img {
        width: 184px !important;
        height: 145px !important;
        border-radius: 5px;
        margin-right: 20px !important;
    }

    .slider-product-image {
        display: block;
        width: 100%;
    }

    .slider-modal-content {
        width: 100%;
        height: auto;
        margin: 0px;
    }

    .cwd-category-image,
    .cwd-product-details-content {
        width: 100%;
    }

    .close .svg-left-arrow-icon {
        display: block;
    }

    .close .svg-cross-icon {
        display: none;
    }

    .custom-shop-page-section {
        border-radius: 0px;
    }
}

.woocommerce-error.cwd-without-cookies {
    background-color: var(--e-global-color-4c0bb39) !important;
    color: var(--e-global-color-b61b401) !important;
    border-color: var(--e-global-color-5d22e46) !important;
}

.qr-alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: space-between;
}

.qr-alert-content p {
    font-size: var(--e-global-typography-0679383-font-size) !important;
    margin: 0;
    flex: 1;
    font-weight: 600;
}

#manual-table-number {
    width: 100%;
    padding: 15px;
    border-radius: 25px;
    height: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.btn-busy-indicator {
    margin-right: 4px;
    vertical-align: middle;
    display: none;
    transform: scale(80%);
    height: 20px;
}

.btn-busy-indicator img {
    margin-right: 10px;
}

#manual-table-number-btn[disabled] ~ .btn-busy-indicator {
    display: inline-flex
}

#manual-table-number-btn .confirm-text {
    cursor: pointer;
}

#manual-table-number-btn {
    width: 100%;
    margin-top: 10px;
    border-style: solid;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 0;
    border-color: #0067f6;
    color: var(--e-global-color-d7b2bb9) !important;
    background-color: var(--e-global-color-4083cc5) !important;
    padding: 10px 20px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1.1428571428571rem;
    line-height: 20px;
    border-radius: 30px;
}

#manual-table-number-btn:hover, #manual-table-number-btn:focus {
    /*background-color: var(--e-global-color-4f42bde) !important;*/
    /*color: var(--e-global-color-4393f3e) !important;*/
    background-color: var(--e-global-color-383a6a6) !important;
    color: var(--e-global-color-2d49d42) !important;
}

#close-scanner {
    position: absolute;
    top: 10px;
    right: 20px;
    background-color: transparent;
    color: #0067f6;
    font-size: 16px;
    padding: 2px 8px;
    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

#scan-qr-btn {
    background-color: var(--e-global-color-81f63b2) !important;
    color: var(--e-global-color-2752a0a) !important;
    font-size: var(--e-global-typography-281c981-font-size) !important;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

#scan-qr-btn:hover {
    background-color: var(--e-global-color-81f63b2) !important;
    color: var(--e-global-color-2752a0a) !important;
    opacity: 1 !important;
}

.woocommerce-info.qr-scanner-alert {
    background-color: var(--e-global-color-ed4d76e) !important;
    border: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: auto !important;
}

.woocommerce-info.qr-scanner-alert .qr-table-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.woocommerce-info.qr-scanner-alert p {
    color: var(--e-global-color-primary) !important;
    font-family: var(--e-global-typography-fb3afc9-font-family) !important;
    font-size: var(--e-global-typography-fb3afc9-font-size) !important;
    font-weight: var(--e-global-typography-fb3afc9-font-weight) !important;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.woocommerce-info.qr-scanner-alert button {
    background-color: #fff !important;
    color: var(--e-global-color-99ab139) !important;
    border: 1px solid var(--e-global-color-99ab139) !important;
    padding: 6px 12px !important;
    cursor: pointer;
    font-family: var(--e-global-typography-b2181b4-font-family) !important;
    font-size: var(--e-global-typography-b2181b4-font-size) !important;
    font-weight: var(--e-global-typography-b2181b4-font-weight) !important;
    border-radius: 25px !important;
}

.woocommerce-info.qr-scanner-alert button:hover {
    opacity: 1 !important;
}

@media only screen and (max-width: 600px) {
    .custom-shop-page-section {
        padding: 10px !important;
    }
}

.with-table-number,
.with-table-number.tablenumber {
    display: flex;
}

.with-table-number {
    visibility: hidden;
}

#footerOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    flex-direction: column;
    justify-content: flex-end;
}

/*popup alert css*/
.reva-notification .reva-notification-header,
.reva-notification .popup-alert-content {
    text-align: left;
    margin-bottom: 10px;
}

.reva-notification.outlet-closed {
    padding-left: 60px;
}

.reva-notification .elementor-button {
    background-color: var(--e-global-color-e730c73);
    fill: var(--e-global-color-0221b4f);
    color: var(--e-global-color-0221b4f);
}

.reva-notification .elementor-button:focus, .reva-notification .elementor-button:hover {
    background-color: var(--e-global-color-4f42bde);
    color: var(--e-global-color-4393f3e) !important;
}

.reva-notification .elementor-button:visited {
    color: var(--e-global-color-0221b4f);
}

@media only screen and (min-width: 600px) {
    .reva-notification .popup-alert-content {
        padding: 20px 0;
    }
}

.popup-scanner-title-header {
    display: flex;
    vertical-align: middle;
}

.popup-scanner-title-header.svg-clock {
    margin-right: 10px;
}

.reva-notification .popup-alert-content .elementor-size-sm {
    border-radius: 20px;
}
