/* 팝업 스타일 */
#kt_benefit_container .popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#kt_benefit_container .popup_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.5;
  z-index: 9999;
}

#kt_benefit_container .popup_container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#kt_benefit_container .popup_content {
  min-width: 474px;
  box-sizing: border-box;
  padding: 40px;
  background-color: #fff;
  border-radius: 10px;
  z-index: 10000;
  position: relative;
}

#kt_benefit_container .popup_header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

#kt_benefit_container .popup_header .popup_title {
  color: #333;
  font-size: 28px;
  font-weight: 700;
  line-height: 150%;
}

#kt_benefit_container .popup_header .popup_description {
  color: #939393;
  font-size: 18px;
  font-weight: 400;
  line-height: 140%;
}

/* 요금제 목록 스타일 */
#kt_benefit_container .rate_plan_title {
  text-align: center;
  width: 100%;
  border-bottom: 2px solid #fd1e00;
  color: #fd1e00;
  font-size: 20px;
  font-weight: 700;
  line-height: 60px;
}

#kt_benefit_container .rate_plan_list {
  margin-top: 10px;
}

#kt_benefit_container .rate_plan_item {
  padding: 0 18px;
  color: #22181b;
  font-size: 18px;
  font-weight: 500;
  line-height: 55px;
  border-bottom: 1px solid #d8d8d8;
  box-sizing: border-box;
}

#kt_benefit_container .rate_plan_item:last-child {
  border-bottom: none;
}

/* 유의사항 스타일 */
#kt_benefit_container .rate_plan_description {
  margin-top: 10px;
  text-align: center;
  color: #ff0505;
  font-size: 18px;
  line-height: 150%;
  margin-bottom: 30px;
}

#kt_benefit_container .popup_confirm_btn {
  width: 100%;
  height: 50px;
  border-radius: 5px;
  background: #f05f5f;
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 21px;
}

/* 팝업 닫기 버튼 스타일 */
#kt_benefit_container .popup_close_btn {
  position: absolute;
  top: -50px;
  right: 0;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 10001;
}

/* applyPopup 닫기 버튼이 클릭 가능하도록 추가 스타일 */
#kt_benefit_container #applyPopup .popup_close_btn {
  cursor: pointer;
  z-index: 10001;
}

#kt_benefit_container #applyPopup .popup_close_btn:hover {
  opacity: 0.8;
}

/* apply_popup_content 스타일 */
#kt_benefit_container .apply_popup_content {
  margin: 20px 0 40px;
  display: flex;
  padding: 30px 26px;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  border-radius: 10px;
  background: #f2f2f2;
}

#kt_benefit_container .step_item {
  display: flex;
  align-items: center;
  gap: 10px;
}

#kt_benefit_container .step_label {
  padding: 4px 8px;
  border-radius: 30px;
  background: #a2a2a2;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  white-space: nowrap;
}

#kt_benefit_container .step_text {
  color: #000;
  font-size: 18px;
}

#kt_benefit_container .step_notice {
  color: #000;
  font-size: 16px;
  font-weight: 500;
}

#kt_benefit_container #channelPopup .popup_content {
  min-width: 1000px;
}
/* 채널 팝업 탭 스타일 */
#kt_benefit_container .channel_tabs {
  display: flex;
  border-bottom: 1px solid #888;
  margin-bottom: 10px;
}

#kt_benefit_container .channel_tab_btn {
  flex: 1;
  height: 53px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

#kt_benefit_container .channel_tab_btn.active {
  color: #f05f5f;
  border-bottom: 2px solid #f05f5f;
}

/* 탭 콘텐츠 스타일 */
#kt_benefit_container .channel_tab_content {
  position: relative;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
}

#kt_benefit_container .tab_content {
  display: none;
  width: 100%;
}

#kt_benefit_container .tab_content.active {
  display: block;
}

#kt_benefit_container .channel_image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}

/* 스크롤바 스타일링 */
#kt_benefit_container .channel_tab_content::-webkit-scrollbar {
  width: 8px;
}

#kt_benefit_container .channel_tab_content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#kt_benefit_container .channel_tab_content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

#kt_benefit_container .channel_tab_content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 1240px 이하 미디어 쿼리 */
@media screen and (max-width: 1240px) {
  #kt_benefit_container .popup_content {
    width: 90%;
    min-width: auto;
    padding: 34px 18px;
  }

  #kt_benefit_container .popup_header .popup_title {
    font-size: 22px;
  }

  #kt_benefit_container .popup_header .popup_description {
    font-size: 1p4x;
  }

  #kt_benefit_container #channelPopup .popup_content {
    width: 90%;
    min-width: auto;
    max-width: 90%;
  }

  #kt_benefit_container .step_text {
    font-size: 16px;
  }

  #kt_benefit_container .step_label {
    font-size: 14px;
  }
}

/* 360px 이하 미디어 쿼리 */
@media screen and (max-width: 360px) {
  #kt_benefit_container .channel_tab_btn {
    font-size: 14px;
  }

  #kt_benefit_container .step_item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  #kt_benefit_container .step_label {
    align-self: flex-start;
  }
}
