﻿/* Keep long doctor names and qualifications contained inside the dropdown. */
.doctor-menu {
  width: min(92vw, 430px) !important;
  max-height: min(72vh, 520px);
  overflow-y: auto;
  overflow-x: hidden;
  white-space: normal !important;
  padding: 10px !important;
  border: 1px solid rgba(47, 157, 178, .24) !important;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, .98), rgba(255, 255, 255, .98)),
    linear-gradient(135deg, rgba(67, 130, 68, .14), rgba(47, 157, 178, .12));
  box-shadow: 0 22px 50px rgba(16, 43, 53, .18) !important;
}

.doctor-menu:before {
  content: '';
  position: absolute;
  top: -7px;
  left: 30px;
  width: 14px;
  height: 14px;
  background: #fffaf3;
  border-left: 1px solid rgba(47, 157, 178, .24);
  border-top: 1px solid rgba(47, 157, 178, .24);
  transform: rotate(45deg);
}

.doctor-menu:after {
  content: '';
  display: block;
  height: 3px;
  margin: 2px 4px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-rust, #bc552c), var(--brand-green, #4f963f), var(--brand-teal, #22a9c2), var(--brand-gold, #f0c62d));
  order: -1;
}

.doctor-menu a {
  position: relative;
  display: block !important;
  margin: 0 0 7px;
  padding: 12px 14px 12px 48px !important;
  border: 1px solid rgba(217, 231, 229, .86) !important;
  border-radius: 10px;
  color: var(--primary);
  background: rgba(255, 255, 255, .86);
  text-decoration: none;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.doctor-menu a:before {
  content: 'DR';
  position: absolute;
  left: 13px;
  top: 14px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f3fbef;
  color: var(--brand-green, #4f963f);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
}

.doctor-menu a:nth-child(2n):before {
  background: #eefbfe;
  color: var(--brand-teal, #22a9c2);
}

.doctor-menu a:nth-child(3n):before {
  background: #fff4e9;
  color: var(--brand-rust, #bc552c);
}

.doctor-menu a:hover,
.doctor-menu a:focus-visible {
  background: #fff;
  border-color: rgba(47, 157, 178, .35) !important;
  box-shadow: 0 10px 24px rgba(16, 43, 53, .1);
  transform: translateX(2px);
}

.doctor-menu a b,
.doctor-menu a small {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.doctor-menu a b {
  color: var(--ink, #102b35);
  font-size: 12px !important;
  line-height: 1.35;
}

.doctor-menu a small {
  display: block;
  margin-top: 4px !important;
  color: #5f737a !important;
  font-size: 10.5px !important;
  line-height: 1.45 !important;
}

.doctor-menu .doctor-directory-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding-left: 16px !important;
  color: var(--brand-rust, #bc552c) !important;
  font-weight: 800;
  background: linear-gradient(90deg, rgba(255, 244, 233, .95), rgba(243, 251, 239, .95));
}

.doctor-menu .doctor-directory-link:before {
  display: none;
}

.doctor-directory-link span {
  float: none !important;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .doctor-menu {
    width: auto !important;
    max-height: 58vh;
    padding: 8px 14px 14px !important;
    border-radius: 0;
    border-inline: 0 !important;
    box-shadow: none !important;
  }

  .doctor-menu:before,
  .doctor-menu:after {
    display: none;
  }

  .doctor-menu a {
    padding: 12px 12px 12px 44px !important;
    margin-bottom: 8px;
  }

  .doctor-menu .doctor-directory-link {
    padding-left: 14px !important;
  }
}