/*
Theme Name: Babdori
*/

/* =========================
   Pretendard Font
   ========================= */

@font-face {
	font-family: 'Pretendard';
	src: url('/wp-content/themes/babdori/assets/fonts/Pretendard-Regular.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Pretendard';
	src: url('/wp-content/themes/babdori/assets/fonts/Pretendard-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Pretendard';
	src: url('/wp-content/themes/babdori/assets/fonts/Pretendard-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* =========================
   Reset & Base (수정본)
   ========================= */

* {
  box-sizing: border-box;
}

html {
	scrollbar-gutter: stable;
}

body {
  margin: 0;
  padding-bottom: 54px;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #F5F7F9;
  color: #111827;
}

/* =========================
   Layout / Footer / Bottom Nav
   ========================= */
.site-header {
	display: none !important;
}

.site-logo {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	color: #111827;
}

.site-footer-inner,
.content-area,
.single-eats-inner {
	max-width: 480px;
	margin: 0 auto;
	padding: 14px 12px 8px;
}

/* 푸터 숨김 */
.site-footer {
	display: none !important;
}

/* =========================
   Bottom Navigation - Floating Global
   ========================= */
.babdori-bottom-nav {
	position: fixed !important;
	left: 50% !important;
	z-index: 9999;
	display: grid !important;
	grid-template-columns: repeat(5, 1fr);
	width: min(480px, 100%) !important;
	max-width: 480px !important;
	bottom: 0 !important;
	height: calc(62px + env(safe-area-inset-bottom)) !important;
	padding: 6px 6px calc(8px + env(safe-area-inset-bottom)) !important;
	border: 1px solid rgba(226, 232, 240, 0.85) !important;
	border-bottom: 0 !important;
	border-radius: 0 !important;
	background: rgba(255, 255, 255, 0.94) !important;
	backdrop-filter: blur(14px);
	box-shadow: none !important;
	transform: translateX(-50%) !important;
	box-sizing: border-box;
}

.babdori-bottom-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 0;
	padding: 6px 2px 5px;
	border-radius: 15px;
	color: #64748b;
	text-decoration: none !important;
	font-size: 11px;
	font-weight: 700;
	transition: 0.15s ease;
}

.babdori-bottom-nav-item:hover,
.babdori-bottom-nav-item:active {
	background: #f1f5f9;
	color: #2563EB;
}

.babdori-bottom-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	color: currentColor;
	line-height: 1;
}

.babdori-bottom-nav-icon svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.babdori-bottom-nav-item em {
	font-style: normal;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.15;
	white-space: nowrap;
}

/* 지도 페이지에서는 헤더 숨김 */
body:has(.babdori-map-page) .site-header,
body:has(.babdori-map-page) header {
	display: none !important;
}

/* 제보 오버레이에서는 사이트 헤더/하단 내비 숨김 */
.babdori-submit-overlay-body .site-header,
.babdori-submit-overlay-body header,
.babdori-submit-overlay-body .babdori-bottom-nav,
.babdori-submit-overlay-body .site-footer {
	display: none !important;
}

.babdori-submit-overlay-body {
	margin: 0 !important;
	padding-bottom: 0 !important;
	background: #fff;
	overflow-x: hidden;
}

.babdori-submit-overlay-body .content-area,
.babdori-submit-overlay-body .babdori-submit-page {
	max-width: 100% !important;
	width: 100% !important;
	min-height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.babdori-submit-overlay-body .babdori-submit-card {
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

/* 제보하기 오버레이 내부 스크롤바 숨김 */
html:has(body.babdori-submit-overlay-body),
body.babdori-submit-overlay-body {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html:has(body.babdori-submit-overlay-body)::-webkit-scrollbar,
body.babdori-submit-overlay-body::-webkit-scrollbar {
	display: none;
}

.babdori-submit-overlay-body .babdori-submit-page {
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.babdori-submit-overlay-body .babdori-submit-page::-webkit-scrollbar {
	display: none;
}

input,
textarea,
select {
	font-size: 16px;
}

/* =========================
   Gallery
   ========================= */
.eats-gallery-slider {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: 12px;
}

.eats-gallery-track {
  display: flex;
  transition: transform 0.35s ease;
}

.eats-gallery-slide {
  min-width: 100%;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

.eats-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eats-gallery-empty {
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #6b7280;
  border-radius: 12px;
}

/* =========================
   Title
   ========================= */
.eats-header {
  margin: 18px 0;
}

.single-title {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 6px;
}

.eats-title-meta {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* =========================
   Card
   ========================= */
.eats-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.eats-card h2 {
  font-size: 16px;
  margin: 0 0 10px;
}

/* =========================
   Keyword Pills
   ========================= */
.eats-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eats-pills span {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

/* =========================
   Info / Hours / Price
   ========================= */
.eats-info-row,
.eats-hours-row,
.eats-price-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.eats-info-row:last-child,
.eats-hours-row:last-child,
.eats-price-row:last-child {
  border-bottom: 0;
}

.eats-info-row strong,
.eats-hours-row strong {
  color: #374151;
  font-size: 13px;
}

.eats-info-row a {
  color: #111827;
  text-decoration: none;
}

/* =========================
   Note
   ========================= */
.eats-note {
  font-size: 13px;
  color: #6b7280;
  margin-top: 10px;
}

/* =========================
   Price
   ========================= */
.eats-price-image img {
  width: 100%;
  border-radius: 10px;
}

.eats-price-row {
  grid-template-columns: 1fr auto;
}

.eats-price-row span:last-child {
  font-weight: 600;
}

/* =========================
   Babdori Map & Cluster
   ========================= */

.babdori-map-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 16px 96px;
}

.babdori-map-shell {
  position: relative;
  width: 100%;
  height: 720px;
  border-radius: 20px;
  overflow: hidden;
  background: #f1f5f9;
}

.babdori-map {
  width: 100%;
  height: 100%;
}

body:has(.babdori-map-page) {
  overflow: hidden;
}

body:has(.babdori-map-page) .babdori-map-page {
  max-width: none;
  width: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body:has(.babdori-map-page) .babdori-map-shell {
  height: 100dvh;
  border-radius: 0;
  overflow: hidden;
}

/* 지도 상단 배너 */
.babdori-map-hero {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 55;
  width: min(460px, calc(100% - 32px));
  padding: 8px 18px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  text-align: center;
  transform: translateX(-50%);
}

.babdori-map-hero strong {
  display: block;
  margin-bottom: 5px;
  color: #111827;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.babdori-map-hero p {
  margin: 0 0 4px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.babdori-map-hero span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

/* 지도 툴바 */
.babdori-map-toolbar {
  position: absolute;
  top: 126px;
  left: 50%;
  z-index: 56;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: min(620px, calc(100% - 32px));
  transform: translateX(-50%);
}

.babdori-map-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px);
}

.babdori-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.babdori-tool-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.babdori-map-tool em {
  font-style: normal;
  white-space: nowrap;
}

.babdori-map-tool:hover,
.babdori-map-tool.is-active {
  background: #2563EB;
  border-color: #60A5FA;
  color: #fff;
}

.babdori-map-tool:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.babdori-map-cluster {
	width: 46px;
	height: 46px;
	border: 3px solid #ffffff;
	border-radius: 999px;
	background: linear-gradient(135deg, #2563eb, #22c55e);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
	color: #ffffff;
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.babdori-map-cluster span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.babdori-map-cluster:active {
	transform: scale(0.94);
}

/* =========================
   Babdori Map Panel & filter
   ========================= */

/* 검색 패널 */
.babdori-map-search-panel,
.babdori-map-favorite-panel,
.babdori-map-category-panel {
	position: absolute;
	top: 178px;
	left: 50%;
	z-index: 57;
	border: 1px solid rgba(226, 232, 240, 0.95);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
	backdrop-filter: blur(14px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, -6px);
	transition: 0.18s ease;
}

.babdori-map-search-panel {
	display: block;
	width: min(420px, calc(100% - 32px));
	padding: 10px;
	border-radius: 18px;
}

.babdori-map-search-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.babdori-map-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.babdori-map-search-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 13px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}

.babdori-map-search-input:focus {
  border-color: #111827;
}

.babdori-map-search-submit,
.babdori-map-search-clear {
  flex-shrink: 0;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.babdori-map-search-submit {
  background: #2563EB;
}

.babdori-map-search-clear {
  background: #2563EBB3;
}

.babdori-map-search-recommend {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
}

.babdori-map-search-recommend strong {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.babdori-map-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.babdori-map-search-chips button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: #EEF4FF;
  color: #2563EB;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.babdori-map-search-chips button:hover,
.babdori-map-search-chips button:active {
  background: #2563EB;
  color: #fff;
}

.babdori-map-search-message {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  min-width: 220px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: 0.16s ease;
  pointer-events: none;
}

.babdori-map-search-message.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 자주가는 장소 패널 */
.babdori-map-favorite-panel {
	width: min(420px, calc(100% - 32px));
	padding: 14px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.97);
}

.babdori-map-favorite-panel.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.babdori-favorite-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.babdori-favorite-head strong {
	color: #111827;
	font-size: 16px;
	font-weight: 700;
}

.babdori-favorite-close {
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #334155;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.babdori-favorite-list {
	overflow: hidden;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	background: #fff;
}

.babdori-favorite-simple-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 40px;
	padding: 10px 12px;
	border: 0;
	border-top: 1px solid #eef2f7;
	background: #fff;
	color: #111827;
	text-align: left;
	cursor: pointer;
}

.babdori-favorite-simple-item:first-child {
	border-top: 0;
}

.babdori-favorite-simple-item:hover {
	background: #f8fbff;
}

.babdori-favorite-simple-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 14px;
	background: #f1f5f9;
	font-size: 16px;
	flex-shrink: 0;
}

.babdori-favorite-simple-item strong {
	color: #111827;
	font-size: 14px;
	font-weight: 700;
}

.babdori-favorite-simple-item em {
	min-width: 0;
	margin-left: 2px;
	color: #64748b;
	font-style: normal;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.babdori-favorite-manage-link {
	display: inline-flex;
	align-items: center;
	width: auto;
	color: #2563EB;
	border-top: 1px solid #eef2f7;
        padding: 10px 12px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none !important;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.babdori-favorite-empty {
	padding: 16px 12px;
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
}

/* 카테고리 패널 */
.babdori-map-category-panel {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
	width: min(430px, calc(100% - 32px));
	padding: 10px;
	border-radius: 18px;
}

.babdori-map-category-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.babdori-map-category-panel button {
  height: 34px;
  padding: 0 11px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.babdori-map-category-panel button.is-active,
.babdori-map-category-panel button:hover {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.babdori-map-report-link,
.babdori-map-report-link:hover,
.babdori-map-report-link:focus,
.babdori-map-report-link:visited {
  text-decoration: none !important;
}

/* 모바일 지도 UI */
@media (max-width: 768px) {
  .babdori-map-hero {
    top: 14px;
    width: calc(100% - 28px);
    padding: 8px 15px;
    border-radius: 20px;
  }

  .babdori-map-hero strong {
    font-size: 20px;
  }

  .babdori-map-hero p {
    font-size: 14px;
  }

  .babdori-map-hero span {
    font-size: 13px;
  }

    .babdori-map-toolbar {
    top: 154px;
    left: auto;
    right: 14px;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px;
    transform: none;
  }

  .babdori-map-tool {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    justify-content: center;
  }

  .babdori-map-report-link {
    text-decoration: none;
  }

  .babdori-map-tool em {
    display: none;
  }

  .babdori-tool-icon,
  .babdori-tool-icon svg {
    width: 22px;
    height: 22px;
  }

  .babdori-map-search-panel,
  .babdori-map-category-panel,
  .babdori-map-favorite-panel {
    top: 212px;
    left: auto;
    right: 14px;
    width: min(360px, calc(100% - 28px));
    transform: translateY(-6px);
  }

  .babdori-map-search-recommend {
    padding: 11px;
  }

  .babdori-map-search-chips {
    gap: 6px;
  }

  .babdori-map-search-chips button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .babdori-map-search-panel.is-open,
  .babdori-map-category-panel.is-open,
  .babdori-map-favorite-panel.is-open {
    transform: translateY(0);
  }

   .babdori-map-search-input {
    font-size: 14px !important;
  }

}

/* 공통 백드롭 */
.babdori-map-modal-backdrop,
.babdori-place-backdrop {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.2s ease;
}

.babdori-map-modal-backdrop.is-open,
.babdori-place-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 필터 패널 */
.babdori-map-filter-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 80;
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 150px);
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.25);
  overflow-y: auto;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.babdori-map-filter-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.babdori-map-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}

.babdori-map-filter-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: #111827;
}

.babdori-map-filter-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

/* 필터 그룹 */
.babdori-filter-group {
  padding: 10px 0;
  border-top: 0;
}

.babdori-filter-group strong {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}

.babdori-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.babdori-filter-options button {
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
}

.babdori-filter-options button.is-active,
.babdori-filter-options button:hover {
  border-color: #2563EB;
  background: #EEF4FF;
  color: #334155;
}

/* 거리/가격 슬라이더 */
.babdori-price-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #64748b;
}

.babdori-price-filter-top b {
  color: #111827;
  font-size: 13px;
}

.babdori-price-range,
.babdori-distance-range {
  width: 100%;
  accent-color: #2563eb;
  cursor: pointer;
}

/* 영업중 필터 */
.babdori-open-filter-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.babdori-open-filter-options button {
  width: 100%;
  text-align: center;
}

/* 음식 종류 접기 */
.babdori-keyword-options {
  max-height: 72px;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.babdori-keyword-options.is-open {
  max-height: 520px;
}

.babdori-keyword-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 4px 0 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.babdori-keyword-more::before,
.babdori-keyword-more::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.babdori-keyword-more span::after {
  content: " ▾";
}

.babdori-keyword-more.is-open span::after {
  content: " ▴";
}

/* =========================
   Place Overlay
   ========================= */

.babdori-place-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - 48px));
  height: min(540px, calc(100dvh - 110px));
  max-height: calc(100dvh - 110px);
  padding: 16px;
  border: 0;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.98);
  transition: 0.2s ease;
  box-sizing: border-box;
}

.babdori-place-overlay::-webkit-scrollbar {
  display: none;
}

.babdori-place-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.babdori-place-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.95);
  color: #334155;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.babdori-place-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.babdori-place-content::-webkit-scrollbar {
  display: none;
}

/* =========================
   Place Gallery
   ========================= */

.babdori-place-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.babdori-gallery-item {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  padding: 0;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  overflow: hidden;
  cursor: pointer;
}

.babdori-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.babdori-gallery-item.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: default;
}

/* =========================
   Place Header
   ========================= */

.babdori-place-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.babdori-place-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.babdori-place-title {
  display: block;
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.babdori-place-like {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #ef4444;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.babdori-place-like span {
  font-size: 18px;
  line-height: 1;
}

.babdori-place-like em {
  color: #111827;
  font-size: 12px;
  font-style: normal;
}

.babdori-place-like.is-liked {
  border-color: #fecaca;
  background: #fff1f2;
  color: #ef4444;
}

.babdori-place-like:disabled {
  opacity: 0.55;
  cursor: wait;
}

.babdori-place-trend-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.24);
}

