/* ===== 원래 #15 우커머스 중 ACF·Advanced Members 블록 ===== */
/* ACF·Advanced Members — 필수 표시 빨강(#f00)·경고 주황(#fd8d3b) 판을 토큰으로 */
.acf-field .acf-required,
.acf-label .acf-required { color: var(--color-accent-strong); }
.acf-notice.amem-notice:is(.-warning, .-error, .-success, .-info),
.acf-notice.amem-notice {
	background-color: var(--color-accent-soft);
	color: var(--color-ink);
	border: 0;
	border-radius: var(--radius-2xs);
}
.acf-notice.amem-notice p,
.acf-notice.amem-notice a { color: inherit; }

/* ===== 원래 #41 Advanced Members ===== */
/* Advanced Members — 계정 정보의 프로필 이미지(amem_avatar 필드, 2026-10-05).
   플러그인 기본은 브라우저 파일 입력 그대로라 [원형 자리표시 | 업로드 버튼 · 파일명] 으로 정리한다.
   업로드 버튼(::file-selector-button) 모양은 글로벌 .button--quaternary-sm 이 gb_style_targets 로 준다 — 여기서는 배치와 입력창 리셋만.
   아바타 크기는 사이트 규칙의 고정값 4rem. 빈/채운 상태 전환은 플러그인이 필드에 붙이는 .has-value 로 한다. */

.acf-field-amem-avatar .amem-image-avatar-uploader {
	display: flex;
	align-items: center;
}

/* 빈 상태 — 원형 자리표시(사람 아이콘) + 파일 선택 */
.acf-field-amem-avatar:not(.has-value) .amem-image-avatar-uploader:not(.has-value) .hide-if-value {
	min-width: 0;
	position: relative;
	display: flex;
	align-items: center;
	column-gap: var(--space-lg);
}
.acf-field-amem-avatar .hide-if-value::before {
	content: "";
	flex: 0 0 4rem;
	width: 4rem;
	height: 4rem;
	border-radius: var(--radius-circle);
	background-color: var(--color-surface);
}
/* Lucide user — 색은 배경색(토큰)을 따라간다 */
.acf-field-amem-avatar .hide-if-value::after {
	content: "";
	position: absolute;
	left: 1.25rem;
	top: 50%;
	width: 1.5rem;
	height: 1.5rem;
	transform: translateY(-50%);
	background-color: var(--color-text-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z'/%3E%3Cpath d='M20.5901 22C20.5901 18.13 16.7402 15 12.0002 15C7.26015 15 3.41016 18.13 3.41016 22'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12C14.7614 12 17 9.76142 17 7C17 4.23858 14.7614 2 12 2C9.23858 2 7 4.23858 7 7C7 9.76142 9.23858 12 12 12Z'/%3E%3Cpath d='M20.5901 22C20.5901 18.13 16.7402 15 12.0002 15C7.26015 15 3.41016 18.13 3.41016 22'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}

/* 파일 입력 — Base input(테두리·3rem 높이)을 걷어 내고 파일명만 보조 글자로 */
.acf-field-amem-avatar input.amem-avatar-upload[type="file"] {
	height: auto;
	min-height: 0;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--color-text-muted);
	font-size: var(--font-size-xs);
	line-height: var(--line-height-sm);
	cursor: pointer;
}
.acf-field-amem-avatar input.amem-avatar-upload[type="file"]::file-selector-button {
	margin-right: var(--space-xs);
	font-family: inherit;
	cursor: pointer;
}
.acf-field-amem-avatar input.amem-avatar-upload[type="file"]:focus-visible {
	outline: none;
}
.acf-field-amem-avatar input.amem-avatar-upload[type="file"]:focus-visible::file-selector-button {
	outline: 2px solid var(--color-ink);
	outline-offset: 2px;
}

/* 채운 상태 — 같은 4rem 원형. 삭제 아이콘(ACF)은 hover 에 뜬다.
   플러그인 avatar.css 의 `.acf-field.acf-field-amem-avatar … .image-wrap img{width:auto;height:auto}`(0,4,1)를 이기려고 .amem-input 을 끼워 (0,5,1). */
