.op-order-notice-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.op-order-notice-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    padding: 24px 24px 20px;
    text-align: center;
    position: relative;
}

.op-order-notice-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.op-order-notice-message {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
    color: #0f172a;
    font-weight: 600;
}

.op-order-notice-summary {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.35;
    color: #475569;
    font-weight: 500;
}

.op-order-notice-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.op-order-notice-btn {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}

.op-order-notice-btn-primary {
    background: #dc2626;
    color: #fff;
}

.op-order-notice-btn-muted {
    background: #e2e8f0;
    color: #334155;
}

#order-notice-loading-text {
    height: auto;
    width: auto;
    top: auto;
    position: relative;
    z-index: auto;
    font-size: inherit;
    color: inherit;
    font-weight: inherit;
}

#notice-accept-btn,
#order-notice-charge-btn {
    text-decoration: none;
}

#order-notice-charge-btn {
    background: green;
    border: solid 1px green;
    margin-left: 10px;
    display: none;
}

.order-notice-hide-btn {
    display: none;
}

/* Legacy floating badge — must stay hidden if cached JS created one before upgrade. */
#op-online-orders-badge,
.op-online-orders-badge {
    display: none !important;
}

/*
 * Online-order warn badges: anchor to the mat-icon host and let Angular Material
 * position .mat-badge-content. Do not override top/right globally — that caused
 * the count to appear floating on the wrong tiles and pages.
 */
app-dashboard .app-item-container mat-icon.mat-badge,
.board-item mat-icon.mat-badge,
.dashboard-item mat-icon.mat-badge,
app-left-menu mat-icon.mat-badge,
.left-menu-item mat-icon.mat-badge,
button.mat-badge mat-icon,
button.mat-badge {
    position: relative;
    overflow: visible !important;
}

mat-icon.mat-badge.mat-badge-warn .mat-badge-content,
button.mat-badge.mat-badge-warn .mat-badge-content {
    background: #dc2626 !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
}
