.ordering-notice-mask { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); background: rgba(17, 24, 39, .62); box-sizing: border-box; }
.ordering-notice-card { width: min(100%, 560px); max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #1f2937; border-radius: 20px; box-shadow: 0 24px 64px rgba(0, 0, 0, .2); font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif; }
.ordering-notice-card:focus { outline: none; }
.ordering-notice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid #ececec; }
.ordering-notice-store { margin: 0 0 6px; color: #6b7280; font-size: 0.8125rem; font-weight: 500; }
.ordering-notice-head h2 { margin: 0; color: #e60012; font-size: 2rem; font-weight: 800; line-height: 1.3; }
/* 標題與門市名稱置中：左邊留出和關閉鈕一樣的寬度，才不會被關閉鈕擠偏 */
.ordering-notice-head > div { flex: 1 1 auto; min-width: 0; padding-left: 56px; text-align: center; }
.ordering-notice-close { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f3f4f6; color: #374151; font: 28px/1 sans-serif; cursor: pointer; }
.ordering-notice-body { flex: 1 1 auto; min-height: 0; padding: 8px 24px 12px; overflow-y: auto; overscroll-behavior: contain; }
.ordering-notice-head, .ordering-notice-foot { flex-shrink: 0; }
.ordering-notice-foot { padding: 16px 24px 20px; border-top: 1px solid #ececec; }
.ordering-notice-start { width: 100%; min-height: 48px; border: 0; border-radius: 12px; background: #f28e3a; color: #fff; font: inherit; font-size: 1.0625rem; font-weight: 700; cursor: pointer; }
.ordering-notice-start:focus-visible, .ordering-notice-close:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.notice-rich-text { font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.notice-rich-text p, .notice-rich-text div { margin: 12px 0; }
.notice-rich-text h2 { margin: 22px 0 10px; font-size: 1.4375rem; line-height: 1.4; }
.notice-rich-text h3 { margin: 20px 0 8px; font-size: 1.125rem; line-height: 1.5; }
.notice-rich-text h4 { margin: 18px 0 8px; font-size: 1rem; line-height: 1.5; }
.notice-rich-text ul, .notice-rich-text ol { margin: 8px 0 16px; padding-left: 24px; }
.notice-rich-text li { margin: 8px 0; }
.notice-rich-text blockquote { margin: 16px 0; padding: 8px 14px; border-left: 4px solid #f28e3a; background: #fff5ec; }
.notice-rich-text a { color: #1d4ed8; text-decoration: underline; }
@media (max-width: 480px) { .ordering-notice-head { padding: 18px 18px 14px; } .ordering-notice-body { padding: 6px 18px 10px; } .ordering-notice-foot { padding: 14px 18px 18px; } .ordering-notice-head h2 { font-size: 1.75rem; } }