.babdori-place-trend-badge.is-new {
  min-width: 58px;
  padding: 0 9px;
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  box-shadow: 0 6px 14px rgba(244, 63, 94, 0.22);
}

/* =========================
   Place Badges
   ========================= */

.babdori-place-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.babdori-place-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 500;
}

.babdori-place-badge.dark {
  background: #111827;
  color: #fff;
}

.babdori-place-badge.keyword {
  background: #fff7ed;
  color: #9a3412;
}

.babdori-place-badge.distance {
  background: #ecfeff;
  color: #0369a1;
}

.babdori-place-badge.reporter {
  background: #f1f5f9;
  color: #475569;
}

/* =========================
   Place Info
   ========================= */

.babdori-place-info-list {
  display: grid;
  gap: 4px;
}

.babdori-place-info-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #e5e7eb;
}

.babdori-place-info-row:first-child {
  border-top: 1px solid #e5e7eb;
}

.babdori-info-icon {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
  color: #2563EB;
}

.babdori-info-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.babdori-info-main {
  min-width: 0;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.babdori-copy-address {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f2937;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.babdori-copy-address.is-copied {
  color: #2563EB;
}

.babdori-open-status {
  font-weight: 500;
}

.babdori-open-status.is-open {
  color: #059669;
}

.babdori-open-status.is-closed {
  color: #dc2626;
}

/* =========================
   Place Hours / Menu
   ========================= */

.babdori-hours-detail,
.babdori-menu-detail {
  margin: 0;
}

.babdori-hours-detail summary,
.babdori-menu-detail summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
}

.babdori-hours-detail summary::-webkit-details-marker,
.babdori-menu-detail summary::-webkit-details-marker {
  display: none;
}

.babdori-hours-detail summary::after,
.babdori-menu-detail summary::after {
  content: "▾";
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.babdori-hours-detail[open] summary::after,
.babdori-menu-detail[open] summary::after {
  content: "▴";
}

.babdori-hours-detail p {
  display: block;
  margin: 8px 0 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.babdori-menu-detail {
  display: block;
}

.babdori-menu-detail summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.babdori-menu-detail summary::after {
  order: 2;
}

.babdori-menu-detail summary .babdori-price-image-link {
  order: 3;
}

.babdori-menu-list {
  display: grid;
  gap: 0;
  margin-top: 4px;
}

.babdori-menu-list p {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.babdori-menu-list p:last-child {
  border-bottom: 0;
}

.babdori-menu-topline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.babdori-menu-single {
  display: inline-flex;
  align-items: center;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

/* =========================
   Place Buttons / Links
   ========================= */

.babdori-phone-reveal,
.babdori-price-image-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.babdori-phone-link {
  color: #111827;
  font-weight: 500;
  text-decoration: none;
}

.babdori-place-intro {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.babdori-map-inline-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.babdori-route-link,
.babdori-map-guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 3px 8px;
  border: 0;
  border-radius: 999px;
  background: #EEF4FF;
  color: #2563EB;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.babdori-route-link {
  margin-left: 8px;
  font-weight: 500;
}

.babdori-route-link svg,
.babdori-map-guide-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.babdori-map-guide-panel {
  display: none;
  gap: 6px;
  margin-top: 8px;
  padding-left: 0;
}

.babdori-map-guide-panel.is-open {
  display: flex;
}

.babdori-map-guide-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.babdori-map-guide-panel a:first-child {
  background: #FEE500;
}

.babdori-map-guide-panel a:last-child {
  background: #03C75A;
  color: #fff;
}

/* =========================
   Place Review
   ========================= */

.babdori-one-review {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.babdori-one-review strong {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

.babdori-review-write {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.babdori-review-notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 13px;
  background: #EEF4FF;
  color: #2563EB;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.babdori-review-form {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  width: 100%;
  margin-top: 4px;
}

.babdori-review-text {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  background: #fff;
  color: #111827;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  resize: none;
  outline: none;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.04);
}

.babdori-review-text::placeholder {
  color: #94a3b8;
}

.babdori-review-text:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.babdori-review-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.babdori-review-cancel,
.babdori-review-submit,
.babdori-review-more {
  height: 28px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.babdori-review-cancel {
  background: #f1f5f9;
  color: #475569;
}

.babdori-review-submit {
  background: #111827;
  color: #fff;
}

.babdori-review-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.babdori-review-list {
  margin-top: 10px;
}

.babdori-review-item {
  padding: 8px 4px;
  border-top: 1px solid #f1f5f9;
}

.babdori-review-item p {
  margin: 0 0 5px;
  color: #111827;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.babdori-review-item span {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.babdori-review-empty {
  padding: 14px 12px;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.babdori-review-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.babdori-review-text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  cursor: pointer;
}

.babdori-review-text-action:hover {
  color: #2563eb;
  text-decoration: underline;
}

.babdori-review-list .is-hidden-review {
  display: none;
}

.babdori-review-list.is-open .is-hidden-review {
  display: block;
}

.babdori-review-more {
  width: 100%;
  margin-top: 8px;
  background: #f8fafc;
  color: #334155;
}

/* =========================
   Review Sort / Like / Report
   ========================= */

.babdori-review-sort {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	margin: 8px 0 10px;
}

.babdori-review-sort button {
	height: 28px;
	padding: 0 10px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #fff;
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.babdori-review-sort button.is-active {
	border-color: #2563eb;
	background: #eff6ff;
	color: #2563eb;
}

.babdori-review-main {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.babdori-review-main p {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.babdori-review-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.babdori-review-like,
.babdori-review-report {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	min-width: 28px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #64748b;
	cursor: pointer;
}

.babdori-review-like {
	gap: 3px;
	padding: 0 8px;
	font-size: 12px;
	font-weight: 800;
}

.babdori-review-like span {
	font-size: 14px;
	line-height: 1;
}

.babdori-review-like em {
	font-style: normal;
	font-size: 11px;
}

.babdori-review-like.is-liked {
	background: #fff1f2;
	color: #e11d48;
}

.babdori-review-report svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.babdori-review-like:disabled,
.babdori-review-report:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (max-width: 420px) {
	.babdori-review-main {
		gap: 8px;
	}

	.babdori-review-like {
		padding: 0 7px;
	}

	.babdori-review-report {
		min-width: 28px;
	}
}

/* =========================
   Place Actions
   ========================= */

.babdori-place-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.babdori-place-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: 0.15s ease;
}

.babdori-place-link.kakao {
  background: #FEE500;
  border-color: #FEE500;
  color: #111827;
}

.babdori-place-link.naver {
  background: #03C75A;
  border-color: #03C75A;
  color: #fff;
}

.babdori-place-link:active {
  transform: scale(0.97);
}

/* =========================
   Place Overlay Mobile
   ========================= */

@media (max-width: 768px) {
  .babdori-place-overlay {
    width: calc(100% - 50px);
    height: calc(100dvh - 220px);
    max-height: calc(100dvh - 220px);
    padding: 14px;
    border-radius: 22px;
    overflow: hidden;
  }

  .babdori-place-title {
    font-size: 18px;
  }

  .babdori-place-gallery {
    gap: 6px;
  }

  .babdori-gallery-item {
    border-radius: 14px;
  }

  .babdori-place-info-row {
    grid-template-columns: 16px 1fr;
    gap: 6px;
  }

  .babdori-info-main {
    font-size: 14px;
  }

  .babdori-one-review {
  align-items: center;
  grid-template-columns: 1fr auto;
}

.babdori-review-write {
  white-space: nowrap;
}

  .babdori-map-inline-actions {
    display: flex;
    margin: 6px 0 0;
  }

  .babdori-menu-topline {
    align-items: center;
  }

  .babdori-price-image-link,
  .babdori-review-write {
    width: fit-content;
  }
}


/* =========================
   Place Distance / Info Request
   ========================= */

.babdori-place-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.babdori-place-distance-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #ECFDF3;
  color: #16A34A;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.babdori-place-badge-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.babdori-place-badge-row .babdori-place-badges {
  flex: 1;
  margin-bottom: 0;
}

.babdori-info-request-toggle {
  flex-shrink: 0;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.babdori-info-request-panel {
  display: none;
  margin: -2px 0 12px;
  padding: 12px;
  border: 1px solid #fed7aa;
  border-radius: 16px;
  background: #fff7ed;
}

.babdori-info-request-panel.is-open {
  display: grid;
  gap: 8px;
}

.babdori-info-request-panel strong {
  color: #111827;
  font-size: 14px;
  font-weight: 500;
}

.babdori-info-request-panel label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.babdori-info-request-panel input {
  order: 2;
  width: 16px;
  height: 16px;
  accent-color: #f97316;
}

.babdori-info-request-panel label:has(input:checked) {
  background: #ffedd5;
  color: #ea580c;
}

.babdori-info-request-submit {
  width: 100%;
  height: 38px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.babdori-info-request-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* =========================
   Map Image Lightbox - Force Fix
   ========================= */

.babdori-map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: rgba(15, 23, 42, 0.72);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.2s ease;
}

.babdori-map-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.babdori-map-lightbox img {
  max-width: min(92vw, 720px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

.babdori-map-lightbox-close {
   display: none !important;
}

/* 모바일 */
@media (max-width: 768px) {
  .babdori-map-filter-panel {
    width: calc(100% - 28px);
    max-height: calc(100dvh - 150px);
    padding: 15px;
    border-radius: 22px;
  }

  .babdori-menu-line {
    flex-direction: row;
    align-items: center;
  }

  .babdori-filter-options {
    gap: 6px;
  }

  .babdori-filter-options button {
    padding: 6px 9px;
    font-size: 12px;
  }
}

/* =========================
   Eats Submit Page (Compact Blue)
   ========================= */

.babdori-submit-page {
  min-height: calc(100vh - 64px);
  padding: 12px 10px 60px;
  background: #fff;
}

.babdori-submit-wrap {
  width: min(480px, 100%);
  margin: 0 auto;
}

.babdori-submit-card {
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.06);
}

.babdori-submit-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.babdori-submit-head h1 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.babdori-submit-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.babdori-submit-login {
  padding: 16px;
  border-radius: 16px;
  background: #eff6ff;
  text-align: center;
}

.babdori-submit-login strong {
  display: block;
  margin-bottom: 6px;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 900;
}

.babdori-submit-login p {
  margin: 0 0 12px;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.babdori-submit-login a,
.babdori-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
}

.babdori-submit-message {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.babdori-duplicate-message {
	margin: 4px 0 6px;
}

.babdori-place-search-results:empty + .babdori-duplicate-message {
	margin-top: 0;
}

.babdori-submit-field {
	margin-top: 14px;
}

.babdori-submit-message.success {
  background: #e0f2fe;
  color: #0369a1;
}

.babdori-submit-message.error {
  background: #fee2e2;
  color: #dc2626;
}

.babdori-submit-form {
  display: grid;
  gap: 10px;
}

.babdori-submit-field {
  display: grid;
  gap: 5px;
}

.babdori-submit-field label {
  color: #1e293b;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.babdori-submit-field label span {
  color: #ef4444;
}

.babdori-submit-field input[type="text"],
.babdori-submit-field textarea,
.babdori-submit-menu-row input {
  width: 100%;
  height: 35px;
  padding: 0 11px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  outline: none;
}

.babdori-submit-field textarea {
  height: 50px;
  padding-top: 9px;
  resize: vertical;
  line-height: 1.45;
}

.babdori-submit-field input:focus,
.babdori-submit-field textarea:focus,
.babdori-submit-menu-row input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.babdori-submit-help {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.babdori-submit-search-box {
  position: relative;
}

.babdori-submit-search-box input {
  padding-right: 46px !important;
}

.babdori-place-search-btn {
  position: absolute;
  top: 50%;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.babdori-place-search-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.babdori-place-search-results {
  display: grid;
  gap: 2px;
}

.babdori-place-result {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.babdori-place-result strong {
  display: block;
  margin-bottom: 3px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.babdori-place-result span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.babdori-place-result:hover,
.babdori-place-result.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.babdori-place-search-message {
  margin: 0;
  padding: 9px 11px;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.babdori-submit-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.babdori-submit-options label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.babdori-submit-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.babdori-submit-options label:has(input:checked) {
  border-color: #2563eb;
  background: #EEF4FF;
  color: #2563EB;
}

.babdori-submit-keyword-options {
  max-height: 72px;
  overflow: hidden;
  transition: max-height 0.22s ease;
}

.babdori-submit-keyword-options.is-open {
  max-height: 340px;
}

.babdori-submit-keyword-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.babdori-submit-keyword-more::before,
.babdori-submit-keyword-more::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dbeafe;
}

.babdori-submit-keyword-more span::after {
  content: " ▾";
}

.babdori-submit-keyword-more.is-open span::after {
  content: " ▴";
}

.babdori-submit-button {
  width: 100%;
  margin-top: 2px;
}

.babdori-submit-menu-list {
  display: grid;
  gap: 7px;
}

.babdori-submit-menu-row {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 7px;
}

.babdori-submit-menu-row:has(.babdori-remove-menu-btn) {
  grid-template-columns: 1fr 108px 32px;
}

.babdori-add-menu-btn {
  width: fit-content;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.babdori-remove-menu-btn {
  width: 32px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.babdori-price-warning {
  min-height: 16px;
  margin: 0;
  color: #ef4444;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.babdori-price-format-input.is-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.babdori-optional {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.babdori-submit-hours-row {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  align-items: center;
  gap: 7px;
}

.babdori-submit-hours-row span {
  color: #64748b;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.babdori-submit-closed-days {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.babdori-submit-closed-days label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.babdori-submit-label-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.babdori-image-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer;
}

.babdori-image-add-button input {
  display: none;
}

.babdori-image-count {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

@media (max-width: 480px) {
  .babdori-submit-page {
    padding: 10px 8px 80px;
  }

  .babdori-submit-card {
    padding: 14px;
    border-radius: 18px;
  }

  .babdori-submit-head h1 {
    font-size: 18px;
  }

  .babdori-submit-form {
    gap: 11px;
  }

  .babdori-submit-menu-row {
    grid-template-columns: 1fr 108px;
  }
}

/* =========================
   Map Report Overlay
   ========================= */

.babdori-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  pointer-events: none;
}

.babdori-report-overlay.is-open {
  display: flex;
  pointer-events: auto;
}

.babdori-report-panel {
  width: min(420px, 100%);
  max-height: calc(100vh - 96px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.babdori-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid #e5e7eb;
}

.babdori-report-head strong {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.babdori-report-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.babdori-report-frame {
  display: block;
  width: 100%;
  height: min(520px, calc(100vh - 150px));
  border: 0;
  background: #fff;
}

@media (max-width: 480px) {
  .babdori-report-overlay {
    align-items: center;
    justify-content: center;
    padding: 0 14px;
  }

  .babdori-report-panel {
    width: 100%;
    max-height: calc(100vh - 230px);
    border-radius: 22px;
  }

  .babdori-report-frame {
    height: calc(100vh - 290px);
  }
}

body:has(.babdori-report-overlay.is-open) .babdori-bottom-nav {
  display: none !important;
}

.babdori-report-overlay.is-open .babdori-bottom-nav,
.babdori-report-overlay.is-open .site-footer {
  display: none !important;
}

.babdori-map-toast {
	position: fixed;
	left: 50%;
	bottom: calc(82px + env(safe-area-inset-bottom));
	z-index: 20000;
	max-width: calc(100% - 40px);
	padding: 11px 16px;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) translateY(8px);
	transition: 0.2s ease;
	pointer-events: none;
}

.babdori-map-toast.is-show {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* =========================
   Archive
   ========================= */
.eats-archive-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.eats-archive-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  color: #111827;
  text-decoration: none;
}

.eats-archive-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}

.eats-archive-card span {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
}

/* =========================
   Eats Tax / Phone / Hours / Lightbox
   ========================= */
.eats-tax-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.eats-tax-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.eats-tax-category {
  background: #111827;
  color: #fff;
}

.eats-tax-tag {
  background: #eef2ff;
  color: #3730a3;
}

.eats-phone-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  padding: 7px 11px;
  font-size: 13px;
  cursor: pointer;
}

.eats-phone-link {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.eats-open-status {
  font-weight: 700;
}

.eats-open-status.is-open {
  color: #059669;
}

.eats-open-status.is-closed {
  color: #dc2626;
}

.eats-hours-details {
  margin-top: 6px;
  padding: 10px 0 0;
  border-top: 1px solid #f1f5f9;
}

.eats-hours-details summary {
  cursor: pointer;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
}

.eats-hours-summary {
  margin: 10px 0 6px;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
  color: #374151;
  font-size: 13px;
}

.eats-price-lightbox-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.eats-price-lightbox-btn img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.eats-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
}

.eats-lightbox.is-active {
  display: flex;
}

.eats-lightbox img {
  max-width: 96vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
}

.eats-lightbox-close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.eats-hours-details-inline {
  grid-column: 1 / -1;
  margin-top: -2px;
  padding: 8px 0;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.eats-hours-details-inline summary {
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  font-weight: 600;
}

.eats-price-lightbox-btn {
  height: 300px;
  overflow: hidden;
}

.eats-price-lightbox-btn img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #f8fafc;
}

/* =========================
   Trending Page
   ========================= */

.babdori-trending-page {
	max-width: 480px;
	min-height: 100dvh;
	margin: 0 auto;
	padding: 14px 14px calc(92px + env(safe-area-inset-bottom));
	background: #fff;
}

.babdori-trending-banner {
	display: none;
}

.babdori-trending-title-main {
        margin: 8px 0 10px !important;
	color: #111827;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.05em;
}

.babdori-trending-search {
  position: relative;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.babdori-trending-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 46px 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.babdori-trending-search input:focus {
  border-color: #2563EB;
}

.babdori-trending-search-clear {
  position: absolute;
  top: 50%;
  right: 68px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.babdori-trending-search button[type="submit"] {
  flex-shrink: 0;
  width: 58px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* 위치 */
.babdori-trending-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.babdori-trending-location strong {
  font-weight: 700;
}

.babdori-trending-location-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #2563EB;
  background: #EEF4FF;
  Border-radius: 999;
}

.babdori-trending-location-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 필터 */
.babdori-trending-filters,
.babdori-trending-sort {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.babdori-trending-filters {
  margin-bottom: 10px;
}

.babdori-trending-sort {
  margin-bottom: 14px;
}

.babdori-trending-filters::-webkit-scrollbar,
.babdori-trending-sort::-webkit-scrollbar {
  display: none;
}

.babdori-trending-filters a,
.babdori-trending-sort a {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.babdori-trending-filters a.is-active {
  background: #111827;
  color: #fff;
}

.babdori-trending-sort a.is-active {
  background: #2563EB;
  color: #fff;
}

/* 리스트 */
.babdori-trending-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

/* 아이템 */
.babdori-trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 106px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
  cursor: pointer;
}

.babdori-trending-item:last-child {
  border-bottom: 0;
}

.babdori-trending-item:hover {
  background: #f8fafc;
}

.babdori-trending-item[hidden] {
  display: none !important;
}

/* 썸네일 */
.babdori-trending-thumb {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
}

.babdori-trending-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.babdori-trending-thumb span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

/* 정보 */
.babdori-trending-info {
  flex: 1;
  min-width: 0;
  align-self: center;
}

/* 제목 줄 */
.babdori-trending-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.babdori-trending-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.babdori-trending-title {
  display: block;
  min-width: 0;
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 태그 */
.babdori-trending-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #9A3412;
  background: #FFF7ED;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.babdori-trending-thumb {
  position: relative;
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 12px;
  overflow: visible;
  background: #e5e7eb;
}

.babdori-trending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.babdori-trending-empty-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.babdori-trending-image-ribbon {
  position: absolute !important;
  top: -7px;
  left: 6px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 8px !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: #fff !important;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.28);
  backdrop-filter: blur(2px);
}

.babdori-trending-image-ribbon.is-new {
  top: -8px;
  min-width: 58px !important;
  padding: 0 9px !important;
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  box-shadow: 0 6px 14px rgba(244, 63, 94, 0.24);
}

/* 좋아요 */
.babdori-trending-like {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #ef4444;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.babdori-trending-like span {
  font-size: 15px;
  line-height: 1;
}

.babdori-trending-like em {
  color: #111827;
  font-style: normal;
}

.babdori-trending-like.is-loading {
  opacity: 0.55;
  cursor: wait;
}

/* 메뉴 */
.babdori-trending-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0 0 7px;
  color: #374151;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.babdori-trending-menu span {
  flex-shrink: 0;
  color: #64748b;
}

.babdori-trending-price {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.babdori-trending-price.is-price-green {
  background: #ECFDF3;
  color: #16A34A;
}

.babdori-trending-price.is-price-yellow {
  background: #FEF9C3;
  color: #A16207;
}

.babdori-trending-price.is-price-orange {
  background: #FFF7ED;
  color: #EA580C;
}

.babdori-trending-price.is-price-default {
  background: #F1F5F9;
  color: #64748B;
}

/* 메타 */
.babdori-trending-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.babdori-trending-distance {
  flex-shrink: 0;
  color: #2563EB;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.babdori-trending-address {
  display: block;
  min-width: 0;
  margin: 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 더보기 */
.babdori-trending-more {
  width: 100%;
  height: 42px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.babdori-trending-more.is-loading {
  opacity: 0.6;
  cursor: wait;
}

/* 빈 상태 */
.babdori-trending-empty,
.babdori-trending-radius-empty {
  padding: 34px 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.babdori-trending-page.is-checking-location .babdori-trending-list {
  opacity: 0.35;
  pointer-events: none;
}

.babdori-trending-page.is-checking-location .babdori-trending-list::before {
  content: "주변 식당을 확인하는 중입니다.";
  display: block;
  padding: 28px 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 480px) {
  .babdori-trending-item {
    gap: 10px;
    padding: 10px;
  }

  .babdori-trending-thumb {
    width: 78px;
    height: 78px;
  }

  h1.babdori-trending-title-main {
    font-size: 16px;
  }
}


/* =========================
   Babdori Exchange Page
   ========================= */

.babdori-exchange-page {
	background: #fff;
	min-height: calc(100vh - 64px);
	padding: 16px 14px 110px;
	box-sizing: border-box;
}

.exchange-hero,
.exchange-section {
	max-width: 480px;
	margin: 0 auto;
        padding-top: 4px;
}

.exchange-info-card {
	background: #F8FAFC;
	border: 1px solid #e5eaf2;
	border-radius: 18px;
	padding: 7px 10px;
	color: #111827;
	box-shadow: none;
}

.exchange-info-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	list-style: none;
}

.exchange-info-summary::-webkit-details-marker {
	display: none;
}

.exchange-info-summary-left {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.exchange-info-summary-right {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
}

.exchange-info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: #EEF4FF;
	font-size: 13px;
}

.exchange-info-title {
	font-size: 14px;
	font-weight: 700;
	color: #111827;
}

.exchange-info-content {
	padding-top: 12px;
}

.exchange-info-content p:first-child {
	margin-top: 0;
}

.exchange-info-top {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	margin-bottom: 10px;
}

.exchange-info-label {
	display: inline;
	font-size: 14px;
	font-weight: 800;
	color: #111827;
}

.exchange-info-point {
	display: inline;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #2563eb;
	white-space: nowrap;
}

.exchange-info-card p {
	margin: 8px 0 0;
	font-size: 13px;
        Font-weight: 500;
	line-height: 1.6;
	color: #475569;
	word-break: keep-all;
}

.exchange-section {
	margin-top: 24px;
}

.exchange-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.exchange-section-head h1 {
	margin: 0;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: -0.04em;
	color: #111827;
}

.exchange-category-tabs {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 2px;
	margin: 14px 0 14px;
}

.exchange-category-tab {
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.exchange-category-icon {
	width: 40px;
	height: 40px;
	margin: 0 auto 6px;
	border-radius: 50%;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.exchange-category-tab.is-active .exchange-category-icon {
	background: #dbeafe;
}

.exchange-category-icon svg {
	width: 32px;
	height: 32px;
	fill: none;
	stroke: #2563eb;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.exchange-category-tab span:last-child {
	display: block;
	font-size: 11px;
	font-weight: 800;
	color: #334155;
	letter-spacing: -0.04em;
	text-align: center;
	white-space: nowrap;
}

.exchange-sort-bar {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 14px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.exchange-sort-bar::-webkit-scrollbar {
	display: none;
}

.exchange-sort-btn {
	flex: 0 0 auto;
	height: 34px;
	padding: 0 13px;
	border: 1px solid #e5eaf2;
	border-radius: 999px;
	background: #fff;
	color: #64748b;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	white-space: nowrap;
}

.exchange-sort-btn.is-active {
	background: #111827;
	border-color: #111827;
	color: #fff;
}

.exchange-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 12px;
}

.exchange-card {
	background: #fff;
	border: 1px solid #e7ecf3;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.exchange-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 0.88;
	background: #eef3f8;
	overflow: hidden;
}

.exchange-thumb-img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;

	opacity: 0;
	transform: scale(1.03);
	transition:
		opacity 0.8s ease,
		transform 0.8s ease;

	will-change: opacity, transform;
}

.exchange-thumb-img.is-loaded {
	opacity: 1;
	transform: scale(1);
}

.exchange-thumb-placeholder {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-size: 12px;
	font-weight: 800;
	color: #94a3b8;
	white-space: nowrap;
}

.exchange-thumb:not(:has(img))::before {
	content: "";
	position: absolute;
	inset: 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.55);
	border: 1px dashed rgba(148, 163, 184, 0.35);
}

.exchange-badge {
	position: absolute;
	left: 8px;
	top: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	font-size: 11px;
	line-height: 28px;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.86);
	color: #fff;
	font-weight: 900;
	backdrop-filter: blur(6px);
}

.exchange-valid {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 26px;
	padding: 0 9px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.7);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	backdrop-filter: blur(6px);
}

.exchange-card-body {
	padding: 12px 11px 13px;
}

.exchange-card h2 {
	margin: 0;
	min-height: 42px;
	font-size: 14px;
	font-weight: 850;
	line-height: 1.42;
	letter-spacing: -0.04em;
	color: #111827;
	word-break: keep-all;
}

.exchange-card h2 span {
        font-size: 13px;
        font-weight: 500;
	color: #64748b;
}

.exchange-meta-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	margin-top: 10px;
}

.exchange-meta-row strong {
	font-size: 16px;
	font-weight: 950;
	color: #2563eb;
	letter-spacing: -0.04em;
	white-space: nowrap;
}

.exchange-meta-row span {
	font-size: 11px;
	font-weight: 700;
	color: #9ca3af;
	white-space: nowrap;
}

.exchange-btn {
	width: 100%;
	height: 38px;
	margin-top: 12px;
	border: 0;
	border-radius: 12px;
	background: #111827;
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
	transition: transform 0.16s ease, background 0.16s ease;
}

.exchange-btn:hover {
	background: #2563eb;
}

.exchange-btn:active {
	transform: scale(0.98);
}

.exchange-btn.is-disabled,
.exchange-btn:disabled {
	background: #EEF2F7;
	color: #64748B;
	cursor: not-allowed;
}

.exchange-btn.is-loading {
	background: #2563eb;
}

.exchange-btn-spinner {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 5px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	vertical-align: -2px;
	animation: exchangeSpin 0.7s linear infinite;
}

.exchange-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 28px 16px;
	border-radius: 18px;
	background: #fff;
	color: #64748b;
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

@keyframes exchangeSpin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 480px) {
	.babdori-exchange-page {
		padding-left: 12px;
		padding-right: 12px;
	}

	.exchange-info-point {
		font-size: 14px;
	}

	.exchange-category-tabs {
		gap: 2px;
	}

	.exchange-category-tab {
		padding: 12px 6px 11px;
	}

	.exchange-category-icon {
		width: 30px;
		height: 30px;
	}

	.exchange-category-tab span:last-child {
		font-size: 11px;
	}

	.exchange-grid {
		gap: 14px 10px;
	}

	.exchange-section-head h1 {
		font-size: 16px;
	}

	.exchange-card h2 {
		font-size: 13px;
	}

	.exchange-meta-row strong {
		font-size: 15px;
	}
        .exchange-info-title {
                font-size: 13px;
	}
        .exchange-info-card p {
                font-size: 12px;
}
}

/* =========================
   Exchange Button Loading
   ========================= */

.exchange-btn.is-loading {
	position: relative;
	pointer-events: none;
	opacity: 0.9;
}

.exchange-btn-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 8px;
	border: 2px solid rgba(255,255,255,0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: exchangeSpin 0.7s linear infinite;
	vertical-align: -3px;
}

@keyframes exchangeSpin {
	to {
		transform: rotate(360deg);
	}
}

/* =========================
   Point Exchange History
   ========================= */

.point-exchange-list {
	overflow: hidden;
	border: 1px solid #e5eaf3;
	border-radius: 20px;
	background: #fff;
}

.point-exchange-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px;
	border-bottom: 1px solid #eef2f7;
}

.point-exchange-item:last-child {
	border-bottom: 0;
}

.point-exchange-item strong {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 800;
	color: #111827;
	line-height: 1.35;
}

.point-exchange-item span {
	display: block;
	font-size: 12px;
	color: #94a3b8;
}

.point-exchange-meta {
	text-align: right;
	flex-shrink: 0;
}

.point-exchange-meta em {
	display: inline-block;
	margin-bottom: 5px;
	font-style: normal;
	font-size: 12px;
	font-weight: 800;
}

.point-exchange-meta em.is-pending {
	color: #d97706;
}

.point-exchange-meta em.is-completed {
	color: #16a34a;
}

.point-exchange-meta em.is-cancelled {
	color: #dc2626;
}

.point-exchange-meta span {
	font-size: 13px;
	font-weight: 800;
	color: #ef4444;
}

.point-exchange-hidden {
	display: none;
}

.point-exchange-hidden.is-show {
	display: flex;
}

/* =========================
   Community / KBoard
   ========================= */
/* 페이지 제목 숨김 */
body:has(#kboard-default-list) .entry-title,
body:has(#kboard-default-list) .page-title,
body:has(#kboard-default-list) h1.entry-title {
	display: none !important;
}

/* 커뮤니티 중앙 영역 */
body:has(#kboard-default-list) .content-area,
body:has(#kboard-default-list) .page-content {
	background: #fff !important;
	min-height: 100dvh;
	padding: 10px 12px 30px !important;
}

/* 커뮤니티 푸터 숨김 */
body:has(#kboard-default-list) .site-footer {
	display: none !important;
}

/* KBoard 기본 요소 숨김 */
#kboard-default-list .kboard-list-header,
#kboard-default-list .kboard-total-count,
#kboard-default-list .kboard-sort,
#kboard-default-list .kboard-search,
#kboard-default-list .kboard-control,
#kboard-default-list .kboard-default-poweredby,
#kboard-default-list .kboard-category.category-mobile {
	display: none !important;
}

#kboard-default-list {
	margin: 0 !important;
	padding: 6px 4px !important;
}

#kboard-default-list,
#kboard-default-list * {
	font-family: inherit !important;
}

/* 카테고리 박스 */
#kboard-default-list .kboard-category.category-pc {
	display: flex !important;
	justify-content: flex-start !important;
	align-items: center !important;
	gap: 8px !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 16px !important;
	padding: 6px 0 !important;
	background: transparent !important;
	text-align: left;
	overflow-x: auto;
}

/* 카테고리 버튼 */
#kboard-default-list .kboard-category.category-pc a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px !important;
	padding: 0 12px;
	margin: 0;
	border: 1px solid #dbe4f0;
	border-radius: 999px;
	background: #fff;
	color: #111827;
	font-size: 13px !important;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}

/* 카테고리 hover */
#kboard-default-list .kboard-category.category-pc a:hover {
	border-color: #2563eb;
	background: #fff;
	color: #2563eb;
}

/* 카테고리 선택 */
#kboard-default-list .kboard-category.category-pc a.selected {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* 커뮤니티 상단 안내 */
.babdori-community-head {
	margin: 4px 0 16px;
}

.babdori-community-title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.03em;
	color: #111827;
}

.babdori-community-notice {
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	background: #f8fafc;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

.babdori-notice-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-right: 2px;
	border-radius: 999px;
	background: #eef4ff;
	font-size: 12px;
}

.babdori-community-notice summary {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 2px;
	padding: 7px 10px;
	font-size: 13px;
	font-weight: 700;
	color: #111827;
	cursor: pointer;
	list-style: none;
}

.babdori-community-notice summary::-webkit-details-marker {
	display: none;
}

.babdori-community-notice-content {
	padding: 0 16px 15px;
}

.babdori-community-notice-content p {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.65;
	color: #475569;
}

.babdori-community-notice-content p + p {
	margin-top: 8px;
}

/* 카드 리스트 */
.babdori-board-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	border: 0 !important;
	background: transparent !important;
}

/* 카드 */
.babdori-board-card {
	display: block;
	padding: 11px 13px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	color: #111827 !important;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.babdori-board-card:hover {
	border-color: #dbe4f0;
}

/* 카드 제목 */
.babdori-title-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 7px;
}

.babdori-category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 21px;
        padding: 0 8px;
	border-radius: 999px;
	background: #eef4ff;
	color: #2563eb;
	font-size: 12px;
	font-weight: 800;
	flex-shrink: 0;
}

.babdori-title {
	color: #111827;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.38;
}

.babdori-comment-count {
	color: #2563eb;
	font-weight: 800;
}

/* 메타 */
.babdori-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	color: #64748b;
	font-size: 12px;
}

/* 공지/인기 */
.badge.notice,
.badge.popular {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	margin-right: 4px;
	border-radius: 999px;
	background: #fef3c7;
	color: #92400e;
	font-size: 12px;
	font-weight: 800;
}

/* 페이징 */
#kboard-default-list .kboard-pagination {
	margin-top: 34px;
	text-align: center;
}

/* 모바일 */
@media (max-width: 640px) {
	.babdori-board-banner {
		height: 70px;
		border-radius: 16px;
	}

	#kboard-default-list .kboard-category.category-pc {
	max-width: 100% !important;
	display: flex !important;
	justify-content: flex-start !important;
	gap: 6px !important;
	margin: 0 0 12px !important;
	padding: 4px 0 !important;
	overflow-x: auto;
	scrollbar-width: none;
}

	.babdori-board-card {
		padding: 10px 12px;
	}

	.babdori-title {
		font-size: 13px;
	}

	.babdori-meta {
		font-size: 12px;
	}

        .babdori-community-title,
        .exchange-section-head h1 {
                font-size: 16px;
        }
	#kboard-default-list .kboard-category.category-pc {
		gap: 6px !important;
		margin: 0 0 12px !important;
		padding: 4px 0 !important;
		overflow-x: auto;
		scrollbar-width: none;
	}

	#kboard-default-list .kboard-category.category-pc::-webkit-scrollbar {
		display: none;
	}

	#kboard-default-list .kboard-category.category-pc a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 30px !important;
	padding: 0 13px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	border-radius: 999px;
	vertical-align: middle;
}
}

/* 인기글 섹션 */
.babdori-popular-section {
	margin: 0 0 18px;
}

.babdori-popular-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 10px;
}

.babdori-popular-head h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: #111827;
	letter-spacing: -0.03em;
}

.babdori-popular-slider {
	position: relative;
	overflow: hidden;
}

.babdori-popular-track {
	display: flex;
	transition: transform 0.35s ease;
	will-change: transform;
}

.babdori-popular-slide {
	min-width: 100%;
	flex: 0 0 100%;
}

.babdori-popular-slide .babdori-board-card {
	min-height: auto;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.babdori-popular-slide .babdori-title {
	font-size: 13px;
}

.babdori-popular-slide .babdori-meta {
	font-size: 11px;
}

.babdori-popular-arrow {
	position: absolute;
	top: 50%;
	right: 6px;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.92);
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%) translateX(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.babdori-popular-slider:hover .babdori-popular-arrow {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

/* 카드 리스트 붙이기 */
.babdori-board-list {
	gap: 0;
	border: 1px solid #e5e7eb !important;
	border-radius: 4px;
	overflow: hidden;
	background: #fff !important;
}

.babdori-board-list .babdori-board-card {
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0;
	box-shadow: none;
}

.babdori-board-list .babdori-board-card:last-child {
	border-bottom: 0;
}

.babdori-board-list .babdori-board-card:hover {
	background: #f8fafc;
}

/* 당겨서 새로고침 */
.babdori-pull-refresh {
	position: fixed;
	top: 8px;
	left: 50%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	background: #eef4ff;
	color: #2563eb;
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%) translateY(-20px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.babdori-pull-refresh.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.babdori-pull-refresh.is-ready span {
	transform: rotate(180deg);
}

.babdori-pull-refresh span {
	display: inline-flex;
	transition: transform 0.2s ease;
}

.babdori-pull-refresh em {
	font-style: normal;
}

/* 인기글 2개 출력 */
.babdori-popular-slide {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	min-width: 100%;
}

.babdori-popular-slide .babdori-board-card {
	min-height: auto;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* 커뮤니티 카드 우측 썸네일 */
.babdori-card-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.babdori-card-main {
	flex: 1;
	min-width: 0;
}

.babdori-card-thumb {
	width: 64px;
	height: 64px;
	border-radius: 12px;
	overflow: hidden;
	background: #f1f5f9;
	flex-shrink: 0;
}

.babdori-card-thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.babdori-title {
	display: inline;
}

@media (max-width: 420px) {
	.babdori-card-thumb {
		width: 58px;
		height: 58px;
		border-radius: 10px;
	}
.kboard-control {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.kboard-control a,
.kboard-control button,
.kboard-control input[type="submit"] {
	width: auto !important;
	min-width: 82px;
	margin: 0 !important;
}
#kboard-default-editor textarea,
	#kboard-default-editor .kboard-form textarea {
		min-height: 120px !important;
		height: 120px !important;
	}
}

/* 커뮤니티 카테고리 / 글쓰기 툴바 */
.babdori-board-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 8px;
}

.babdori-board-categories {
	flex: 1;
	min-width: 0;
}

.babdori-board-toolbar .kboard-category.category-pc {
	margin: 0 !important;
	padding: 0 !important;
	min-height: 30px !important;
	align-items: center !important;
}

.babdori-board-categories {
	display: flex;
	align-items: center;
}

.babdori-write-icon-button {
	position: fixed;
	right: max(18px, calc((100vw - 480px) / 2 + 18px));
	bottom: calc(98px + env(safe-area-inset-bottom));
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	background: #2563eb;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
	flex-shrink: 0;
	transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

@media (max-width: 640px) {
	.babdori-write-icon-button {
		position: fixed !important;
		right: 18px !important;
		bottom: 140px !important;
		z-index: 10050 !important;
		display: inline-flex !important;
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}
}

.babdori-write-icon-button svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.babdori-write-icon-button:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(37, 99, 235, 0.36);
}

.babdori-board-toolbar {
	justify-content: flex-start;
}

.babdori-board-categories {
	width: 100%;
}

/* =========================
   Community Document
   ========================= */

body:has(#kboard-default-document) .entry-title,
body:has(#kboard-default-document) .page-title,
body:has(#kboard-default-document) h1.entry-title {
	display: none !important;
}

body:has(#kboard-default-document) .content-area,
body:has(#kboard-default-document) .page-content {
	background: #fff !important;
	min-height: 100dvh;
	padding: 18px 12px 40px !important;
}

#kboard-default-document {
	max-width: 480px;
	margin: 0 auto !important;
	font-family: inherit !important;
}

#kboard-default-document * {
	box-sizing: border-box;
	font-family: inherit !important;
}

.babdori-document-page-head {
	margin: 0 0 12px;
}

.babdori-document-page-head a {
	color: #111827 !important;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.2;
	text-decoration: none !important;
	letter-spacing: -0.03em;
}

.babdori-community-document {
	background: #fff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	padding: 8px 16px 0;
}

.babdori-document-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.babdori-document-list-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 26px;
	padding: 0 13px;
	border: 1px solid #dbe4f0;
	border-radius: 999px;
	background: #fff;
	color: #2563eb !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
}

.babdori-document-menu {
	position: relative;
}

.babdori-document-menu-button {
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	background: #f8fafc;
	color: #64748b;
	font-size: 18px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.babdori-document-menu-panel {
	position: absolute;
	top: 36px;
	right: 0;
	z-index: 10;
	display: none;
	min-width: 88px;
	padding: 6px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.babdori-document-menu-panel.is-open {
	display: block;
}

.babdori-document-menu-panel a {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: #334155 !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}

.babdori-document-menu-panel a:hover {
	background: #f8fafc;
}

.babdori-document-author-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
}

.babdori-document-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #475569;
	font-size: 15px;
	font-weight: 900;
	flex-shrink: 0;
}

.babdori-document-author-info {
	flex: 1;
	min-width: 0;
}

.babdori-document-author-name {
	margin-bottom: 4px;
	color: #111827;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
}

.babdori-document-sub-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	color: #64748b;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
}

.babdori-document-sub-meta span,
.babdori-document-sub-meta a {
	color: #64748b !important;
	text-decoration: none !important;
}

.babdori-document-title-area {
	margin-bottom: 6px;
}

.babdori-document-category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 22px;
	margin-bottom: 9px;
	padding: 0 9px;
	border-radius: 999px;
	background: #eef4ff;
	color: #2563eb;
	font-size: 12px;
	font-weight: 800;
}

.babdori-document-title {
	margin: 0;
	color: #111827;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.35;
	letter-spacing: -0.03em;
}

.babdori-document-divider {
	height: 1px;
	margin: 0;
	background: #eef2f7;
}

.babdori-document-content {
	padding: 12px 10px 10px !important;
	border: 0 !important;
}

.babdori-document-content .content-view {
	min-height: 120px;
	color: #111827;
	font-size: 15px;
	line-height: 1.55;
}

.babdori-document-action {
	display: flex;
	align-items: center;
	justify-content: flex-start !important;
	gap: 8px !important;
	padding: 8px 0 8px;
	background: #fff;
}

.babdori-document-action .kboard-button-action,
.babdori-document-comment-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 18px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #475569 !important;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
}

.babdori-document-action .kboard-button-action:hover,
.babdori-document-comment-count:hover {
	background: transparent;
}

.babdori-like-button {
	color: #ef4444 !important;
}

.babdori-document-attach {
	margin-top: 8px;
}

#kboard-default-document .kboard-document-navi,
#kboard-default-document .kboard-control,
#kboard-default-document .kboard-button-print,
#kboard-default-document .kboard-default-poweredby {
	display: none !important;
}

@media (max-width: 640px) {

	#kboard-default-editor .kboard-control {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 10px !important;
	}

	#kboard-default-editor .kboard-control a,
	#kboard-default-editor .kboard-control button,
	#kboard-default-editor .kboard-control input[type="submit"] {
		width: auto !important;
		min-width: 82px !important;
		margin: 0 !important;
	}
}

