.disabled-input {
    background-color: lightgray !important;
}

.customer-data-popup {
    background-color: var(--main_color);
    color: #fff;
    text-align: center;
    padding: 10px;
    cursor: pointer;
}

.collect-customer-info .modal-content {
    border-radius: 15px;
    padding: 18px 10px 0;
}

.collect-customer-info .modal-head {
    /*padding: 15px;*/
    text-align: end;
}

.collect-customer-info .close-modal {
    cursor: pointer;
    padding: 15px;

}

.collect-customer-info .modal-content .title {
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.confirm-collect-customer-info {
    height: 50px !important;
}

.sx-13 {
    font-size: 13px !important;
}

.sx-14 {
    font-size: 14px !important;
}

.sx-15 {
    font-size: 15px !important;
}


.close-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
    border-radius: 50%;
    /*border: 1px solid #666;*/
    padding: 9.5px;
}

.item-count-control {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 12px 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    background-color: var(--main_color);
    /*    position: fixed;*/
    /*bottom: 25px;
    width: -webkit-calc(100% - 50px) !important;
    width: calc(100% - 50px) !important;
    max-width: 520px;*/
}

/*
html[lang=en] .item-count-control{
    left: 50%
}

html[lang=ar] .item-count-control {
    right: 50%
}

html[lang=en] .item-count-control {
    -webkit-transform: translateX(-50%) translateY(-70%);
    transform: translateX(-50%) translateY(-70%)
}

html[lang=ar] .item-count-control{
    -webkit-transform: translateX(50%) translateY(-70%);
    transform: translateX(50%) translateY(-70%)
}*/


/*html[lang=ar] .item-count-control{
    -webkit-transform: translateX(50%);
    transform: translateX(50%)
}*/

@media (max-width: 320px) {
    .item-count-control {
        font-size: 14px
    }

}

.item-count-control .hint {
    position: absolute;
    font-size: 11px;
    font-weight: 400
}

html[lang=en] .item-count-control .hint {
    right: 40px
}

html[lang=ar] .item-count-control .hint {
    left: 40px
}

@media (max-width: 320px) {
    .item-count-control .hint {
        font-size: 12px
    }

}

.item-fixed-bottom-part {
    position: fixed;
    bottom: 0;
    /*    left:50%;*/
    /*    right:50%;*/
    background-color: #fff;

    width: -webkit-calc(100% - 0px) !important;
    width: calc(100% - 0px) !important;
    max-width: 550px;

    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;

}

.product-order-box.complete-order {
    display: block !important;
}

.not-available .item-content,
.not-available {
    opacity: 0.5;
    /* Dim the entire content */
    pointer-events: none;
    /* Disable interaction */
}

.not-available .item-content img,
.not-available img {
    filter: grayscale(80%);
    /* Desaturate images */
    opacity: 0.5;
    /* Dim the images */
}

.not-available .item-content h5,
.not-available .item-content p,
.not-available .item-content input,
.not-available h5,
.not-available p,
.not-available input {
    color: #999;
    /* Mute the text color */
}

.not-available .item-content input,
.not-available .item-content input {
    background-color: #f5f5f5;
    /* Lighten the input background */
    pointer-events: none;
    /* Disable input fields */
}

.forced-alert-danger {
    background-color: rgba(217, 47, 32, .1) !important;
    opacity: 1 !important;
}

.forced-text-danger {
    color: #ed0000 !important;
    opacity: 1 !important;
}

.branch-box .ordering-not-available {
    font-size: 12px;
}

.payment-methods {
    padding-top: 5px;
}

.item-details .info {
    width: auto !important;
}

.item-details .info .option {
    margin-bottom: 0 !important;
    ;
}

.first-order-discount-alert {
    border-radius: 10px;
    color: #FE6301;
    background-color: #FFEDDA;
    padding: 10px;
    font-weight: bold;
    margin: 0 auto 15px;
}

.first-order-discount-alert .thumbnail {
    width: 36px;
    padding-top: 10px;
}

.first-order-discount-alert .thumbnail img {
    width: 36px;
}

.first-order-discount-alert .desc {
    font-size: 16px;
    font-weight: 500;
}

.optional-label {
    font-size: .8rem;
}

.order-item-prices {
    height: 29px;
    margin-top: -15px;
}

.order-item-prices .no-discount {
    color: #000;
}


/*payment failed page*/
.payment-failed-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.payment-failed-page .error-icon {
    width: 100px;
    height: 100px;
    border: 2px solid #dc3545;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.payment-failed-page .error-icon svg {
    color: #dc3545;
    font-size: 60px;
}

