/* 초기 숨김 */
.sort-modal-wrapper {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

/* dim 처리 */
.sort-modal-wrapper .dimmed {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* 팝업 */
.sort-modal {
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 393px;
  background: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px 20px 15px;
}

.sort-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 20px;
}

.sort-header .close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.sort-options li {
  border-bottom: 1px solid #e1e1e1;
}

.sort-options li:last-child {
  border-bottom: none;
}

.sort-options li + li {
  margin-top: 15px;
}
/* 라디오 버튼 커스텀 */
.radio-btn {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 16px;
  cursor: pointer;
  font-weight: 500;
  color: #9fa3af;
}

.radio-btn input {
  display: none;
}

.radio-btn .checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 50%;

  margin-right: 12px;
  position: relative;
}

.radio-btn input:checked + .checkmark {
  border-color: #111111;
}

.radio-btn input:checked + .checkmark::before {
  content: '';
  width: 12px;
  height: 12px;
  background: #111111;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
}

.radio-btn input:checked + .checkmark + .label-text {
  color: #000; /* 선택 시 검정색 */
  font-weight: bold;
}