/* =========================
   Community Comments
   ========================= */

.babdori-comments-area {
	margin-top: 18px;
	padding-top: 0;
	border-top: 0;
}

#kboard-default-document .babdori-comment-textarea:focus,
#kboard-default-document .babdori-comments-area textarea:focus,
#kboard-default-document .babdori-comments-area textarea.comment-textarea:focus {
	border-color: #dbe4f0 !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-box-shadow: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.babdori-comments-wrap,
.babdori-comments-wrap * {
	box-sizing: border-box;
	font-family: inherit !important;
}

#kboard-default-document .kboard-comments-default.babdori-comments-wrap {
	margin: 8px 0 !important;
	padding: 0 !important;
}

.babdori-comments-wrap {
	background: #fff;
}

.babdori-comments-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 6px;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

#kboard-default-document .babdori-comments-header,
#kboard-default-document .comments-header.babdori-comments-header {
	margin: 8px 0 6px !important;
	padding: 0 !important;
}

#kboard-default-document .babdori-comments-sort select {
	height: 26px !important;
	padding: 0 10px 0 14px !important;
	border: 1px solid #F1F5F9 !important;
	border-radius: 16px !important;
	background: #EEF4FF !important;
	color: #2563EB !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	box-shadow: none !important;
	outline: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.babdori-comments-form {
	margin: 8px 0 10px !important;
	padding: 4px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.babdori-comment-input-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.babdori-comment-textarea,
.babdori-comments-area textarea,
.babdori-comments-area textarea.comment-textarea {
	flex: 1;
	width: auto !important;
	min-height: 42px !important;
	height: 42px !important;
	padding: 10px 12px !important;
	border: 1px solid #dbe4f0 !important;
	border-radius: 14px !important;
	background: #fff !important;
	color: #111827 !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	outline: none !important;
	resize: none !important;
	overflow: hidden !important;
	appearance: none !important;
	-webkit-appearance: none !important;
        transition: border-color 0.15s ease !important;
}

.babdori-comment-textarea::placeholder,
.babdori-comments-area textarea::placeholder {
	color: #94a3b8 !important;
}

.babdori-comment-submit {
	position: static;
	flex-shrink: 0;
	margin: 0 !important;
}

.babdori-comment-submit input[type="submit"],
.babdori-comments-area input[type="submit"],
.babdori-comments-area button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px !important;
	padding: 0 13px !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: #2563eb !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.babdori-comment-hidden-fields .field-image1,
.babdori-comment-hidden-fields .field-file1,
.babdori-comments-area input[type="file"],
.babdori-comments-area .kboard-comments-upload,
.babdori-comments-area .kboard-comments-attach,
.babdori-comments-area .comments-attach,
.babdori-comments-area .kboard-attach,
.babdori-comments-area .comments-field.field-image1,
.babdori-comments-area .comments-field.field-file1 {
	display: none !important;
}

.babdori-comments-list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

#kboard-default-document .babdori-comments-list .babdori-comment-item {
	margin: 0 !important;
	padding: 8px 12px !important;
	border-bottom: 1px solid #eef2f7;
}

