.trigger {
  background: var(--Base-Surface-Primary-light-Normal);
  border: 1px solid var(--Border-Default);
  border-radius: var(--Corner-radius-rounded);
  display: flex;
  justify-content: space-between;
  padding: var(--Space-x15) var(--Space-x15) var(--Space-x15) var(--Space-x3);
  width: 100%;
}

.whereTo {
  display: block;
  color: var(--Base-Text-Accent);
  text-align: left;
}

.displayAsPlaceholder {
  color: var(--UI-Text-Placeholder);
}

.icon {
  background: var(--Base-Button-Primary-Fill-Normal);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--Corner-radius-Rounded);
  color: var(--Base-Text-Inverted);
}

.modalOverlay {
  position: fixed;
  inset: 0;
  background-color: var(--Overlay-40);

  &[data-entering] {
    animation: overlay-fade 200ms;
  }

  &[data-exiting] {
    animation: overlay-fade 150ms reverse ease-in;
  }
}

.modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(100dvh - max(var(--sitewide-alert-height), 20px));
  border-radius: var(--Corner-radius-md) var(--Corner-radius-md) 0 0;
  background-color: var(--Surface-Primary-Default);
  box-shadow: 0px 0px 14px 6px rgba(0, 0, 0, 0.1);

  &[data-entering] {
    animation: modal-anim 200ms;
  }

  &[data-exiting] {
    animation: modal-anim 150ms reverse ease-in;
  }
}

.modalDialog {
  display: grid;
  gap: var(--Space-x15);
  padding: var(--Space-x15) var(--Space-x2) var(--Space-x7);
}

.close {
  margin-right: -10px;
  justify-self: flex-end;
}

@keyframes overlay-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modal-anim {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@media screen and (max-width: 767px) {
  .desktopSearch {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .mobileSearch {
    display: none;
  }
}
