/* The legacy HTML5 reset sets every dialog to display:block. */
#smart-cafe-popup:not([open]) { display: none; }
#smart-cafe-popup {
    width: min(800px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: 4px;
    margin: auto;
    color: #222;
    background: #fff;
    box-sizing: border-box;
    overflow: auto;
}
#smart-cafe-popup::backdrop { background: rgba(0, 0, 0, .65); }
#smart-cafe-popup .smart-cafe-heading,
#smart-cafe-popup .smart-cafe-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
}
#smart-cafe-popup h2 { margin: 0; font-size: 16px; line-height: 1.5; letter-spacing: 0; }
#smart-cafe-popup button { cursor: pointer; flex-shrink: 0; color: #222; background: #fff; border: 1px solid #ccc; padding: 6px 12px; font-size: 14px; }
#smart-cafe-popup .smart-cafe-heading button { border: 0; font-size: 26px; padding: 0; width: 36px; height: 36px; }
#smart-cafe-popup video { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 160px); object-fit: contain; background: #000; }
#smart-cafe-popup label { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
#smart-cafe-popup input { margin: 0; }