.babdori-comment-item:last-child {
	border-bottom: 0;
}

.babdori-comment-main {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.babdori-comment-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #475569;
	font-size: 13px;
	font-weight: 900;
	flex-shrink: 0;
}

.babdori-comment-body {
	flex: 1;
	min-width: 0;
}

.babdori-comment-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 5px;
}

.babdori-comment-info {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	min-width: 0;
}

.babdori-comment-name {
	color: #111827;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.3;
}

.babdori-comment-date {
	color: #64748b;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.babdori-comment-name img,
.comments-list-username img,
.kboard-comments-item img.avatar {
	display: none !important;
}

.babdori-comment-menu {
	position: relative;
	flex-shrink: 0;
}

.babdori-comment-menu-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #94a3b8;
	font-size: 17px;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.babdori-comment-menu-button:hover {
	background: #f8fafc;
	color: #64748b;
}

.babdori-comment-menu-panel {
	position: absolute;
	top: 30px;
	right: 0;
	z-index: 20;
	display: none;
	min-width: 82px;
	padding: 6px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.babdori-comment-menu-panel.is-open {
	display: block;
}

.babdori-comment-menu-panel button {
	display: block;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #334155;
	font-size: 13px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	white-space: nowrap;
}

.babdori-comment-menu-panel button:hover {
	background: #f8fafc;
}

.babdori-comment-content {
	margin: 0 0 8px;
	color: #111827;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.6;
}

.babdori-comment-content p {
	margin: 0;
}

.babdori-comment-content p + p {
	margin-top: 6px;
}

.babdori-comment-actions {
	display: flex !important;
	align-items: center;
	justify-content: flex-start !important;
	gap: 12px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.babdori-comment-actions .comments-button-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	color: #64748b !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	cursor: pointer;
}

.babdori-comment-like {
	color: #ef4444 !important;
}

.babdori-comment-reply {
	color: #64748b !important;
}

.babdori-comments-area .comments-list-controller .right,
.babdori-comments-area .comments-button-unlike,
.babdori-comments-area .comments-list-username,
.babdori-comments-area .comments-list-create,
.babdori-comments-area hr,
.babdori-comments-header hr,
.kboard-comments-wrap hr {
	display: none !important;
}

.babdori-comment-item .babdori-comments-list {
	margin-top: 10px;
	margin-left: 44px;
}

.comments-reply-form {
	margin-top: 10px;
}


/* =========================
   Community Responsive
   ========================= */

@media (max-width: 640px) {
	body:has(#kboard-default-document) .content-area,
	body:has(#kboard-default-document) .page-content {
		padding: 16px 12px 36px !important;
	}

	.babdori-document-title {
		font-size: 19px;
	}

	.babdori-document-content .content-view {
		font-size: 15px;
	}

	.babdori-comments-header {
		margin-bottom: 6px;
	}

	.babdori-comments-sort select {
		height: 26px;
		font-size: 13px;
	}

	#kboard-default-document .babdori-comments-list .babdori-comment-item {
		padding: 8px 12px !important;
	}

	.babdori-comment-avatar {
		width: 32px;
		height: 32px;
		font-size: 12px;
	}

	.babdori-comment-name {
		font-size: 13px;
	}

	.babdori-comment-content {
		font-size: 14px;
	}
        .babdori-editor-title {
               font-size: 14px;
}
         .babdori-document-page-head a {
               font-size: 16px;
}
}

/* =========================
   Community Editor App UI
   ========================= */
body:has(.babdori-community-editor) .page-title {
	display: none !important;
}

body:has(.babdori-community-editor) .content-area {
	background: #fff;
	min-height: calc(100dvh - 62px - env(safe-area-inset-bottom));
	padding: 16px 14px calc(92px + env(safe-area-inset-bottom));
}

#kboard-default-editor.babdori-community-editor {
	max-width: 480px;
	margin: 0 auto !important;
	padding: 0 !important;
}

.babdori-community-editor .kboard-form {
	display: flex;
	flex-direction: column;
}

.babdori-editor-title {
	margin: 6px 0 14px;
	color: #111827;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.04em;
}

.babdori-community-editor .kboard-attr-row {
	margin: 0 0 14px !important;
	padding: 0 !important;
	border: 0 !important;
}

.babdori-community-editor .kboard-attr-category1 {
	order: 1;
}

.babdori-community-editor .kboard-attr-title {
	order: 2;
}

.babdori-community-editor .kboard-attr-content {
	order: 3;
}

.babdori-community-editor .kboard-attr-media {
	order: 4;
}

.babdori-community-editor .babdori-editor-control {
	order: 5;
}

.babdori-community-editor .attr-name {
	display: block;
	margin: 0 0 7px !important;
	color: #111827;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.3;
}

.babdori-community-editor .attr-required-text {
	color: #2563eb;
}

.babdori-community-editor .attr-value,
.babdori-community-editor .kboard-content {
	width: 100%;
}

.babdori-community-editor input[type="text"],
.babdori-community-editor input[type="password"],
.babdori-community-editor select,
.babdori-community-editor textarea {
	width: 100%;
	min-height: 38px;
	height: 38px;
	padding: 0 13px;
	border: 1px solid #dbe4f0;
	border-radius: 11px;
	background: #fff;
	color: #111827;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	outline: none;
	box-shadow: none;
}

.babdori-community-editor input[type="text"]:focus,
.babdori-community-editor input[type="password"]:focus,
.babdori-community-editor select:focus,
.babdori-community-editor textarea:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.babdori-community-editor textarea,
.babdori-community-editor .wp-editor-area {
	height: 220px !important;
	min-height: 220px !important;
	max-height: 280px !important;
	padding: 13px !important;
	line-height: 1.55;
	resize: vertical;
}

.babdori-category-card-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.babdori-category-card {
	height: 34px;
	padding: 0 14px;
	border: 1px solid #dbe4f0;
	border-radius: 999px;
	background: #fff;
	color: #64748b;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.babdori-category-card.is-active {
	border-color: #2563eb;
	background: #2563eb;
	color: #fff;
}

.babdori-community-editor .kboard-attr-media .attr-value {
	display: flex;
	align-items: center;
}

.babdori-community-editor .kboard-attr-media .attr-value a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	border-radius: 999px !important;
	background: #EEF4FF !important;
	color: #2563EB !important;
	font-size: 0 !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

.babdori-community-editor .kboard-attr-media .attr-value a::before {
	content: "";
	display: block;
	width: 19px;
	height: 19px;
	margin: 0 !important;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5h16v14H4V5Zm3 11 3.5-4 2.5 3 2-2.5 3 3.5H7Zm9-7a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.babdori-editor-control {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 8px;
	padding: 0 0 10px;
	border: 0 !important;
}

.babdori-editor-control .left,
.babdori-editor-control .right {
	float: none !important;
	width: auto !important;
}

.babdori-editor-control .kboard-default-button-small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 18px;
	border: 0 !important;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none !important;
	cursor: pointer;
}

.babdori-editor-control .left .kboard-default-button-small {
	background: #eef2f7 !important;
	color: #64748b !important;
}

.babdori-editor-control .right .kboard-default-button-small {
	background: #111827 !important;
	color: #fff !important;
}

/* =========================
   Auth Forms - Login / Register / Password Reset
   ========================= */

.cosmosfarm-members-form,
form#wpmem_register_form,
form#wpmem_getusername_form {
	max-width: 480px !important;
	width: 100% !important;
	margin: 0 auto !important;
	padding: 0 16px !important;
	box-sizing: border-box !important;
}

