@charset "UTF-8";

/*
 * v2_tip.css — 신규 기능 안내 툴팁 (공통)
 *
 * 호버 말풍선(globalTooltip.css)과 다름. NEW 안내 + 닫기 + localStorage.
 *
 * 사용법
 *  1) 타깃 부모에 position:relative
 *  2) 아래 마크업을 부모 안에 넣는다
 *  3) data-tip-key 는 페이지마다 고유값 (닫은 뒤 다시 안 뜸) ->닫기 버튼을 누르면 v2_tip.js가 이 값을 읽어서 localStorage에 저장 다시 뜨지 않게 함
 *                                                    -> 예를 들어 data-tip-key="tip_integrate" tip_integrate: 원하는 네이밍으로 겹치지 않도록..
 *
 * 크기: v2_tip_sm | v2_tip_md | v2_tip_lg
 * 위치(화살표 포함): v2_tip_place_{top|bottom|left|right}_{start|center|end}
 *
 * 예)
 * <div class="v2_tip_wrap v2_tip_place_top_end">
 *   <div class="v2_tip v2_tip_md" data-tip-key="페이지고유키">
 *     <div class="v2_tip_head">
 *       <span class="v2_badge v2_badge_white v2_badge_capsule">NEW</span>
 *       <strong class="v2_tip_title">제목</strong>
 *       <button type="button" class="v2_tip_close" aria-label="닫기">
 *         <img src="${pageContext.request.contextPath}/_v2/images/icon/icon_close.svg" alt="">
 *       </button>
 *     </div>
 *     <p class="v2_tip_desc">설명</p>
 *   </div>
 * </div>
 */

.v2_tip_wrap {
	position:absolute;
	z-index:var(--z-tooltip, 800);
}

/* body로 옮긴 안내 팁: 부모 overflow에 잘리지 않도록 fixed 좌표만 사용.
   헤더(--z-header:1000)보다는 아래에 둔다. */
.v2_tip_wrap.v2_tip_ported {
	position:fixed;
	top:0;
	right:auto;
	bottom:auto;
	left:0;
	transform:none;
	z-index:var(--z-tooltip, 800);
}

.v2_tip {
	display:flex;
	flex-direction:column;
	align-items:flex-start;
	gap:16px;
	position:relative;
	padding:16px;
	width:280px;
	line-height:1.5;
	font-family:var(--v2-font-family);
	color:var(--v2-gray-0);
	background-color:var(--v2-blue-50);
	border-radius:var(--v2-radius-md-plus);
	box-shadow:var(--v2-shadow-navy-lg);
}

.v2_tip::after {
	content:'';
	position:absolute;
	width:0;
	height:0;
	border-style:solid;
	border-width:20px 15px 0 15px;
	border-color:var(--v2-blue-50) transparent transparent transparent;
}

.v2_tip_head {
	display:flex;
	align-items:center;
	gap:8px;
	width:100%;
}

.v2_tip_head .v2_badge {
	height:24px;
}

.v2_tip_title {
	flex:1 1 auto;
	font-size:var(--v2-text-title-sm-size);
	font-weight:700;
	color:var(--v2-gray-0);
	letter-spacing:-0.85px;
}

.v2_tip_close {
	display:flex;
	justify-content:center;
	align-items:center;
	flex-shrink:0;
	margin-left:auto;
	padding:0;
	width:24px;
	height:24px;
	background-color:transparent;
	border:none;
	cursor:pointer;
}

.v2_tip_close img {
	width:24px;
	height:24px;
	filter:invert(1);
}

.v2_tip_desc {
	margin:0;
	font-size:var(--v2-text-body-md-size);
	color:var(--v2-gray-0);
	letter-spacing:-0.85px;
}

/* 크기 */
.v2_tip_sm {
	gap:10px;
	padding:12px;
	width:200px;
}

.v2_tip_sm .v2_tip_title {
	font-size:var(--v2-text-body-md-size);
}

.v2_tip_sm .v2_tip_desc {
	font-size:var(--v2-text-body-sm-size);
}

.v2_tip_md {
	width:280px;
}

.v2_tip_lg {
	padding:20px;
	width:360px;
}

.v2_tip_lg .v2_tip_title {
	font-size:var(--v2-text-title-md-size);
}

/* 위치: 타깃 위 */
.v2_tip_place_top_start,
.v2_tip_place_top_center,
.v2_tip_place_top_end {
	bottom:calc(100% + 10px);
	top:auto;
}