.payment-failed-page .error-text {
    /*font-weight: 600;*/
    color: #dc3545;
    display: block;
}


/*checkout items component*/
.order-note-input {
    height: auto !important;
}

.cartQtyPlusBtn {
    background-color: #098468;
    border: none !important;
    color: #fff !important;
}


/* order info page */
.order-summary .badge {
    padding: 8px 15px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

.payment-method-button {
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Adjust intensity */
}

.payment-method-button .inner {
    height: 50px;

}

.payment-method-button .inner .label {
    padding: 12px 24px;
}

.payment-method-button .inner .icon {
    padding: 0 24px;
    margin-top: 3px;
}

.payment-method-button .inner .icon.multiple {
    margin-top: 13px;
}

.order-tracking .product-order-box:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-tracking .product-order-box:not(:last-child) {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.order-status-badge {
    background-color: #FFE8D2;
}

.badge-paid {
    background-color: #098468;
    color: #fff;
}

.badge-unpaid {
    background-color: #FD850D;
    color: #fff;
}


.order-tracking .product-order-box .info {
    width: 100%;
}

/* contact info page */
.contact-info .form-group {
    margin-bottom: 12px;
}

.btn-dark {
    background-color: #000;
}

/* Order timing (scheduled pickup/delivery) UI */
.order-timing-ui .order-timing-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.order-timing-options {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.order-timing-options .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
}

.order-timing-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s, background-color 0.2s;
}

.order-timing-option-unselected:hover {
    border-color: #adb5bd;
}

.order-timing-options .order-timing-option {
    min-height: 44px;
    height: 100%;
    box-sizing: border-box;
}

.order-timing-option-selected,
.order-timing-option-now:has(input:checked),
.order-timing-option-later:has(input:checked) {
    border-color: var(--main_color, #38b097);
    background-color: rgba(56, 176, 151, 0.08);
}

@supports (background-color: color-mix(in srgb, red 12%, transparent)) {

    .order-timing-option-selected,
    .order-timing-option-now:has(input:checked),
    .order-timing-option-later:has(input:checked) {
        background-color: color-mix(in srgb, var(--main_color, #38b097) 12%, transparent);
    }
}

.order-timing-option-now:has(input:checked) .order-timing-option-icon-now {
    border-color: var(--main_color, #38b097);
    color: var(--main_color, #38b097);
}

.order-timing-option-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--main_color, #38b097);
    color: #fff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.order-timing-option-selected .order-timing-option-check,
.order-timing-option-later:has(input:checked) .order-timing-option-check {
    opacity: 1;
}

html[lang="ar"] .order-timing-option-check {
    right: auto;
    left: 4px;
}

.order-timing-option-icon-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    line-height: 1;
    border: 1px solid #adb5bd;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 600;
    color: #6c757d;
}

.order-timing-option-icon-calendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.15rem;
    color: var(--main_color, #38b097);
}

.order-timing-option-selected .order-timing-option-icon-calendar,
.order-timing-option-later:has(input:checked) .order-timing-option-icon-calendar {
    color: var(--main_color, #38b097);
}

.order-timing-option-label {
    font-weight: 600;
    color: #212529;
    font-size: 0.85rem;
    text-align: start;
}

.order-timing-estimate {
    font-size: 0.75rem;
    padding-left: 2px;
    margin-top: 4px;
}

.order-timing-label {
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
    display: block;
}

.order-timing-label.required::after {
    content: " *";
    color: #dc3545;
}

.order-timing-date-row {
    margin-bottom: 4px;
    gap: 10px;
}

.order-timing-date-btn {
    flex: 1;
    min-width: 0;
    max-width: calc(20% - 8px);
    padding: 10px 8px;
    margin-right: 0;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background-color 0.2s;
}

.order-timing-date-btn:hover {
    border-color: #adb5bd;
}

.order-timing-date-btn.selected {
    border-color: var(--main_color, #38b097);
    background-color: rgba(56, 176, 151, 0.08);
}

@supports (background-color: color-mix(in srgb, red 12%, transparent)) {
    .order-timing-date-btn.selected {
        background-color: color-mix(in srgb, var(--main_color, #38b097) 12%, transparent);
    }
}

.order-timing-date-btn .day-short {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.order-timing-date-btn .date-num {
    font-weight: 700;
    color: #212529;
    font-size: 0.95rem;
}

.order-timing-time-wrap {
    position: relative;
}

.order-timing-time-select {
    width: 100%;
    min-height: 48px;
    padding: 12px 44px 12px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    appearance: none;
    background: #fff;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    overflow: visible;
}

.order-timing-time-select option {
    padding: 8px;
}

.order-timing-time-arrow {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #212529;
    font-size: 12px;
}

.order-timing-confirm-btn {
    border-radius: 10px;
    font-weight: 600;
    background-color: var(--main_color) !important;
    border-color: var(--main_color) !important;
    color: #fff !important;
}

.order-timing-confirm-btn:hover {
    opacity: 0.9;
    color: #fff !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Menu Header UI Enhancements – header border uses main theme color */
.digital-menu-head {
    border-bottom: 2px solid var(--main_color);
}

.home .head {
    border-bottom: none;
}

.new-order-type-toggle {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.new-order-type-btn {
    flex: 1;
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background-color: #fff;
    color: #212529;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.new-order-type-btn img {
    width: 24px;
    height: 24px;
}

.new-order-type-btn.active {
    border-color: #81ce9f;
    background-color: #e0f7eb;
}

.new-order-type-btn.active .check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1e7a4c;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    margin-left: auto;
}

html[lang="ar"] .new-order-type-btn.active .check-icon {
    margin-left: 0;
    margin-right: auto;
}

.new-order-type-btn:not(.active) .check-icon {
    display: none;
}

.new-order-details-box {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background-color: #f8fafb;
    overflow: hidden;
    padding: 0;
}

.new-order-details-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s;
}

.new-order-details-row:not(:last-child) {
    border-bottom: 1px solid #dee2e6;
}

.new-order-details-row:hover {
    background-color: #e9ecef;
    color: inherit;
}

.new-order-details-row--readonly {
    cursor: default;
    pointer-events: none;
}

.new-order-details-row--readonly:hover {
    background-color: transparent;
}

.new-order-details-icon {
    font-size: 20px;
    color: #6c757d;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

html[lang="ar"] .new-order-details-icon {
    margin-right: 0;
    margin-left: 15px;
}

.new-order-details-content {
    flex: 1;
}

.new-order-details-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 2px;
    text-transform: none;
}

.new-order-details-value {
    font-weight: 500;
    font-size: 0.9rem;
    color: #495057;
}

.new-order-details-edit {
    font-size: 14px;
    color: #6c757d;
    flex-shrink: 0;
}

/* =============================================
   PWA Install Button & Overlays
   ============================================= */

/* Floating Install Button */
.pwa-install-btn {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--main_color);
    color: #fff;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    animation: pwa-slide-up 0.4s ease;
    font-family: inherit;
}

html[dir="rtl"] .pwa-install-btn {
    right: auto;
    left: 16px;
}

.pwa-install-icon { font-size: 16px; }
.pwa-install-text { white-space: nowrap; }

.pwa-install-dismiss {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1;
    padding: 0 0 0 8px;
    cursor: pointer;
    margin-left: 4px;
}

html[dir="rtl"] .pwa-install-dismiss {
    padding: 0 8px 0 0;
    margin-left: 0;
    margin-right: 4px;
}

.pwa-install-dismiss:hover { color: #fff; }

/* Overlay Backdrop */
.pwa-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1060;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pwa-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Tooltip Card */
.pwa-tooltip,
.pwa-instruction-card {
    position: relative;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 24px 20px 32px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* Top-positioned tooltip (iOS Chrome) */
.pwa-tooltip-top {
    position: relative;
    border-radius: 0 0 16px 16px;
    margin-top: 0;
}

.pwa-overlay:has(.pwa-tooltip-top) {
    align-items: flex-start;
}

.pwa-tooltip-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

html[dir="rtl"] .pwa-tooltip-close {
    right: auto;
    left: 16px;
}

.pwa-tooltip-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-right: 32px;
}

html[dir="rtl"] .pwa-tooltip-title {
    padding-right: 0;
    padding-left: 32px;
}

.pwa-tooltip-steps p {
    font-size: 15px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.5;
}

.pwa-tooltip-steps p:last-child { margin-bottom: 0; }

/* Arrow - pointing down (Safari share button at bottom) */
.pwa-arrow-bottom {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #fff;
}

/* Arrow - pointing up (Chrome menu at top) */
.pwa-arrow-top {
    position: absolute;
    top: -10px;
    right: 24px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #fff;
}

html[dir="rtl"] .pwa-arrow-top {
    right: auto;
    left: 24px;
}

/* Toast Notification */
.pwa-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1070;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2e7d32;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: pwa-slide-up 0.3s ease;
    white-space: nowrap;
}

/* Animations */
@keyframes pwa-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.pwa-toast {
    animation: pwa-toast-in 0.3s ease;
}

@keyframes pwa-toast-in {
    from { opacity: 0; transform: translateX(-50%) translateY(16px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