.cosmosfarm-members-form fieldset,
form#wpmem_register_form fieldset,
form#wpmem_getusername_form fieldset {
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.cosmosfarm-members-form legend,
form#wpmem_register_form legend,
form#wpmem_getusername_form legend {
	display: none !important;
}

.cosmosfarm-members-form label,
form#wpmem_register_form label,
form#wpmem_getusername_form label {
	display: block !important;
	margin: 0 0 5px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #111827 !important;
}

.cosmosfarm-members-form .div_text,
.cosmosfarm-members-form .div_password,
.cosmosfarm-members-form .div_email,
form#wpmem_register_form .div_text,
form#wpmem_register_form .div_password,
form#wpmem_register_form .div_email,
form#wpmem_getusername_form .div_text,
form#wpmem_getusername_form .div_email {
	width: 100% !important;
	margin: 0 0 9px !important;
}

.cosmosfarm-members-form input[type="text"],
.cosmosfarm-members-form input[type="password"],
.cosmosfarm-members-form input[type="email"],
form#wpmem_register_form input[type="text"],
form#wpmem_register_form input[type="password"],
form#wpmem_register_form input[type="email"],
form#wpmem_getusername_form input[type="text"],
form#wpmem_getusername_form input[type="email"] {
	width: 100% !important;
	height: 42px !important;
	padding: 0 13px !important;
	border: 1px solid #dbe3ef !important;
	border-radius: 12px !important;
	background: #fff !important;
	font-size: 14px !important;
	color: #111827 !important;
	box-sizing: border-box !important;
}

