.cunzolo-search-dialog {
  width: min(900px, calc(100vw - 32px));
  max-width: none;
  height: min(82vh, 780px);
  max-height: none;
  margin: auto;
  padding: 0;
  color: #1d2a36;
  background: #f5f8fa;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .46);
  overflow: hidden;
}

.cunzolo-search-dialog::backdrop {
  background: rgba(3, 13, 21, .76);
  backdrop-filter: blur(3px);
}

.cunzolo-search-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.cunzolo-search-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
  color: #fff;
  background: #071f33;
}

.cunzolo-search-field {
  display: grid;
  gap: 7px;
}

.cunzolo-search-field label {
  color: #fff;
  font-weight: 750;
}

.cunzolo-search-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: #1d2a36;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  font: inherit;
}

.cunzolo-search-field input:focus-visible,
.cunzolo-search-close:focus-visible,
.cunzolo-search-result:focus-visible {
  outline: 3px solid #ffb36f;
  outline-offset: 3px;
}

.cunzolo-search-close {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  font: inherit;
  font-size: 1.45rem;
  cursor: pointer;
}

.cunzolo-search-body {
  min-height: 0;
  padding: 20px;
  overflow: auto;
}

.cunzolo-search-status {
  margin: 0 0 14px;
  color: #5d6c7a;
  font-weight: 700;
}

.cunzolo-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cunzolo-search-result {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 17px;
  color: #1d2a36;
  background: #fff;
  border: 1px solid #d9e3e9;
  border-radius: 8px;
  text-decoration: none;
}

.cunzolo-search-result:hover {
  border-color: #b64f00;
  box-shadow: 0 8px 24px rgba(18, 39, 57, .1);
}

.cunzolo-search-result-category {
  color: #b64f00;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cunzolo-search-result strong {
  color: #145073;
  font-size: 1rem;
  line-height: 1.3;
}

.cunzolo-search-result-description {
  color: #5d6c7a;
  font-size: .9rem;
  line-height: 1.45;
}

@media (max-width: 700px) {
  .cunzolo-search-dialog {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
  }

  .cunzolo-search-results {
    grid-template-columns: 1fr;
  }
}
