/* The error dialog and the bottom message kept after it is closed (see js/error-dialog.js). Used by every portal. */
.gb-error-backdrop[hidden], .gb-error-bar[hidden] { display: none !important; }
.gb-error-backdrop { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(39, 48, 24, .45); font-family: Inter, system-ui, sans-serif; }
.gb-error-dialog { box-sizing: border-box; width: min(380px, 100%); background: #fff; border-radius: 16px; padding: 24px 22px 20px; text-align: center; box-shadow: 0 20px 50px rgba(26, 33, 14, .25); animation: gb-error-pop .18s ease-out; }
.gb-error-icon { width: 36px; height: 36px; margin: 0 auto; border-radius: 50%; background: #d92d20; color: #fff; font-weight: 800; font-size: 20px; line-height: 36px; }
.gb-error-title { margin: 10px 0 6px; font-size: 17px; color: #b42318; }
.gb-error-text { margin: 0; color: #273018; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.gb-error-close { box-sizing: border-box; width: 100%; margin-top: 18px; padding: 12px; border: 0; border-radius: 9px; background: #303815; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.gb-error-close:focus-visible, .gb-error-bar-close:focus-visible { outline: 2px solid #4b5120; outline-offset: 2px; }
.gb-error-bar { position: fixed; left: 50%; bottom: 16px; z-index: 99999; transform: translateX(-50%); display: flex; align-items: flex-start; gap: 10px; box-sizing: border-box; width: min(640px, calc(100% - 32px)); padding: 10px 12px; border: 1px solid #fda29b; border-radius: 10px; background: #fef3f2; color: #b42318; font: 600 13px/1.45 Inter, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(26, 33, 14, .16); }
.gb-error-bar-icon { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: #d92d20; color: #fff; font-size: 12px; line-height: 18px; text-align: center; }
.gb-error-bar-text { flex: 1; overflow-wrap: anywhere; }
.gb-error-bar-close { flex: none; border: 0; background: none; color: #b42318; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
@keyframes gb-error-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .gb-error-bar { bottom: max(12px, env(safe-area-inset-bottom)); } }
