/*
 * 대구10미데이 화면 스타일
 * ------------------------------------------------
 * 색 바꾸기 → 맨 위 :root 값만 수정하면 됩니다.
 * 구역:
 *   1) 기본
 *   2) 목록(포스터·분류·표)
 *   3) 참여 화면(위치·버튼)
 *   4) 상품 선택 / 모달
 *   5) 휴대폰(작은 화면)
 */

:root {
	--tenmi-red: #e31e24;
	--tenmi-navy: #25358a;
	--tenmi-purple: #362f59;
	--tenmi-purple-mid: #686282;
	--tenmi-text: #222;
	--tenmi-font: "OneStoreMobileGothicBody", sans-serif;
}

/* ========== 1) 기본 ========== */
body.tenmi {
	font-family: var(--tenmi-font) !important;
	color: var(--tenmi-text);
}
body.tenmi.eventstorelist {
}

.tenmi .spa-main-inner,
.tenmi .link a,
.tenmi .tit3 dt,
.tenmi .tit3 dd,
.tenmi .section h3,
.tenmi .section table,
.tenmi .section table th,
.tenmi .section table td {
	font-family: var(--tenmi-font);
}

.tenmi .tit3 dd {padding-left:0px !important; margin-left:0px !important;}


.tenmi .tit3 dt,
.tenmi .link a,
.tenmi .section h3,
.tenmi .section table tbody th {
    font-family: 'OneStoreMobileGothicTitleFont';
}

.tenmi .store a {
	color: #fff;
	text-decoration: none;
}
.tenmi .msg {
	display: none;
	color: red;
}
.tenmi .step2,
.tenmi .step3 {
	display: none;
}
.tenmi input[type="text"],
.tenmi input[type="tel"] {
	width: 100%; box-sizing:border-box;
}

.mt30 {margin-top:30px;}

.tenmi a.textnew {
	font-family: "GmarketSansBold", var(--tenmi-font) !important;
	font-size: 20px;
	text-decoration: none;
	font-weight: bold;
}

