/**
 * User Dashboard Styles
 */

:root {
    --ud-font-family-main: "Manrope", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ud-text-display: 2rem;
    --ud-text-h1: 1.375rem;
    --ud-text-h2: 1.125rem;
    --ud-text-body: 0.9375rem;
    --ud-text-base: 0.875rem;
    --ud-text-support: 0.75rem;
    --ud-text-micro: 0.6875rem;
    --ud-lh-tight: 1.2;
    --ud-lh-copy: 1.45;
    --ud-track-tight: -0.01em;
    --ud-track-wide: 0.02em;
}

.user-dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 14px 30px;
    font-family: var(--ud-font-family-main);
    color: #1f2937;
}

.dashboard-mobile-menu {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: -18px -14px 20px;
    padding: 12px 12px 10px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.dashboard-mobile-title {
    font-size: 1.15rem;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
    margin: 0 0 10px;
}

.dashboard-mobile-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 42px;
    gap: 7px;
    align-items: stretch;
}

.dashboard-tab {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-tab:hover {
    color: #0f172a;
    background: #eef6ff;
    border-color: #bfdbfe;
}

.dashboard-tab.active {
    color: #fff;
    background: #0f4c81;
    border-color: #0f4c81;
    box-shadow: 0 6px 14px rgba(15, 76, 129, 0.22);
}

.dashboard-account-menu {
    position: relative;
}

.dashboard-account-menu summary {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #dbe3ee;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    font-size: 1rem;
    font-weight: 800;
}

.dashboard-account-menu summary::-webkit-details-marker {
    display: none;
}

.dashboard-account-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(240px, 80vw);
    padding: 8px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.dashboard-account-name,
.dashboard-account-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.86rem;
    line-height: 1.25;
}

.dashboard-account-name {
    color: #111827;
    font-weight: 800;
    background: #f8fafc;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-account-panel a {
    margin-top: 4px;
    color: #b91c1c;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-account-panel a:hover {
    background: #fef2f2;
}

.com-google-signin-shortcode,
.com-google-signin-user,
.com-google-signin-missing {
    display: inline-flex;
    align-items: center;
}

.com-google-signin-user,
.com-google-signin-missing {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 700;
}

.com-my-order-shortcode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 8px;
    background: #0f4c81;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.15;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 76, 129, 0.22);
}

.com-my-order-shortcode-btn:hover {
    color: #fff;
    background: #0b3d68;
}

.com-my-order-shortcode-btn.is-hidden {
    display: none;
}

.com-my-order-shortcode-btn.is-alerting {
    animation: comMyOrderShortcodeBlink 0.9s ease-in-out infinite;
}

@keyframes comMyOrderShortcodeBlink {
    0%, 100% {
        filter: brightness(1);
        transform: translateY(0) scale(1);
    }
    50% {
        filter: brightness(1.25);
        transform: translateY(-1px) scale(1.03);
    }
}

.dashboard-more-row {
    display: flex;
    justify-content: center;
    margin: 14px 0 4px;
}

.dashboard-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f4c81;
    font-size: 0.8125rem;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-more-link:hover {
    background: #f0f7ff;
    border-color: #93c5fd;
    color: #0f172a;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.dashboard-header h1 {
    margin: 0;
    font-size: var(--ud-text-display);
    line-height: 1.15;
    letter-spacing: var(--ud-track-tight);
    font-weight: 750;
    color: #333;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: var(--ud-text-base);
    line-height: var(--ud-lh-copy);
    color: #666;
}