.cosmosfarm-members-form input[type="text"]:focus,
.cosmosfarm-members-form input[type="password"]:focus,
.cosmosfarm-members-form input[type="email"]:focus,
form#wpmem_register_form input[type="text"]:focus,
form#wpmem_register_form input[type="password"]:focus,
form#wpmem_register_form input[type="email"]:focus,
form#wpmem_getusername_form input[type="text"]:focus,
form#wpmem_getusername_form input[type="email"]:focus {
	outline: none !important;
	border-color: #2563eb !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* 체크박스는 버튼 스타일에서 제외 */
.cosmosfarm-members-form input[type="checkbox"],
form#wpmem_register_form input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	min-height: 0 !important;
	margin: 0 6px 0 0 !important;
	padding: 0 !important;
	border: 1px solid #9ca3af !important;
	border-radius: 3px !important;
	background: #fff !important;
	box-shadow: none !important;
	vertical-align: middle !important;
	appearance: auto !important;
	-webkit-appearance: checkbox !important;
}

/* 제출 버튼만 통일 */
.cosmosfarm-members-form input[type="submit"],
.cosmosfarm-members-form input.buttons[type="submit"],
.cosmosfarm-members-form .button_div input[type="submit"],
form#wpmem_register_form input[type="submit"],
form#wpmem_register_form input.buttons[type="submit"],
form#wpmem_register_form .button_div input[type="submit"],
form#wpmem_getusername_form input[type="submit"],
form#wpmem_getusername_form .button_div input[type="submit"] {
	width: 100% !important;
	height: 44px !important;
	margin-top: 8px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: #2563eb !important;
	background-color: #2563eb !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	cursor: pointer !important;
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22) !important;
	box-sizing: border-box !important;
}

