.proemails-domain-search {
  --proemails-primary: #5d38e8;
  --proemails-accent: #2b145c;
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 42px auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--proemails-accent);
  font-family: inherit;
}
.proemails-domain-search *,
.proemails-domain-search *::before,
.proemails-domain-search *::after { box-sizing: border-box; }
.proemails-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 224px;
  gap: 0;
  align-items: stretch;
}
.proemails-search-field { position: relative; display: block; min-width: 0; }
.proemails-search-form input {
  width: 100%;
  height: 66px;
  border: 1px solid #c9c9c9;
  border-radius: 0;
  padding: 0 24px;
  color: #191919;
  background: #fff;
  font: inherit;
  font-size: clamp(17px, 1.8vw, 23px);
  box-shadow: none;
}
.proemails-search-form input::placeholder { color: #a8a8a8; opacity: 1; }
.proemails-search-form input:focus {
  position: relative;
  z-index: 12;
  border-color: var(--proemails-primary);
  outline: 3px solid color-mix(in srgb, var(--proemails-primary) 17%, transparent);
  outline-offset: 0;
}
.proemails-search-submit,
.proemails-view-all {
  display: inline-flex;
  min-width: 0;
  min-height: 66px;
  border-radius: 0;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 20px;
  font: inherit;
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.proemails-search-submit svg,
.proemails-view-all svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.proemails-search-submit { border: 2px solid #000; background: #000; color: #fff; }
.proemails-search-submit:not(:disabled):hover,
.proemails-search-submit:not(:disabled):focus-visible { border-color: var(--proemails-accent); background: var(--proemails-accent); }
.proemails-view-all { border: 1px solid #1a1a1a; background: #fff; color: #111; }
.proemails-view-all { margin-left: 24px; }
.proemails-view-all:hover,
.proemails-view-all:focus-visible { border-color: var(--proemails-primary); color: var(--proemails-primary); }
.proemails-search-submit:focus-visible,
.proemails-view-all:focus-visible,
.proemails-search-categories [data-category]:focus-visible,
.proemails-learn-more:focus-visible { outline: 3px solid color-mix(in srgb, var(--proemails-primary) 25%, transparent); outline-offset: 3px; }
.proemails-search-submit:disabled { cursor: wait; opacity: .58; }
.proemails-domain-suggestions {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--proemails-primary) 25%, #ddd);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(48, 21, 75, .13);
}
.proemails-domain-suggestions[hidden] { display: none; }
.proemails-domain-suggestion {
  display: flex;
  width: 100%;
  min-height: 55px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--proemails-primary) 11%, #eee);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px;
  background: #fff;
  color: var(--proemails-accent);
  text-align: left;
  cursor: pointer;
}
.proemails-domain-suggestion:last-child { border-bottom: 0; border-radius: 0 0 11px 11px; }
.proemails-domain-suggestion:hover,
.proemails-domain-suggestion.is-active { background: color-mix(in srgb, var(--proemails-primary) 7%, #fff); }
.proemails-domain-suggestion strong { font-size: 16px; font-weight: 750; overflow-wrap: anywhere; }
.proemails-domain-suggestion span { color: var(--proemails-primary); font-size: 13px; font-weight: 700; white-space: nowrap; }
.proemails-search-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  margin-top: 48px;
}
.proemails-search-categories {
  display: grid;
  /* grid-template-columns: repeat(var(--proemails-category-count, 6), minmax(0, 1fr)); */
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
}
.proemails-search-categories [data-category] {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 55px;
  border: 0;
  border-radius: 0;
  align-items: center;
  /* justify-content: center; */
  gap: 11px;
  padding: 6px 17px;
  margin-bottom: 15px;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: clamp(14px, 1.15vw, 18px);
  font-weight: 700;
  text-decoration: none;
  transition: color .16s ease;
}
/* .proemails-search-categories [data-category]:not(:last-child)::after {
  position: absolute;
  top: 5px;
  right: 0;
  width: 1px;
  height: 44px;
  background: #d1d1d1;
  content: '';
} */
.proemails-search-categories [data-category] svg {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  fill: none;
  stroke: var(--proemails-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.proemails-search-categories [data-category]:hover,
.proemails-search-categories [data-category].is-active { color: var(--proemails-primary); }
.proemails-search-categories [data-category].is-active svg { stroke: var(--proemails-primary); }
.proemails-search-categories [data-category].is-active::before {
  position: absolute;
  right: 24px;
  bottom: -6px;
  left: 24px;
  height: 3px;
  background: var(--proemails-primary);
  content: '';
}
.proemails-search-categories [data-category][hidden] { display: none; }
.proemails-domain-search.is-brand-loading .proemails-search-categories [data-category] { visibility: hidden; }
.proemails-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #111;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.proemails-learn-more span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  place-items: center;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.proemails-learn-more:hover { color: var(--proemails-primary); }
@media (max-width: 760px) {
  .proemails-domain-search { padding: 0; border-radius: 0; }
  .proemails-search-form { grid-template-columns: minmax(0, 1fr) 132px; gap: 10px; }
  .proemails-view-all { grid-column: 1 / -1; margin-left: 0; }
  .proemails-search-categories { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .proemails-search-categories [data-category]:nth-child(3)::after { display: none; }
  .proemails-search-toolbar { align-items: start; }
}
@media (max-width: 620px) {
  .proemails-domain-search { margin: 26px auto; padding: 0; border-radius: 0; }
  .proemails-search-form { grid-template-columns: 1fr; }
  .proemails-search-form input,
  .proemails-search-submit,
  .proemails-view-all { min-height: 56px; height: 56px; }
  .proemails-view-all { grid-column: auto; }
  .proemails-search-toolbar { grid-template-columns: 1fr; gap: 24px; margin-top: 26px; }
  .proemails-search-categories { grid-template-columns: repeat(2, 1fr); }
  .proemails-search-categories [data-category] { justify-content: flex-start; padding: 7px 15px; }
  .proemails-search-categories [data-category]:nth-child(3)::after { display: block; }
  .proemails-search-categories [data-category]:nth-child(even)::after { display: none; }
  .proemails-search-categories [data-category].is-active::before { right: 15px; left: 15px; }
  .proemails-learn-more { justify-self: start; }
  .proemails-domain-suggestion { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .proemails-search-submit,
  .proemails-view-all,
  .proemails-search-categories [data-category] { transition: none; }
}

/* Sports Mail keeps its own red/navy brand throughout the public search widget. */
.proemails-domain-search[data-brand="sports-mail"] .proemails-search-submit { border-color: var(--proemails-primary); background: var(--proemails-primary); }
.proemails-domain-search[data-brand="sports-mail"] .proemails-search-submit:hover { border-color: var(--proemails-accent); background: var(--proemails-accent); }
.proemails-domain-search[data-brand="sports-mail"] .proemails-view-all { border-color: var(--proemails-primary); color: var(--proemails-primary); }
.proemails-search-status.is-error { position: static !important; display: block; clip: auto !important; clip-path: none !important; width: auto !important; height: auto !important; margin: 10px 0; overflow: visible !important; white-space: normal; color: #9d1721; font-size: 15px; }
.proemails-view-all[aria-disabled="true"] { opacity: .55; cursor: wait; }
