/* =========================================================
   ORDER CONFIRMATION — full screen overlay
========================================================= */

.tezmenu-order-confirmation,
#tezmenu-order-confirmation {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: linear-gradient(180deg, #eafbf0 0px, #ffffff 320px) !important;
    flex-direction: column !important;
}

.tezmenu-oc-header,
#tezmenu-order-confirmation .tezmenu-oc-header {
    position: fixed !important;
    top: 12px !important;
    right: 16px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 999999 !important;
    margin: 0 !important;
    transform: none !important;
}

.tezmenu-oc-close {
    background: #fff !important;
    border: 1.5px solid #ddd !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
}

.tezmenu-oc-close svg {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}

.tezmenu-oc-body,
#tezmenu-order-confirmation .tezmenu-oc-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 46px 18px 40px !important;
    background: transparent !important;
}

/* SUCCESS MESSAGE */

.tezmenu-oc-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tezmenu-oc-success-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tezmenu-oc-success-icon svg {
    width: 72px;
    height: 72px;
    animation: tezmenu-oc-icon-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tezmenu-oc-check-path {
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
    animation: tezmenu-oc-check-draw 0.4s ease-out 0.25s forwards;
}

.tezmenu-oc-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #22c55e;
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
    opacity: 0;
    animation: tezmenu-oc-sparkle-pop 0.6s ease-out forwards;
}

.tezmenu-oc-sparkle-1 { top: -2px; left: 4px; width: 10px; height: 10px; animation-delay: 0.35s; }
.tezmenu-oc-sparkle-2 { top: 8px; right: -6px; width: 7px; height: 7px; animation-delay: 0.5s; }
.tezmenu-oc-sparkle-3 { bottom: 4px; left: -8px; width: 6px; height: 6px; animation-delay: 0.6s; }
.tezmenu-oc-sparkle-4 { bottom: -4px; right: 6px; width: 9px; height: 9px; animation-delay: 0.45s; }

@keyframes tezmenu-oc-sparkle-pop {
    0% { opacity: 0; transform: scale(0.2); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.85; transform: scale(1); }
}

@keyframes tezmenu-oc-icon-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes tezmenu-oc-check-draw {
    to { stroke-dashoffset: 0; }
}

.tezmenu-oc-success-text {
    font-size: 17px;
    font-weight: 800;
    color: #111;
}

.tezmenu-oc-success-subtext {
    font-size: 13px;
    color: #888;
    margin-top: -6px;
}

.tezmenu-oc-asap-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f8ee;
    color: #15803d;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 999px;
    margin-top: 2px;
}

.tezmenu-oc-asap-pill svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.tezmenu-oc-asap-dome {
    width: 18px !important;
    height: 18px !important;
    margin-left: 4px;
    opacity: 0.85;
}

/* STATUS TRACKER — intentionally hard-coded green, independent of the
   client's theme color, so it always reads as a clear "success/progress"
   signal regardless of what --tezmenu-primary is set to. */

.tezmenu-oc-tracker {
    display: flex;
    align-items: flex-start;
    padding: 0 6px;
    margin-bottom: 60px;
}

.tezmenu-oc-step {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
}

.tezmenu-oc-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5e7eb;
    border: 2.5px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    margin: 0 auto;
    color: #9ca3af;
    transition: all .25s ease;
}

.tezmenu-oc-dot-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: inherit;
}

.tezmenu-oc-step-label {
    position: absolute;
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-align: center;
    white-space: nowrap;
    transition: color .25s ease;
}

.tezmenu-oc-step-sublabel {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
    transition: color .25s ease;
}

.tezmenu-oc-line {
    flex: 1 1 auto;
    height: 3px;
    background: #e5e7eb;
    margin-top: 17px;
    transition: background .25s ease;
}