.logout-link {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.logout-link:hover {
    color: #b71c1c;
}

/* Navigation */
.dashboard-navigation {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.nav-link {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    background: #f5f5f5;
    font-size: var(--ud-text-base);
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #e0e0e0;
    color: #333;
}

.nav-link.active {
    background: #2196f3;
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: var(--ud-text-h1);
    line-height: var(--ud-lh-tight);
    letter-spacing: var(--ud-track-tight);
    color: #333;
    margin: 0 0 10px 0;
}

.empty-state p {
    font-size: var(--ud-text-body);
    line-height: var(--ud-lh-copy);
    color: #666;
    margin: 0 0 30px 0;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #2196f3;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: var(--ud-text-base);
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1976d2;
}

/* Orders List */
.orders-list,
.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card,
.reservation-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.order-card:hover,
.reservation-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.order-header,
.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.order-number,
.reservation-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-number strong,
.reservation-info strong {
    font-size: var(--ud-text-h2);
    line-height: var(--ud-lh-tight);
    letter-spacing: var(--ud-track-tight);
    color: #333;
}

.order-date,
.reservation-date-time {
    font-size: var(--ud-text-base);
    line-height: var(--ud-lh-copy);
    color: #666;
}

/* Status Badges */
.order-status,
.reservation-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-processing {
    background: #cfe2ff;
    color: #084298;
}

.status-confirmed {
    background: #d1e7dd;
    color: #0f5132;
}

.status-completed {
    background: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background: #f8d7da;
    color: #842029;
}

.status-default {
    background: #e0e0e0;
    color: #666;
}

/* Order Details */
.order-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-items ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.order-items li {
    padding: 6px 0;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.com-item-feedback-chip {
    width: 100%;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.3;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 6px 9px;
}

.item-qty {
    color: #999;
}

.order-meta {
    display: flex;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.meta-item {
    display: flex;
    gap: 8px;
}

.meta-item-payment {
    align-items: center;
    flex-wrap: wrap;
}

.meta-item-feedback {
    flex: 1 1 100%;
}

.com-payment-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.com-payment-method-text {
    color: #6b7280;
    font-size: 12px;
}

.com-live-countdown {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
}

.meta-item-estimate {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "main"
        "detail";
    gap: 4px;
    padding: 10px 12px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
}

.meta-item-estimate.has-countdown {
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "main rem"
        "detail rem";
    column-gap: 10px;
    align-items: center;
}

.com-estimate-main {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    grid-area: main;
}

.com-estimate-main .meta-label {
    white-space: nowrap;
}

.com-estimate-total {
    color: #0f4c81;
    font-weight: 700;
    font-size: 14px;
}

.com-estimate-detail {
    color: #6b7280;
    font-size: 12px;
    grid-area: detail;
}

.com-estimate-remaining-wrap {
    grid-area: rem;
    justify-self: end;
    align-self: center;
}

.meta-item-estimate .com-live-countdown {
    padding: 4px 10px;
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1e40af;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.com-payment-unpaid {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fdba74;
}

.com-payment-paid {
    background: #ecfdf5;
    color: #065f46;
    border-color: #6ee7b7;
}

.com-payment-failed {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fca5a5;
}

.com-payment-refunded {
    background: #f5f3ff;
    color: #5b21b6;
    border-color: #c4b5fd;
}

.meta-label {
    color: #666;
    font-weight: 500;
}

.meta-value {
    color: #333;
}

.total-amount {
    font-weight: 700;
    color: #2196f3;
    font-size: 16px;
}

.com-order-feedback {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.com-order-feedback-title {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.com-order-feedback-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.com-order-feedback-entry {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 8px 10px;
}

.com-order-feedback-time {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
}

.com-order-feedback-body {
    font-size: 12px;
    color: #1f2937;
    line-height: 1.4;
}

.com-order-feedback-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.com-order-feedback-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.2s ease;
}

.com-order-feedback-chip:hover {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.com-order-feedback-chip.active {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1e3a8a;
    font-weight: 600;
}

.com-order-feedback-text {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    resize: vertical;
    min-height: 56px;
    box-sizing: border-box;
    font-size: 13px;
    margin-bottom: 8px;
}

.com-order-feedback-text:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.com-order-feedback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: #1d4ed8;
    color: #fff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.com-order-feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reservation Details */
.reservation-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    gap: 10px;
}

.detail-label {
    color: #666;
    font-weight: 500;
    min-width: 150px;
}

.detail-value {
    color: #333;
}

.pending-notice {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.notice-icon {
    font-size: 18px;
}

.notice-text {
    font-size: 14px;
    color: #856404;
    line-height: 1.5;
}

.past-reservation {
    opacity: 0.7;
}

/* Login Required */
.user-dashboard-login-required {
    max-width: 500px;
    margin: 60px auto;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.login-box h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.login-box p {
    margin: 0 0 30px 0;
    color: #666;
}

.login-box .g_id_signin {
    display: inline-block;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-header h1 {
        font-size: 24px;
    }
    
    .dashboard-navigation {
        flex-direction: column;
    }
    
    .nav-link {
        text-align: center;
    }
    
    .order-header,
    .reservation-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .order-meta {
        flex-direction: column;
        gap: 12px;
    }

    .meta-item-payment {
        align-items: flex-start;
    }

    .meta-item-estimate {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "detail";
        row-gap: 4px;
        column-gap: 0;
        align-items: start;
    }

    .meta-item-estimate.has-countdown {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "main rem"
            "detail detail";
        column-gap: 10px;
        align-items: start;
    }

    .meta-item-estimate .com-live-countdown {
        grid-area: rem;
        justify-self: end;
        min-width: 0;
        width: fit-content;
        text-align: center;
        padding: 2px 8px;
        font-size: 10px;
        line-height: 1.2;
    }
}

/* Dashboard Notifications */
.dashboard-notification {
    position: fixed;
    top: 20px;
    right: -400px;
    max-width: 350px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    transition: right 0.3s ease;
    font-size: 14px;
    border-left: 4px solid #2196f3;
}

.dashboard-notification.show {
    right: 20px;
}

.dashboard-notification.success {
    border-left-color: #4caf50;
}

.dashboard-notification.error {
    border-left-color: #f44336;
}

.dashboard-notification.warning {
    border-left-color: #ff9800;
}

/* Pagination */
.dashboard-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.pagination-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.pagination-btn.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
    font-weight: 600;
    pointer-events: none;
}

.pagination-dots {
    padding: 8px 4px;
    color: #999;
}

/* ── Method badge ───────────────────────────────────────────────── */
.com-method-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f0f4ff;
    color: #3730a3;
    border-radius: 20px;
    padding: 2px 10px;
    margin: 0 8px;
    vertical-align: middle;
}

/* ── Order progress bar ─────────────────────────────────────────── */
.com-progress-bar {
    display: flex;
    align-items: flex-start;
    padding: 14px 8px 8px;
    gap: 0;
    overflow-x: auto;
}
.com-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 60px;
}
.com-step-dot,
.mo-step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d1d5db;
    border: 2px solid #d1d5db;
    transition: background 0.3s, border-color 0.3s;
    display: block;
}
.com-progress-step.done .com-step-dot,
.com-progress-step.done .mo-step-dot {
    background: #22c55e;
    border-color: #22c55e;
}
.com-progress-step.active .com-step-dot,
.com-progress-step.active .mo-step-dot {
    background: #f59e0b;
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245,158,11,.25);
}
.com-step-label {
    font-size: 0.72rem;
    line-height: 1.2;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
}
.com-progress-step.done .com-step-label,
.com-progress-step.active .com-step-label {
    color: #374151;
    font-weight: 600;
}
.com-progress-line {
    flex: 1;
    height: 2px;
    background: #d1d5db;
    margin-top: 7px;
    min-width: 18px;
    transition: background 0.3s;
}
.com-progress-line.done {
    background: #22c55e;
}


/* Mobile Orders Redesign */
.mo-order-card {
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mo-order-card.mo-order-card--updated {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
    animation: moOrderUpdatedPulse 1.1s ease-in-out 3;
}

.mo-order-card.mo-order-card--updated .mo-details-summary {
    background: #eff6ff;
}

@keyframes moOrderUpdatedPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.0);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.35);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.0);
    }
}

