.header-search-drawer__body {
  display: flex;
  flex-direction: column;
  width: calc(100vw - 32px);
  height: calc(100dvh - 32px);
  margin: 16px;
  color: rgb(var(--color-text));
  background-color: rgb(var(--color-background));
  border-radius: 16px;
  box-shadow:
    0 24px 48px rgb(0 0 0 / 16%),
    0 8px 20px rgb(0 0 0 / 10%);
  overflow: hidden;
}

.header-search-drawer__form {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 20px 48px;
  background-color: rgb(var(--color-background));
  border-block-end: 1px solid rgb(var(--color-entry-line));
}

.header-search-drawer__icon,
.header-search-drawer__clear,
.header-search-drawer__close {
  box-sizing: content-box;
  display: inline-flex;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.header-search-drawer__clear,
.header-search-drawer__close {
  padding: 0;
}

.header-search-drawer .field__input {
  flex: 1;
  width: 100%;
  padding: 0;
}

.header-search-drawer .field__input::placeholder {
  opacity: 1;
}

.header-search-drawer__results {
  display: none;
  flex: 1;
  min-height: 0;
  padding: 16px 48px 32px;
  overflow-y: auto;
}

.header-search-drawer__results.shown {
  display: block;
}

.header-search-drawer__results-loading {
  display: none;
  align-items: center;
  justify-content: center;
  padding-block: 40px;
}

.header-search-drawer__results.loading .header-search-drawer__results-loading {
  display: flex;
}

.header-search-drawer__results-spinner {
  width: 24px;
  height: 24px;
  color: rgb(var(--color-text));
  animation: animation-circling linear 1.5s infinite;
}

.header-search-drawer__results.loading .header-search-drawer__results-list {
  display: none;
}

.header-search-drawer .predictive-search__group {
  margin-block-end: 28px;
}

.header-search-drawer .predictive-search__group:last-child {
  margin-block-end: 0;
}

.header-search-drawer .predictive-search__empty {
  margin: 0;
  padding-block: 12px;
}

@media (max-width: 959px) {
  .header-search-drawer__body {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    margin: 8px;
    border-radius: 16px;
  }

  .header-search-drawer__form {
    padding: 12px 20px;
  }

  .header-search-drawer__results {
    padding: 12px 20px 20px;
  }

  .header-search-drawer__icon,
  .header-search-drawer__clear,
  .header-search-drawer__close {
    width: 24px;
    height: 24px;
  }
}
