/* Public Menu — Order Page */
.public-menu-page {
    background: #f8f9fa;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

.public-menu-page button,
.public-menu-page .btn,
.public-menu-page .pm-food-tab,
.public-menu-page .pm-cat-tab {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.pm-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.pm-header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pm-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.pm-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.pm-logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pm-brand h1 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0;
    color: #fff;
}

.pm-brand p {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.pm-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
}

.pm-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.pm-menu-toggle-bars,
.pm-menu-toggle-bars::before,
.pm-menu-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    position: relative;
}

.pm-menu-toggle-bars::before,
.pm-menu-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
}

.pm-menu-toggle-bars::before { top: -6px; }
.pm-menu-toggle-bars::after { top: 6px; }

.pm-side-menu-backdrop {
    display: none;
}

.pm-side-menu-header {
    display: none;
}

.pm-side-menu-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.pm-side-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
    border-radius: 50px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    min-height: 38px;
}

.pm-side-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.pm-side-link-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.pm-header-actions .pm-offers-btn,
.pm-header-actions .pm-my-orders-btn,
.pm-header-actions .pm-combos-btn {
    font-family: inherit;
    cursor: pointer;
}

@media (min-width: 640px) {
    .pm-header-actions .pm-offers-btn,
    .pm-header-actions .pm-my-orders-btn,
    .pm-header-actions .pm-combos-btn {
        border-color: rgba(255,255,255,0.5);
        color: #fff;
    }
}

.pm-search-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.85rem 1rem 0.25rem;
    position: sticky;
    top: 76px;
    z-index: 90;
    background: #f8f9fa;
}

.pm-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.pm-search-icon {
    position: absolute;
    left: 0.85rem;
    font-size: 1rem;
    pointer-events: none;
    opacity: 0.55;
}

.pm-search-input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 2.5rem;
    font-size: 1rem;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pm-search-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
}

.pm-search-clear {
    position: absolute;
    right: 0.65rem;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 1rem;
    font-size: 0.95rem;
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    margin-top: 0.5rem;
}

.pm-food-filter {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pm-food-filter::-webkit-scrollbar {
    display: none;
}

.pm-food-tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.pm-food-tab.active[data-filter="all"] { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.pm-food-tab.active.veg { background: #dcfce7; border-color: #16a34a; color: #166534; }
.pm-food-tab.active.non-veg { background: #fee2e2; border-color: #dc2626; color: #991b1b; }
.pm-food-tab.active.both { background: #fef9c3; border-color: #ca8a04; color: #854d0e; }

.pm-category-filter {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem 0.75rem;
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pm-category-filter::-webkit-scrollbar {
    display: none;
}

.pm-cat-tab {
    flex-shrink: 0;
    padding: 0.48rem 0.95rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
    white-space: nowrap;
}

.pm-cat-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pm-cat-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.25);
}

.pm-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Combo deals on public menu */
.pm-combos-section {
    margin-top: 0.5rem;
    margin-bottom: 6.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border: 1px solid #fed7aa;
    border-radius: var(--radius-lg);
}

.pm-combos-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--secondary);
    margin: 0 0 0.25rem;
}

.pm-combos-subtitle {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pm-combos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}

.pm-combo-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pm-combo-card.featured {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.12);
}

.pm-combo-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fef3c7;
    color: #92400e;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.45rem;
}

.pm-combo-badge.featured {
    background: rgba(232, 93, 4, 0.12);
    color: var(--primary);
}

.pm-combo-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.pm-combo-name {
    margin: 0.35rem 0 0.25rem;
    font-size: 1rem;
    color: var(--secondary);
}