.mo-review-awaiting-note {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: var(--ud-text-support);
    line-height: var(--ud-lh-copy);
    font-weight: 600;
}

.mo-order-sensitive-surface {
    position: relative;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.mo-order-sensitive-surface.is-gated {
    filter: blur(5px) saturate(0.75);
    opacity: 0.52;
    pointer-events: none;
    user-select: none;
    transform: translateZ(0);
}

.mo-top-line,
.mo-status-line,
.mo-method-line {
    margin-bottom: 5px;
}

.mo-top-line {
    font-size: var(--ud-text-base);
    line-height: var(--ud-lh-copy);
    font-weight: 500;
    color: #334155;
}

.mo-status-line {
    font-size: var(--ud-text-base);
    line-height: var(--ud-lh-copy);
}

.mo-text-primary {
    font-weight: 700;
    color: #000;
}

.mo-text-secondary {
    font-weight: 600;
    color: #555;
}

.mo-status-line {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
}

.mo-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: var(--ud-text-base);
    line-height: 1;
    letter-spacing: var(--ud-track-tight);
    font-weight: 700;
}

.mo-payment-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    gap: 2px;
}

.mo-payment-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: var(--ud-text-base);
    line-height: 1;
    letter-spacing: var(--ud-track-tight);
    border: 1px solid currentColor;
    background: #ffffff;
    font-weight: 700;
}

