﻿.search .codex-voice-search-trigger {
  position: absolute;
  top: 50%;
  right: 4.4rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 3.8rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.search .codex-voice-search-trigger:hover,
.search .codex-voice-search-trigger:focus {
  color: #f4004f;
  background: #fff1f6;
  box-shadow: inset 0 0 0 1px rgba(244, 0, 79, .14);
}

.search .codex-voice-search-trigger svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.codex-voice-search-unsupported .search .codex-voice-search-trigger {
  display: none !important;
}

@media only screen and (min-width: 993px) {
  .search .search__field {
    padding-right: 9.8rem;
  }

  .search .codex-voice-search-trigger {
    right: 5rem;
    z-index: 5;
  }

  html.codex-voice-search-unsupported .search .search__field {
    padding-right: 5.2rem;
  }
}

@media only screen and (max-width: 992px) {
  .search .search__field {
    padding-right: 8.8rem;
  }

  .codex-mobile-search-header__search .search__field {
    padding-right: 10.4rem !important;
  }

  .codex-mobile-search-header__search .codex-voice-search-trigger {
    right: 6.65rem;
    width: 3.2rem;
    height: 3.2rem;
  }

  html.codex-voice-search-unsupported .search .search__field {
    padding-right: 5.2rem;
  }

  html.codex-voice-search-unsupported .codex-mobile-search-header__search .search__field {
    padding-right: 7.4rem !important;
  }
}

.codex-voice-search-modal[hidden] {
  display: none !important;
}

.codex-voice-search-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.codex-voice-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 41, .48);
  backdrop-filter: blur(7px);
}

.codex-voice-search-panel {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  overflow: hidden;
  border: 1px solid rgba(227, 235, 244, .9);
  border-radius: 2.4rem;
  background: #fff;
  box-shadow: 0 2.4rem 7rem rgba(15, 23, 42, .22);
}

.codex-voice-search-panel:before {
  content: "";
  position: absolute;
  right: -5.5rem;
  top: -7rem;
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 0, 79, .16), rgba(244, 0, 79, 0) 68%);
}

.codex-voice-search-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 3.8rem;
  border: 0;
  border-radius: 999px;
  color: #64748b;
  background: #f4f7fb;
  cursor: pointer;
}

.codex-voice-search-close:hover {
  color: #f4004f;
  background: #fff1f6;
}

.codex-voice-search-close svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.codex-voice-search-content {
  position: relative;
  z-index: 2;
  padding: 3.2rem 2.4rem 2.4rem;
  text-align: center;
}

.codex-voice-search-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 10.8rem;
  height: 10.8rem;
  margin: 1rem auto 1.8rem;
}

.codex-voice-search-ring {
  position: absolute;
  inset: .6rem;
  border-radius: 50%;
  background: rgba(244, 0, 79, .1);
  animation: codexVoicePulse 1.7s ease-out infinite;
}

.codex-voice-search-ring:nth-child(2) {
  animation-delay: .35s;
}

.codex-voice-search-mic {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #f4004f 0%, #ff5b8b 100%);
  box-shadow: 0 1.6rem 3.4rem rgba(244, 0, 79, .28);
}

.codex-voice-search-mic svg {
  width: 3.2rem;
  height: 3.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.codex-voice-search-title {
  margin: 0 4rem .8rem;
  color: #111827;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.16;
}

.codex-voice-search-status {
  min-height: 4.2rem;
  margin: 0 auto 1.4rem;
  color: #64748b;
  font-size: 1.45rem;
  line-height: 1.35;
}

.codex-voice-search-transcript {
  min-height: 4.8rem;
  margin-bottom: 1.4rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid #e3ebf4;
  border-radius: 1.4rem;
  color: #111827;
  background: #f8fafc;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
}

.codex-voice-search-lang {
  display: inline-flex;
  gap: .6rem;
  padding: .4rem;
  border-radius: 999px;
  background: #f4f7fb;
}

.codex-voice-search-lang button {
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.2rem;
  color: #475569;
  background: transparent;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
}

.codex-voice-search-lang button.is-active {
  color: #fff;
  background: #f4004f;
  box-shadow: 0 .8rem 1.8rem rgba(244, 0, 79, .2);
}

.codex-voice-search-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  margin-top: 1.2rem;
  padding: .9rem 1.6rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #f4004f;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 1rem 2.2rem rgba(244, 0, 79, .18);
}

.codex-voice-search-retry[hidden] {
  display: none !important;
}

.codex-voice-search-retry:hover,
.codex-voice-search-retry:focus {
  background: #d90046;
}

.codex-voice-search-modal.is-error .codex-voice-search-ring {
  animation: none;
  background: rgba(100, 116, 139, .12);
}

.codex-voice-search-modal.is-error .codex-voice-search-mic {
  background: #64748b;
  box-shadow: none;
}

@keyframes codexVoicePulse {
  0% {
    opacity: .8;
    transform: scale(.72);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@media only screen and (max-width: 540px) {
  .codex-voice-search-modal {
    align-items: flex-end;
    padding: 1rem;
  }

  .codex-voice-search-panel {
    width: 100%;
    border-radius: 2.2rem;
  }

  .codex-voice-search-content {
    padding: 2.6rem 1.6rem 1.8rem;
  }

  .codex-voice-search-title {
    margin-left: 4.2rem;
    margin-right: 4.2rem;
    font-size: 1.9rem;
  }
}

