/* Mũi tên cho custom select */
.custom-select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 10px;
  padding-right: 55px;
}

/* Menu dropdown */
.custom-options {
  display: none;
  position: absolute;
  width: 100%;
  background-color: #fff;
  z-index: 10;
  border-top: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  overflow: hidden;
  top: 75px;
  left: 0px;
}

/* Mỗi option */
.custom-options li {
  cursor: pointer;
  margin: 18px 0;  
  height: 60px; /* tăng chiều cao tùy ý */
  display: flex;
  flex-direction: column;
  justify-content: center; /* canh giữa theo chiều dọc */
  padding: 10px; /* thêm khoảng cách bên trong nếu cần */
  cursor: pointer;
  margin: 0;
}

/* Hover */
.custom-options li:hover {
  background-color: #1E73E4;
  color: white;
}
.custom-options li:hover .main,
.custom-options li:hover .sub {
  color: white;
}
/* Dòng to */
.custom-options .main, .selected .main {
  font-size: 28px;
  color: var(--color-org-1);
  display: block;
}
/* iPad Air */
@media screen and (min-width: 820px) and (max-width: 1180px) and (orientation: portrait) {
  .custom-options .main, .selected .main {
    font-size: 28px;
  }  
}
.selected .main {
  margin-bottom: 2px;
}

@media screen and (max-width: 767px) {
  .selected .main {
    margin-bottom: 0px;
  }  
}

/* Dòng nhỏ */
.custom-options .sub, .selected .sub {
  font-size: 18px;
  color: var(--color-org-1);
}

/* Bổ sung: đảm bảo phần `selected` text hiển thị tương tự option */
.custom-select .selected {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

/* Mũi tên vẽ từ span */
.custom-select-arrow {
  position: absolute;
  right: 23px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 3px solid var(--color-org-1);
  border-bottom: 3px solid var(--color-org-1);
  pointer-events: auto; /* mũi tên không block click */
  z-index: 1; /* Đảm bảo phần tử nằm trên các phần tử khác */
}
.custom-select-box .un_areaNav_select::after{
  display: none !important;
}

.disabled{
  color: #4d4d4d !important;
}
.option-1{
  color: #FF792F;
}

/* Style cho option bị vô hiệu hóa */
.custom-options li.disabled-option {
  background-color: #ccc; /* Màu nền xám */
  color: #fff; /* Chữ màu trắng */
  cursor: default;
  height: 38px;
}

.custom-options li.disabled-option .main {
  color: #fff; /* Chữ màu trắng */
}

@media screen and (min-width: 768px) and (max-width: 820px) and (orientation: portrait) {
  .custom-options .main, .selected .main {
    font-size: 27px;
  }  
}

@media screen and (max-width: 767px) {
  .custom-options-up {
    top: auto; /* Loại bỏ giá trị top */
    bottom: 100%; /* Hiển thị phía trên */
    margin-bottom: 5px; /* Khoảng cách giữa danh sách và custom-select */
  }
}

@media screen and (max-height: 900px) {
  .custom-options li {
    height: 55px;
    padding: 6px 10px;
  }
}

/* Highlight option đã chọn trong custom-options */
.custom-options li.selected-option,
.custom-options li.selected-option:hover {
  background-color: #1E73E4;
  color: #fff;
}
.custom-options li.selected-option .main,
.custom-options li.selected-option .sub {
  color: #fff;
}

/* Khi đang hover option khác thì tạm ẩn highlight của selected-option */
.custom-options li.selected-option.no-selected-highlight {
  background: #fff !important;
  color: var(--color-org-1) !important;
}
.custom-options li.selected-option.no-selected-highlight .main,
.custom-options li.selected-option.no-selected-highlight .sub {
  color: var(--color-org-1) !important;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .custom-select {
    padding-right: 44px;
  }

  .custom-select .selected.disabled {
    font-size: 21px;
  }

  #customConstruction .custom-options .main, .selected .main {
    font-size: 22px;
  }

  #customConstruction .custom-options .sub,
  #customConstruction .selected .sub {
    font-size: 15px;
  }
}
