/* === Custom Dropdown (Site Chooser) === */

.site-chooser-form {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.site-chooser-form .sc-dropdown{
  position: relative;
  width: min(520px, 92vw);
  margin: 0 auto;
}

/* pill trigger */
.site-chooser-form .sc-trigger{
  width: 100%;
  height: 54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 16px 0 18px;

  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);

  box-shadow: 0 10px 26px rgba(0,0,0,0.20);
  cursor: pointer;

  font-weight: 700;
  font-size: 18px;
  color: #1b1b1b;
}

/* theme override radius */
.site-chooser-form .sc-trigger,
.site-chooser-form .sc-menu{
  border-radius: 14px !important;
}

.site-chooser-form .sc-trigger:focus{
  outline: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.24), 0 0 0 4px rgba(31,120,255,0.18);
}

/* chevron */
.site-chooser-form .sc-chevron{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.site-chooser-form .sc-chevron::before{
  content:"";
  width: 10px;
  height: 10px;
  border-right: 3px solid #1f78ff;
  border-bottom: 3px solid #1f78ff;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* menu panel */
.site-chooser-form .sc-menu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;

  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);

  box-shadow: 0 14px 34px rgba(0,0,0,0.24);

  max-height: 240px;
  padding: 8px;

  overflow: hidden;
  overflow-y: auto;

  display: none;
  z-index: 9999;
}

/* open state */
.site-chooser-form .sc-dropdown.is-open .sc-menu{ display:block; }
.site-chooser-form .sc-dropdown.is-open .sc-trigger .sc-chevron::before{
  transform: rotate(225deg);
  margin-top: 3px;
}

/* options */
.site-chooser-form .sc-option{
  width: 100%;
  display: block;
  text-align: left;

  padding: 14px 16px;
  margin-right: 4px;

  border: 0;
  border-radius: 8px;
  background: transparent;

  cursor: pointer;

  font-weight: 650;
  font-size: 16px;
  color: #111;
}

/* alternating light-blue rows */
.site-chooser-form .sc-option:nth-child(odd){ background: rgba(210, 240, 255, 0.65); }
.site-chooser-form .sc-option:nth-child(even){ background: rgba(210, 240, 255, 0.35); }

/* hover/active */
.site-chooser-form .sc-option:hover,
.site-chooser-form .sc-option:focus{
  outline: none;
  background: rgba(31,120,255,0.16);
}

/* selected */
.site-chooser-form .sc-option[aria-selected="true"]{
  background: rgba(31,120,255,0.18);
}

/* scrollbar (webkit browsers) - inset look */
.site-chooser-form .sc-menu::-webkit-scrollbar {
  width: 14px;
}

.site-chooser-form .sc-menu::-webkit-scrollbar-track {
  background: transparent;
}

.site-chooser-form .sc-menu::-webkit-scrollbar-thumb {
  background: #1f9ed8;
  border-radius: 10px;
  border: 4px solid rgba(255,255,255,0.92); /* inset padding effect */
}

/* remember + button */
.site-chooser-form .sc-remember{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content: center;
  margin: 12px 0 14px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

/* CTA Button */
.site-chooser-form .sc-go{
  display: inline-block;
  padding: 14px 28px;
  margin-top: 16px;

  border: none;
  border-radius: 999px !important;

  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  color: #fff;
  background: linear-gradient(135deg, #1f9ed8, #1b79c9);

  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  cursor: pointer;

  transition: all 0.2s ease-in-out;
}

.site-chooser-form .sc-go:hover{
  background: linear-gradient(135deg, #23a7e3, #1d84d6);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.30);
}

.site-chooser-form .sc-go:active{
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}
