img.img-fload {
    max-width: 100%;
    height: auto;
}

img {
    object-fit: cover;
}

@font-face {
  font-family: 'NanumSonGeurSicGeumEunBoHwa';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2404@1.0/NanumSonGeurSicGeumEunBoHwa.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

.letter-style {
	font-family: 'NanumSonGeurSicGeumEunBoHwa', cursive;
	font-size: 18px;
	line-height: 1.9;
	max-width: 100%;
	margin: 50px auto;
	padding: 40px;
	background: #fffdf8;
	border: 1px solid #eee;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	color: #333;
}

span .text-right {
	text-align: right;
    margin-top: 30px;
}

.category-desc-box {
  margin-top: 0;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
}

.category-description {
  background: var(--rs-theme-blue);
  border-left: 4px solid var(--rs-theme-blue);
  padding: 15px 20px;
  border-radius: 6px;
  font-size: 16px;
  color: #444;
}

.business-list {
  padding-left: 10px;
  margin: 14px 0;
  list-style: none;
}
.business-list li {
  position: relative;
  padding-left: 8px;     /* 왼쪽 간격 살짝 줄임 */
  margin-bottom: 6px;     /* 항목 간격 줄임 */
  font-size: 15px;        /* 글자 크기도 살짝 줄이면 전체적으로 밀도 있게 보임 */
  line-height: 1.5;
}
.business-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rs-theme-blue, #007bff);
  font-weight: bold;
}
.business-list strong {
  color: #222;
}

.arrow-icon {
  transition: transform 0.3s ease;
  font-size: 14px;
}
.arrow-icon.open {
  transform: rotate(180deg); /* ▼ → ▲ */
}

/* 트리 전체 박스 */
.category-tree-box {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  height: 100%;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  font-size: 16px;
  scroll-behavior: smooth;
}

.category-tree-box::-webkit-scrollbar {
  width: 6px;
}
.category-tree-box::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

/* 트리 토글 버튼 공통 */
.category-tree .btn-toggle {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #e9ecef;
  color: #212529;
  border: none;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 1.4rem;
  text-align: left;
  transition: background-color 0.2s ease;
  margin: 0.2rem 0;
  position: relative;
}

.category-tree .btn-toggle:hover {
  background-color: #dee2e6;
}

.category-tree .btn-toggle[aria-expanded="true"] {
  background-color: #adb5bd;
  color: #fff;
}

/* 하위 리스트 공통 */
.category-tree .btn-toggle-nav {
  margin-top: 0.3rem;
  padding-left: 1rem;
  border-left: 2px solid #dee2e6;
}

/* 제품 링크 */
.category-tree a {
  display: inline-block;
  padding: 6px 10px;
  font-size: 1.3rem;
  color: #343a40;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1.5;
  margin: 2px 0;
}

.category-tree a:hover {
  color: #0d6efd;
  background-color: #e2e6ea;
}

.category-tree a.active {
  background-color: #0d6efd;
  color: #fff !important;
  font-weight: 700;
  border-left: 4px solid #0a58ca;
}

/* 깊이 시각화를 위한 들여쓰기 (n단계 지원) */
.category-tree .btn-toggle-nav ul {
  padding-left: 1rem;
  border-left: 2px solid #dee2e6;
  margin-top: 0.3rem;
}

/* 최종 노드(제품)에는 선 없음 */
.category-tree .btn-toggle-nav ul:empty {
  border-left: none;
}

.btn-toggle.top-category {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--rs-light);       /* 기본 파랑 */
  color: var(--rs-black);                             /* 흰 글자 */
  border: none;
  border-radius: 0.4rem;
  font-family: var(--rs-ff-title);
  font-weight: var(--rs-fw-bold);
  font-size: var(--rs-fs-b2);                         /* 16px */
  text-align: left;
  transition: background-color 0.2s ease;
  margin: 0.2rem 0;
  position: relative;
}

.btn-toggle.top-category[aria-expanded="true"] {
  background-color: var(--rs-theme-blue);
  color: var(--rs-white);
}

.btn-toggle.top-category:hover {
  background-color: var(--rs-theme-blue);
  color: var(--rs-white);
}

/* 버튼 스타일 */
.google-translate-button {
    background-color: #4285f4; /* 구글 블루 색상 */
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.google-translate-button:hover {
    background-color: #357ae8; /* Hover 시 약간 더 어두운 파랑 */
    transform: scale(1.05); /* 마우스 오버 시 살짝 커지도록 */
}

.google-translate-button:focus {
    outline: none; /* 포커스 시 테두리 제거 */
}

/* 아이콘 스타일 */
.google-translate-icon {
    font-size: 20px;
    display: inline-block;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 80%; /* 높이를 적절히 조정 */
  margin-bottom: 20px;  /* 하단 콘텐츠와의 간격 */
}

.map-container .root_daum_roughmap_landing {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}





.inquiry-overlay {
  z-index: 99999 !important; /* 최상위로 */
}

.inquiry-modal {
  z-index: 999999 !important; /* 오버레이보다 위 */
}

/* 오버레이 */
.inquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}

/* 모달 */
.inquiry-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
  width: 90%;
  background: #fff;
  z-index: 9999;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  padding: 25px 30px;
  display: none;
  animation: fadeIn 0.3s ease;
}

/* 표시 상태 */
.inquiry-modal.active,
.inquiry-overlay.active {
  display: block;
}

/* 헤더 */
.inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.inquiry-header h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

.close-inquiry {
  font-size: 24px;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
}

/* 공통 폼 스타일 */
.inquiry-form .form-group {
  margin-bottom: 16px;
}

.inquiry-form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
  font-size: 14px;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.inquiry-form select:not(.nice-select-hidden) {
  display: block;
}

.inquiry-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* 가로 배치용 */
.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row .form-group.half {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
}

/* 반응형 대응 */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

/* 버튼 */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-submit {
  background-color: #EA5501;
  color: #fff;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cancel {
  background-color: #f0f0f0;
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
}

#categorySelect option.dimmed-option {
  color: #999;
  font-size: 0.9em;
}

#categorySelect,
#productSelect {
  display: block;
  visibility: visible;
  opacity: 1;
}

select.nice-select-hidden {
  display: block !important;
}