.cosmosfarm-members-form input[type="submit"]:hover,
.cosmosfarm-members-form input.buttons[type="submit"]:hover,
.cosmosfarm-members-form .button_div input[type="submit"]:hover,
form#wpmem_register_form input[type="submit"]:hover,
form#wpmem_getusername_form input[type="submit"]:hover {
	background: #1d4ed8 !important;
	background-color: #1d4ed8 !important;
}

/* 비밀번호 찾기 / 회원가입 링크 색상 정리 */
.cosmosfarm-members-form .link-text,
.cosmosfarm-members-form .pwdreset,
.cosmosfarm-members-form .register {
	margin-top: 12px !important;
	text-align: center !important;
}

.cosmosfarm-members-form .link-text a,
.cosmosfarm-members-form .pwdreset a,
.cosmosfarm-members-form .register a,
.cosmosfarm-members-form a,
form#wpmem_register_form a,
form#wpmem_getusername_form a {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #334155 !important;
	text-decoration: none !important;
}

.cosmosfarm-members-form .link-text a:hover,
.cosmosfarm-members-form .pwdreset a:hover,
.cosmosfarm-members-form .register a:hover,
.cosmosfarm-members-form a:hover,
form#wpmem_register_form a:hover,
form#wpmem_getusername_form a:hover {
	color: #2563eb !important;
}

/* 필수 표시 */
.cosmosfarm-members-form .req,
form#wpmem_register_form .req,
form#wpmem_getusername_form .req {
	color: #ef4444 !important;
}

.cosmosfarm-members-form .req-text,
form#wpmem_register_form .req-text,
form#wpmem_getusername_form .req-text {
	margin-top: 8px !important;
	font-size: 13px !important;
	color: #111827 !important;
}

/* 모바일 */
@media (max-width: 520px) {
	.cosmosfarm-members-form,
	form#wpmem_register_form,
	form#wpmem_getusername_form {
		max-width: 100% !important;
		padding: 0 18px !important;
	}

	.cosmosfarm-members-form input[type="text"],
	.cosmosfarm-members-form input[type="password"],
	.cosmosfarm-members-form input[type="email"],
	form#wpmem_register_form input[type="text"],
	form#wpmem_register_form input[type="password"],
	form#wpmem_register_form input[type="email"],
	form#wpmem_getusername_form input[type="text"],
	form#wpmem_getusername_form input[type="email"] {
		height: 41px !important;
	}
}

/* =========================
   Auth Page Layout
   ========================= */
body:has(.cosmosfarm-members-form) .content-area,
body:has(form#wpmem_register_form) .content-area,
body:has(form#wpmem_getusername_form) .content-area {
	background: #fff;
	min-height: calc(100dvh - 62px - env(safe-area-inset-bottom));
	padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

/* =========================
   로그인 하단 링크 → 우측 정렬 안정버전
   ========================= */

.cosmosfarm-members-form.signin-form .link-text.pwdreset,
.cosmosfarm-members-form.signin-form .link-text.register {
	display: block !important;
	text-align: right !important;
	margin: 10px 0 0 !important;
	clear: both !important;
}

.cosmosfarm-members-form.signin-form .link-text a {
	color: #64748b !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
}

.cosmosfarm-members-form.signin-form .link-text a:hover {
	color: #2563eb !important;
}

.cosmosfarm-members-form.signin-form label {
	text-align: left !important;
}

/* =========================
   Account Common
========================= */

.account-page,
.point-history-page {
	background: #fff;
	min-height: calc(100vh - 64px);
	padding-bottom: 30px;
}

.account-wrap,
.point-history-wrap {
	max-width: 480px;
	margin: 0 auto;
	padding: 7px 8px 60px;
	box-sizing: border-box;
}

.account-header {
	margin-bottom: 20px;
}

.account-title {
	margin: 0;
	color: #111827;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.account-group,
.point-history-section,
.activity-section {
	margin-bottom: 24px;
}

.account-group-title,
.point-history-section h2 {
	margin: 0 0 10px;
	padding-left: 4px;
	color: #555;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
}

.account-card,
.saved-place-card,
.point-log-list {
	overflow: hidden;
	padding: 0;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #fff;
	box-sizing: border-box;
}

.account-page-desc,
.point-history-header p {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

/* =========================
   Account Profile
========================= */

.account-profile-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
}

.account-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex: 0 0 44px;
	border-radius: 999px;
	background: #f1f5f9;
	font-size: 22px;
}

.account-profile-info {
	min-width: 0;
}

.account-profile-info strong {
	display: block;
	margin-bottom: 6px;
	color: #111827;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.25;
}

.account-profile-meta {
	display: block;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
}

.account-id-point-line {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}

.account-points-link {
	color: #2563eb !important;
	font-weight: 800;
	text-decoration: none !important;
}

.account-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #64748b;
	cursor: pointer;
}

.account-icon-button svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* =========================
   Account Menu
========================= */

.account-menu-item,
.account-page button.account-menu-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 42px;
	padding: 0 20px;
	border: 0;
	border-top: 1px solid #eef2f7;
	background: #fff;
	color: #111827;
	font-family: inherit;
	text-align: left;
	text-decoration: none !important;
	box-sizing: border-box;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.account-menu-item:first-child {
	border-top: 0;
}

.account-menu-item span {
	color: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.account-menu-item i {
	color: #cbd5e1;
	font-style: normal;
	font-size: 22px;
	line-height: 1;
}

.account-menu-item:hover,
.account-menu-item:focus,
.account-menu-item:focus-visible,
.account-menu-item:active {
	outline: none !important;
	box-shadow: none !important;
}

.account-menu-item:hover span {
	color: #2563eb;
}

/* 위험 메뉴 */
.account-logout,
.account-logout:visited,
.account-danger,
.account-danger:visited {
	color: #ef4444 !important;
}

.account-logout span,
.account-logout i,
.account-danger span,
.account-danger i {
	color: #ef4444 !important;
}

.account-logout:hover,
.account-logout:focus,
.account-logout:active,
.account-danger:hover,
.account-danger:focus,
.account-danger:active {
	color: #dc2626 !important;
	background: #fff;
}

.account-logout:hover span,
.account-logout:focus span,
.account-logout:active span,
.account-logout:hover i,
.account-logout:focus i,
.account-logout:active i,
.account-danger:hover span,
.account-danger:focus span,
.account-danger:active span,
.account-danger:hover i,
.account-danger:focus i,
.account-danger:active i {
	color: #dc2626 !important;
}

/* =========================
   Account Panels Common
========================= */

.account-nickname-panel,
.account-password-panel,
.account-delete-panel {
	display: none;
	padding: 16px 20px;
	border-top: 1px solid #eef2f7;
	background: #f8fafc;
}

.account-nickname-panel.is-open,
.account-password-panel.is-open,
.account-delete-panel.is-open {
	display: block;
}

.account-nickname-form,
.account-password-form,
.account-delete-form {
	display: grid;
	gap: 10px;
}

.account-nickname-form {
	grid-template-columns: 1fr 64px;
}

.account-nickname-input,
.account-password-form input,
.account-delete-form input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #dbe3ef;
	border-radius: 14px;
	background: #fff;
	color: #111827;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	outline: none;
	box-sizing: border-box;
}

.account-nickname-input:focus,
.account-password-form input:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.account-nickname-form button,
.account-password-form button,
.account-delete-form button {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 14px;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
}

.account-nickname-form button,
.account-password-form button {
	background: #3b5fe2;
}

.account-nickname-message,
.account-password-message,
.account-delete-message {
	margin: 8px 2px 0;
	color: #2563eb;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.account-nickname-message.is-error,
.account-password-message.is-error,
.account-delete-message.is-error {
	color: #ef4444;
}

/* 회원 탈퇴 패널 */
.account-delete-panel {
	background: #fff5f5;
}

.account-delete-notice {
	margin: 0 0 12px;
	color: #b91c1c;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

.account-delete-form input {
	border-color: #fecaca;
}

.account-delete-form input:focus {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.account-delete-form button {
	background: #ef4444;
}

.account-delete-form button:hover {
	background: #dc2626;
}

/* =========================
   Saved / Activity Header
========================= */

.saved-page-header {
	display: block;
	margin-bottom: 20px;
}

.saved-page-header-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 0;
}

.saved-page-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	border: 0;
	background: transparent;
	color: #111827;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
}

.saved-page-header .account-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.saved-page-header .account-page-desc {
	margin: 0;
	padding-left: 4px;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

.activity-empty,
.point-empty {
	padding: 24px 18px;
	text-align: center;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
}

.activity-empty strong {
	display: block;
	margin-bottom: 7px;
	color: #111827;
	font-size: 15px;
	font-weight: 900;
}

.activity-empty p {
	margin: 0;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
}

/* =========================
   Responsive
========================= */

@media (max-width: 480px) {
	.account-wrap,
	.point-history-wrap {
		padding: 7px 8px 76px;
	}

	.account-title {
		font-size: 18px;
	}

	.account-profile-card {
		gap: 12px;
		padding: 16px 18px;
	}

	.account-avatar {
		width: 40px;
		height: 40px;
		flex-basis: 40px;
		font-size: 20px;
	}

	.account-profile-info strong {
		font-size: 16px;
	}

	.account-profile-meta {
		font-size: 13px;
	}

	.account-menu-item,
	.account-page button.account-menu-item {
		min-height: 40px;
		padding: 0 18px;
	}

	.account-nickname-panel,
	.account-password-panel,
	.account-delete-panel {
		padding: 14px 18px;
	}

	.account-nickname-form {
		grid-template-columns: 1fr 62px;
		gap: 8px;
	}

	.account-nickname-input,
	.account-password-form input,
	.account-delete-form input {
		height: 44px;
		font-size: 14px;
		border-radius: 14px;
	}

	.account-nickname-form button,
	.account-password-form button,
	.account-delete-form button {
		height: 44px;
		font-size: 14px;
		border-radius: 14px;
	}

	.saved-page-header-row {
		gap: 8px;
		margin-bottom: 12px;
	}

	.saved-page-back {
		width: 20px;
		height: 20px;
		flex: 0 0 20px;
		font-size: 26px;
	}

	.saved-page-header .account-title {
		font-size: 16px;
		line-height: 1.15;
	}
}

@media (max-width: 380px) {
	.account-profile-card {
		align-items: flex-start;
	}

	.account-id-point-line {
		gap: 3px 5px;
	}

	.account-icon-button {
		width: 26px;
		height: 26px;
	}

	.account-nickname-panel,
	.account-password-panel,
	.account-delete-panel {
		padding: 12px;
	}

	.account-nickname-form {
		grid-template-columns: 1fr;
	}

	.account-nickname-input,
	.account-password-form input,
	.account-delete-form input {
		padding: 0 13px;
		font-size: 13px;
	}

	.account-nickname-form button,
	.account-password-form button,
	.account-delete-form button {
		font-size: 14px;
	}
}


/* =========================
   My Activity
   ========================= */

.activity-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 18px;
}

.activity-summary-card {
	padding: 12px 6px;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
	text-align: center;
}

.activity-summary-card span {
	display: block;
	margin-bottom: 6px;
	color: #64748b;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.04em;
	white-space: nowrap;
}

.activity-summary-card strong {
	display: block;
	color: #111827;
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
}

.activity-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 64px;
	padding: 13px 18px;
	border-top: 1px solid #eef2f7;
	color: #111827;
	text-decoration: none;
}

.activity-list-item:first-child {
	border-top: 0;
}

.activity-list-item div {
	min-width: 0;
}

.activity-list-item strong {
	display: block;
	margin-bottom: 5px;
	color: #111827;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.activity-list-item p {
	margin: 0;
	color: #64748b;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.activity-list-item i {
	flex-shrink: 0;
	color: #cbd5e1;
	font-style: normal;
	font-size: 22px;
}

.activity-status {
	display: inline-flex;
	align-items: center;
	height: 20px;
	margin-left: 6px;
	padding: 0 7px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 900;
	vertical-align: 1px;
}

.activity-status.approved {
	background: #dcfce7;
	color: #16a34a;
}

.activity-status.pending {
	background: #fef3c7;
	color: #b45309;
}

.activity-status.draft {
	background: #f1f5f9;
	color: #64748b;
}

.activity-login-card {
	padding: 28px 20px;
	text-align: center;
}

.activity-login-card strong {
	display: block;
	margin-bottom: 8px;
	color: #111827;
	font-size: 17px;
	font-weight: 900;
}

.activity-login-card p {
	margin: 0 0 16px;
	color: #64748b;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
}

.activity-login-card a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 18px;
	border-radius: 999px;
	background: #2563eb;
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
}

