/* 2026-08-21 지시서(B조 라운드2 ②): 복지 확인 동의 화면.
   Blueprint/DESIGN_RULES.md 7장(어르신 화면)·13장(한 장의 카드) 적용.
   글씨 24px 이상, 화면당 스크롤 없음, 동의/거절 버튼은 항상 같은 크기. */

.welfare-consent-dialog {
  padding: 0;
  border: none;
  border-radius: 16px;
  width: min(430px, 96vw);
  height: min(844px, 92vh);
  max-height: 92vh;
  overflow: hidden;
  background: #ffffff;
}

.welfare-consent-dialog::backdrop {
  background: rgba(15, 23, 20, 0.55);
}

.welfare-consent-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.welfare-consent-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  min-height: 48px;
}

.welfare-consent-back {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #12305c;
  padding: 8px;
  cursor: pointer;
}

.welfare-consent-progress {
  font-size: 16px;
  color: #55625b;
}

.welfare-consent-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 24px 24px;
  overflow: hidden;
}

.welfare-consent-loading,
.welfare-consent-error {
  font-size: 24px;
  padding: 24px;
}

.welfare-consent-headline {
  font-size: 30px;
  line-height: 1.3;
  margin: 0;
  color: #12305c;
}

.welfare-consent-sentence {
  font-size: 24px;
  line-height: 1.4;
  margin: 0;
  color: #152318;
}

.welfare-consent-no-disadvantage {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.35;
  margin: 0;
  color: #12305c;
  background: #eef3fb;
  border-radius: 12px;
  padding: 16px;
}

.welfare-consent-item-title {
  font-size: 28px;
  margin: 0;
  color: #12305c;
}

.welfare-consent-choice-pair {
  margin-top: auto;
  display: flex;
  gap: 16px;
}

.welfare-consent-choice-button {
  flex: 1 1 0;
  height: 64px;
  min-height: 56px;
  font-size: 22px;
  font-weight: 800;
  border-radius: 12px;
  border: 2px solid #12305c;
  background: #12305c;
  color: #ffffff;
  cursor: pointer;
}

.welfare-consent-choice-button.is-selected {
  background: #ffffff;
  color: #12305c;
  box-shadow: inset 0 0 0 3px #12305c;
}

.welfare-consent-primary-button {
  flex: 0 0 auto;
  width: 100%;
  height: 64px;
  min-height: 56px;
  font-size: 22px;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  background: #12305c;
  color: #ffffff;
  cursor: pointer;
  margin-top: auto;
}

.welfare-consent-primary-button:disabled {
  background: #9aa6ad;
  cursor: not-allowed;
}

.welfare-consent-detail-button {
  height: 56px;
  min-height: 56px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  border: 2px solid #12305c;
  background: #ffffff;
  color: #12305c;
  cursor: pointer;
}

.welfare-consent-redo-button {
  height: 56px;
  min-height: 56px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  border: 2px solid #12305c;
  background: #ffffff;
  color: #12305c;
  cursor: pointer;
}

.welfare-consent-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.welfare-consent-summary-chip {
  font-size: 22px;
  line-height: 1.35;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f4f7f5;
  color: #152318;
}

.welfare-consent-signature-host {
  flex: 0 0 auto;
}

.welfare-consent-status {
  font-size: 18px;
  min-height: 24px;
  color: #55625b;
}

.welfare-consent-closing {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.welfare-consent-busy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 팝업(동의서 전문) -- DESIGN_RULES 13장 "유일한 예외": 여기만 스크롤 허용 */
.welfare-consent-detail-popup {
  width: min(430px, 96vw);
  height: min(844px, 92vh);
  max-height: 92vh;
  padding: 0;
  border: none;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

.welfare-consent-detail-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 24px;
  font-size: 20px;
  line-height: 1.5;
}

.welfare-consent-detail-item {
  margin-bottom: 24px;
}

.welfare-consent-detail-item h3 {
  font-size: 22px;
  color: #12305c;
}

.welfare-consent-detail-popup > .welfare-consent-primary-button {
  flex: 0 0 auto;
  margin: 16px 24px 24px;
  width: calc(100% - 48px);
}
