/* Scoped to the notice; original M3 page styles remain intact. */
html.m3-notice-open { overflow: hidden; scrollbar-gutter: stable; }
dialog.m3-notice {
  --notice-blue: #1e2171;
  --notice-ink: #20212b;
  --notice-muted: #666b78;
  --notice-line: #e6e8ef;
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0;
  width: min(660px, calc(100vw - 40px)); max-width: none;
  max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  color: var(--notice-ink); background: #fff; border-radius: 12px;
  box-shadow: 0 28px 90px #080b243d;
  font-family: Pretendard, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.75; text-align: left;
}
dialog.m3-notice[open] { display: flex; flex-direction: column; }
dialog.m3-notice::backdrop { background: #10132b99; }
.m3-notice *, .m3-notice *::before, .m3-notice *::after { box-sizing: border-box; }
.m3-notice .m3-notice-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 23px 32px 19px; border-top: 5px solid var(--notice-blue);
  border-bottom: 1px solid var(--notice-line); flex: none;
}
.m3-notice .m3-notice-logo { width: 143px; height: 28px; object-fit: contain; object-position: left; }
.m3-notice button { font: inherit; cursor: pointer; border: 0; }
.m3-notice .m3-notice-x {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: #f5f6fa; color: #454956;
}
.m3-notice .m3-notice-x svg { width: 20px; height: 20px; }
.m3-notice .m3-notice-body { padding: 26px 32px 28px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.m3-notice h2 { margin: 0 0 16px; color: var(--notice-blue); font-size: 30px; font-weight: 750; line-height: 1.3; letter-spacing: -.045em; }
.m3-notice h2:focus { outline: none; }
.m3-notice .m3-notice-greeting { margin: 0 0 14px; }
.m3-notice .m3-notice-announcement { margin: 0 0 23px; }
.m3-notice .m3-notice-date { font-weight: 700; color: var(--notice-blue); white-space: nowrap; }
.m3-notice .m3-notice-products { padding: 17px 20px; background: #f3f4fb; border: 1px solid #e5e7f5; border-radius: 7px; margin-bottom: 23px; }
.m3-notice h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; font-weight: 700; }
.m3-notice .m3-notice-products h3 { color: var(--notice-blue); }
.m3-notice .m3-notice-pending-products { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.m3-notice .m3-notice-pending-products span { background: #fff; border: 1px dashed #b8bdd8; border-radius: 4px; padding: 2px 14px; color: #777d95; letter-spacing: .06em; }
.m3-notice .m3-notice-pending-products small { margin-left: 3px; font-size: 12px; color: var(--notice-muted); }
.m3-notice .m3-notice-product-list { margin: 0; font-weight: 600; }
.m3-notice .m3-notice-support { margin: 0 0 23px; }
.m3-notice .m3-notice-support p { margin: 0 0 14px; }
.m3-notice .m3-notice-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 13px 18px; border-radius: 5px; text-decoration: none;
  font-weight: 650; font-size: 15px; line-height: 1.5;
  background: var(--notice-blue); color: #fff;
}
.m3-notice .m3-notice-cta svg { width: 16px; height: 16px; flex: none; }
.m3-notice .m3-notice-service { margin-top: 16px; padding: 17px 18px; border: 1px solid var(--notice-line); border-radius: 7px; background: #f8f9fc; }
.m3-notice .m3-notice-service h4 { margin: 0 0 12px; color: var(--notice-blue); font-size: 15px; line-height: 1.5; font-weight: 700; }
.m3-notice .m3-notice-service dl { margin: 0; font-size: 14px; line-height: 1.7; }
.m3-notice .m3-notice-service dl > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; margin-top: 7px; }
.m3-notice .m3-notice-service dt { color: #666b78; }
.m3-notice .m3-notice-service dd { margin: 0; overflow-wrap: anywhere; }
.m3-notice .m3-notice-service a { color: var(--notice-blue); text-decoration: underline; text-underline-offset: 3px; }
.m3-notice .m3-notice-cta:disabled { background: #eceef5; color: #7d8297; cursor: default; }
.m3-notice .m3-notice-pending-url { margin: 6px 0 0 !important; color: var(--notice-muted); text-align: center; font-size: 12px; }
.m3-notice .m3-notice-other { border-top: 1px solid var(--notice-line); padding-top: 20px; }
.m3-notice .m3-notice-other p { margin: 0; }
.m3-notice .m3-notice-foot {
  padding: 15px 24px 15px 32px; border-top: 1px solid var(--notice-line);
  background: #f8f9fc; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none;
}
.m3-notice .m3-notice-hide { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #505667; cursor: pointer; }
.m3-notice .m3-notice-hide input {
  appearance: auto; -webkit-appearance: auto; width: 17px; min-width: 17px; height: 17px;
  margin: 0; padding: 0; border-radius: 3px; accent-color: var(--notice-blue); cursor: pointer;
}
.m3-notice .m3-notice-close { padding: 6px 19px; min-height: 36px; background: #fff; border: 1px solid #d9dce8; border-radius: 5px; font-size: 13px; color: #373c4d; }
.m3-notice button:focus-visible, .m3-notice a:focus-visible, .m3-notice input:focus-visible { outline: 2px solid var(--notice-blue); outline-offset: 4px; }
.m3-notice-reopen {
  position: fixed; z-index: 101; left: 24px; right: auto; bottom: 24px;
  background: #1e2171; color: #fff; padding: 12px 18px; border: 0;
  border-radius: 7px; box-shadow: 0 6px 24px #1e21712e;
  font: 600 14px/1.5 Pretendard, 'Noto Sans KR', sans-serif; cursor: pointer;
}
.m3-notice-reopen:focus-visible { outline: 3px solid #1e2171; outline-offset: 4px; }
@media (max-width: 600px) {
  dialog.m3-notice { width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 9px; font-size: 14px; line-height: 1.75; }
  .m3-notice .m3-notice-head { padding: 13px 20px 12px; }
  .m3-notice .m3-notice-logo { width: 124px; height: 25px; }
  .m3-notice .m3-notice-body { padding: 21px 20px 24px; }
  .m3-notice h2 { font-size: 26px; margin-bottom: 16px; }
  .m3-notice h3 { font-size: 15px; }
  .m3-notice .m3-notice-products { padding: 15px 16px; }
  .m3-notice .m3-notice-foot { padding: 13px 16px 13px 20px; }
  .m3-notice .m3-notice-hide { font-size: 12px; }
  .m3-notice .m3-notice-cta { font-size: 14px; padding: 13px 10px; }
  .m3-notice-reopen { left: 16px; right: auto; bottom: 88px; }
}

/* Product site: the other-product destination is a separate secondary link. */
.m3-notice .m3-notice-other-link { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 14px; padding: 12px 16px; border: 1px solid var(--notice-blue); border-radius: 5px; color: var(--notice-blue); background: #fff; text-decoration: none; font-size: 15px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.m3-notice .m3-notice-other-link:hover { background: #f3f4fb; }
@media (max-width: 600px) { .m3-notice .m3-notice-other-link { font-size: 14px; padding: 12px 10px; } }
