.portal-popup-notice {
  box-sizing: border-box;
  width: min(460px, calc(100% - 32px));
  max-height: min(560px, 85vh);
  max-height: min(560px, 85dvh);
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce6f5;
  border-radius: 20px;
  background: #fff;
  color: #17233b;
  box-shadow: 0 22px 64px rgba(15, 30, 58, .26);
}

.portal-popup-notice[open] {
  display: flex;
  flex-direction: column;
}

.portal-popup-notice::backdrop {
  background: rgba(15, 27, 50, .52);
}

.portal-popup-notice__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  background: #eff5ff;
}

.portal-popup-notice__label {
  color: #2451a4;
  font-size: 12px;
  font-weight: 700;
}

.portal-popup-notice__header h2 {
  margin: 5px 0 0;
  color: #17233b;
  font-size: 20px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.portal-popup-notice__text {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px 20px;
  color: #37445a;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.portal-popup-notice__footer {
  margin: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid #edf1f7;
  text-align: right;
}

.portal-popup-notice button {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 9px;
  background: #245bd7;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.portal-popup-notice button.portal-popup-notice__close {
  flex: 0 0 44px;
  padding: 0;
  background: #e1ebfc;
  color: #254781;
  font-size: 22px;
  line-height: 1;
}

.portal-popup-notice :focus-visible {
  outline: 2px solid #254781;
  outline-offset: -3px;
}
