/* Global search: shared by the header dialog and the full results page. */
body.rdn-search-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.rdn-search-button--mobile {
  display: none;
}

.rdn-global-search[hidden] {
  display: none;
}

.rdn-global-search {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  padding: 30px;
  place-items: start center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 220ms ease, opacity 180ms ease;
}

.rdn-global-search.is-open {
  visibility: visible;
  opacity: 1;
}

.rdn-global-search__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(17, 27, 43, 0.66);
  cursor: default;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rdn-global-search__dialog {
  position: relative;
  display: flex;
  width: min(1040px, 100%);
  max-height: calc(100dvh - 60px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  color: #172033;
  background: #f7fbfd;
  box-shadow: 0 36px 100px rgba(15, 23, 42, 0.32);
  outline: 0;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-18px) scale(0.985);
  transition: opacity 190ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rdn-global-search.is-open .rdn-global-search__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rdn-global-search__header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 25px;
  border-bottom: 1px solid rgba(23, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.78);
}

.rdn-global-search__header > div > span {
  display: block;
  margin-bottom: 3px;
  color: #0785c3;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rdn-global-search__header h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.rdn-global-search__close {
  display: grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 50%;
  color: #172033;
  background: #fff;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.rdn-global-search__close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.rdn-global-search__close:hover,
.rdn-global-search__close:focus-visible {
  color: #fff;
  background: #1d2127;
  transform: rotate(4deg);
}

.rdn-global-search__form,
.rdn-search-page__form {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 22px 25px 0;
  padding: 7px 7px 7px 18px;
  border: 2px solid rgba(3, 169, 244, 0.28);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 48, 79, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rdn-global-search__form:focus-within,
.rdn-search-page__form:focus-within {
  border-color: var(--rdn-blue);
  box-shadow: 0 15px 38px rgba(3, 169, 244, 0.16);
}

.rdn-global-search__form > svg,
.rdn-search-page__form > svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: #0785c3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.rdn-global-search__form input,
.rdn-search-page__form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  border: 0;
  color: #172033;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  outline: 0;
  appearance: none;
}

.rdn-global-search__form input::placeholder,
.rdn-search-page__form input::placeholder {
  color: #8290a3;
  font-weight: 500;
  opacity: 1;
}

.rdn-global-search__form input::-webkit-search-cancel-button,
.rdn-search-page__form input::-webkit-search-cancel-button {
  cursor: pointer;
}

.rdn-global-search__form > button,
.rdn-search-page__form > button {
  min-width: 108px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--rdn-blue);
  box-shadow: 0 9px 21px rgba(3, 169, 244, 0.22);
  font-family: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.rdn-global-search__form > button:hover,
.rdn-global-search__form > button:focus-visible,
.rdn-search-page__form > button:hover,
.rdn-search-page__form > button:focus-visible {
  background: #0785c3;
  transform: translateY(-1px);
}

.rdn-global-search__body {
  min-height: 290px;
  padding: 24px 25px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rdn-global-search__initial > p:first-child {
  margin: 0 0 13px;
  color: #738196;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rdn-global-search__quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rdn-global-search__quick-links a {
  display: grid;
  min-height: 104px;
  grid-template-columns: 43px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 12px;
  align-content: center;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--search-accent) 22%, #dbe4ee);
  border-radius: 13px;
  color: #172033;
  background: color-mix(in srgb, var(--search-accent) 6%, #fff);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.rdn-global-search__quick-links a:hover,
.rdn-global-search__quick-links a:focus-visible {
  border-color: var(--search-accent);
  box-shadow: 0 13px 30px color-mix(in srgb, var(--search-accent) 13%, transparent);
  transform: translateY(-2px);
}

.rdn-global-search__quick-links a > span {
  display: grid;
  width: 43px;
  height: 43px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--search-accent);
}

.rdn-global-search__quick-links svg {
  width: 21px;
  height: 21px;
}

.rdn-global-search__quick-links strong {
  align-self: end;
  font-size: 14px;
  line-height: 1.2;
}

.rdn-global-search__quick-links small {
  align-self: start;
  color: #6b788b;
  font-size: 10px;
  font-weight: 700;
}

.rdn-global-search__hint {
  margin: 18px 0 0;
  color: #6b788b;
  font-size: 12px;
  line-height: 1.6;
}

.rdn-global-search__results {
  display: grid;
  gap: 23px;
}

.rdn-global-search__results[hidden],
.rdn-global-search__empty[hidden],
.rdn-global-search__footer a[hidden] {
  display: none;
}

.rdn-global-search__group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 9px;
  color: #53627a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rdn-global-search__group h3 span {
  color: #a1adbc;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 9px;
}

.rdn-global-search__group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rdn-global-search__result {
  display: grid;
  min-width: 0;
  min-height: 94px;
  grid-template-columns: 68px minmax(0, 1fr) 19px;
  gap: 13px;
  align-items: center;
  padding: 10px 13px 10px 10px;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 12px;
  color: #172033;
  background: #fff;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rdn-global-search__result:hover,
.rdn-global-search__result:focus-visible {
  border-color: color-mix(in srgb, var(--search-accent) 60%, transparent);
  box-shadow: 0 13px 28px color-mix(in srgb, var(--search-accent) 10%, rgba(31, 48, 79, 0.08));
  outline: 0;
  transform: translateY(-2px);
}

.rdn-global-search__result-media {
  display: grid;
  width: 68px;
  height: 68px;
  overflow: hidden;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--search-accent);
  font-size: 20px;
  font-weight: 900;
}

.rdn-global-search__result-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: color-mix(in srgb, var(--search-accent) 8%, #fff);
}

.rdn-global-search__result-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.rdn-global-search__result-type {
  overflow: hidden;
  color: color-mix(in srgb, var(--search-accent) 76%, #26334a);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.rdn-global-search__result-title {
  margin-top: 3px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rdn-global-search__result-excerpt {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #6b788b;
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rdn-global-search__result-price {
  margin-top: 4px;
  color: #278c43;
  font-size: 11px;
  font-weight: 850;
}

.rdn-global-search__result-arrow {
  color: var(--search-accent);
  font-size: 18px;
  font-style: normal;
  transition: transform 150ms ease;
}

.rdn-global-search__result:hover .rdn-global-search__result-arrow,
.rdn-global-search__result:focus-visible .rdn-global-search__result-arrow {
  transform: translateX(3px);
}

.rdn-global-search__empty {
  max-width: 580px;
  margin: 10px auto;
  text-align: center;
}

.rdn-global-search__empty > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 15px;
  place-items: center;
  border-radius: 50%;
  color: #0785c3;
  background: var(--rdn-ice);
  font-size: 24px;
  font-weight: 900;
}

.rdn-global-search__empty h3 {
  margin: 0;
  color: #172033;
  font-size: 22px;
}

.rdn-global-search__empty p {
  margin: 10px 0 18px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.65;
}

.rdn-global-search__empty a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--rdn-wa);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.rdn-global-search.is-loading .rdn-global-search__body::before {
  display: block;
  width: 34px;
  height: 34px;
  margin: 42px auto;
  border: 3px solid rgba(3, 169, 244, 0.16);
  border-top-color: var(--rdn-blue);
  border-radius: 50%;
  content: "";
  animation: rdn-search-spin 700ms linear infinite;
}

.rdn-global-search__footer {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 25px;
  border-top: 1px solid rgba(23, 32, 51, 0.1);
  color: #8290a3;
  background: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.rdn-global-search__footer a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #0785c3;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

@keyframes rdn-search-spin {
  to { transform: rotate(360deg); }
}

/* Full search results page. */
.rdn-search-page {
  min-height: 70vh;
  color: #172033;
  background: var(--rdn-bg);
}

.rdn-search-page__hero {
  padding: clamp(66px, 8vw, 112px) 0 clamp(56px, 7vw, 90px);
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 152, 0, 0.12), transparent 25%),
    radial-gradient(circle at 7% 90%, rgba(3, 169, 244, 0.13), transparent 28%),
    #fff;
}

.rdn-search-page__eyebrow {
  margin: 0 0 12px;
  color: #0785c3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rdn-search-page__hero h1 {
  max-width: 920px;
  margin: 0;
  color: #172033;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.rdn-search-page__hero h1 span {
  color: var(--rdn-blue);
}

.rdn-search-page__hero > .rdn-container > p:not(.rdn-search-page__eyebrow) {
  max-width: 690px;
  margin: 19px 0 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}

.rdn-search-page__form {
  width: min(900px, 100%);
  margin: 30px 0 0;
}

.rdn-search-page__content {
  padding-block: clamp(62px, 8vw, 105px);
}

.rdn-search-page__summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}

