@charset "UTF-8";
/*
 *  File Name   : /hub/assets/css/consent.css
 *  Description : 연령 확인 · 쿠키 동의 — 공통 팝업에 없는 부분만
 *
 *  판 · 제목 · 본문 · 버튼은 layerpopup.css 그대로 씀. 시안 치수가 그것과 같음
 */

/* ===== 21+ 아이콘 ===== */

/*
 * 네모를 45° 돌린 것. 자리는 돌린 뒤 크기(96 × √2)만큼 차지함
 * 글자는 안 돌아가야 해서 테두리만 돌리고 글자는 따로 얹음
 * 글자를 SVG 로 빼면 Inter 가 안 실려 모양이 달라짐
 */
.consent-age21 {position: relative; display: flex; align-items: center; justify-content: center;
	width: 136px; height: 136px; margin: 0 auto;}
/* 가운데는 translate 로 — 음수 마진은 홀수 크기에서 반픽셀이 남음 */
.consent-age21::before,
.consent-age21::after {content: ''; position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%) rotate(45deg);}
.consent-age21::before {width: 84px; height: 84px; border-radius: 12px; background: #5b5b5b;}
.consent-age21::after {width: 74px; height: 74px; border: 2px solid #797a7b; border-radius: 10px;}
.consent-age21__txt {position: relative; color: #fafafa; font-weight: 800; font-size: 42px; line-height: 1;}
/* + 는 윗첨자 — 글자선에 두면 숫자 가운데까지 내려옴 */
.consent-age21__txt i {position: relative; top: -7px; font-style: normal; font-size: 36px;}

/* ===== 접근 제한 아이콘 ===== */

.consent-blocked-ico {display: block; width: 96px; height: 96px; margin: 0 auto;
	background: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='48' cy='48' r='42' fill='%23CA2134'/%3E%3Cpath d='M30 8C42.1 8 52 17.9 52 30C52 42.1 42.1 52 30 52C17.9 52 8 42.1 8 30C8 17.9 17.9 8 30 8ZM30 12.4C25.82 12.4 22.08 13.72 19.22 16.14L43.86 40.78C46.06 37.7 47.6 33.96 47.6 30C47.6 20.32 39.68 12.4 30 12.4ZM40.78 43.86L16.14 19.22C13.72 22.08 12.4 25.82 12.4 30C12.4 39.68 20.32 47.6 30 47.6C34.18 47.6 37.92 46.28 40.78 43.86Z' transform='translate(18 18)' fill='%23FAFAFA'/%3E%3C/svg%3E") no-repeat 50% 50%/96px 96px;}

/* ===== 안내 글 ===== */

.consent-note {margin-top: 16px; color: #5b6069; font-size: 18px; line-height: 1.5;}
.consent-note a {color: #0062d2; text-decoration: underline;}

/* 차단 화면의 안내 띠 — 버튼이 아님. 누를 곳이 없다는 것이 보여야 해서 바탕만 깔았음 */
.consent-notice {display: flex; gap: 12px; margin-top: 40px; padding: 16px 20px;
	border-radius: 12px; background: #e9edf2;
	color: #5b6069; font-size: 18px; line-height: 1.5; text-align: left;}
/* 동그라미와 i 가 둘 다 테두리·글자라 SVG 로 안 뺌 */
.consent-notice__ico {flex: none; display: flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; margin-top: 2px; border: 2px solid #5b6069; border-radius: 50%;
	font-weight: 700; font-size: 14px; line-height: 1;}

/* ===== 쿠키 배너 ===== */

/*
 * 레이어팝업이 아님 — 딤도 없고 스크롤도 안 잠금
 * z 는 헤더(100) 위, 레이어팝업(200) 아래
 */
.cookie-banner {position: fixed; z-index: 120; left: 0; right: 0; bottom: 0;
	display: flex; align-items: center; gap: 40px;
	padding: 24px 24px 24px 48px; background: #fafafa;
	box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
	transform: translateY(100%);
	transition: transform 300ms var(--ease-out);}
.cookie-banner[hidden] {display: none;}
.cookie-banner.is-open {transform: none;}
/* 손잡이는 바텀시트로 바뀌는 모바일에서만 */
.cookie-banner__handle {display: none;}
.cookie-banner__text {flex: 1 1 0; min-width: 0; color: #1b1b1b; font-size: 16px; line-height: 27px;}
.cookie-banner__link {color: #0062d2; text-decoration: underline;}
.cookie-banner__actions {flex: none; display: flex; gap: 12px;}
.cookie-banner__btn {height: 48px; padding: 0 16px; border: 0; border-radius: 6px;
	background: #1281ff; color: #fafafa;
	font: inherit; font-weight: 500; font-size: 16px; white-space: nowrap; cursor: pointer;}
.cookie-banner__close {flex: none; width: 44px; height: 44px; border: 0; cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 14L30 30M30 14L14 30' stroke='%231B1B1B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 50% 50%/44px 44px;}

/*
 * 태블릿 — 한 줄에 다 두면 글 칸이 짓눌려 배너가 세로로 길어짐
 * 버튼줄을 아래로 내려 폭을 셋이 똑같이 나누고, 닫기는 줄바꿈에 안 끌리게 오른쪽 위로 띄움
 */
@media all and (min-width: 861px) and (max-width: 1280px) {
	.cookie-banner {flex-wrap: wrap; row-gap: 16px;}
	/* 56 은 닫기(44)와 그 간격 — 첫 줄이 닫기 밑으로 들어감 */
	.cookie-banner__text {flex: 1 1 100%; padding-right: 56px;}
	.cookie-banner__actions {flex: 1 1 100%;}
	.cookie-banner__btn {flex: 1 1 0; min-width: 0;}
	.cookie-banner__close {position: absolute; right: 24px; top: 24px;}
}

/* ===== 쿠키 설정 ===== */

.layerpopup[data-layer="cookie-settings"] .layerpopup__panel {--layerpopup-pad-x: 32px;
	width: 800px; padding: 32px; text-align: left;}
/* 공통 닫기값(16)은 판 여백이 40일 때 기준 — 여기는 32 라 머리말 끝에 맞춤. 아이콘 · 크기는 공통 것 그대로 */
.layerpopup[data-layer="cookie-settings"] .layerpopup__close {right: 32px; top: 32px;}

.cookie-settings__head {display: flex; align-items: center; justify-content: center; height: 44px;}
.cookie-settings__title {color: #1b1b1b; font-weight: 700; font-size: 28px; line-height: 1.22;}

/*
 * 왼쪽 목록 + 오른쪽 내용
 * 마크업은 [여는 버튼 + 내용] 한 쌍씩이라 쌍을 풀어서 각각 다른 칸으로 보냄
 * 모바일에서는 격자를 걷어 한 덩이로 돌아감
 */
.cookie-settings__body {display: grid; grid-template-columns: 264px 1fr; margin-top: 24px;
	border: 1px solid #d3d6db; overflow: hidden;}
.cookie-settings__item {display: contents;}

.cookie-settings__tab {grid-column: 1; display: flex; align-items: center; height: 60px;
	padding: 0 16px 0 12px; border: 0; border-left: 4px solid transparent;
	background: #e9edf2; color: #5b6069;
	font: inherit; font-size: 18px; text-align: left; cursor: pointer;}
.cookie-settings__tab.is-active {border-left-color: #1281ff; background: #fafafa;
	color: #1b1b1b; font-weight: 500;}

/* 네 칸을 모두 차지함 — 목록 높이(60 × 4)가 곧 내용 높이 */
.cookie-settings__panel {grid-column: 2; grid-row: 1 / 5; display: none; overflow: auto;
	flex-direction: column; gap: 8px; padding: 20px 24px 24px;}
.cookie-settings__panel.is-active {display: flex;}
.cookie-settings__panel-head {flex: none; display: flex; align-items: center; gap: 16px;}
.cookie-settings__name {flex: 1 1 0; min-width: 0; color: #1b1b1b; font-weight: 500; font-size: 20px; line-height: 1.2;}
.cookie-settings__always {flex: none; color: #1e8e3e; font-weight: 500; font-size: 18px; line-height: 1.22;}
.cookie-settings__desc {color: #5b6069; font-size: 18px; line-height: 1.5;}

/* 토글 — 트랙이 곧 버튼이고 손잡이는 ::after */
.cookie-settings__toggle {position: relative; flex: none; width: 52px; height: 32px; padding: 0;
	border: 0; border-radius: 16px; background: #7c838c; cursor: pointer;
	transition: background-color 160ms var(--ease-out);}
.cookie-settings__toggle::after {content: ''; position: absolute; left: 4px; top: 4px;
	width: 24px; height: 24px; border-radius: 50%; background: #fafafa;
	transition: transform 160ms var(--ease-out);}
.cookie-settings__toggle[aria-checked="true"] {background: #1281ff;}
.cookie-settings__toggle[aria-checked="true"]::after {transform: translateX(20px);}

.cookie-settings__actions {display: flex; gap: 12px; margin-top: 24px;}
.cookie-settings__btn {flex: 1 1 0; min-width: 0; height: 56px; padding: 0 16px;
	border: 0; border-radius: 6px; background: #1281ff; color: #fafafa;
	font: inherit; font-weight: 500; font-size: 20px; white-space: nowrap; cursor: pointer;}

/* mobile */
@media all and (max-width: 860px) {
	/* consent-age21 */
	.consent-age21 {width: 74px; height: 74px;}
	.consent-age21::before {width: 47px; height: 47px; border-radius: 6px;}
	.consent-age21::after {width: 40px; height: 40px; border-radius: 5px;}
	.consent-age21__txt {font-size: 21px;}
	.consent-age21__txt i {top: -3px; font-size: 18px;}

	.consent-blocked-ico {width: 52px; height: 52px; background-size: 52px 52px;}

	.consent-note {margin-top: 8px; font-size: 14px;}

	.consent-notice {gap: 8px; margin-top: 24px; padding: 12px 14px; font-size: 14px;}
	.consent-notice__ico {width: 18px; height: 18px; margin-top: 1px; border-width: 1px; font-size: 12px;}

	/* 시안은 세로 두 줄 — 주 동작이 위. 마크업은 PC 차례(거부 왼쪽)라 뒤집어서 씀 */
	.layerpopup[data-layer="age-gate"] .layerpopup__actions {flex-direction: column-reverse;}
	/* 세로로 바뀌면 flex-basis 0 이 높이를 먹음 */
	.layerpopup[data-layer="age-gate"] .layerpopup__btn {flex: none;}

	/* ===== 쿠키 배너 — 바텀시트 ===== */

	.cookie-banner {flex-direction: column; align-items: stretch; gap: 16px;
		padding: 8px 16px calc(24px + env(safe-area-inset-bottom));
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -2px 4px rgba(0, 0, 0, .16);}
	/* 28 은 닫기(48)가 들어앉을 자리 — 손잡이만 두면 글이 닫기 밑으로 들어감 */
	.cookie-banner__handle {display: block; width: 40px; height: 4px; margin: 0 auto 28px;
		border-radius: 2px; background: #d9dbe0;}
	.cookie-banner__text {flex: none; font-size: 16px; line-height: 1.5;}
	.cookie-banner__actions {flex-direction: column; gap: 12px; margin-left: 0;}
	.cookie-banner__btn {font-size: 16px;}
	/* 띠가 120 이라 그 바로 아래 — 머리말(100)은 덮음 */
	.cookie-banner__dim {--layer-dim-z: 110;}
	.cookie-banner__close {position: absolute; right: 8px; top: 8px; width: 48px; height: 48px;
		background-size: 48px 48px;}

	/* ===== 쿠키 설정 — 아코디언 ===== */

	.layerpopup[data-layer="cookie-settings"] .layerpopup__panel {--layerpopup-pad-x: 16px;
		width: 100%; padding: 8px 16px;}
	.layerpopup[data-layer="cookie-settings"] .layerpopup__close {right: 16px; top: 16px;
		width: 48px; height: 48px; background-size: 48px 48px;}

	.cookie-settings__head {justify-content: flex-start; height: auto; margin-top: 44px;}
	.cookie-settings__title {font-size: 20px;}

	/* 격자를 걷음 — 분류마다 한 줄이고 설명은 펼칠 때만 */
	.cookie-settings__body {display: block; margin: 16px -16px 0; border: 0; overflow: visible;}
	/* 가로 16 은 라벨·토글·꺾쇠 사이, 세로 8 은 머리와 설명 사이 */
	.cookie-settings__item {position: relative; display: flex; flex-wrap: wrap; align-items: center;
		gap: 8px 16px; padding: 12px 16px; border-bottom: 1px solid #d9dbe0;}
	.cookie-settings__item.is-active {padding-bottom: 16px;
		border-bottom-color: transparent; background: #e9edf2;}

	/* 라벨 · 토글 · 펼침표시 · 설명 차례 — 마크업은 라벨 다음이 설명이라 돌려 놓음 */
	.cookie-settings__tab {order: 1; flex: 1 1 0; grid-column: auto; height: 44px; padding: 0;
		border-left: 0; background: none; color: #1b1b1b; font-weight: 500; font-size: 16px;}
	.cookie-settings__tab.is-active {background: none;}
	/* 누를 곳은 줄 전체 — consent.js 가 .cookie-settings__item 으로 받음. 토글만 따로 받음 */

	/* is-active 까지 같이 적어야 함 — PC 의 .is-active 규칙이 더 셈 */
	.cookie-settings__panel,
	.cookie-settings__panel.is-active {display: contents;}
	.cookie-settings__panel-head {order: 2; gap: 16px;}
	/* 라벨이 이미 왼쪽에 있음 */
	.cookie-settings__name {display: none;}
	.cookie-settings__always {font-size: 15px;}
	.cookie-settings__toggle {position: relative; z-index: 1;}

	.cookie-settings__item::after {content: ''; order: 3; flex: none; width: 32px; height: 32px;
		background: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 38L48 58L68 38' stroke='%235B6069' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 50% 50%/32px 32px;}
	/* 열리면 위로 — 그림을 바꿔 끼움. 돌리지 않음 */
	.cookie-settings__item.is-active::after {background-image: url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 58L48 38L68 58' stroke='%235B6069' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");}

	.cookie-settings__desc {order: 4; flex: 0 0 100%; display: none; font-size: 15px;}
	.cookie-settings__panel.is-active .cookie-settings__desc {display: block;}

	.cookie-settings__actions {flex-direction: column; gap: 12px; margin-top: 16px;}
	.cookie-settings__btn {flex: none; height: 48px; font-size: 16px;}
}

/* 가로로 누운 폰 — 바닥 버튼줄을 세움. 공통 규칙과 같은 꼴이고 판 여백만 이쪽 값 */
@media all and (orientation: landscape) and (max-height: 500px) {
	.layerpopup[data-layer="cookie-settings"] .layerpopup__panel {padding-bottom: 0;}
	.cookie-settings__actions {position: sticky; z-index: 1; bottom: 0;
		margin-left: calc(var(--layerpopup-pad-x) * -1); margin-right: calc(var(--layerpopup-pad-x) * -1);
		padding: 12px var(--layerpopup-pad-x) calc(24px + env(safe-area-inset-bottom));
		background: var(--layerpopup-fade);}

	/* 세로로 쌓으면 버튼만 시트의 3/4 를 먹음 — 가로는 폭이 남으니 한 줄로 */
	.cookie-settings__actions,
	.cookie-banner__actions,
	.layerpopup[data-layer="age-gate"] .layerpopup__actions {flex-direction: row;}
	.cookie-settings__btn,
	.cookie-banner__btn {flex: 1 1 0; min-width: 0;}
	.layerpopup[data-layer="age-gate"] .layerpopup__btn {flex: 1 1 0;}
}