/* completed step (past) */
.tezmenu-oc-step.tezmenu-oc-done .tezmenu-oc-dot {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.tezmenu-oc-step.tezmenu-oc-done .tezmenu-oc-step-label {
    color: #111;
}

.tezmenu-oc-step.tezmenu-oc-done .tezmenu-oc-step-sublabel {
    color: #15803d;
}

/* active (current) step */
.tezmenu-oc-step.tezmenu-oc-active .tezmenu-oc-dot {
    background: #fff;
    border-color: #15803d;
    color: #15803d;
    animation: tezmenu-oc-pulse 1.6s ease-out infinite;
}

@keyframes tezmenu-oc-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(21,128,61,0.45);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(21,128,61,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(21,128,61,0);
    }
}

.tezmenu-oc-step.tezmenu-oc-active .tezmenu-oc-step-label {
    color: #15803d;
}

.tezmenu-oc-step.tezmenu-oc-active .tezmenu-oc-step-sublabel {
    color: #15803d;
}

.tezmenu-oc-line.tezmenu-oc-line-done {
    background: #15803d;
}

/* TERMINAL STATE (rejected / cancelled) */

.tezmenu-oc-terminal-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

/* REWARD CARD (order confirmation — "Your Next Order Reward") */

.tezmenu-oc-reward {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #fdf6e0, #fbecc0);
    border: 1px solid #f0dfa0;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
    overflow: hidden;
}

.tezmenu-oc-reward-media {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.tezmenu-oc-reward-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    background: #fff;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.tezmenu-oc-reward-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a97a00;
}

.tezmenu-oc-reward-icon svg { width: 24px; height: 24px; }

.tezmenu-oc-reward-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.tezmenu-oc-reward-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: #a97a00;
}

.tezmenu-oc-reward-label svg { flex-shrink: 0; }

.tezmenu-oc-reward-title {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.25;
}

.tezmenu-oc-reward-subtitle {
    margin-top: 3px;
    font-size: 12px;
    color: #8a7a4f;
    font-weight: 500;
}

.tezmenu-oc-reward-gift-bg {
    position: absolute;
    right: -10px;
    bottom: -14px;
    width: 84px;
    height: 84px;
    color: rgba(255,255,255,0.55);
    z-index: 0;
    pointer-events: none;
}

.tezmenu-oc-reward-gift-bg svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }

.tezmenu-oc-reward-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #e0b23c;
    clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
    opacity: .7;
    z-index: 1;
}

.tezmenu-oc-reward-sparkle-1 { top: 10px; left: 8px; width: 8px; height: 8px; }
.tezmenu-oc-reward-sparkle-2 { bottom: 12px; left: 22px; width: 5px; height: 5px; }

/* ORDER INFO / ITEMS CARDS */

.tezmenu-oc-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.tezmenu-oc-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.tezmenu-oc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    padding: 6px 0;
}

.tezmenu-oc-row-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tezmenu-oc-row-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    background: #e8f8ee;
    color: #1b7a34;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tezmenu-oc-row-icon svg {
    width: 15px;
    height: 15px;
}

.tezmenu-oc-row strong {
    color: #111;
    font-weight: 700;
}

.tezmenu-oc-item-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    font-size: 13.5px;
    color: #333;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e5e5;
}

.tezmenu-oc-item-line:last-child {
    border-bottom: none;
}

.tezmenu-oc-item-name {
    font-weight: 600;
}

.tezmenu-oc-item-variant {
    display: block;
    font-size: 12px;
    color: #888;
    font-weight: 400;
}

.tezmenu-oc-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.tezmenu-oc-total-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tezmenu-oc-total-info-btn {
    background: none !important;
    border: none !important;
    color: #aaa !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    line-height: 0 !important;
}

.tezmenu-oc-total-info-btn:active {
    color: var(--tezmenu-primary, #2E7D32) !important;
}

.tezmenu-oc-total-info-btn svg {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    min-height: 17px !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
}

/* ===== PRICE BREAKDOWN MODAL ===== */

.tezmenu-oc-breakdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(15,23,42,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.tezmenu-oc-breakdown-box {
    background: #fff;
    border-radius: 20px;
    padding: 26px 24px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 20px 50px rgba(15,23,42,.25);
    position: relative;
}

.tezmenu-oc-breakdown-close {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    background: none !important;
    border: none !important;
    font-size: 22px !important;
    line-height: 1 !important;
    color: #aaa !important;
    cursor: pointer !important;
    padding: 4px !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
}

.tezmenu-oc-breakdown-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    text-align: center;
    margin-bottom: 18px;
}

.tezmenu-oc-breakdown-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tezmenu-oc-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
}

