.online-order-fab {
    position: fixed;
    right: 1rem;
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 46;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    background: var(--primary-color, #111827);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.online-order-fab:hover { opacity: 0.95; color: #fff; }
.online-order-fab__badge {
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background: #fff;
    color: #111827;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.product-add-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,0.95);
    color: #111827;
    border: 1px solid rgba(0,0,0,0.08);
}
.product-add-cart-btn:hover { background: #fff; }
.qrmenu-product-open { cursor: pointer; }
#modalAddToCartBtn,
.online-order-modal-cart-btn {
    background: #059669 !important;
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
#modalAddToCartBtn:hover,
.online-order-modal-cart-btn:hover {
    background: #047857 !important;
    color: #ffffff !important;
}
#modalAddToCartBtn:disabled,
.online-order-modal-cart-btn:disabled {
    background: #9ca3af !important;
    cursor: not-allowed;
}
.online-order-modal-cart-btn.is-visible,
#modalAddToCartBtn.is-visible {
    display: inline-flex !important;
}
#modalFooterActions {
    display: flex;
    width: 100%;
}

body.online-order-drawer-open { overflow: hidden; }

.online-order-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
}
.online-order-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}
.online-order-drawer__panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(100%, 24rem);
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    outline: none;
}
.online-order-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #f1f5f9;
}
.online-order-drawer__head h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.online-order-drawer__close {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    cursor: pointer;
}
.online-order-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
}
.online-order-drawer__empty {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    padding: 2rem 0.5rem;
}
.online-order-drawer__lines {
    list-style: none;
    margin: 0;
    padding: 0;
}
.online-order-drawer__title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.online-order-drawer__head-text {
    min-width: 0;
}

.oo-cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.oo-cart-list__item {
    border-bottom: 1px solid #f1f5f9;
}
.oo-cart-list__item:last-child {
    border-bottom: none;
}

.oo-cart-line {
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 0.35rem;
}
.oo-cart-line__media {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}
.oo-cart-line__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.oo-cart-line__main {
    min-width: 0;
}
.oo-cart-line__name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.oo-cart-line__meta {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}
.oo-cart-line__dot {
    opacity: 0.5;
}
.oo-cart-line__subtotal {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #059669;
}
.oo-cart-line__actions {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}
.oo-cart-line__qty-val {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #334155;
    min-width: 1.25rem;
    text-align: center;
}
.oo-cart-qty-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.oo-cart-qty-btn:hover {
    border-color: #059669;
    color: #047857;
    background: #ecfdf5;
}
.oo-cart-qty-btn--drawer {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.95rem;
}

.oo-cart-panel__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.45rem;
    border-radius: 9999px;
    background: #059669;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}
.oo-cart-panel__total {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.oo-cart-panel__foot {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.online-order-drawer__panel {
    background: #fafbfc;
}
.online-order-drawer__body {
    background: #fff;
}
.online-order-drawer__footer {
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}
.online-order-drawer__footer {
    border-top: 1px solid #f1f5f9;
    padding: 1rem 1.1rem 1.25rem;
    background: #fafafa;
}
.online-order-drawer__total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}
.online-order-drawer__checkout {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.online-order-drawer__checkout a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: var(--primary-color, #111827);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}
.online-order-drawer__continue {
    text-align: center;
    font-size: 0.8125rem;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.35rem;
}

.online-order-toast-root {
    position: fixed;
    bottom: 6.5rem;
    right: 1rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(20rem, calc(100vw - 2rem));
    pointer-events: none;
}
.online-order-toast {
    pointer-events: auto;
    background: #0f172a;
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.online-order-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.online-order-toast--success { border-left: 4px solid #10b981; }
.online-order-toast--error { border-left: 4px solid #ef4444; }

.online-order-drawer__desk {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0.2rem 0 0;
    font-weight: 500;
}

.oo-desk-banner {
    border-radius: 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.oo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}
.oo-btn--primary {
    background: #059669;
    color: #fff;
}
.oo-btn--primary:hover {
    background: #047857;
    color: #fff;
}
.oo-btn--primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}
.oo-btn--block {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
}
.oo-btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.oo-link-primary {
    color: #059669;
}
.oo-link-primary:hover {
    color: #047857;
}

.oo-pickup-code {
    color: #059669;
    font-size: 1.125rem;
    letter-spacing: 0.12em;
}

.oo-pay-option input[type="radio"] {
    accent-color: #059669;
}

.online-order-page .oo-qty-btn:hover {
    border-color: #059669;
    color: #059669;
}

.online-order-drawer__checkout a {
    background: #059669;
}
.online-order-drawer__checkout a:hover {
    background: #047857;
}

.online-order-fab {
    background: #059669;
}
.online-order-fab:hover {
    background: #047857;
}

.online-order-drawer__desk-actions {
    padding: 0.65rem 1.1rem 0;
}
.online-order-drawer__desk-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.65rem;
    border: 1px dashed #94a3b8;
    background: #f8fafc;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.online-order-drawer__desk-btn:hover {
    border-color: #059669;
    color: #047857;
    background: #ecfdf5;
}

body.online-order-desk-modal-open {
    overflow: hidden;
}
.online-order-desk-modal {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.online-order-desk-modal.hidden {
    display: none;
}
.online-order-desk-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
}
.online-order-desk-modal__panel {
    position: relative;
    width: min(100%, 22rem);
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.online-order-desk-modal__panel h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.online-order-desk-modal__hint {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    color: #64748b;
}
.online-order-desk-modal__select {
    width: 100%;
    border-radius: 0.65rem;
    border: 1px solid #cbd5e1;
    padding: 0.55rem 0.65rem;
    font-size: 0.875rem;
    margin-bottom: 0.85rem;
}
.online-order-desk-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.online-order-desk-modal__cancel {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0.35rem;
}

/* Sepet açıkken sağ alttaki «Yukarı» / WhatsApp kaydır butonları sepet FAB’ın üstünde */
body:has(#online-order-fab) #scrollToTop {
    bottom: calc(9rem + env(safe-area-inset-bottom, 0px)) !important;
}
body:has(#online-order-fab) a.scroll-side-whatsapp[href*="wa.me"] {
    bottom: calc(11rem + env(safe-area-inset-bottom, 0px)) !important;
}
body.ui-theme-modern:has(#online-order-fab) #scrollToTop {
    bottom: calc(9rem + env(safe-area-inset-bottom, 0px)) !important;
}
@media (max-width: 767px) {
    body.ui-theme-modern:has(#online-order-fab) #scrollToTop {
        bottom: calc(9rem + env(safe-area-inset-bottom, 0px)) !important;
    }
}
