.keebu-search-bar,
.keebu-search-bar * {
  box-sizing: border-box;
}

.keebu-search-bar .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.keebu-search-bar {
  position: relative;
  display: grid;
  z-index: 1;
  width: 100vw;
  max-width: none;
  min-height: calc(100vh - var(--keebu-search-header-height, 0px));
  min-height: calc(100svh - var(--keebu-search-header-height, 0px));
  margin: 0 calc(50% - 50vw);
  overflow: visible;
  isolation: isolate;
  border-radius: 0;
  background-color: #253449;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.keebu-search-bar__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.08), rgba(8, 17, 31, 0.28));
  pointer-events: none;
}

.keebu-search-bar__inner {
  display: grid;
  place-items: center;
  width: min(760px, calc(100% - 40px));
  margin: auto;
}

.keebu-search-bar__form {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(8, 17, 31, 0.28);
}

.keebu-search-bar button,
.keebu-search-bar input {
  appearance: none;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
}

.keebu-search-bar__engine {
  position: relative;
  display: grid;
}

.keebu-search-bar__engine-button,
.keebu-search-bar__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  cursor: pointer;
}

.keebu-search-bar__engine-button {
  gap: 9px;
  border-radius: 14px 0 0 14px !important;
}

.keebu-search-bar__engine-button:hover,
.keebu-search-bar__engine-button:focus-visible,
.keebu-search-bar__submit:hover,
.keebu-search-bar__submit:focus-visible {
  background: #f4f7fb;
  outline: none;
}

.keebu-search-bar__engine-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.keebu-search-bar__engine-mark--google {
  color: #4285f4;
  box-shadow: inset 0 0 0 2px #ea4335;
}

.keebu-search-bar__engine-mark--duckduckgo {
  color: #fff;
  background: #de5833;
}

.keebu-search-bar__engine-mark--yahoo {
  color: #fff;
  background: #6001d2;
  font-size: 14px;
}

.keebu-search-bar__engine-mark--bing {
  color: #fff;
  background: #008373;
  font-size: 23px;
}

.keebu-search-bar__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-2px) rotate(45deg);
}

.keebu-search-bar__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  width: 210px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
}

.keebu-search-bar__menu[hidden] {
  display: none;
}

.keebu-search-bar__menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  color: #172033;
  cursor: pointer;
  text-align: left;
}

.keebu-search-bar__menu button:hover,
.keebu-search-bar__menu button:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.keebu-search-bar__input {
  width: 100%;
  padding: 0 14px;
  color: #172033;
  background: #fff !important;
  font-size: 18px !important;
  line-height: 1.4;
  outline: none;
}

.keebu-search-bar__input::placeholder {
  color: #8793a5;
}

.keebu-search-bar__input:focus {
  box-shadow: inset 0 -3px 0 #4285f4;
}

.keebu-search-bar__submit {
  border-radius: 0 14px 14px 0 !important;
  color: #617087;
}

.keebu-search-bar__submit svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

@media (max-width: 600px) {
  .keebu-search-bar {
    min-height: calc(100vh - var(--keebu-search-header-height, 0px));
    min-height: calc(100svh - var(--keebu-search-header-height, 0px));
    border-radius: 0;
  }

  .keebu-search-bar__inner {
    width: calc(100% - 24px);
  }

  .keebu-search-bar__form {
    min-height: 60px;
  }

  .keebu-search-bar__engine-button,
  .keebu-search-bar__submit {
    min-width: 60px;
  }

  .keebu-search-bar__engine-button {
    gap: 6px;
  }

  .keebu-search-bar__engine-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 16px;
  }

  .keebu-search-bar__input {
    padding: 0 8px;
    font-size: 16px !important;
  }

  .keebu-search-bar__menu {
    width: 195px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .keebu-search-bar *,
  .keebu-search-bar *::before,
  .keebu-search-bar *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