.mo-payment-badge.com-payment-unpaid {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fdba74;
}

.mo-payment-badge.com-payment-paid {
    background: #ecfdf5;
    color: #065f46;
    border-color: #6ee7b7;
}

.mo-payment-badge.com-payment-failed {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fca5a5;
}

.mo-payment-badge.com-payment-refunded {
    background: #f5f3ff;
    color: #5b21b6;
    border-color: #c4b5fd;
}

.mo-method-line {
    font-size: var(--ud-text-support);
    line-height: var(--ud-lh-copy);
    color: #64748b;
    margin: 0;
    font-weight: 600;
}

.mo-and-text {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 30px;
    line-height: 1;
    font-size: var(--ud-text-support);
    font-weight: 600;
    margin: 0 2px;
    color: #666;
}

.mo-separator {
    height: 1px;
    background: #eaeaea;
    margin: 15px 0;
}

.mo-est-time-box {
    margin-bottom: 12px;
    font-size: var(--ud-text-base);
    line-height: var(--ud-lh-copy);
    font-weight: 600;
    color: #0f4c81;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
}

.mo-est-main {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.mo-est-left {
    min-width: 0;
}

.mo-est-title {
    font-size: var(--ud-text-base);
    font-weight: 700;
    color: #0f4c81;
    line-height: var(--ud-lh-tight);
    letter-spacing: var(--ud-track-tight);
}

.mo-est-breakdown {
    font-size: var(--ud-text-support);
    font-weight: 600;
    color: #1e40af;
    line-height: var(--ud-lh-copy);
    margin-top: 2px;
}

.mo-est-rem {
    display: inline-flex;
    align-items: center;
    color: #1e40af;
    justify-self: end;
    align-self: center;
}

.mo-date-small {
    font-size: var(--ud-text-micro);
    line-height: var(--ud-lh-copy);
    letter-spacing: 0.01em;
    font-weight: 500;
    color: #64748b;
}

.mo-est-time-box .com-live-countdown {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 4px 10px;
    border-color: #93c5fd;
    background: #dbeafe;
    color: #1e40af;
    font-size: var(--ud-text-micro);
    font-weight: 700;
    white-space: nowrap;
}

.mo-details-accordion {
    border: 1px solid #eaeaea;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.mo-details-accordion summary {
    padding: 12px 15px;
    background: #f9f9f9;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.mo-details-accordion summary::-webkit-details-marker {
    display: none;
}

.mo-details-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mo-details-title-text {
    font-size: var(--ud-text-h2);
    font-weight: 800;
    line-height: var(--ud-lh-tight);
    letter-spacing: var(--ud-track-tight);
    color: #0f172a;
}

.mo-details-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #334155;
}

.mo-details-arrow-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.mo-details-content {
    padding: 12px;
    border-top: 1px solid #eaeaea;
}

.mo-details-content.mo-order-summary-surface {
    padding: 14px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin: 0;
}

.mo-order-items-list {
    display: flex;
    flex-direction: column;
}

.mo-order-line {
    width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.mo-order-line:last-child {
    border-bottom: none;
}

.mo-order-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 30px;
}

.mo-order-item-name {
    flex: 1;
    font-size: var(--ud-text-base);
    color: #111;
    font-weight: 600;
    white-space: normal;
    line-height: var(--ud-lh-copy);
    margin: 0;
    padding-right: 8px;
}

