dialog.able-qbm .able-qbm__calendar {
  position: relative;
}

dialog.able-qbm .able-qbm__calendarStepRow {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

dialog.able-qbm .able-qbm__calendarStepRow .able-qbm__calendarTrigger {
  flex: 1;
  min-width: 0;
  width: auto;
}

dialog.able-qbm .able-qbm__dateStepBtn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 clamp(40px, 11vw, 44px);
  min-width: clamp(40px, 11vw, 44px);
  min-height: clamp(44px, 12vw, 48px);
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  line-height: 1;
  cursor: pointer;
}

/* 아이콘은 span.material-symbols-outlined 에만 폰트 적용(버튼에 inherit 금지) */
dialog.able-qbm .able-qbm__dateStepBtn .able-qbm__dateStepBtnIcon {
  font-size: clamp(20px, 5.2vw, 22px);
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

dialog.able-qbm .able-qbm__dateStepBtn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

dialog.able-qbm .able-qbm__dateStepBtn:focus {
  border-color: #f0002c;
  box-shadow: 0 0 0 3px rgba(240, 0, 44, 0.12);
  outline: none;
}

dialog.able-qbm .able-qbm__dateStepBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

dialog.able-qbm .able-qbm__calendarTrigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

dialog.able-qbm .able-qbm__calendarIcon {
  color: #6b7280;
  font-size: 22px;
  line-height: 1;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

dialog.able-qbm .able-qbm__calendarPanel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 24;
  display: none;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  padding: 10px;
}

dialog.able-qbm .able-qbm__calendar.is-open .able-qbm__calendarPanel {
  display: block;
}

dialog.able-qbm .able-qbm__calendarHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

dialog.able-qbm .able-qbm__calendarMonth {
  font-size: 0.94rem;
  color: #111827;
}

dialog.able-qbm .able-qbm__calendarNav {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
}

dialog.able-qbm .able-qbm__calendarWeek {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

dialog.able-qbm .able-qbm__calendarWeek span {
  text-align: center;
  font-size: 0.74rem;
  color: #6b7280;
  padding: 4px 0;
}

dialog.able-qbm .able-qbm__calendarGridWrap {
  position: relative;
  min-height: 200px;
}

dialog.able-qbm .able-qbm__calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

dialog.able-qbm .able-qbm__calendarLoadingOverlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(2px);
}

dialog.able-qbm .able-qbm__calendarSpinner {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top-color: #f0002c;
  border-radius: 50%;
  animation: able-qbm-calendar-spin 0.7s linear infinite;
}

dialog.able-qbm .able-qbm__calendarLoadingText {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  line-height: 1.35;
  padding: 0 8px;
}

@keyframes able-qbm-calendar-spin {
  to {
    transform: rotate(360deg);
  }
}

dialog.able-qbm .able-qbm__calendarNav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

dialog.able-qbm .able-qbm__calendarCell {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
}

dialog.able-qbm .able-qbm__calendarCell:hover {
  background: #f3f4f6;
}

dialog.able-qbm .able-qbm__calendarCell.is-selected {
  background: #fff3f5;
  color: #f0002c;
  font-weight: 700;
}

dialog.able-qbm .able-qbm__calendarCell:disabled {
  color: #c0c4cc;
  cursor: not-allowed;
}

dialog.able-qbm .able-qbm__calendarCell.is-empty {
  display: block;
  min-height: 34px;
}

/* 초소형 폭: 날짜 행 간격만 살짝 조정 */
@media (max-width: 379px) {
  dialog.able-qbm .able-qbm__calendarStepRow {
    gap: 6px;
  }
}

/* 태블릿 이상: 스텝 버튼 터치·아이콘 약간 확대 */
@media (min-width: 640px) {
  dialog.able-qbm .able-qbm__dateStepBtn {
    flex: 0 0 48px;
    min-width: 48px;
    min-height: 48px;
  }

  dialog.able-qbm .able-qbm__dateStepBtn .able-qbm__dateStepBtnIcon {
    font-size: 23px;
  }
}

/* 짧은 뷰포트: 모달 본문 높이 절약 시에도 최소 터치 유지 */
@media (max-height: 520px) {
  dialog.able-qbm .able-qbm__dateStepBtn {
    min-height: 44px;
    border-radius: 8px;
  }

  dialog.able-qbm .able-qbm__dateStepBtn .able-qbm__dateStepBtnIcon {
    font-size: 20px;
  }
}

