/* Sits above the filter offcanvas (z-index 1050) */
.ChooseYourExpert_overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  justify-content: flex-end;
  background-color: rgba(15, 23, 42, 0.45);
  animation: chooseExpertFade 0.2s ease-out;
}

.ChooseYourExpert_overlay .ChooseYourExpert_panel {
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  animation: chooseExpertSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
.ChooseYourExpert_overlay .choose_expert_header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ChooseYourExpert_overlay .btn_back {
  position: absolute;
  left: 12px;
  border: none;
  background: none;
  padding: 6px;
  font-size: 20px;
  color: #111827;
  cursor: pointer;
}

.ChooseYourExpert_overlay .choose_expert_title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

/* Search */
.ChooseYourExpert_overlay .choose_expert_search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 16px 14px;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
}

.ChooseYourExpert_overlay .choose_expert_search .search_icon {
  color: #111827;
  font-size: 15px;
}

.ChooseYourExpert_overlay .choose_expert_search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 13px;
  color: #111827;
  background: transparent;
}

/* Options */
.ChooseYourExpert_overlay .choose_expert_body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
}

.ChooseYourExpert_overlay .expert_options_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ChooseYourExpert_overlay .expert_option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ChooseYourExpert_overlay .expert_option:hover {
  background-color: #f8fafc;
}

.ChooseYourExpert_overlay .expert_option.active {
  border-color: #1e3a8a;
}

.ChooseYourExpert_overlay .expert_option_all {
  min-height: 0;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-color: #1e3a8a;
}

.ChooseYourExpert_overlay .expert_option_name {
  font-size: 12.5px;
  font-weight: 500;
  color: #111827;
  line-height: 1.3;
}

.ChooseYourExpert_overlay .expert_option_all .expert_option_name {
  font-weight: 600;
  color: #1e3a8a;
}

/* Hide the native radio; draw a custom one */
.ChooseYourExpert_overlay .expert_option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ChooseYourExpert_overlay .expert_radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid #6b7280;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ChooseYourExpert_overlay .expert_option.active .expert_radio {
  border-color: #1e3a8a;
}

.ChooseYourExpert_overlay .expert_option.active .expert_radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #1e3a8a;
}

.ChooseYourExpert_overlay .expert_option input:focus-visible + .expert_radio {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

.ChooseYourExpert_overlay .no_expert_found {
  margin: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* Footer */
.ChooseYourExpert_overlay .choose_expert_footer {
  display: flex;
  justify-content: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.06);
}

.ChooseYourExpert_overlay .btn_search {
  width: 100%;
  max-width: 200px;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  background-color: #1e40af;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ChooseYourExpert_overlay .btn_search:hover {
  background-color: #1e3a8a;
}

@keyframes chooseExpertFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes chooseExpertSlide {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ChooseYourExpert_overlay,
  .ChooseYourExpert_overlay .ChooseYourExpert_panel {
    animation: none;
  }
}