.mo-order-item-qty {
    color: #666;
    font-size: var(--ud-text-support);
    line-height: var(--ud-lh-copy);
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.mo-order-item-total {
    font-weight: 700;
    font-size: var(--ud-text-base);
    color: #111;
    margin: 0 0 0 12px;
    padding: 0;
    white-space: nowrap;
    text-align: right;
}

.mo-order-item-total .mo-line-price-compare {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mo-order-item-total .mo-line-price-old {
    color: #94a3b8;
    font-size: var(--ud-text-support);
    text-decoration: line-through;
}

.mo-order-item-total .mo-line-price-new {
    color: #0f766e;
    font-size: var(--ud-text-base);
    font-weight: 800;
}

.mo-order-item-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin: 6px 0 0;
    padding-bottom: 2px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mo-order-item-scroll::-webkit-scrollbar {
    display: none;
}

.mo-ingredient-chip,
.mo-addition-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
    border: 1px solid transparent;
}

.mo-ingredient-chip {
    color: #555;
    background: #eef6ff;
    border-color: #cde;
}

.mo-ingredient-price {
    color: #2563eb;
}

.mo-addition-chip {
    color: #555;
    background: #fff4ef;
    border-color: #fdd;
}

.mo-addition-price {
    color: #e8590c;
}

.mo-order-pricing-block {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.mo-order-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mo-order-subtotal-row {
    font-size: var(--ud-text-base);
    line-height: var(--ud-lh-copy);
    color: #666;
    margin-bottom: 6px;
}

.mo-order-subtotal-value {
    text-decoration: line-through;
    opacity: 0.75;
}

.mo-order-discount-row {
    font-size: var(--ud-text-support);
    line-height: var(--ud-lh-copy);
    margin-bottom: 6px;
}

.mo-order-discount-row-coupon,
.mo-order-discount-row-generic {
    color: #16a34a;
}

.mo-order-discount-row-fee {
    color: #0f766e;
}

.mo-coupon-pill {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #bbf7d0;
}

.mo-order-discount-label {
    font-weight: 600;
}

.mo-order-discount-value {
    font-weight: 700;
}

.mo-order-pricing-block--bundle {
    border-radius: 10px;
}

.mo-order-bundle-row {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
}

.mo-order-bundle-label {
    color: #065f46;
    font-size: var(--ud-text-support);
    font-weight: 700;
}

.mo-order-bundle-value {
    color: #047857;
    font-weight: 800;
}

.com-bundle-price-pulse {
    animation: comBundlePricePulse 0.95s ease;
}

@keyframes comBundlePricePulse {
    0% {
        transform: scale(0.985);
        opacity: 0.7;
    }
    45% {
        transform: scale(1.01);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mo-order-grand-total-row {
    padding-top: 6px;
    font-size: var(--ud-text-h2);
    line-height: var(--ud-lh-tight);
    letter-spacing: var(--ud-track-tight);
    font-weight: 800;
    color: #111;
}

.mo-order-total-simple-row {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid #e5e7eb;
    font-size: 1rem;
    line-height: var(--ud-lh-tight);
    font-weight: 700;
}

.mo-order-grand-total-label,
.mo-order-grand-total-value {
    font-weight: inherit;
}

.mo-order-total-compare {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mo-order-total-old {
    color: #94a3b8;
    font-size: var(--ud-text-base);
    text-decoration: line-through;
    font-weight: 600;
}

.mo-order-total-new {
    color: #16a34a;
    font-size: var(--ud-text-h2);
    font-weight: 800;
    line-height: var(--ud-lh-tight);
    animation: comBundlePricePulse 0.95s ease;
}

/* WhatsApp styled Chat */
.mo-chat-section {
    background: #efeae2;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    overflow: hidden;
}

.mo-chat-title {
    font-size: var(--ud-text-support);
    line-height: var(--ud-lh-tight);
    letter-spacing: var(--ud-track-wide);
    text-transform: uppercase;
    font-weight: 700;
    color: #334155;
    margin-bottom: 8px;
}

.mo-chat-policy-note,
.mo-chat-lock-note {
    font-size: var(--ud-text-support);
    line-height: var(--ud-lh-copy);
    margin: 0 0 8px;
    color: #475569;
}

.mo-chat-policy-sep {
    opacity: 0.45;
    margin: 0 6px;
}

.mo-chat-lock-note {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 6px 8px;
}

.mo-chat-window {
    max-height: 240px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2px 2px 10px;
}

.mo-chat-bubble {
    max-width: 90%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: var(--ud-text-base);
    line-height: var(--ud-lh-copy);
    position: relative;
}

.mo-chat-bubble.customer {
    align-self: flex-end;
    background: #e2ffc7;
    border-bottom-right-radius: 4px;
}

.mo-chat-bubble.store_manager {
    align-self: flex-start;
    background: #fff;
    border-bottom-left-radius: 4px;
}

.mo-chat-bubble-time {
    display: block;
    font-size: var(--ud-text-micro);
    line-height: 1.25;
    color: #6b7280;
    text-align: right;
    margin-top: 4px;
}

.mo-chat-bubble-source {
    display: inline-block;
    margin-bottom: 4px;
    font-size: var(--ud-text-micro);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: var(--ud-track-wide);
    color: #64748b;
    text-transform: uppercase;
}

.mo-chat-presets {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mo-chat-presets::-webkit-scrollbar {
    display: none;
}

.mo-chat-chip {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: var(--ud-text-support);
    line-height: 1.2;
}

.mo-chat-chip:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mo-chat-form {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 10px;
}

.mo-chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mo-chat-input-wrapper {
    position: relative;
    flex: 1;
    background: #fff;
    border-radius: 20px;
    min-height: 40px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    border: 1px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.mo-chat-input-wrapper:focus-within {
    border-color: #7cb8ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

@keyframes mo-chat-caret-blink {
    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.mo-chat-input-wrapper::before {
    content: "|";
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-45%);
    color: #475569;
    font-size: var(--ud-text-base);
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    animation: mo-chat-caret-blink 1s steps(1, end) infinite;
}

.mo-chat-input-wrapper:has(.mo-chat-input:placeholder-shown:not(:disabled))::before {
    opacity: 1;
}

.mo-chat-input {
    width: 100%;
    border: none;
    outline: none;
    box-shadow: none;
    resize: none;
    max-height: 100px;
    min-height: 36px;
    height: 36px;
    margin: 0;
    padding: 8px 0 8px 0;
    font-size: var(--ud-text-base);
    line-height: var(--ud-lh-copy);
    overflow-y: auto;
    background: transparent;
}

.mo-chat-input::placeholder {
    color: #6b7280;
    opacity: 1;
}

.mo-chat-input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.mo-chat-input.is-locked {
    color: #b45309;
    font-weight: 600;
}

.mo-chat-input.is-locked::placeholder {
    color: #b45309;
    opacity: 1;
}

.mo-chat-input:focus {
    outline: none;
    box-shadow: none;
}

.mo-chat-send {
    background: #00a884;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    align-self: center;
    outline: none;
    transition: background 0.2s;
}

.mo-chat-send:hover {
    background: #008f6f;
}

.mo-chat-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mo-chat-send svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transform: translateX(-1px);
}

@media (max-width: 768px) {
    .mo-order-card {
        padding: 12px;
    }

    .mo-review-awaiting-note {
        padding: 9px 10px;
        font-size: 0.6875rem;
    }

    .mo-order-sensitive-surface.is-gated {
        filter: blur(4px) saturate(0.75);
    }

    .mo-top-line,
    .mo-status-line {
        font-size: 0.8125rem;
        line-height: 1.4;
    }

    .mo-status-line {
        gap: 4px;
    }

    .mo-method-line {
        font-size: 0.6875rem;
    }

    .mo-est-time-box {
        padding: 9px 10px;
    }

    .mo-est-main {
        grid-template-columns: 1fr auto;
        gap: 6px;
    }

    .mo-est-title {
        font-size: 0.8125rem;
    }

    .mo-est-breakdown {
        font-size: 0.6875rem;
    }

    .mo-chat-window {
        max-height: 200px;
    }

    .mo-chat-bubble {
        max-width: 95%;
    }

    .mo-details-title-text {
        font-size: 1rem;
    }
}