.rdn-search-page__summary p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.rdn-search-page__summary strong {
  color: #172033;
}

.rdn-search-page__group + .rdn-search-page__group {
  margin-top: 64px;
}

.rdn-search-page__group-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.rdn-search-page__group-header h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -0.035em;
}

.rdn-search-page__group-header span {
  display: grid;
  min-width: 30px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  color: #0785c3;
  background: var(--rdn-ice);
  font-size: 10px;
  font-weight: 900;
}

.rdn-search-page__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rdn-search-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, 0.11);
  border-radius: 17px;
  color: #172033;
  background: #fff;
  box-shadow: 0 15px 38px rgba(31, 48, 79, 0.07);
  flex-direction: column;
  text-decoration: none;
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.rdn-search-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 4px;
  background: var(--search-accent);
  content: "";
}

.rdn-search-card:hover,
.rdn-search-card:focus-visible {
  border-color: color-mix(in srgb, var(--search-accent) 48%, transparent);
  box-shadow: 0 22px 52px color-mix(in srgb, var(--search-accent) 12%, rgba(31, 48, 79, 0.08));
  outline: 0;
  transform: translateY(-4px);
}

.rdn-search-card__media {
  display: grid;
  min-height: 142px;
  overflow: hidden;
  place-items: center;
  color: var(--search-accent);
  background:
    radial-gradient(circle at 72% 16%, color-mix(in srgb, var(--search-accent) 19%, transparent), transparent 29%),
    color-mix(in srgb, var(--search-accent) 6%, #f5f9fc);
  font-size: 42px;
  font-weight: 900;
}

.rdn-search-card__media img {
  width: 100%;
  height: 142px;
  object-fit: contain;
}

.rdn-search-card__body {
  display: flex;
  padding: 22px;
  flex: 1;
  flex-direction: column;
}

.rdn-search-card__meta {
  color: color-mix(in srgb, var(--search-accent) 76%, #26334a);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rdn-search-card h3 {
  margin: 8px 0 0;
  color: #172033;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.rdn-search-card__body > p {
  margin: 10px 0 18px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
}

.rdn-search-card__price {
  margin-top: -7px;
  color: #278c43;
  font-size: 13px;
  font-weight: 850;
}

.rdn-search-card__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(23, 32, 51, 0.1);
  color: color-mix(in srgb, var(--search-accent) 78%, #243048);
  font-size: 11px;
  font-weight: 850;
}

.rdn-search-page__empty {
  padding: clamp(40px, 7vw, 78px);
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(31, 48, 79, 0.08);
  text-align: center;
}

.rdn-search-page__empty h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(28px, 4vw, 43px);
}

.rdn-search-page__empty p {
  max-width: 620px;
  margin: 14px auto 23px;
  color: #64748b;
  line-height: 1.7;
}

.rdn-search-page__empty a {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  gap: 15px;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--rdn-red);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 1023px) {
  .rdn-search-button--desktop {
    display: none;
  }

  .rdn-search-button--mobile {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
  }

  .rdn-header-top__actions {
    gap: 8px;
  }

  .rdn-header-brand__mobile-logo img {
    width: min(225px, 56vw);
  }

  .rdn-global-search__group ul,
  .rdn-search-page__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .rdn-global-search {
    padding: 0;
  }

  .rdn-global-search__dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateY(18px);
  }

  .rdn-global-search__header {
    min-height: 74px;
    padding: max(13px, env(safe-area-inset-top)) 16px 12px;
  }

  .rdn-global-search__header > div > span {
    font-size: 8px;
  }

  .rdn-global-search__header h2 {
    font-size: 21px;
  }

  .rdn-global-search__close {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .rdn-global-search__form,
  .rdn-search-page__form {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    margin: 15px 16px 0;
    padding: 5px 13px;
    border-width: 1.5px;
    border-radius: 12px;
  }

  .rdn-global-search__form input,
  .rdn-search-page__form input {
    height: 49px;
    font-size: 16px;
  }

  .rdn-global-search__form > button,
  .rdn-search-page__form > button {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .rdn-global-search__body {
    min-height: 0;
    padding: 20px 16px 84px;
    flex: 1;
  }

  .rdn-global-search__quick-links {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .rdn-global-search__quick-links a {
    min-height: 76px;
    padding: 11px 13px;
  }

  .rdn-global-search__quick-links a > span {
    width: 42px;
    height: 42px;
  }

  .rdn-global-search__group ul {
    grid-template-columns: 1fr;
  }

  .rdn-global-search__result {
    min-height: 88px;
    grid-template-columns: 60px minmax(0, 1fr) 15px;
    gap: 11px;
  }

  .rdn-global-search__result-media {
    width: 60px;
    height: 60px;
  }

  .rdn-global-search__result-title {
    font-size: 12.5px;
  }

  .rdn-global-search__footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding: 10px 16px env(safe-area-inset-bottom);
  }

  .rdn-global-search__footer > span {
    display: none;
  }

  .rdn-global-search__footer a {
    width: 100%;
    min-height: 43px;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: var(--rdn-blue);
  }

  .rdn-search-page__hero {
    padding: 52px 0 48px;
  }

  .rdn-search-page__hero h1 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .rdn-search-page__hero > .rdn-container > p:not(.rdn-search-page__eyebrow) {
    font-size: 14px;
  }

  .rdn-search-page__form {
    margin-inline: 0;
  }

  .rdn-search-page__content {
    padding-block: 48px 80px;
  }

  .rdn-search-page__summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .rdn-search-page__grid {
    grid-template-columns: 1fr;
  }

  .rdn-search-page__group + .rdn-search-page__group {
    margin-top: 48px;
  }

  .rdn-search-card {
    min-height: 0;
  }

  .rdn-search-card__media,
  .rdn-search-card__media img {
    min-height: 126px;
    height: 126px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rdn-global-search,
  .rdn-global-search__dialog,
  .rdn-search-card,
  .rdn-global-search__result {
    transition: none;
  }
}