/* ========== 2) 목록 ========== */
.tenmi .eventtop2 {
	max-width: 1100px;
}
.tenmi .eventtop2 img.web,
.tenmi .eventtop2 img.mobile {
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.tenmi .cate-nav {
	position: sticky;
	top: 0;
	z-index: 20;
	margin-bottom: 38px;
	padding: 0 0 24px;
}
.tenmi .cate-nav-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: var(--tenmi-red);
	text-align: center;
}
.tenmi .spa-main-inner .link {
	position: static;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 0;
	background: transparent;
}
.tenmi .spa-main-inner .link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 50px;
	background: var(--tenmi-purple);
	border: none;
	box-shadow: none;
	color: #fff;
	text-decoration: none;
	font-size: 18px;
	line-height: 1.3;
	padding: 10px 18px;
	transition: background 0.15s ease;
}
.tenmi .spa-main-inner .link a:hover,
.tenmi .spa-main-inner .link a:focus {
	background: var(--tenmi-red);
	color: #fff;
	text-decoration: none;
}
.tenmi .spa-main-inner .link a {
	display: block;
	color: #fff;
	font-weight: 700;
	 font-family: 'OneStoreMobileGothicTitleFont';
	transition: transform .2s ease, filter .2s ease;
}
.spa-main-inner .link {display:flex; flex-wrap:wrap;  padding:0px 10px 30px 0px; gap: 10px; justify-content: center;}
.spa-main-inner .link a {border-radius:9999px; display:flex;flex-wrap:wrap; align-items: center;
font-family: 'OneStoreMobileGothicTitleFont'; background:rgba(0,0,0,0.2);
padding:15px 35px; font-size:27px; line-height:1.9; color:#fff; }

.spa-main-inner .link a span { margin-left:10px; text-align:Center;  font-family: 'Noto Sans KR BOLD';  line-height:29px;
display:inline-block; background:rgba(255,255,255,0.9);  border-radius:50%; width:29px; height:29px;
}


	@media (max-width:640px) {
	.spa-main-inner .link {padding:0; gap:3px;}
.spa-main-inner .link a {padding:10px 25px; font-size:19px;}
.spa-main-inner .link a span { margin-left:5px; line-height:20px;width:20px; height:20px;}

	}



/* 음식별 컬러 */
.tenmi .spa-main-inner .link a:nth-child(1)  { background-color: #ef5350; }
.tenmi .spa-main-inner .link a:nth-child(2)  { background-color: #f28c38; }
.tenmi .spa-main-inner .link a:nth-child(3)  { background-color: #e6ad25; }
.tenmi .spa-main-inner .link a:nth-child(4)  { background-color: #63a858; }
.tenmi .spa-main-inner .link a:nth-child(5)  { background-color: #26a69a; }
.tenmi .spa-main-inner .link a:nth-child(6)  { background-color: #3f9db5; }
.tenmi .spa-main-inner .link a:nth-child(7)  { background-color: #4f7fd1; }
.tenmi .spa-main-inner .link a:nth-child(8)  { background-color: #7868c7; }
.tenmi .spa-main-inner .link a:nth-child(9)  { background-color: #b45ca4; }
.tenmi .spa-main-inner .link a:nth-child(10) { background-color: #d75f82; }

.tenmi .spa-main-inner .link a:nth-child(1) span  { color: #ef5350; }
.tenmi .spa-main-inner .link a:nth-child(2) span  { color: #f28c38; }
.tenmi .spa-main-inner .link a:nth-child(3) span  { color: #e6ad25; }
.tenmi .spa-main-inner .link a:nth-child(4) span  { color: #63a858; }
.tenmi .spa-main-inner .link a:nth-child(5) span  { color: #26a69a; }
.tenmi .spa-main-inner .link a:nth-child(6) span  { color: #3f9db5; }
.tenmi .spa-main-inner .link a:nth-child(7) span  { color: #4f7fd1; }
.tenmi .spa-main-inner .link a:nth-child(8) span  { color: #7868c7; }
.tenmi .spa-main-inner .link a:nth-child(9) span  { color: #b45ca4; }
.tenmi .spa-main-inner .link a:nth-child(10) span { color: #d75f82; }


.tenmi .spa-main-inner .link a:hover {
	filter: brightness(.92);
	transform: translateY(-3px);
}



.tenmi .store-list {
	margin-top: 12px;
}
.tenmi .store-group {
	margin-bottom:clamp(30px, 2.5vw, 130px)
}
.tenmi .store-group:last-child {
	margin-bottom: 0;
}
.tenmi .store-group h3 {
	margin: 0 0 12px; text-align:Center;
	padding: 0;
	font-size:clamp(26px, 2.5vw, 60px);
	line-height: 1.4;
	color: var(--tenmi-purple);
	background: none;
	border: none;
	scroll-margin-top: 110px;
}
.tenmi .store-group h3 span {
	margin-left: 8px;
    width: 46px;
	height: 46px;
	line-height:46px;
	padding:0; display:inline-block;
	font-size: 22px;
	border-radius: 50%;
	background: #7d798e;
	color: #fff;
	vertical-align: middle;
}


	@media (max-width:640px) {
.tenmi .store-group h3 span {
    width: 36px;
	height: 36px;
	line-height:36px;
	font-size: 18px;
}

	}

.tenmi .store-table-wrap {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ========== 지도 (참여업소 위치) ========== */
.tenmi .tenmi-map-section {
	padding-top: 10px;
}
.tenmi #map {
	width: 100%;
	height: 650px;
	border-radius: 8px;
	overflow: hidden;
	background: #f3f3f3;
}
.tenmi .placeinfo_wrap {
	position: absolute;
	bottom: 28px;
	left: -150px;
	width: 300px;
	text-align: left;
	overflow: hidden;
}
.tenmi .placeinfo {
	position: relative;
	width: 100%;
	border-radius: 6px;
	border: 1px solid #ccc;
	border-bottom: 2px solid #ddd;
	padding: 0 0 28px;
	background: #fff;
	box-shadow: 0 1px 2px #888;
	box-sizing: border-box;
	overflow: hidden;
}
.tenmi .placeinfo_wrap .after {
	position: relative;
	margin-left: -12px;
	left: 50%;
	width: 22px;
	height: 12px;
	background: url("https://t1.daumcdn.net/localimg/localimages/07/mapapidoc/vertex_white.png") no-repeat;
}
.tenmi .placeinfo a,
.tenmi .placeinfo span {
	display: block;
	box-sizing: border-box;
	max-width: 100%;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
}
.tenmi .placeinfo span {
	margin: 5px 10px;
	cursor: default;
	font-size: 13px;
}
.tenmi .placeinfo .title {
	font-size: 14px;
	border-radius: 6px 6px 0 0;
	margin: -1px -1px 0;
	padding: 10px;
	position: relative;
	color: #fff;
	background: #686282 url("https://t1.daumcdn.net/localimg/localimages/07/mapapidoc/arrow_white.png") no-repeat right 14px center;
}
.tenmi .placeinfo .closeOverlay {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 9;
	cursor: pointer;
	font-size: 12px;
	color: #666;
}
.tenmi .placeinfo .address {
	padding: 0;
	min-height: 0;
	width: auto;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-height: 1.4;
}
.tenmi .placeinfo .tel {
	color: #000;
	padding: 0;
}
.tenmi .placeinfo .benefit {
	margin: 6px 10px 2px;
	padding: 6px 8px;
	width: auto;
	color: #c62828;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	white-space: normal;
	word-break: break-word;
	background: #fff5f5;
	border-left: 3px solid #ed4f83;
	border-radius: 0 4px 4px 0;
	box-sizing: border-box;
}
.tenmi .store-list .store-map-link,
.tenmi .store-list .store-map-link:link,
.tenmi .store-list .store-map-link:visited,
.tenmi .store-list .store-map-link:hover,
.tenmi .store-list .store-map-link:focus,
.tenmi .store-list .store-map-link:active {
	color: inherit;
	font-weight: 700;
	text-decoration: none !important;
	border-bottom: none !important;
	cursor: pointer;
}
.tenmi .store-list .store-map-link:hover,
.tenmi .store-list .store-map-link:focus {
	color: #ed4f83;
}
.tenmi .tenmi-map-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 280px;
	padding: 24px;
	box-sizing: border-box;
	background: #f6f5f8;
	color: #444;
	text-align: center;
	font-size: 15px;
	line-height: 1.6;
}
.tenmi .tenmi-map-fallback strong {
	color: var(--tenmi-red);
}
.tenmi .section .store-group table {
	width: 100%; 	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	margin-top: 0;
	border-top: 3px solid #3c384d;
	border-left: 1px solid rgba(0, 0, 0, 0.1);
	background: #fff;
}
.tenmi .section .store-group table thead {
	background: var(--tenmi-purple-mid);
}
.tenmi .section .store-group table thead th {
	padding: clamp(15px, 2.5vw, 20px) 12px;
	color: #fff;
	font-weight: 700;
	border-bottom: none;
}
.tenmi .section .store-group table th,
.tenmi .section .store-group table td {
	font-size:clamp(16px, 2.5vw, 19px);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-top: none; letter-spacing:0;
	border-left: none; line-height:1.3;
	padding: clamp(15px, 2.5vw, 20px) 15px;
	text-align: center;
	vertical-align: middle;
	word-break: keep-all;
}
.tenmi .section .store-group table tbody th {
	background: #eee;
	font-weight: 700;
}

/* ========== 3) 참여 화면 ========== */
.tenmi .geo-notice {
	margin: 0 0 12px;
	font-size: 14px;
	color: #fff;
	text-align: center;
	line-height: 1.5;
}
.tenmi .geo-status {
	margin: 14px 0 0;
	font-size: 14px;
	color: #fff;
	text-align: center;
	line-height: 1.5;
	font-weight: 700;
}
.tenmi .user_reg.is-busy {
	opacity: 0.75;
}
.tenmi .back-list {
	display: block;
	text-align: center;
	margin: 24px auto 40px;
}
.tenmi .back-list a {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--tenmi-navy);
	font-weight: 700;
	text-decoration: none;
}
.tenmi .back-list a:hover {
	background: #fff;
}

/* ========== 4) 상품 선택 / 모달 ========== */
body.tenmi #myModal .product-picks {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 8px;
	width: 100%;
}
body.tenmi #myModal .product-picks .btn-check {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
#p_ediya,
#p_baskin,
#p_gs25 {
	flex: 1 1 0;
	min-width: 0;
	width: auto !important;
	height: 148px;
	margin: 0;
	border: 2px solid #ddd;
	padding: 8px 4px 0;
	font-size: 13px;
	line-height: 1.3;
	white-space: normal;
	word-break: keep-all;
	text-align: center;
	box-sizing: border-box;
	background-repeat: no-repeat;
	background-position: center 46px;
	background-size: auto 72px;
	float: none !important;
	display: block;
}
#p_ediya {
	background-image: url(/kor/event/img/gift_ediya.png);
}
#p_baskin {
	background-image: url(/kor/event/img/gift_baskin.png);
}
#p_gs25 {
	background-image: url(/kor/event/img/gift_gs25.png);
}
#p_ediya:hover,
#p_baskin:hover,
#p_gs25:hover,
body.tenmi #myModal .product-picks .btn-check:checked + .btn {
	border: 2px solid #ff9639;
}
#myModal2 .modal-body {
	text-align: center;
	padding: 2em;
}
#myModal2 .modal-dialog {
	top: 40%;
}

/* 이 사이트 bootstrap.js 는 backdrop 을 modal 안쪽에 prepend 함.
   JS에서 body로 빼지만, 혹시 남아 있으면 클릭 통과 + dialog 우선 */
body.tenmi .modal > .modal-backdrop {
	z-index: 0 !important;
	pointer-events: none !important;
}
body.tenmi .modal .modal-dialog {
	position: relative;
	z-index: 2;
	pointer-events: auto;
	margin-top: 20px;
	margin-bottom: 40px;
}
body.tenmi .modal {
	z-index: 1050 !important;
}
body.tenmi .tenmi-modal-backdrop {
	z-index: 1040 !important;
}

/* 모달이 화면보다 길면 하단이 잘리지 않도록 뷰포트 안에서 스크롤 */
body.tenmi #myModal.modal {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
}
body.tenmi #myModal .modal-content {
	overflow: visible;
}
body.tenmi #myModal .privacy {
	max-height: 200px;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
}

/* ========== 5) 휴대폰 ========== */
@media (min-width: 641px) and (max-width: 1023px) {


	#p_ediya,
	#p_baskin,
	#p_gs25 {
		height: 140px;
		font-size: 12px;
		background-position: center 42px;
		background-size: auto 64px;
	}
}

@media (max-width: 640px) {



	.tenmi .cate-nav-title {
		font-size: 15px;
	}
	.tenmi .spa-main-inner .link a {
		font-size: 15px;
		padding: 8px 14px;
	}
	.tenmi .store-group {
		margin-bottom: 28px;
	}
	.tenmi .store-group h3 {
		scroll-margin-top: 88px;
	}
	.tenmi .section .store-group table {
		table-layout: auto;
		border: none;
	}
	.tenmi .section .store-group table thead {
		display: none;
	}
	.tenmi .section .store-group table,
	.tenmi .section .store-group table tbody,
	.tenmi .section .store-group table tr,
	.tenmi .section .store-group table th,
	.tenmi .section .store-group table td {
		display: block;
		width: 100%;
	}
	.tenmi .section .store-group table tr {
		margin-bottom: 12px;
		border: 1px solid rgba(0, 0, 0, 0.08);
		border-radius: 8px;
		overflow: hidden;
	}
	.tenmi .section .store-group table tbody th {
		text-align: left;
		padding: 12px 15px;
		background: var(--tenmi-purple-mid);
		color: #fff;
	}
	.tenmi .section .store-group table td {
		text-align: left;
		padding: 10px 15px 10px 90px;
		position: relative; font-size:14px;
	}
	.tenmi .section .store-group table td:before {
		content: attr(data-label);
		position: absolute;
		left: 15px;
		font-weight: 700;
		color: var(--tenmi-purple-mid);
	}
	.tenmi #map {
		height: 350px !important;
	}
	body.tenmi #myModal .product-picks {flex-direction:column;}
	#p_ediya,
	#p_baskin,
	#p_gs25 { width:100% !important;
		height: 128px !important; 
		font-size: 11px;
		line-height: 1.25; flex:1;
		padding: 6px 3px 93px 3px;
		background-position: center 40px;
		background-size: auto 52px;
	}
	body.tenmi #myModal .product-picks {
		gap: 4px; position:relative;
	}
	#myModal2 .modal-dialog {
		width: 80%;
		margin: 0 auto;
	}
	body.tenmi #myModal .modal-dialog {
		margin: 10px auto 30px;
		width: 92% !important;
	}
	body.tenmi #myModal .privacy {
		max-height: 140px;
	}
}

/* ========== 6) 구·군별 안내 (daegu10mi2) ========== */
.tenmi.tenmi2 .gu-nav {
	margin-top: 20px;
	margin-bottom: 0;
	padding-top: 20px;
	border-top: 1px solid #eee;
	border-bottom: none;
	position: static;
}
.tenmi.tenmi2 .gu-nav .link {
	gap: 10px;
}
.tenmi.tenmi2 .gu-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 50px;
	background: var(--tenmi-purple);
	border: none;
	box-shadow: none;
	color: #fff;
	font-family: var(--tenmi-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	padding: 10px 18px;
	cursor: pointer;
	transition: background 0.15s ease;
}
.tenmi.tenmi2 .gu-btn:hover,
.tenmi.tenmi2 .gu-btn:focus {
	background: var(--tenmi-red);
	color: #fff;
	outline: none;
}
.tenmi.tenmi2 .gu-btn.is-active {
	background: var(--tenmi-red);
}
.tenmi.tenmi2 .gu-btn span {
	margin-left: 0;
	min-width: 26px;
	height: 26px;
	line-height: 26px;
	padding: 0 7px;
	font-size: 13px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	color: var(--tenmi-purple);
}
.tenmi.tenmi2 .gu-btn.is-active span {
	color: var(--tenmi-red);
}
.tenmi.tenmi2 .gu-empty {
	display: none;
	margin: 24px 0 0;
	padding: 28px 16px;
	text-align: center;
	color: #666;
	font-size: 16px;
	background: #f7f6f9;
	border-radius: 8px;
}
.tenmi.tenmi2 .store-group h3 {
	scroll-margin-top: 24px;
}
.tenmi.tenmi2 .map-legend-banner {
	color: var(--tenmi-red);
}
.tenmi.tenmi2 .banner-list {
	margin-top: 24px;
	margin-bottom: 8px;
}
.tenmi.tenmi2 .banner-list h3 {
	color: var(--tenmi-red);
}
.tenmi.tenmi2 .banner-list h3 span {
	background: var(--tenmi-red);
}
.tenmi .banner-pin {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	transform: translateY(2px);
}
.tenmi .banner-pin-label {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 4px;
	background: #e31e24;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.tenmi .banner-pin-needle {
	width: 0;
	height: 0;
	margin-top: -1px;
	border-left: 7px solid transparent;
	border-right: 7px solid transparent;
	border-top: 10px solid #e31e24;
}
@media (max-width: 640px) {
	.tenmi.tenmi2 .gu-btn {
		font-size: 15px;
		padding: 8px 14px;
	}
}
