@charset "utf-8";
/* 추가개발 공통 스타일 (무료 응원 / 기부하기 / 입양 배지 / 특수가입)
   - 기존 사이트 스타일(/usr/css)을 덮어쓰지 않도록 신규 클래스만 정의 */

/* ---------- 무료 응원 안내 ---------- */
.cheer_free_guide {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: #6b6b6b;
}
.right_txt_area .btn_area .cheer_free_guide { margin-top: 12px; }

/* ---------- 입양 상태 배지 ---------- */
.horse_card .horse_img { position: relative; }
.adoption_badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: calc(100% - 20px);
}
.adoption_badges.inline {
	position: static;
	margin: 0 0 10px;
	max-width: none;
}
.adoption_badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	background: #f1f1f1;
	color: #444;
}
.adoption_badge.status_WAIT { background: #e8f1fd; color: #1c5fb8; }
.adoption_badge.status_IN_PROGRESS { background: #fff1e0; color: #a65300; }
.adoption_badge.status_COMPLETED { background: #e6f4ea; color: #1e7b34; }
.adoption_badge.status_CANCELED { background: #eeeeee; color: #555; }
.adoption_badge.preagreement { background: #6b3fa0; color: #fff; }
.adoption_badge.receipt { background: #f4f4f4; color: #333; }
.adoption_badge.reviewed { background: #e6f4ea; color: #1e7b34; }
.state_area .adoption_badge,
.listType_2 .adoption_badge { margin: 2px 4px 2px 0; }

.preagreement_notice {
	margin: 10px 0;
	padding: 10px 14px;
	border-radius: 8px;
	background: #f4eefb;
	color: #4b2a75;
	font-size: 14px;
	line-height: 1.5;
}
.adoption_description { white-space: pre-line; }

/* ---------- 기부하기 페이지 ---------- */
.donate_page { max-width: 900px; margin: 0 auto; }
.donate_page .banner_card { margin-bottom: 30px; }
.donate_info {
	padding: 24px 28px;
	border: 1px solid #e6e6e6;
	border-radius: 16px;
	background: #fff;
}
.donate_info h3 { margin: 0 0 12px; font-size: 20px; }
.donate_info ul { margin: 0; padding-left: 18px; }
.donate_info li {
	list-style: disc;
	margin: 6px 0;
	font-size: 15px;
	line-height: 1.6;
	color: #444;
	word-break: keep-all;
}
.donate_actions { margin: 30px 0 10px; text-align: center; }
.donate_actions .basic-btn01 { min-width: 220px; min-height: 48px; }
.donate_notice { color: #888; }

/* ---------- 특수가입 ---------- */
.special_signup [hidden] { display: none !important; }
.special_signup_intro {
	margin: 0 0 24px;
	padding: 16px 20px;
	border-radius: 12px;
	background: #f7f7f7;
	font-size: 15px;
	line-height: 1.6;
	word-break: keep-all;
}
.special_type_list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
}
.special_type_item { position: relative; }
.special_type_item input[type=radio] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.special_type_item label {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 64px;
	padding: 12px 16px;
	border: 1px solid #d9d9d9;
	border-radius: 12px;
	background: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}
.special_type_item label span { font-size: 13px; font-weight: 400; color: #777; }
.special_type_item input[type=radio]:checked + label {
	border-color: #f57c00;
	box-shadow: 0 0 0 1px #f57c00 inset;
	background: #fff8f0;
}
.special_type_item input[type=radio]:focus-visible + label {
	outline: 2px solid #1c5fb8;
	outline-offset: 2px;
}
.special_signup .info_txt { margin-top: 6px; font-size: 13px; color: #777; line-height: 1.5; }
.special_signup input[type=file] { max-width: 100%; }
.special_signup_done {
	padding: 40px 20px;
	text-align: center;
	border: 1px solid #e6e6e6;
	border-radius: 16px;
}
.special_signup_done h3 { margin-bottom: 12px; font-size: 22px; }
.special_signup_done p { line-height: 1.6; }
.special_signup_done .basic-btn01 { display: inline-block; margin-top: 20px; }
.special_type_item input[type=radio]:disabled + label { cursor: not-allowed; opacity: .55; background: #f7f7f7; }
.special_signup .optional_txt { font-size: 13px; font-weight: 400; color: #777; }
.special_signup .right_btn { min-height: 44px; }
.special_form_status {
	margin: 0 0 20px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #f4f4f4;
	color: #333;
	font-size: 15px;
	line-height: 1.5;
}
.special_form_status.error { background: #fdecea; color: #b3261e; }
.field_error {
	margin: 6px 0 0;
	color: #b3261e;
	font-size: 13px;
	line-height: 1.5;
	word-break: keep-all;
}
.special_signup [aria-invalid=true]:not([type=checkbox]):not([type=radio]):not(button) { border-color: #b3261e; }
.guardian_consent {
	margin-top: 20px;
	padding: 16px 18px;
	border: 1px solid #f3c9a3;
	border-radius: 12px;
	background: #fff8f0;
}
.guardian_consent .info_txt { margin: 8px 0 0; }

/* ---------- 가입 유형 선택 (일반 가입 화면 진입) ---------- */
.signup_type_entry {
	margin: 0 0 30px;
	padding: 18px 20px;
	border: 1px solid #e6e6e6;
	border-radius: 14px;
	background: #fafafa;
}
.signup_type_entry h3 { margin: 0 0 6px; font-size: 17px; }
.signup_type_entry p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #555; word-break: keep-all; }
.signup_type_entry ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.signup_type_entry a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid #d9d9d9;
	border-radius: 999px;
	background: #fff;
	color: #333;
	font-size: 14px;
	font-weight: 600;
}
.signup_type_entry a:hover,
.signup_type_entry a:focus-visible { border-color: #f57c00; color: #a65300; }
.signup_type_entry a:focus-visible { outline: 2px solid #1c5fb8; outline-offset: 2px; }

/* ---------- 입양 심사 대상 / 직인 선택 ---------- */
.adoption_badge.review_target { background: #1c5fb8; color: #fff; }
.review_transfer_notice { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #555; word-break: keep-all; }
.seal_choice { margin: 12px 0 0; padding: 0; border: 0; }
.seal_choice legend { margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.seal_choice_options { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.seal_choice_options label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	cursor: pointer;
}
.seal_choice_options input[type=radio] { width: 18px; height: 18px; }
.seal_upload { margin-top: 10px; }
.seal_upload input[type=file] { max-width: 100%; }
.seal_preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 160px;
	margin-top: 10px;
	border: 1px dashed #ccc;
	border-radius: 8px;
	background: #fff;
	color: #999;
	font-size: 13px;
}
.seal_preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.seal_choice .info_txt { margin-top: 6px; font-size: 13px; color: #777; line-height: 1.5; }
.signer_identity { margin: 6px 0 0; font-size: 14px; color: #555; line-height: 1.5; word-break: keep-all; }

/* ---------- 모바일 ---------- */
@media (max-width: 768px) {
	.adoption_badge { font-size: 12px; padding: 3px 8px; }
	.adoption_badges { top: 6px; left: 6px; gap: 4px; }
	.donate_info { padding: 18px 16px; }
	.donate_info li { font-size: 14px; }
	.donate_actions .basic-btn01 { width: 100%; }
	.special_type_list { grid-template-columns: 1fr; }
	.special_type_item label { min-height: 52px; }
	.special_signup .right_btn_area { flex-wrap: wrap; }
	.special_signup .right_btn_area .right_btn { margin-top: 6px; }
	.cheer_free_guide { font-size: 13px; }
	.signup_type_entry { padding: 14px 14px; }
	.signup_type_entry ul { flex-direction: column; }
	.signup_type_entry a { justify-content: center; width: 100%; box-sizing: border-box; }
	.guardian_consent { padding: 14px; }
	.seal_preview { width: 120px; height: 120px; }
}

/* ---------- 수료증 화면 표시 (좁은 화면에서만 certificate.js 가 축소) ---------- */
.certificate_fit { max-width: 100%; }
.certificate_fit.is-scaled { overflow: hidden; }
.certificate_fit.is-scaled .certificate_completion { margin: 0; transform-origin: top left; }

/* The two standalone routes reuse a fixed site header; CMS fragments retain their layout. */
.withhorse-standalone #container { padding-top: 100px; }
/* Scope mobile overrides to the three new admin views. Existing admin screens are unchanged. */
@media (max-width: 768px) {
 body.withhorse-additional-admin { min-width: 0; }
 .withhorse-additional-admin #wrap,
 .withhorse-additional-admin .layer_wrap,
 .withhorse-additional-admin #header,
 .withhorse-additional-admin #contents,
 .withhorse-additional-admin #content { min-width: 0; width: auto; max-width: 100%; }
 .withhorse-additional-admin .lnb { display: none; }
 .withhorse-additional-admin #contents { margin-left: 0; padding-left: 0; }
 .withhorse-additional-admin #header { overflow-x: auto; }
 .withhorse-additional-admin .contents_top { height: auto; padding: 12px; }
 .withhorse-additional-admin .contents_top .location { padding: 0; }
 .withhorse-additional-admin .contents_top .search { display: none; }
 .withhorse-additional-admin .homepagebbs { padding: 12px; }
 .withhorse-additional-admin .main_table { max-width: 100%; overflow-x: auto; }
 .withhorse-additional-admin .main_table > table { min-width: 760px; }
 /* .main_table 래퍼가 없는 기존 관리자 표(입양신청 상세·검색·대행 서명 등)는 표 자체를 가로 스크롤 영역으로 만든다.
    표 내부 thead/tbody 는 하나의 익명 표로 묶여 열 정렬이 유지된다. */
 .withhorse-additional-admin .homepagebbs li { max-width: 100%; box-sizing: border-box; }
 .withhorse-additional-admin .homepagebbs table.main_table1 {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
 }
 .withhorse-additional-admin .main_table > table.main_table1 { display: table; overflow: visible; }
 .withhorse-additional-admin .homepagebbs .signature_list { flex-direction: column; }
 .withhorse-additional-admin .proxy_sign_section .sign_area { max-width: 100%; }
 .withhorse-additional-admin .seal_choice_options label { white-space: normal; }
 /* 입양신청 목록 상단 상태 건수 필터: 줄바꿈 허용 */
 .withhorse-additional-admin .status_filter,
 .withhorse-additional-admin .status_filter .filter_list { flex-wrap: wrap; height: auto; row-gap: 6px; max-width: 100%; }
 .withhorse-additional-admin .homepagebbs .search_input,
 .withhorse-additional-admin .homepagebbs textarea { width: 100% !important; }
 .withhorse-additional-admin input,
 .withhorse-additional-admin select,
 .withhorse-additional-admin textarea { max-width: 100%; box-sizing: border-box; }
 .withhorse-additional-admin .layer_popup,
 .withhorse-additional-admin .popup { max-width: calc(100vw - 24px); }
 .withhorse-standalone #container { padding-top: 80px; }
}

/* Horse selection links on registration/detail and the additional admin tools. */
.additional_horse_tools .table_btn,
.horse_selection .table_btn {display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;box-sizing:border-box;white-space:normal;margin:4px;}
