/**
 * 나의 지도 레시피 갤러리 스타일
 * 기존 recipe_style.css를 override
 */

.search-top-box .sch-filter-box .filter-form .label {
  min-width: 13rem !important;
}

/* recipe-wrap에 empty-state가 있을 때만 중앙 정렬 */
.recipe-wrap:has(.empty-state) {
  min-height: 600px;
  align-items: center;
  justify-content: center;
}

/* Empty State 스타일 */
.recipe-wrap .empty-state {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.recipe-wrap .empty-state .empty-icon {
  margin-bottom: 24px;
}

.recipe-wrap .empty-state .empty-icon .svg-icon.ico-recipe {
  font-size: 64px;
  color: #D1D5DB;
  width: 64px;
  height: 64px;
}

.recipe-wrap .empty-state .empty-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #6B7280;
  margin-bottom: 12px;
}

.recipe-wrap .empty-state .empty-content p {
  color: #9CA3AF;
  font-size: 14px;
  margin-top: 12px;
  margin-bottom: 0;
}


/* 레시피 헤더 (제목 + 삭제 버튼) */
.recipe-wrap .box .recipe-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--krds-gap-4, 1.2rem);
  position: relative;
}

/* 즐겨찾기 버튼 (클릭 가능한 영역) */
.recipe-wrap .box .recipe-header.can-favorite .favorite-btn {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("/static/ags/images/common/ico/ico_fav.svg") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.recipe-wrap .box .recipe-header.can-favorite .favorite-btn:hover {
  transform: scale(1.1);
}

/* 즐겨찾기 활성 상태 (채워진 별) */
.recipe-wrap .box .recipe-header.favorite .favorite-btn {
  background-image: url("/static/ags/images/common/ico/ico_fav_has.svg");
}

.recipe-wrap .box .recipe-header .recipe-tit {
  flex: 1;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

/* 삭제 버튼 (KRDS 버튼) - 제목 오른쪽 끝 */
.recipe-wrap .box .btn-delete {
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--krds-danger, #bd2c0f) !important;
  background-color: var(--krds-secondary-5, #faeeea) !important;
}

.recipe-wrap .box .btn-delete:hover {
  background-color: var(--krds-secondary-10, #f3d6ce) !important;
}

/* 레시피 액션 버튼 영역 */
.recipe-wrap .box .recipe-actions {
  display: flex;
  gap: 8px;
  margin-top: var(--krds-gap-4, 1.2rem);
}


.krds-modal[id^="icapp_confirm_"] .modal-conts .conts-area {
  align-items: center;
  text-align: center;
}