/**
 * 臨時緊急限制樣式。
 */

/* Header：顯示直接註冊連結（蓋過 theme 隱藏 .link-item） */
#block-popupregistrationselection > .content > .link-item {
  display: inline !important;
}

/* Login form 上方紅色訊息 */
.i2-temp-login-red-message {
  color: #c00;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.i2-temp-login-red-message p {
  color: #c00;
  margin: 0;
}

/* Donation：紅色提示置於 submit 按鈕上方 */
.i2-temp-donation-red-message {
  width: 100%;
  margin-bottom: 0.75rem;
}

/* 成為會員頁：content 頂部紅色提示 */
.i2-temp-become-member-red-message {
  width: 100%;
  margin: 1rem 0 1.25rem;
}

/* 成為會員頁：禁用「填寫網上表格」連結（可見但不能按） */
.paragraph--id--2187 .btn-row > a:first-child,
.paragraph--id--2189 .btn-row > a:first-child,
a.i2-temp-link-disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* Full-page pop-up 長文排版 */
.i2-temp-popup-content .modal-body {
  max-height: min(70vh, 560px);
  overflow-y: auto;
}

.i2-temp-popup-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.i2-temp-popup-body p:last-child {
  margin-bottom: 0;
}

/* Disabled submit／input 視覺 */
.i2-temp-submit-disabled,
button.i2-temp-submit-disabled,
input.i2-temp-submit-disabled,
.i2-temp-input-disabled,
input.i2-temp-input-disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  pointer-events: none;
}

/* 觸發用 wrapper 不佔版面 */
.i2-temp-popup-wrapper[hidden] {
  display: none !important;
}