.acf-field.acf-field-amem-avatar .amem-input .amem-image-avatar-uploader .image-wrap {
	float: none;
	width: 4rem;
}
.acf-field.acf-field-amem-avatar .amem-input .amem-image-avatar-uploader .image-wrap img {
	width: 4rem;
	height: 4rem;
	min-width: 0; /* 플러그인 min-width:150px */
	min-height: 0;
	object-fit: cover;
	border-radius: var(--radius-circle);
	background: var(--color-surface);
}


/* 회원가입 약관 동의(user_tos → true_false) — 입력란과 같은 15px 위아래 여백이면 두 동의 줄이 64px 씩 떨어진다 → 촘촘하게, 첫 동의 위에 구분선 (2026-10-08) */
.wp-block-amem-form .amem-field-type-true-false { padding-top: var(--space-4xs); padding-bottom: var(--space-4xs); }
.wp-block-amem-form .amem-field-type-true-false.border-top { margin-top: var(--space-xs); padding-top: var(--space-md); border-top: 1px solid var(--color-line); }
.wp-block-amem-form .amem-field-type-true-false + :not(.amem-field-type-true-false) { margin-top: var(--space-md); }
/* 약관 링크는 링크로 보이게 */
.amem-agree-tos { text-decoration: underline; text-underline-offset: 0.2em; }
.amem-agree-tos:is(:hover, :focus-visible) { color: var(--color-accent); }

/* 로그인·회원가입 제출 버튼은 .width-full(추가 타깃)로 폭 100% — 글자는 가운데 (2026-10-08) */
.amem-form .amem-submit-button { justify-content: center; text-align: center; }

/* 로그인·회원가입 버튼은 밝은 파랑(accent) (2026-11-27 사용자) */
:is(.amem-form-type-login, .amem-form-type-registration, .amem-form-type-passwordreset) .amem-submit-button:not(#_) { background-color: var(--color-accent); border-color: var(--color-accent); }
:is(.amem-form-type-login, .amem-form-type-registration, .amem-form-type-passwordreset) .amem-submit-button:not(#_):is(:hover, :focus-visible) { background-color: var(--color-accent-strong); border-color: var(--color-accent-strong); }
.amem-auth-switch a.button--secondary:is(:link, :visited) { border-color: var(--color-accent); color: var(--color-accent); }

/* 로그인·회원가입 — 바탕(surface)이 푸터까지 이어지게: 이 두 화면에서만 푸터 위 여백 0 (2026-11-27 사용자 「배경 잘림, 풀로 차게」) */
body:has(.gb-element-ts24sec1, .gb-element-ts25sec1, .gb-element-ts29sec1) .site-footer-block { margin-top: 0; }

/* 회원가입 폼 — 왼쪽 필드 제목 + 오른쪽 입력, 안내문은 입력 아래 (2026-11-27 사용자). ≤767 은 위아래 그대로 */
@media (min-width: 768px) {
	.amem-form-type-registration .amem-field.acf-field:not(.amem-field-type-field-amem-errors) { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: var(--space-md); align-items: start; }
	.amem-form-type-registration .amem-field.acf-field > .acf-label { display: contents; }
	.amem-form-type-registration .amem-field.acf-field > .acf-label > label { grid-column: 1; grid-row: 1; margin: 0; padding-top: 0.75rem; line-height: 1.5; }
	.amem-form-type-registration .amem-field.acf-field > .acf-input { grid-column: 2; grid-row: 1; min-width: 0; }
	.amem-form-type-registration .amem-field.acf-field > .acf-label > .amem-field-instructions { grid-column: 2; grid-row: 2; margin: var(--space-4xs) 0 0; color: var(--color-text-muted); font-size: var(--font-size-xs); line-height: var(--line-height-xs); }
	.amem-form-type-registration .amem-field-type-radio > .acf-label > label { padding-top: 0; }
}
/* 비밀번호 찾기 제출 버튼도 로그인처럼 폭 100% (2026-11-27) */
.amem-form-type-passwordreset .amem-submit-button:not(#_) { width: 100%; justify-content: center; }