.pm-combo-desc {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.pm-combo-saves {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #166534;
    background: #dcfce7;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.45rem;
}

.pm-combo-includes,
.pm-offer-combo-includes {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.45rem;
}

.pm-combo-bucket + .pm-combo-bucket {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px dashed var(--border);
}

.pm-combo-bucket strong {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.pm-combo-bucket ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pm-combo-bucket li {
    font-size: 0.82rem;
    padding: 0.12rem 0;
    color: var(--text);
}

.pm-combo-size {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.pm-combo-validity {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.pm-combo-order-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border);
}

.pm-combo-order-row .pm-qty-control {
    flex-shrink: 0;
}

.pm-combo-add-btn {
    flex: 1;
    min-width: 120px;
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem;
}

.pm-cart-combo-tag {
    display: block;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.15rem;
}

.pm-cart-line-combo {
    border-left: 3px solid var(--primary);
    padding-left: 0.55rem;
}

.pm-combo-add-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pm-cart-toast {
    position: fixed;
    bottom: 5.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(26, 26, 46, 0.92);
    color: #fff;
    padding: 0.55rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 210;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    max-width: calc(100% - 2rem);
    text-align: center;
}

.pm-cart-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pm-header-actions .pm-combos-btn {
    font-family: inherit;
}

.pm-offer-card.pm-offer-combo {
    border-left: 4px solid var(--primary);
}

.pm-category-section {
    margin-bottom: 2rem;
}

.pm-category-section.hidden {
    display: none;
}

.pm-category-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pm-popular-section {
    margin-bottom: 1.75rem;
    padding: 0.85rem 0.85rem 1rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #fff1f2 100%);
    border: 1px solid #fed7aa;
    border-radius: var(--radius-lg);
}

.pm-popular-title {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-left-color: #ea580c;
    margin-bottom: 0.25rem;
}

.pm-popular-subtitle {
    margin: 0 0 0.85rem 0.15rem;
    font-size: 0.82rem;
    color: #9a3412;
}

.pm-cat-tab-popular.active {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-color: #ea580c;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.28);
}

.pm-item-card-popular {
    border-color: #fdba74;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.08);
}

.pm-popular-rank {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9a3412;
    background: #ffedd5;
    border: 1px solid #fdba74;
    border-radius: 50px;
    padding: 0.12rem 0.5rem;
    margin-bottom: 0.3rem;
}

.pm-popular-meta {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #c2410c;
}

.pm-serve-persons {
    margin: 0.3rem 0 0;
    font-size: 0.75rem;
    font-weight: 650;
    color: #c2410c;
}

.pm-category-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.15rem 0.55rem;
    margin-bottom: 0.35rem;
}

.pm-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.pm-item-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.pm-item-card.hidden {
    display: none;
}

.pm-item-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.pm-item-img,
.pm-item-img-placeholder {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.pm-fly-clone {
    position: fixed;
    z-index: 13000;
    pointer-events: none;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    opacity: 1;
    transform: translate(0, 0) scale(1);
    will-change: transform, opacity;
}

.pm-fly-clone.pm-fly-up.is-animating {
    transition: transform 1.15s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 1.15s ease;
    transform: translate(var(--pm-fly-x), var(--pm-fly-y)) scale(0.35);
    opacity: 0;
}

.pm-fly-clone.pm-fly-down.is-animating {
    transition: transform 1.15s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 1.15s ease;
    transform: translate(var(--pm-fly-x), var(--pm-fly-y)) scale(1);
    opacity: 1;
}

.pm-fly-clone.pm-fly-down {
    opacity: 0;
    transform: translate(0, 0) scale(0.35);
}

.pm-item-card.pm-item-in-cart {
    border-color: #86efac;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

.pm-add-btn.pm-add-btn-in-cart {
    background: #16a34a;
    border-color: #16a34a;
}

.pm-item-info {
    flex: 1;
    min-width: 0;
}

.pm-item-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.pm-item-name-row h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--secondary);
}

.pm-item-code {
    display: inline-block;
    margin-right: 0.25rem;
    padding: 0.05rem 0.4rem;
    border-radius: 4px;
    background: #ecfeff;
    color: #0e7490;
    font-size: 0.8rem;
    font-weight: 700;
}

.pm-food-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.pm-food-badge.veg { background: #dcfce7; color: #166534; }
.pm-food-badge.non_veg { background: #fee2e2; color: #991b1b; }
.pm-food-badge.both { background: #fef9c3; color: #854d0e; }

.pm-item-desc {
    font-size: 0.86rem;
    color: #4b5563;
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.pm-size-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    align-items: center;
}

.pm-variants-wrap {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pm-customise-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pm-customise-toggle::after {
    content: '▾';
    font-size: 0.7rem;
    opacity: 0.65;
}

.pm-customise-toggle[aria-expanded="true"]::after {
    content: '▴';
}

.pm-customise-count {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.72rem;
}

.pm-variants-panel {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.pm-variants-panel[hidden] {
    display: none !important;
}

.pm-variant-group-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.pm-variant-required {
    color: #dc2626;
}

.pm-variant-group.has-error {
    padding: 0.55rem 0.6rem 0.45rem;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff7f7;
}

.pm-variant-group.has-error .pm-variant-group-title {
    color: #b91c1c;
}

.pm-variant-group.has-error .pm-variant-option {
    border-color: #fca5a5;
}

.pm-variant-error {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #b91c1c;
    line-height: 1.35;
}

.pm-variant-error[hidden],
.pm-variant-summary-error[hidden] {
    display: none !important;
}

.pm-variant-summary-error {
    margin: 0.15rem 0 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

.pm-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pm-variant-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.pm-variant-option input {
    accent-color: var(--primary);
}

.pm-variant-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(233, 69, 96, 0.08);
}

.pm-cart-variant,
.pm-order-variant {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.pm-size-select {
    font-size: 0.88rem;
    padding: 0.55rem 0.65rem;
}

.pm-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.pm-qty-btn {
    width: 36px;
    height: 38px;
    border: none;
    background: #f3f4f6;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--secondary);
}

.pm-qty-btn:active {
    background: var(--border);
}

.pm-qty-val {
    width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.pm-add-btn {
    padding: 0.55rem 1rem;
    white-space: nowrap;
}

/* Cart bar */
.pm-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.08), transparent);
    transform: translateY(100%);
    transition: transform 0.3s;
    pointer-events: none;
}

.pm-cart-bar.visible {
    transform: translateY(0);
    pointer-events: auto;
}

.pm-cart-bar-inner {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(232, 93, 4, 0.4);
}

.pm-cart-count {
    background: #fff;
    color: var(--primary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.pm-cart-label {
    flex: 1;
    text-align: left;
}

.pm-cart-total {
    font-size: 1.1rem;
}

/* Checkout */
.pm-checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.pm-checkout-overlay.open {
    display: flex;
}

.pm-checkout-sheet {
    background: #fff;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.pm-checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.pm-checkout-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.pm-close-btn {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
}

.pm-checkout-body {
    overflow-y: auto;
    padding: 1.25rem 1.5rem 2rem;
}

.pm-cart-items {
    margin-bottom: 1rem;
}

.pm-cart-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.pm-cart-line-info strong {
    display: block;
    font-size: 0.95rem;
}

.pm-cart-line-info small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.pm-cart-line-right {
    text-align: right;
    flex-shrink: 0;
}

.pm-cart-line-price {
    font-weight: 700;
    color: var(--success);
}

.pm-cart-line-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 0.78rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.pm-checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.15rem;
    border-top: 2px solid var(--secondary);
    margin-bottom: 1.25rem;
}

.pm-checkout-form .form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.pm-place-order-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.field-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* Success */
.pm-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pm-success-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    max-width: 380px;
    width: 100%;
}

.pm-success-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}

.pm-success-order-id {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

@media (max-width: 639px) {
    .pm-header {
        padding: 0.65rem 0;
    }

    .pm-header-inner {
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.5rem;
        padding: 0 0.75rem;
    }

    .pm-brand {
        min-width: 0;
        flex: 1;
        gap: 0.6rem;
    }

    .pm-logo,
    .pm-logo-placeholder {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .pm-brand h1 {
        font-size: 1.05rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .pm-brand p {
        display: none;
    }

    .pm-header-actions {
        flex: 0 0 auto;
        max-width: none;
        overflow: visible;
        gap: 0;
    }

    .pm-menu-toggle {
        display: inline-flex;
    }

    .pm-side-menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1090;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .pm-side-menu-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .pm-side-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 86vw);
        height: 100%;
        height: 100dvh;
        background: #fff;
        color: var(--secondary, #1a1a2e);
        z-index: 1100;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        box-shadow: -8px 0 28px rgba(0, 0, 0, 0.18);
        display: flex;
        flex-direction: column;
        padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
    }

    .pm-side-menu.is-open {
        transform: translateX(0);
    }

    .pm-side-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.1rem;
        border-bottom: 1px solid #e5e7eb;
        background: #f8fafc;
    }

    .pm-side-menu-header strong {
        font-size: 1.05rem;
        color: #0f172a;
    }

    .pm-side-menu-close {
        width: 36px;
        height: 36px;
        border: none;
        border-radius: 8px;
        background: #e2e8f0;
        color: #334155;
        font-size: 1.05rem;
        cursor: pointer;
    }

    .pm-side-menu-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.35rem 0;
    }

    .pm-side-link {
        display: flex;
        width: 100%;
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid #f1f5f9;
        background: #fff;
        color: #0f172a;
        padding: 1rem 1.15rem;
        font-size: 0.98rem;
        font-weight: 600;
        min-height: 52px;
        justify-content: flex-start;
        text-align: left;
    }

    .pm-side-link:hover,
    .pm-side-link:active {
        background: #f8fafc;
        color: #0f172a;
    }

    .pm-side-link-icon {
        width: 1.6rem;
        text-align: center;
    }

    .pm-search-wrap {
        top: 62px;
        padding: 0.65rem 0.75rem 0.2rem;
    }

    .pm-search-input {
        font-size: 16px;
        padding: 0.7rem 2.5rem 0.7rem 2.35rem;
    }

    .pm-food-filter,
    .pm-category-filter {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .pm-food-tab,
    .pm-cat-tab {
        min-height: 40px;
        padding: 0.45rem 0.85rem;
    }

    .pm-main {
        padding: 0 0.75rem 1.5rem;
    }

    .pm-category-title {
        font-size: 1.15rem;
        padding: 0.55rem 0.7rem;
        margin-bottom: 0.75rem;
    }

    .pm-items-grid {
        gap: 0.75rem;
    }

    .pm-item-card {
        padding: 0.85rem;
    }

    .pm-item-top {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .pm-item-img,
    .pm-item-img-placeholder {
        width: 80px;
        height: 80px;
    }

    .pm-item-name-row h3 {
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.25;
    }

    .pm-item-desc {
        font-size: 0.82rem;
        margin-bottom: 0.65rem;
    }

    .pm-size-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "size size"
            "qty add";
        gap: 0.5rem;
        align-items: stretch;
    }

    .pm-size-select {
        grid-area: size;
        font-size: 16px;
        min-height: 44px;
    }

    .pm-qty-control {
        grid-area: qty;
        align-self: center;
    }

    .pm-qty-btn {
        width: 40px;
        height: 44px;
    }

    .pm-add-btn {
        grid-area: add;
        width: 100%;
        min-height: 44px;
        padding: 0.55rem 0.75rem;
    }

    .pm-variant-option {
        min-height: 40px;
        font-size: 0.8rem;
    }

    .pm-combos-section {
        padding: 0.85rem;
        margin-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    }

    .pm-combos-grid {
        grid-template-columns: 1fr;
    }

    .pm-combo-order-row {
        flex-direction: column;
        align-items: stretch;
    }

    .pm-combo-add-btn {
        width: 100%;
        min-height: 44px;
    }

    .pm-table-banner,
    .pm-session-inner {
        padding: 0.65rem 0.75rem;
        gap: 0.65rem;
    }

    .pm-session-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .pm-session-actions {
        justify-content: flex-end;
    }

    .pm-cart-bar {
        padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    }

    .pm-cart-bar-inner {
        padding: 0.75rem 1.15rem;
        min-height: 52px;
    }

    .pm-cart-toast {
        bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    }

    .pm-checkout-body,
    .pm-offers-body {
        padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    .pm-checkout-header,
    .pm-my-orders-header {
        padding: 1rem;
    }

    .pm-checkout-form .form-control,
    .pm-checkout-form textarea {
        font-size: 16px;
        min-height: 44px;
    }

    .pm-place-order-btn,
    .pm-otp-submit {
        min-height: 48px;
    }

    .pm-otp-card {
        margin: 1rem 0.75rem;
        width: calc(100% - 1.5rem);
        max-width: none;
    }

    .pm-otp-input {
        font-size: 1.35rem;
        letter-spacing: 0.2em;
        text-align: center;
        min-height: 48px;
    }
}

@media (min-width: 640px) {
    .pm-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 380px) {
    .pm-item-img,
    .pm-item-img-placeholder {
        width: 68px;
        height: 68px;
    }
}

@media (min-width: 768px) {
    .pm-checkout-overlay {
        align-items: center;
    }
    .pm-checkout-sheet {
        border-radius: var(--radius);
        max-height: 85vh;
    }
    .pm-offers-overlay {
        align-items: center;
    }
    .pm-offers-sheet {
        border-radius: var(--radius);
        max-height: 85vh;
    }
}

/* Offers preview */
.pm-offers-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 250;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.pm-offers-overlay.open {
    display: flex;
}

.pm-offers-sheet {
    background: #fff;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.pm-offers-body {
    overflow-y: auto;
    padding: 0 1.25rem 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.pm-offers-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pm-offer-card {
    position: relative;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
}

.pm-offer-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    box-shadow: 0 2px 10px rgba(232, 93, 4, 0.12);
}

.pm-offer-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    margin-bottom: 0.45rem;
}

.pm-offer-badge.featured {
    background: var(--secondary);
}

.pm-offer-status {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    margin-left: 0.35rem;
    margin-bottom: 0.45rem;
}

.pm-offer-status.upcoming {
    background: #dbeafe;
    color: #1d4ed8;
}

.pm-offer-discount {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.pm-offer-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: var(--secondary);
    line-height: 1.35;
}

.pm-offer-desc {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.pm-offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pm-offer-time,
.pm-combo-validity + .pm-offer-time {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1d4ed8;
}

.pm-offer-terms {
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.4;
}

.pm-offers-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 1rem;
    font-size: 0.95rem;
}

.pm-header-actions .pm-offers-btn {
    font-family: inherit;
    cursor: pointer;
}

.pm-table-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, #ecfdf5, #d1fae5);
    border-bottom: 1px solid #a7f3d0;
}
.pm-table-banner-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.pm-table-banner strong {
    display: block;
    font-size: 0.95rem;
    color: #065f46;
}
.pm-table-banner p {
    display: none;
}

.pm-session-banner {
    background: linear-gradient(90deg, #fff7ed, #fef3c7);
    border-bottom: 1px solid #fed7aa;
}

.pm-session-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.pm-session-inner p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.45;
}

.pm-session-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.pm-header-actions .pm-my-orders-btn {
    font-family: inherit;
    cursor: pointer;
}

.pm-my-orders-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1200;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.pm-my-orders-overlay.open {
    display: flex;
}

.pm-my-orders-sheet {
    background: #fff;
    width: 100%;
    max-width: min(920px, 100%);
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18), 0 24px 48px rgba(0, 0, 0, 0.12);
    animation: slideUp 0.32s ease;
}

.pm-my-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
    color: #fff;
    flex-shrink: 0;
}

.pm-my-orders-header-text {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.pm-my-orders-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.pm-my-orders-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.pm-my-orders-header p {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
}

.pm-my-orders-close {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
}

.pm-my-orders-close:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

.pm-my-orders-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.pm-my-orders-lookup-card {
    max-width: 420px;
    margin: 0.5rem auto 1rem;
    padding: 1.25rem 1.35rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
}

.pm-my-orders-hint {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
}

.pm-my-orders-error {
    margin: 0.75rem 0 0;
    color: #b91c1c;
    font-size: 0.85rem;
    text-align: center;
}

.pm-my-orders-summary {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    color: #92400e;
    background: linear-gradient(90deg, #fff7ed, #fef3c7);
    border: 1px solid #fed7aa;
    border-radius: calc(var(--radius) + 2px);
    padding: 0.75rem 1rem;
    line-height: 1.45;
}

.pm-my-orders-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.pm-order-card {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    padding: 1rem 1.15rem;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease;
}

.pm-order-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.pm-order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #f1f5f9;
}

.pm-order-card-head strong {
    font-size: 1.02rem;
}

.pm-order-date {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-top: 0.2rem;
}

.pm-order-status {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pm-order-status-pending { background: #fef3c7; color: #92400e; }
.pm-order-status-confirmed { background: #dbeafe; color: #1e40af; }
.pm-order-status-completed { background: #dcfce7; color: #166534; }
.pm-order-status-cancelled { background: #fee2e2; color: #991b1b; }

.pm-order-coupon {
    margin: 0 0 0.55rem;
    font-size: 0.84rem;
    color: #7c3aed;
    font-weight: 500;
}

.pm-order-items {
    margin: 0 0 0.75rem;
    padding: 0.65rem 0.85rem;
    list-style: none;
    font-size: 0.88rem;
    color: var(--text-muted);
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid #f1f5f9;
}

.pm-order-items li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #eef2f7;
}

.pm-order-items li:last-child {
    border-bottom: none;
}

.pm-order-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding-top: 0.15rem;
}

.pm-order-card-foot > strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.pm-order-card-cancelled {
    opacity: 0.92;
    background: #fffafa;
    border-color: #fecaca;
}

.pm-order-cancel-pending,
.pm-order-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
    max-width: 220px;
    line-height: 1.4;
}

.pm-order-cancelled-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: #991b1b;
}

.pm-order-cancel-pending { color: #b45309; }

.pm-order-cancel-reason {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 0.5rem 0.65rem;
    line-height: 1.4;
}

.pm-my-orders-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.pm-my-orders-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 0.55rem;
    padding: 0.65rem 0.85rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pm-my-orders-total strong {
    font-size: 1.35rem;
    color: var(--primary);
}

.pm-my-orders-note {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 640px) {
    .pm-my-orders-overlay {
        align-items: center;
        padding: 1.25rem;
    }

    .pm-my-orders-sheet {
        border-radius: 20px;
        max-height: 88vh;
    }

    .pm-my-orders-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .pm-order-card:only-child {
        grid-column: 1 / -1;
        max-width: 560px;
    }
}

@media (min-width: 900px) {
    .pm-my-orders-scroll {
        padding: 1.35rem 1.75rem;
    }

    .pm-my-orders-footer {
        padding: 1.1rem 1.75rem 1.35rem;
    }
}

.pm-offer-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pm-suggestion {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    line-height: 1.4;
}

.pm-suggestion p { margin: 0; }

.pm-suggestion.near {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.pm-suggestion.eligible {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.pm-coupon-section {
    margin-bottom: 1rem;
    padding: 0.85rem;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.pm-coupon-heading {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
}

.pm-coupon-options {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pm-coupon-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    cursor: pointer;
}

.pm-coupon-option.best {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: var(--radius);
    padding: 0.55rem 0.65rem;
}

/* Order OTP gate */
.pm-otp-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.pm-otp-overlay[hidden] {
    display: none !important;
}

.pm-otp-card {
    position: relative;
    width: min(100%, 420px);
    background: #fff;
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.pm-otp-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pm-otp-close:hover {
    background: #fee2e2;
    color: #991b1b;
}

.pm-otp-icon {
    font-size: 2.25rem;
    display: block;
    margin-bottom: 0.75rem;
}

.pm-otp-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    color: var(--secondary);
}

.pm-otp-desc {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pm-otp-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.35em;
    font-weight: 700;
}

.pm-otp-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.pm-otp-card .field-error {
    text-align: left;
    margin-bottom: 0.75rem;
}

/* ── Bill ready modal ─────────────────────────────────────── */
.pm-bill-ready-overlay {
    position: fixed;
    inset: 0;
    z-index: 1250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.pm-bill-ready-overlay[hidden] {
    display: none !important;
}

.pm-bill-ready-card {
    position: relative;
    width: min(100%, 400px);
    background: #fff;
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
    animation: pm-bill-pop 0.35s ease;
}

@keyframes pm-bill-pop {
    from { transform: translateY(14px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.pm-bill-ready-close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
}

.pm-bill-ready-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #ecfdf5;
    font-size: 1.7rem;
    margin-bottom: 0.6rem;
}

.pm-bill-ready-card h2 {
    margin: 0 0 0.3rem;
    font-size: 1.3rem;
    color: var(--secondary);
}

.pm-bill-ready-sub {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pm-bill-ready-meta {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.pm-bill-ready-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.22rem 0;
}

.pm-bill-ready-row strong {
    color: var(--secondary);
}

.pm-bill-ready-total {
    border-top: 1px dashed #cbd5e1;
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    font-size: 0.95rem;
}

.pm-bill-ready-total strong {
    font-size: 1.15rem;
    color: #047857;
}

.pm-bill-ready-note {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Bill card inside My Orders */
.pm-last-bill-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    margin-bottom: 0.9rem;
}

.pm-last-bill-icon {
    font-size: 1.4rem;
}

.pm-last-bill-info {
    flex: 1;
    min-width: 0;
}

.pm-last-bill-info strong {
    display: block;
    font-size: 0.9rem;
    color: #065f46;
}

.pm-last-bill-info span {
    font-size: 0.78rem;
    color: #047857;
}

.pm-last-bill-card .btn {
    white-space: nowrap;
}
