* { box-sizing: border-box; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  background: #f7f7f9;
  color: #222;
}
#service-header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  padding: 14px 0 14px 24px;
  font-size: 0.98em;
  color: #888;
}
.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  margin-top: 32px;
  padding: 0 0 32px 0;
}
.top-section {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px 32px 0 32px;
  align-items: flex-start;
}
.img-box {
  border-radius: 18px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-box img {
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
}
.info-box {
  flex: 1 1 300px;
  min-width: 240px;
}
.info-title {
  font-size: 1.7em;
  font-weight: 700;
  margin-bottom: 6px;
  color: #222;
}
.info-desc {
  color: #444;
  font-size: 1.1em;
  margin-bottom: 18px;
}
.info-price {
  font-size: 1.2em;
  font-weight: 700;
  color: #b23c3c;
  margin-bottom: 18px;
}
.select-row {
  margin-bottom: 18px;
}
.select-row label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}
.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  margin-bottom: 18px;
}
.total-row .total-label {
  color: #888;
}
.total-row .total-price {
  font-weight: bold;
  color: #b23c3c;
}
.reserve-btn {
  width: 100%;
  padding: 14px 0;
  background: #b23c3c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}
.reserve-btn:disabled {
  background: #ddd;
  color: #888;
  cursor: not-allowed;
}
.desc-section {
  margin-top: 36px;
  padding: 0 32px;
}
.desc-title {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 12px;
  color: #222;
}
.desc-content {
  color: #444;
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
}
.hashtag-section {
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid #eee;
}
.hashtag-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.hashtag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hashtag {
  display: inline-block;
  background-color: #f8f9fa;
  color: #495057;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}
.hashtag:hover {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  cursor: pointer;
}
#thumbnail-bottom-txt{
  padding: 8px;
  margin-top: 10px;
  background-color: #fff;
}

/* Choices.js 커스터마이징 - 개선된 버전 */
.choices {
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  font-size: 1em !important;
  background: #fff !important;
  min-width: 300px !important;
}

.choices__inner {
  background: #fff !important;
  padding: 8px 12px !important;
  min-height: 40px !important;
  color: #222 !important;
  min-width: 280px !important;
  width: 100% !important;
}

/* 플레이스홀더 텍스트 잘림 방지 - 핵심 수정 */
.choices__placeholder {
  color: #888 !important;
  opacity: 1 !important;
  width: 100% !important;
  min-width: 200px !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
}

.choices__input {
  color: #222 !important;
  background: transparent !important;
  min-width: 200px !important;
  width: 100% !important;
}

.choices__input::placeholder {
  color: #888 !important;
  opacity: 1 !important;
  width: 100% !important;
  min-width: 200px !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

/* 다중 선택시 입력 필드 너비 확보 */
.choices[data-type*="select-multiple"] .choices__input {
  min-width: 200px !important;
  width: auto !important;
  flex: 1 !important;
}

/* 선택된 항목들과 입력 필드 공간 분배 */
.choices__list--multiple {
  /* display: flex !important; */
  flex-wrap: wrap !important;
  align-items: center !important;
}

.choices__list--multiple:empty + .choices__input {
  min-width: 200px !important;
  width: 100% !important;
  flex: 1 !important;
}

/* 선택된 항목의 가격 표시 스타일 - 새로 추가 */
.selected-item-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  flex: 1 !important;
}

.selected-item-name {
  font-weight: 500 !important;
  margin-bottom: 2px !important;
}

.selected-item-price {
  font-size: 0.85em !important;
}

.selected-price {
  color: #b23c3c !important;
  font-weight: bold !important;
}

.selected-price-discount {
  color: #b23c3c !important;
  font-weight: bold !important;
  font-size: 0.9em !important;
}

.selected-price-original {
  color: #aaa !important;
  font-size: 0.85em !important;
  text-decoration: line-through !important;
  margin-left: 4px !important;
}

/* 선택된 항목들 스타일 수정 */
.choices__list--multiple .choices__item {
  background-color: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 16px !important;
  padding: 8px 12px !important;
  margin: 2px !important;
  font-size: 0.9em !important;
  color: #495057 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  /* max-width: 300px !important; */
}

/* 빨간색으로 변경 */
.choices__button {
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjYjIzYzNjIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==') !important;
  background-size: 14px 14px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border-left:0 !important;
  margin:0 !important;
  padding:0 !important;
  width:14px !important;
}

/* 드롭다운 컨테이너 */
.choices__list--dropdown {
  background: #fff !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* 드롭다운 옵션들 스타일 */
.choices__list--dropdown .choices__item {
  padding: 8px 12px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  color: #222 !important;
}

.choices__list--dropdown .choices__item--selectable:hover {
  background-color: #f5f5f5 !important;
  color: #222 !important;
}

.choices__list--dropdown .choices__item--highlighted {
  background-color: #b23c3c !important;
  color: #fff !important;
}

/* 포커스 상태 */
.choices.is-focused .choices__inner {
  border-color: #b23c3c !important;
}

/* 가격 표시 스타일 */
.procedure-price {
  color: #b23c3c !important;
  font-weight: bold !important;
  font-size: 0.9em !important;
}

.procedure-price-discount {
  color: #b23c3c !important;
  font-weight: bold !important;
  font-size: 0.9em !important;
}

.procedure-price-original {
  color: #aaa !important;
  font-size: 0.85em !important;
  text-decoration: line-through !important;
  margin-left: 4px !important;
}

/* 드롭다운이 열렸을 때 하이라이트된 항목의 가격 색상 */
.choices__list--dropdown .choices__item--highlighted .procedure-price,
.choices__list--dropdown .choices__item--highlighted .procedure-price-discount {
  color: #fff !important;
}

.choices__list--dropdown .choices__item--highlighted .procedure-price-original {
  color: #ddd !important;
}

/* 검색 입력창 스타일 */
.choices[data-type*="select-multiple"] .choices__input {
  background-color: transparent !important;
  color: #222 !important;
}

/* 비활성화 상태 */
.choices.is-disabled .choices__inner {
  background-color: #f8f9fa !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
}

/* 반응형 대응 */
@media (max-width: 600px) {
  .choices {
    min-width: 250px !important;
  }
  
  .choices__inner {
    min-width: 230px !important;
  }
  
  .choices__placeholder,
  .choices__input,
  .choices__input::placeholder {
    min-width: 150px !important;
  }

  .choices__list--multiple .choices__item {
    max-width: 250px !important;
    padding: 6px 10px !important;
  }
  
  .selected-item-name {
    font-size: 0.9em !important;
  }
  
  .selected-item-price {
    font-size: 0.8em !important;
  }

  .choices__list--multiple .choices__item[data-deletable] .choices__button {
    width: 20px !important;
    height: 20px !important;
    font-size: 16px !important;
    text-indent: 0 !important;
  }
}

@media (max-width: 900px) {
  .main-wrap { margin-top: 16px; }
  .top-section { flex-direction: column; gap: 18px; padding: 20px 10px 0 10px; }
  .img-box { width: 100%;}
  .info-box { min-width: unset; }
  .desc-section { padding: 0 10px; }
}
@media (max-width: 600px) {
  .main-wrap { margin-top: 0; border-radius: 0; box-shadow: none; }
  .top-section { padding: 12px 2vw 0 2vw; }
  .desc-section { padding: 0 2vw; }
}