:root {
	--ag-footer-brand: #b4000b;
	--ag-footer-text: #222;
	--ag-footer-muted: #777;
	--ag-footer-line: #e5e7eb;
	--ag-footer-soft: #f5f6f7;
}

.ag-v3-footer,
.ag-v3-footer *,
.ag-v3-bottom-nav,
.ag-v3-bottom-nav *,
.ag-v3-float-tools,
.ag-v3-float-tools * {
	box-sizing: border-box;
}

.ag-v3-footer {
	clear: both;
	margin-top: 40px;
	padding: 30px 20px 112px;
	border-top: 8px solid var(--ag-footer-soft);
	background: #fff;
	color: var(--ag-footer-text);
	font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

.ag-v3-footer-brand strong {
	display: block;
}

.ag-v3-footer-brand strong img {
	display: block;
	width: min(210px, 62vw);
	height: auto;
}

.ag-v3-footer-brand p {
	margin: 8px 0 0;
	color: var(--ag-footer-muted);
	font-size: 14px;
}

.ag-v3-footer-links {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 23px 0 0;
	padding: 15px 0;
	border-top: 1px solid var(--ag-footer-line);
	border-bottom: 1px solid var(--ag-footer-line);
}

.ag-v3-footer a {
	color: inherit;
	text-decoration: none;
}

.ag-v3-footer-links a {
	position: relative;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.ag-v3-footer-links a + a::before {
	position: absolute;
	top: 2px;
	bottom: 2px;
	left: 0;
	width: 1px;
	background: var(--ag-footer-line);
	content: "";
}

.ag-v3-footer-account {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 17px;
}

.ag-v3-footer-account a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 7px;
	border: 1px solid var(--ag-footer-line);
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

.ag-v3-footer-account a.is-primary {
	border-color: var(--ag-footer-brand);
	background: var(--ag-footer-brand);
	color: #fff;
}

.ag-v3-footer-contact {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
	margin-top: 18px;
}

.ag-v3-footer-contact a {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 62px;
	padding: 10px;
	border-radius: 12px;
	background: var(--ag-footer-soft);
}

.ag-v3-contact-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	margin-right: 9px;
	border-radius: 50%;
	font-size: 15px;
	font-weight: 900;
}

.ag-v3-contact-icon img {
	display: block;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}

.ag-v3-contact-icon.is-kakao {
	background: #fee500;
	color: #171717;
}

.ag-v3-contact-icon.is-naver {
	background: #03c75a;
	color: #fff;
}

.ag-v3-footer-contact strong,
.ag-v3-footer-contact small {
	display: block;
}

.ag-v3-footer-contact strong {
	font-size: 15px;
}

.ag-v3-footer-contact small {
	margin-top: 3px;
	color: var(--ag-footer-muted);
	font-size: 12px;
}

.ag-v3-footer-tools {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px 16px;
	margin-top: 21px;
}

.ag-v3-footer-tools a,
.ag-v3-footer-tools button {
	padding: 4px 0;
	border: 0;
	background: transparent;
	color: #666;
	font-family: inherit;
	font-size: 14px;
}

.ag-v3-company-details {
	margin-top: 17px;
	border-top: 1px solid var(--ag-footer-line);
}

.ag-v3-company-details summary {
	padding: 14px 0 8px;
	color: #555;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.ag-v3-company-details address {
	padding: 5px 0 8px;
	color: #777;
	font-size: 13px;
	font-style: normal;
	line-height: 1.7;
}

.ag-v3-footer-copy {
	margin: 13px 0 0;
	color: #aaa;
	font-size: 11px;
	text-align: center;
}

.ag-v3-bottom-nav {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 7000;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	height: calc(76px + env(safe-area-inset-bottom));
	padding: 5px 4px env(safe-area-inset-bottom);
	border-top: 1px solid var(--ag-footer-line);
	background: rgba(255, 255, 255, .97);
	font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
	box-shadow: 0 -5px 18px rgba(0, 0, 0, .08);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.ag-v3-bottom-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 0;
	border-radius: 10px;
	color: #666;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.ag-v3-bottom-nav a.is-active {
	color: var(--ag-footer-brand);
}

.ag-v3-bottom-nav svg {
	width: 29px;
	height: 29px;
	margin-bottom: 3px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ag-v3-bottom-nav .ag-v3-home-mark {
	display: block;
	width: auto;
	height: 40px;
	margin-bottom: 0;
	object-fit: contain;
}

.ag-v3-bottom-nav a:first-child span {
	display: block;
	min-height: 17px;
	font-size: 15px;
	line-height: 17px;
	transform: translateY(-4px);
}

.ag-v3-float-tools {
	position: fixed;
	right: 12px;
	bottom: calc(90px + env(safe-area-inset-bottom));
	z-index: 6900;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.ag-v3-float-tools button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: rgba(255, 255, 255, .96);
	color: #333;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}

.ag-v3-float-tools button[hidden] {
	display: none;
}

.ag-v3-float-tools svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.ag-v3-footer-enabled {
	padding-bottom: calc(150px + env(safe-area-inset-bottom));
}

body.ag-v3-footer-enabled.ag-v3-detail-page,
body.ag-v3-footer-enabled.ag-modern-detail {
	padding-bottom: 82px;
}

body.ag-v3-detail-page .ag-v3-bottom-nav,
body.ag-modern-detail .ag-v3-bottom-nav {
	display: none;
}

body.ag-v3-detail-page .detailSubmenu .danFont,
body.ag-modern-detail .detailSubmenu .danFont {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding-top: 0 !important;
	font-size: 15px !important;
	line-height: 24px !important;
}

@media (min-width: 721px) {
	.ag-v3-bottom-nav {
		right: auto;
		left: 50%;
		width: 720px;
		transform: translateX(-50%);
	}
}

@media (max-width: 359px) {
	.ag-v3-footer {
		padding-right: 14px;
		padding-left: 14px;
	}

	.ag-v3-footer-contact small {
		display: none;
	}
}
