@charset "utf-8";
/* 상품 목록에서 옵션을 선택하는 모달 스타일. PC 화면에만 적용된다 */

#kbopt_modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000000;
	font-family: 'Nanum Gothic', sans-serif;
	color: #333;
}

#kbopt_modal.on { display: block; }

.kbopt_dim {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.5);
}

.kbopt_panel {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 520px;
	max-height: 86vh;
	background: #fff;
	border: 1px solid #d5d5d5;
	box-shadow: 0 10px 30px rgba(0,0,0,.2);
	overflow: hidden;
}

.kbopt_load {
	margin: 0;
	padding: 70px 0;
	color: #888;
	font-size: 14px;
	text-align: center;
}

/* 머리 */
.kbopt_head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 56px;
	padding: 0 20px;
	border-bottom: 2px solid #333;
}

.kbopt_title {
	margin: 0;
	font-size: 17px;
	font-weight: bold;
	color: #111;
}

.kbopt_close {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	color: #999;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.kbopt_close:hover { color: #333; }

/* 본문 */
.kbopt_body {
	padding: 20px;
	max-height: calc(86vh - 132px);
	overflow-y: auto;
}

.kbopt_item {
	display: flex;
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid #eee;
}

.kbopt_thumb {
	flex: 0 0 auto;
	display: block;
	width: 90px;
	height: 90px;
	border: 1px solid #f0f0f0;
	overflow: hidden;
}

.kbopt_thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kbopt_item_info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kbopt_item_name {
	font-size: 15px;
	font-weight: bold;
	color: #222;
	line-height: 1.4;
	word-break: break-all;
}

.kbopt_tags em {
	display: inline-block;
	margin: 0 4px 4px 0;
	padding: 2px 8px;
	background: #f2f7f7;
	color: #4d9b96;
	font-size: 12px;
	font-style: normal;
}

.kbopt_code {
	color: #aaa;
	font-size: 12px;
}

/* 지정된 선택옵션을 변경할 때 현재 값을 표시한다 */
.kbwish_now {
	display: block;
	margin-top: 4px;
	color: #2dbdb6;
	font-size: 13px;
}

/* 옵션 선택 */
.kbopt_sel { padding-top: 18px; }

.kbopt_grp + .kbopt_grp {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #f2f2f2;
}

.kbopt_grp_name {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: bold;
	color: #333;
}

.kbopt_grp_name em {
	margin-left: 8px;
	color: #999;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
}

.kbopt_sel .get_item_options,
.kbopt_sel .get_item_supply {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}

.kbopt_sel .label-title,
.kbopt_sel label {
	flex: 0 0 130px;
	color: #555;
	font-size: 13px;
	word-break: break-all;
}

.kbopt_sel .get_item_options > span,
.kbopt_sel .get_item_supply > span {
	flex: 1;
	min-width: 0;
}

.kbopt_sel select {
	width: 100%;
	height: 38px;
	padding: 0 8px;
	border: 1px solid #ddd;
	background: #fff;
	color: #333;
	font-family: 'Nanum Gothic', sans-serif;
	font-size: 13px;
	box-sizing: border-box;
}

.kbopt_sel select:disabled {
	background: #f5f5f5;
	color: #aaa;
}

/* 수량 */
.kbopt_qty {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #eee;
}

.kbopt_qty_name {
	flex: 0 0 130px;
	color: #555;
	font-size: 13px;
}

.kbopt_qty_ctl { display: inline-flex; }

.kbopt_qty_ctl button {
	width: 34px;
	height: 34px;
	border: 1px solid #ddd;
	background: #fafafa;
	color: #555;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.kbopt_qty_ctl button:hover { border-color: #2dbdb6; color: #2dbdb6; }

.kbopt_qty_val {
	width: 56px;
	height: 34px;
	margin: 0 -1px;
	border: 1px solid #ddd;
	color: #222;
	font-size: 14px;
	text-align: center;
	box-sizing: border-box;
}

.kbopt_qty_note {
	color: #999;
	font-size: 12px;
}

/* 단추 */
.kbopt_foot {
	display: flex;
	gap: 8px;
	padding: 16px 20px;
	border-top: 1px solid #eee;
	background: #fafafa;
}

.kbopt_btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 46px;
	border: 1px solid #2dbdb6;
	background: #fff;
	color: #2dbdb6;
	font-family: 'Nanum Gothic', sans-serif;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.kbopt_btn_cart:hover { background: #eaf8f7; }

.kbopt_btn_buy {
	background: #2dbdb6;
	color: #fff;
	font-weight: bold;
}

.kbopt_btn_buy:hover { border-color: #1b8f8a; background: #1b8f8a; }

/* ===== 관심상품 등록 창 ===== */

/* 옵션이 없는 상품은 상품 정보 아래에 저장 위치가 바로 이어진다 */
.kbwish_form .kbopt_body > .kbwish_folder { margin-top: 20px; }

.kbwish_note {
	margin: 14px 0 0;
	padding: 10px 12px;
	background: #f7fbfb;
	color: #6a8f8d;
	font-size: 12px;
	line-height: 1.6;
}

.kbwish_folder {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #eee;
}

.kbwish_folder_list {
	margin: 0;
	padding: 0;
	max-height: 190px;
	overflow-y: auto;
	border: 1px solid #eee;
	list-style: none;
}

.kbwish_folder_list li + li { border-top: 1px solid #f4f4f4; }

.kbwish_folder_list label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	color: #444;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	word-break: break-all;
}

.kbwish_folder_list label:hover { background: #f7fbfb; }

.kbwish_folder_list input[type=radio] {
	width: 15px;
	height: 15px;
	margin: 0;
	flex-shrink: 0;
	accent-color: #2dbdb6;
}

/* 하위 폴더는 한 단계 들여쓴다 */
.kbwish_folder_list .kbwish_sub label { padding-left: 34px; }

/* 선택한 위치를 강조한다 */
.kbwish_folder_list li:has(input:checked) label {
	background: #eaf8f7;
	color: #17847f;
	font-weight: bold;
}

.kbwish_btn_save { font-weight: bold; }