.v2_tip_place_top_start {
	left:0;
	right:auto;
}

.v2_tip_place_top_center {
	left:50%;
	right:auto;
	transform:translateX(-50%);
}

.v2_tip_place_top_end {
	right:0;
	left:auto;
}

.v2_tip_place_top_start .v2_tip::after,
.v2_tip_place_top_center .v2_tip::after,
.v2_tip_place_top_end .v2_tip::after {
	bottom:-12px;
	top:auto;
}

.v2_tip_place_top_start .v2_tip::after {
	left:20px;
	right:auto;
}

.v2_tip_place_top_center .v2_tip::after {
	left:50%;
	right:auto;
	margin-left:-15px;
}

.v2_tip_place_top_end .v2_tip::after {
	right:28px;
	left:auto;
}

/* 위치: 타깃 아래 */
.v2_tip_place_bottom_start,
.v2_tip_place_bottom_center,
.v2_tip_place_bottom_end {
	top:calc(100% + 10px);
	bottom:auto;
}

.v2_tip_place_bottom_start {
	left:0;
	right:auto;
}

.v2_tip_place_bottom_center {
	left:50%;
	right:auto;
	transform:translateX(-50%);
}

.v2_tip_place_bottom_end {
	right:0;
	left:auto;
}

.v2_tip_place_bottom_start .v2_tip::after,
.v2_tip_place_bottom_center .v2_tip::after,
.v2_tip_place_bottom_end .v2_tip::after {
	top:-12px;
	bottom:auto;
	border-width:0 15px 20px 15px;
	border-color:transparent transparent var(--v2-blue-50) transparent;
}

.v2_tip_place_bottom_start .v2_tip::after {
	left:20px;
	right:auto;
}

.v2_tip_place_bottom_center .v2_tip::after {
	left:50%;
	right:auto;
	margin-left:-15px;
}

.v2_tip_place_bottom_end .v2_tip::after {
	right:28px;
	left:auto;
}

/* 위치: 타깃 오른쪽 */
.v2_tip_place_right_start,
.v2_tip_place_right_center,
.v2_tip_place_right_end {
	left:calc(100% + 20px);
	right:auto;
}

.v2_tip_place_right_start {
	top:0;
	bottom:auto;
}

.v2_tip_place_right_center {
	top:50%;
	bottom:auto;
	transform:translateY(-50%);
}

.v2_tip_place_right_end {
	bottom:0;
	top:auto;
}

.v2_tip_place_right_start .v2_tip::after,
.v2_tip_place_right_center .v2_tip::after,
.v2_tip_place_right_end .v2_tip::after {
	left:-16px;
	right:auto;
	border-width:20px 15px 0 15px;
	border-color:var(--v2-blue-50) transparent transparent transparent;
	transform:rotate(90deg);
}

.v2_tip_place_right_start .v2_tip::after {
	top:16px;
	bottom:auto;
}

.v2_tip_place_right_center .v2_tip::after {
	top:50%;
	bottom:auto;
	margin-top:-7px;
}

.v2_tip_place_right_end .v2_tip::after {
	bottom:16px;
	top:auto;
}

/* 위치: 타깃 왼쪽 */
.v2_tip_place_left_start,
.v2_tip_place_left_center,
.v2_tip_place_left_end {
	right:calc(100% + 20px);
	left:auto;
}

.v2_tip_place_left_start {
	top:0;
	bottom:auto;
}

.v2_tip_place_left_center {
	top:50%;
	bottom:auto;
	transform:translateY(-50%);
}

.v2_tip_place_left_end {
	bottom:0;
	top:auto;
}

.v2_tip_place_left_start .v2_tip::after,
.v2_tip_place_left_center .v2_tip::after,
.v2_tip_place_left_end .v2_tip::after {
	right:-16px;
	left:auto;
	border-width:20px 15px 0 15px;
	border-color:var(--v2-blue-50) transparent transparent transparent;
	transform:rotate(-90deg);
}

.v2_tip_place_left_start .v2_tip::after {
	top:16px;
	bottom:auto;
}

.v2_tip_place_left_center .v2_tip::after {
	top:50%;
	bottom:auto;
	margin-top:-7px;
}

.v2_tip_place_left_end .v2_tip::after {
	bottom:16px;
	top:auto;
}

@media (max-width:1024px) {
	.v2_tip_wrap {
		display:none;
	}
}