.activity-hidden {
	display: none;
}

.activity-hidden.is-show {
	display: flex;
}

.saved-eats-more-toggle,
.activity-more-toggle {
	width: 100%;
	height: 42px;
	border: 0;
	border-top: 1px solid #eef2f7;
	background: #fff;
	color: #2563eb;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
}

.saved-eats-more-toggle.is-open,
.activity-more-toggle.is-open {
	color: #64748b;
}

/* =========================
   Saved Places
   ========================= */

.saved-place-edit-item {
	padding: 10px 14px;
	border-top: 1px solid #eef2f7;
	background: #fff;
}

.saved-place-edit-item:first-child {
	border-top: 0;
}

.saved-place-line {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.saved-place-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 14px;
	background: #f1f5f9;
	font-size: 18px;
}

.saved-place-line-text {
	flex: 1;
	min-width: 0;
}

.saved-place-line-text strong {
	display: inline;
	margin-right: 4px;
	color: #111827;
	font-size: 14px;
	font-weight: 700;
}

.saved-place-line-text p {
	display: inline;
	margin: 0;
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
}

.saved-place-map-link,
.saved-place-edit-toggle,
.saved-place-search-btn,
.saved-place-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	height: 28px;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: #eef4ff;
	color: #2563eb;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
}

.saved-place-edit-toggle {
	background: #f1f5f9;
}

.saved-place-delete {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border: 0;
	border-radius: 999px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
}

.saved-place-delete:hover {
	background: #fee2e2;
	color: #dc2626;
}

.saved-place-edit-form {
	display: none;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 14px;
}

.saved-place-edit-form.is-open,
.saved-place-add-form.is-open {
	display: grid;
}

.saved-place-search-row {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 8px;
}

.saved-place-edit-form input,
.saved-place-edit-form select {
	min-width: 0;
	height: 32px;
	padding: 0 10px;
	border: 1px solid #dbe3ef;
	border-radius: 999px;
	background: #fff;
	color: #111827;
	font-size: 12px;
	font-weight: 500;
	box-sizing: border-box;
}

.saved-place-edit-form input::placeholder {
	color: #94a3b8;
}

.saved-place-search-btn,
.saved-place-submit-btn {
	background: #2563eb;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
}

.saved-place-add-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: 32px;
	margin: 4px auto;
	padding: 0 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #111827;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.saved-place-add-form {
	display: none;
	padding: 10px 14px 14px;
	margin-top: 4px;
	border-top: 1px solid #eef2f7;
	background: #fff;
}

.saved-place-search-results {
	max-height: 240px;
	overflow-y: auto;
	margin-top: 8px;
	border-radius: 14px;
	background: #fff;
}

.saved-place-search-results:not(:empty) {
	border: 1px solid #e2e8f0;
}

.saved-place-result-item {
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-top: 1px solid #eef2f7;
	background: #fff;
	color: #334155;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.saved-place-result-item:first-child {
	border-top: 0;
}

.saved-place-result-item:hover {
	background: #eff6ff;
	color: #1d4ed8;
}

.saved-place-message {
	margin: -2px 2px 0;
	color: #2563eb;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
}

.saved-place-message.is-error {
	color: #dc2626;
}

/* =========================
   Saved Eats
   ========================= */

.saved-eats-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 68px;
	padding: 14px 20px;
	border-top: 1px solid #eef2f7;
	background: #fff;
	color: #111827;
	text-decoration: none;
}

.saved-eats-item:first-child {
	border-top: 0;
}

.saved-eats-item div {
	flex: 1;
	min-width: 0;
}

.saved-eats-item strong {
	display: block;
	margin-bottom: 4px;
	color: #111827;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.saved-eats-item p {
	margin: 0;
	color: #64748b;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.45;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.saved-eats-item i {
	flex-shrink: 0;
	color: #cbd5e1;
	font-style: normal;
	font-size: 22px;
	line-height: 1;
}

.saved-eats-hidden,
.point-log-hidden {
	display: none !important;
}

.saved-eats-hidden.is-show,
.point-log-hidden.is-show {
	display: flex !important;
}

/* =========================
   Point History
   ========================= */

.point-summary-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	background: #fff;
}

.point-summary-card span {
	color: #64748b;
	font-size: 13px;
	font-weight: 500;
}

.point-summary-card strong {
	color: #2563eb;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

.point-log-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 46px;
	padding: 10px 14px;
	border-top: 1px solid #eef2f7;
}

.point-log-item:first-child {
	border-top: 0;
}

.point-log-item div {
	flex: 1;
	min-width: 0;
}

.point-log-item strong {
	display: block;
	margin-bottom: 4px;
	color: #111827;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.point-log-item span {
	display: block;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.3;
}

.point-log-item em {
	flex-shrink: 0;
	font-style: normal;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.point-log-item em.is-plus {
	color: #2563eb;
}

.point-log-item em.is-minus {
	color: #ef4444;
}

/* =========================
   Account Responsive
   ========================= */

@media (max-width: 520px) {
	.account-title {
		font-size: 16px;
	}

	.account-profile-card {
		min-height: 70px;
		padding: 10px 12px;
	}

	.account-avatar {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.account-menu-item {
		min-height: 42px;
		padding: 0 20px;
	}

	.account-id-point-line {
		gap: 4px;
		font-size: 12px;
	}
.account-points-link {
	max-width: calc(100% - 30px);
	font-size: 12px;
}

.account-point-refresh {
	flex-basis: 22px;
	width: 22px;
	height: 22px;
}
}

/* =========================
   Policy Detail Page
   ========================= */

.policy-detail-card {
	padding: 12px;
	border: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.policy-content {
	color: #111827;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.65;
	word-break: keep-all;
}

.policy-content h1 {
	display: none;
}

.policy-content h2 {
	margin: 26px 0 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: #111827;
}

.policy-content h2:first-child {
	margin-top: 0;
}

.policy-content p {
	margin: 0 0 14px;
	color: #334155;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.65;
}

.policy-content ul {
	margin: 0 0 16px;
	padding-left: 20px;
}

.policy-content li {
	margin: 0 0 7px;
	color: #334155;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
}

.policy-content li:last-child {
	margin-bottom: 0;
}

@media (max-width: 520px) {
	.policy-detail-card {
		padding: 12px;
		border-radius: 20px;
	}

	.policy-content h2 {
		font-size: 16px;
	}

	.policy-content p,
	.policy-content li {
		font-size: 14px;
	}
}

/* =========================
   Babdori Toast
   ========================= */

.babdori-toast {
	position: fixed;
	left: 50%;
	bottom: 110px;

	transform: translateX(-50%) translateY(20px);

	min-width: 180px;
	max-width: calc(100vw - 40px);

	padding: 14px 18px;
	border-radius: 18px;

	background: rgba(17, 24, 39, 0.92);
	backdrop-filter: blur(14px);

	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	z-index: 99999;

	transition:
		opacity 0.24s ease,
		transform 0.24s ease,
		visibility 0.24s ease;
}

.babdori-toast.is-show {
	opacity: 1;
	visibility: visible;

	transform: translateX(-50%) translateY(0);
}

.babdori-toast.is-error {
	background: rgba(185, 28, 28, 0.94);
}

.babdori-toast.is-success {
	background: rgba(22, 101, 52, 0.94);
}

/* =========================
   Babdori Confirm
   ========================= */

.babdori-confirm {
	position: fixed;
	inset: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 24px;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	z-index: 100000;

	transition:
		opacity 0.22s ease,
		visibility 0.22s ease;
}

.babdori-confirm.is-show {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.babdori-confirm-backdrop {
	position: absolute;
	inset: 0;

	background: rgba(15, 23, 42, 0.56);
	backdrop-filter: blur(3px);
}

.babdori-confirm-box {
	position: relative;

	width: 100%;
	max-width: 340px;

	padding: 24px 22px 20px;

	border-radius: 26px;

	background: #fff;

	box-shadow:
		0 24px 60px rgba(15, 23, 42, 0.18);

	transform: translateY(10px) scale(0.96);

	transition:
		transform 0.22s ease;
}

.babdori-confirm.is-show .babdori-confirm-box {
	transform: translateY(0) scale(1);
}

.babdori-confirm-message {
	margin: 0;

	color: #111827;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
}

.babdori-confirm-actions {
	display: flex;
	gap: 10px;

	margin-top: 22px;
}

.babdori-confirm-actions button {
	flex: 1;

	height: 46px;

	border: 0;
	border-radius: 14px;

	font-size: 14px;
	font-weight: 700;

	cursor: pointer;

	transition:
		transform 0.18s ease,
		opacity 0.18s ease;
}

.babdori-confirm-actions button:active {
	transform: scale(0.96);
}

.babdori-confirm-cancel {
	background: #f1f5f9;
	color: #475569;
}

.babdori-confirm-ok {
	background: #2563eb;
	color: #fff;
}

/* =========================
   Keyboard Open
   ========================= */

body.keyboard-open .babdori-bottom-nav {
	transform: translateY(120%);
	opacity: 0;
	pointer-events: none;
}

body.keyboard-open .babdori-toast {
	bottom: 24px;
}

/* =========================
   Mobile Keyboard Fix
   ========================= */

html.keyboard-open,
body.keyboard-open {
	height: 100%;
	overflow: hidden;
}

body.keyboard-open .babdori-map-toolbar {
	transform: translateY(-12px);
}

body.keyboard-open .babdori-place-overlay,
body.keyboard-open .babdori-report-overlay {
	padding-bottom: 8px;
}

body.keyboard-open .babdori-place-content {
	max-height: 58vh;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

body.keyboard-open .babdori-review-form {
	position: sticky;
	bottom: 0;
	z-index: 30;

	background: #fff;

	padding-bottom:
		calc(env(safe-area-inset-bottom) + 10px);
}