.tezmenu-oc-breakdown-row span:last-child {
    font-weight: 700;
}

.tezmenu-oc-breakdown-discount span:last-child {
    color: #dc2626;
}

.tezmenu-oc-breakdown-total {
    border-top: 1px dashed #e5e5e5;
    padding-top: 12px;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 800;
    color: #111;
}

.tezmenu-oc-breakdown-total span:last-child {
    color: #15803d;
    font-size: 18px;
}

/* =========================================================
   STICKY "MY ORDERS" BUTTON
========================================================= */

.tezmenu-my-orders-btn {
    position: fixed !important;
    right: 16px !important;
    left: auto !important;
    bottom: 90px !important;
    z-index: 99998;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, color-mix(in srgb, var(--tezmenu-primary) 85%, white), var(--tezmenu-primary));
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(0,0,0,.3), 0 0 0 4px rgba(255,255,255,.9);
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    margin: 0;
    transition: transform .15s ease;
    border-radius: 50px !important;
}

.tezmenu-my-orders-btn:active {
    transform: scale(0.92);
}

.tezmenu-my-orders-btn::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--tezmenu-primary);
    opacity: 0;
    animation: tezmenu-fab-ring 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes tezmenu-fab-ring {
    0% { transform: scale(1); opacity: .55; }
    100% { transform: scale(1.35); opacity: 0; }
}

.tezmenu-my-orders-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
}

/* =========================================================
   PLACING ORDER — LOADING OVERLAY
========================================================= */

.tezmenu-order-loading {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(255,255,255,.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.tezmenu-order-loading-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 4px solid #e5e7eb;
    border-top-color: var(--tezmenu-primary);
    animation: tezmenu-oc-spin .8s linear infinite;
}

@keyframes tezmenu-oc-spin {
    to { transform: rotate(360deg); }
}

.tezmenu-order-loading-text {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

/* =========================================================
   SECURE NOTE (below Place Order button)
========================================================= */

.tezmenu-secure-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    font-weight: 500;
}

/* =========================================================
   YOUR RECENT ORDERS (Order Summary screen)
========================================================= */

.tezmenu-recent-orders {
    margin-top: 20px;
}

.tezmenu-ro-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.tezmenu-ro-heading svg {
    width: 17px;
    height: 17px;
    color: var(--tezmenu-primary);
    flex-shrink: 0;
}

.tezmenu-ro-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #eee;
    border-left: 4px solid var(--tezmenu-primary);
    border-radius: 10px;
    margin-top: 10px;
}

.tezmenu-ro-row:first-child {
    margin-top: 0;
}

.tezmenu-ro-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tezmenu-ro-code {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.tezmenu-ro-time {
    font-size: 11.5px;
    color: #888;
}

.tezmenu-ro-status {
    display: inline-block;
    width: fit-content;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-top: 2px;
}

.tezmenu-ro-status.tezmenu-status-pending {
    background: #fef9c3;
    color: #92720b;
}

.tezmenu-ro-status.tezmenu-status-preparing {
    background: #dbeafe;
    color: #1d4ed8;
}

.tezmenu-ro-status.tezmenu-status-completed {
    background: #dcfce7;
    color: #15803d;
}

.tezmenu-ro-status.tezmenu-status-rejected,
.tezmenu-ro-status.tezmenu-status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.tezmenu-ro-view-btn {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tezmenu-primary, #2E7D32) 82%, white), var(--tezmenu-primary, #2E7D32)) !important;
    border: none !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    white-space: nowrap !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18) !important;
}

.tezmenu-ro-view-btn:active {
    transform: scale(0.96) !important;
}

.tezmenu-ro-view-btn svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0 !important;
}

/* =========================================================
   CONFETTI (order-placed celebration)
========================================================= */

.tezmenu-confetti-canvas {
    position: fixed;
    inset: 0;
    z-index: 9999999999;
    pointer-events: none;
}