/* A. 마이페이지·장바구니·주문서 표: 칸마다 이름표를 붙인 카드 (data-label 은 js/mobile_table_label.js) */
@media (max-width: 800px) {
	.my_table {overflow: visible;}
	.picok_table_form thead tr:not(:has(th.check)) {display: none;}

	.picok_table_form tbody tr:has(> td[data-label]) {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		padding: 14px 0;
		border-bottom: 1px solid #e4e4e4;
	}
	.picok_table_form tbody tr:has(> td[data-label]) > td {
		flex: 0 0 100%;
		width: 100%;
		min-width: 0;
		padding: 4px 0;
		text-align: left !important;
		overflow-wrap: anywhere;
	}
	.picok_table_form tbody tr:has(> td[data-label]) > td[data-label] {
		position: relative;
		min-height: 28px;
		padding-left: 100px;
		text-align: right !important;
	}
	.picok_table_form tbody tr:has(> td[data-label]) > td[data-label]::before {
		content: attr(data-label);
		position: absolute;
		left: 0;
		top: 4px;
		color: #777;
		font-size: 13px;
		font-weight: 400;
		line-height: 20px;
	}
	.picok_table_form tbody tr:has(> td[data-label]) > td:first-child,
	.picok_table_form tbody tr:has(> td[data-label]) > td:has(.p_goods_opt, .p_delivery) {
		padding-left: 0;
		text-align: left !important;
		font-weight: 600;
	}
	.picok_table_form tbody tr:has(> td[data-label]) > td:first-child::before,
	.picok_table_form tbody tr:has(> td[data-label]) > td:has(.p_goods_opt, .p_delivery)::before {content: none;}
	.picok_table_form tbody tr:has(> td[data-label]) > td:last-child:not([data-label]) {text-align: right !important;}

	.picok_table_form tbody tr:has(> td[data-label]) > td.check {flex: none; width: auto; padding: 40px 10px 0 0;}
	.picok_table_form tbody tr:has(> td[data-label]) > td.check + td {flex: 1 1 0;}

	.picok_table_form td .p_goods_opt {width: 100%; padding: 0;}
	.picok_table_form td .p_goods_opt ul {display: flex; align-items: flex-start; gap: 12px;}
	.picok_table_form td .p_goods_opt ul > li {margin: 0 !important;}
	.picok_table_form td .p_goods_opt ul > li:first-child {flex: none;}
	.picok_table_form td .p_goods_opt ul > li:last-child {flex: 1 1 0; min-width: 0; width: auto;}
	.picok_table_form td[data-label] .lg\:hidden {display: none;}
}

/* B. 입력칸 글자 16px: iPhone 이 16px 미만 칸을 누르면 화면을 확대한다 */
@media (max-width: 767px) {
	input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=reset]):not([type=image]):not([type=file]):not([type=range]):not([type=color]),
	select,
	textarea {font-size: 16px !important;}
}

/* C. 바닥글 링크: 13px, 누르는 높이 32px */
@media (max-width: 767px) {
	.picok_tail .tail_menu .tail_menu_l li {font-size: 13px; margin-right: 14px;}
	.picok_tail .tail_menu .tail_menu_l li a,
	.picok_tail .tail_info .tail_pricacy li a {display: inline-block; padding: 6px 0; line-height: 20px;}
}

/* D. 페이지 번호: 누르는 칸 36x36, 글자 15px */
@media (max-width: 767px) {
	.pagination_container > a {flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0;}
	.pagination_container div {flex-wrap: wrap; gap: 0; max-width: 180px; margin: 0;}
	.pagination_container a.page {width: 36px; height: 36px; line-height: 36px; font-size: 15px;}

	.paging_area .pagenum {min-width: 36px; height: 36px; line-height: 34px; font-size: 15px;}

	.notice_wr table[height="50"] {width: 100%;}
	.notice_wr table[height="50"] td[width="100%"] {text-align: center;}
	.notice_wr table[height="50"] td[width="100%"] a,
	.notice_wr table[height="50"] td[width="100%"] b {display: inline-block; min-width: 36px; height: 36px; line-height: 36px; font-size: 15px;}
}

/* 게시판(공지·문의) 표가 화면 폭을 넘지 않게 */
@media (max-width: 767px) {
	table.notice_wr {max-width: 100%;}
	.notice_wr .bbs_basic td.Title {overflow-wrap: anywhere;}
	.notice_wr input[type=text],
	.notice_wr select {height: 34px; padding: 0 6px; vertical-align: middle;}
	.notice_wr input.Box100 {width: 140px;}
}

/* E. 고객센터 탭: 한 줄로, 넘치면 옆으로 밀어서 */
@media (max-width: 767px) {
	.cus_tab {overflow-x: auto; scrollbar-width: none;}
	.cus_tab::-webkit-scrollbar {display: none;}
	.cus_tab ul {width: max-content; flex-wrap: nowrap; gap: 10px; white-space: nowrap;}
	.cus_tab ul li {font-size: 16px; padding: 6px 0;}
}

/* F. 장바구니: 전체 선택 줄, 체크칸·사진·상품명 한 줄, 주문 버튼 크기 */
@media (max-width: 767px) {
	.picok_table_form thead th.check {height: auto; padding: 10px 0; text-align: left;}
	.picok_table_form thead th.check label {display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: #111; cursor: pointer;}
	.picok_table_form thead th.check label::after {content: '전체 선택';}
	.picok_table_form td .p_goods_opt .p_goods_tb {width: 80px; height: 80px;}
	.picok_table_form tbody tr:has(> td[data-label]) > td.check {padding-top: 30px;}

	.c_total_form {display: flex; gap: 8px;}
	.c_total_form .c_total_btn {flex: 1 1 0; width: auto; height: 48px; padding: 0; margin: 0;}
}

/* G. 옛 로그인 화면(/bbs/login.php): 587px 고정 표를 화면 폭에 맞춤 */
@media (max-width: 767px) {
	#main table[width="587"],
	#main table[width="587"] table {width: 100% !important; height: auto !important;}
	#main table[width="587"] td {background-image: none !important;}
	#main table[width="587"] td[width] {width: auto;}
	#main table[width="587"] td[height] {height: 16px;}
	#main table[width="587"] td:has(> input[name=wr_loginid])::before {content: '아이디'; display: block; margin-bottom: 4px; font-size: 13px; color: #777;}
	#main table[width="587"] td:has(> input[name=wr_password])::before {content: '비밀번호'; display: block; margin-bottom: 4px; font-size: 13px; color: #777;}
	#main table[width="587"] input[name=wr_loginid],
	#main table[width="587"] input[name=wr_password] {width: 100% !important; height: 40px !important; padding: 0 8px;}
	#main img {max-width: 100%; height: auto;}
}
