/* Smart Search Standalone — all rules are strictly scoped. */
.smart-search-standalone {
  --ss-ink: #302c3d;
  --ss-muted: #655f72;
  --ss-primary: #6f2394;
  --ss-primary-dark: #4a1666;
  --ss-line: #ddd5e5;
  --ss-surface: #ffffff;
  --ss-soft: #faf7fc;
  --ss-highlight: #ffe78a;
  box-sizing: border-box;
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 0 60px;
  color: var(--ss-ink);
  container-type: inline-size;
}
.smart-search-standalone *,
.smart-search-standalone *::before,
.smart-search-standalone *::after { box-sizing: border-box; }
.smart-search-standalone .smart-search-hero {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  width: auto !important;
  min-height: 0 !important;
  display: block !important;
  margin: 0 0 18px;
  padding: 28px 30px 24px;
  overflow: visible !important;
  background: linear-gradient(135deg, #fff 0%, #f7f2fb 100%);
  border: 1px solid rgba(102, 46, 142, .17);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(38, 29, 52, .08);
}
.smart-search-kicker {
  margin: 0 0 7px;
  color: #7b309b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.smart-search-standalone .smart-search-hero h1 {
  margin: 0;
  color: #332053;
  font-size: clamp(27px, 4vw, 39px);
  line-height: 1.13;
}
.smart-search-standalone .smart-search-hero > p:last-child {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--ss-muted);
  font-size: 15px;
  line-height: 1.55;
}
.smart-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .38fr) auto;
  gap: 10px;
  align-items: stretch;
  margin: 0;
}
.smart-search-input-wrap { position: relative; min-width: 0; }
.smart-search-form input,
.smart-search-form select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 42px 0 14px;
  color: var(--ss-ink);
  background: var(--ss-surface);
  border: 1px solid #d8d1e2;
  border-radius: 10px;
  outline: none;
  font: inherit;
}
.smart-search-form select { padding-right: 14px; }
.smart-search-form .smart-search-input-wrap > #smart-search-input {
  box-sizing: border-box !important;
  width: 100% !important;
  height: 48px !important;
  min-width: 0 !important;
}
.smart-search-form input:focus,
.smart-search-form select:focus,
.smart-search-tools input:focus,
.smart-search-tools select:focus,
.smart-search-fab-panel input:focus {
  border-color: #7b309b;
  box-shadow: 0 0 0 3px rgba(123, 48, 155, .14);
}
.smart-search-clear {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #655f72;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}
.smart-search-clear:hover { color: var(--ss-primary); background: #f1eafa; }
.smart-search-suggestions[hidden] { display: none !important; }
.smart-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 60;
  max-height: 296px;
  margin: 0;
  padding: 5px;
  overflow-y: auto;
  list-style: none;
  color: var(--ss-ink);
  background: #fff;
  border: 1px solid #cfc2da;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(38, 29, 52, .18);
}
.smart-search-suggestions [role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
}
.smart-search-suggestions [role="option"]:hover,
.smart-search-suggestions [role="option"].is-active { background: #f1eafa; }
.smart-search-suggestion-title { min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.smart-search-suggestion-type { flex: 0 0 auto; color: #6f596e; font-size: 12px; }
.smart-search-submit,
.smart-search-fab-panel form button {
  height: 48px;
  padding: 0 21px;
  color: #fff;
  background: var(--ss-primary);
  border: 1px solid var(--ss-primary);
  border-radius: 10px;
  font: 700 15px/1 inherit;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}
.smart-search-submit:hover,
.smart-search-fab-panel form button:hover { background: var(--ss-primary-dark); transform: translateY(-1px); }
.smart-search-help {
  margin: 10px 2px 18px;
  color: var(--ss-muted);
  font-size: 13px;
  line-height: 1.45;
}
.smart-search-help kbd {
  padding: 1px 5px;
  color: #493460;
  background: #f0eaf5;
  border: 1px solid #d9cde3;
  border-radius: 4px;
  font: 700 12px/1.3 monospace;
}
.smart-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 13px 0 20px;
}
.smart-search-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 11px;
  color: #633080;
  background: #fff;
  border: 1px solid #d9cce2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.smart-search-chips a:hover,
.smart-search-chips a[aria-current="true"] { color: #fff; background: var(--ss-primary); border-color: var(--ss-primary); }
.smart-search-history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 16px;
  padding: 11px 13px;
  color: #5e5864;
  background: #faf9fb;
  border: 1px solid #ece8f0;
  border-radius: 10px;
  font-size: 13px;
}
.smart-search-history > span { font-weight: 700; }
.smart-search-history [data-smart-search-history-items] { display: flex; flex-wrap: wrap; gap: 6px; }
.smart-search-history a,
.smart-search-history button {
  padding: 2px 7px;
  color: #633080;
  background: #fff;
  border: 1px solid #dfd6e7;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.smart-search-history button { margin-left: auto; color: #6f596e; }
.smart-search-summary,
.smart-search-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 0 0 20px;
  padding: 14px 17px;
  color: #443555;
  background: var(--ss-soft);
  border-left: 4px solid #7b309b;
  border-radius: 7px;
  line-height: 1.5;
}
.smart-search-summary span,
.smart-search-notice span { color: #70677c; }
.smart-search-tools {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(170px, .6fr) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 14px;
  padding: 13px;
  background: #f9f7fb;
  border: 1px solid #e6dfea;
  border-radius: 12px;
}
.smart-search-tools label {
  display: grid;
  gap: 5px;
  color: #5c5364;
  font-size: 12px;
  font-weight: 700;
}
.smart-search-tools input,
.smart-search-tools select {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  color: var(--ss-ink);
  background: #fff;
  border: 1px solid #d8d1e2;
  border-radius: 8px;
  font: 400 14px/1 inherit;
}
.smart-search-tool-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.smart-search-tool-buttons button {
  min-height: 38px;
  padding: 0 10px;
  color: #633080;
  background: #fff;
  border: 1px solid #d9cce2;
  border-radius: 8px;
  cursor: pointer;
  font: 700 12px/1 inherit;
}
.smart-search-tool-buttons button:hover,
.smart-search-tool-buttons button[aria-pressed="true"] { color: #fff; background: var(--ss-primary); border-color: var(--ss-primary); }
.smart-search-tools p { grid-column: 1 / -1; min-height: 0; margin: -1px 0 0; color: #66566f; font-size: 12px; }
.smart-search-results { display: grid; gap: 14px; }
.smart-search-result {
  padding: 21px 23px 18px;
  background: #fff;
  border: 1px solid #e3deea;
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(36, 27, 52, .055);
}
.smart-search-result[hidden] { display: none; }
.smart-search-result-topline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.smart-search-category { color: #6f2394; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.smart-search-score { padding: 3px 9px; color: #5f4d6e; background: #f1eafa; border-radius: 999px; font-size: 12px; font-weight: 700; }
.smart-search-result h2 { margin: 0 0 11px; font-size: 21px; line-height: 1.27; }
.smart-search-result h2 a { color: #392157; text-decoration: none; }
.smart-search-result h2 a:hover,
.smart-search-open:hover { color: #7b309b; text-decoration: underline; }
.smart-search-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; color: #635d6c; font-size: 13px; }
.smart-search-counts strong { color: #3f354c; }
.smart-search-counts span { padding-left: 10px; border-left: 1px solid #ddd5e5; }
.smart-search-context { margin: 0 0 10px; color: #4d4854; font-size: 15px; line-height: 1.62; }
.smart-search-context mark { padding: 1px 2px; color: inherit; background: var(--ss-highlight); border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.smart-search-contexts details { margin-top: 10px; padding: 11px 13px 3px; background: #faf9fb; border: 1px solid #ece8f0; border-radius: 8px; }
.smart-search-contexts summary { color: #6f2394; font-weight: 700; cursor: pointer; }
.smart-search-result footer { margin-top: 13px; }
.smart-search-open { color: #6f2394; font-size: 14px; font-weight: 700; text-decoration: none; }
.smart-search-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 25px; }
.smart-search-pagination a { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; color: #633080; background: #fff; border: 1px solid #d9cce2; border-radius: 8px; font-weight: 700; text-decoration: none; }
.smart-search-pagination a[aria-current="page"],
.smart-search-pagination a:hover { color: #fff; background: var(--ss-primary); border-color: var(--ss-primary); }
.smart-search-standalone.smart-search-compact .smart-search-result { padding: 14px 16px; border-radius: 10px; }
.smart-search-standalone.smart-search-compact .smart-search-result h2 { margin-bottom: 7px; font-size: 18px; }
.smart-search-standalone.smart-search-compact .smart-search-context { font-size: 14px; line-height: 1.45; }
.smart-search-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* The previous UI-fix package may leave its legacy Google search button in the page. */
html body #searchFab { display: none !important; }
html body #searchPanel { display: none !important; }
.smart-search-fab {
  position: fixed !important;
  right: 30px !important;
  bottom: 100px !important;
  z-index: 10001 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  color: #fff;
  background: #6a1b9a;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(33, 17, 48, .32);
  cursor: pointer;
}
.smart-search-fab:hover { background: #4a148c; transform: scale(1.06); }
.smart-search-fab:focus-visible,
.smart-search-fab-panel button:focus-visible,
.smart-search-standalone button:focus-visible,
.smart-search-standalone a:focus-visible { outline: 3px solid #f4c430; outline-offset: 3px; }
.smart-search-fab-panel[hidden] { display: none !important; }
.smart-search-fab-panel {
  position: fixed;
  right: 30px;
  bottom: 170px;
  z-index: 10002;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  color: var(--ss-ink);
  background: #fff;
  border: 1px solid rgba(102, 46, 142, .24);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(33, 17, 48, .24);
}
.smart-search-fab-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; color: #3b2556; }
.smart-search-fab-close { width: 30px; height: 30px; padding: 0; color: #6f596e; background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 24px; line-height: 1; }
.smart-search-fab-close:hover { color: #fff; background: #6f2394; }
.smart-search-fab-panel form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.smart-search-fab-panel input { min-width: 0; height: 42px; padding: 0 11px; color: var(--ss-ink); background: #fff; border: 1px solid #d8d1e2; border-radius: 8px; font: inherit; }
.smart-search-fab-panel form button { height: 42px; padding: 0 14px; font-size: 14px; }
/* The theme provides a narrow 730px content column on desktop. Stack the text
   input first inside that column, instead of letting it compete with filters. */
@container (max-width: 780px) {
  .smart-search-form { grid-template-columns: minmax(0, 1fr) auto; }
  .smart-search-input-wrap { grid-column: 1 / -1; }
  .smart-search-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .smart-search-tool-buttons { grid-column: 1 / -1; }
  .smart-search-tools p { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .smart-search-standalone { padding: 24px 0 48px; }
  .smart-search-standalone .smart-search-hero { padding: 22px 19px; }
  .smart-search-form { grid-template-columns: 1fr; }
  .smart-search-tools { grid-template-columns: 1fr; }
  .smart-search-result { padding: 18px 16px; }
  .smart-search-result h2 { font-size: 19px; }
  .smart-search-tools p { grid-column: auto; }
  .smart-search-fab { right: 20px !important; bottom: 80px !important; width: 50px; height: 50px; }
  .smart-search-fab-panel { right: 16px; bottom: 142px; }
}
@media (prefers-reduced-motion: reduce) {
  .smart-search-standalone *, .smart-search-fab { scroll-behavior: auto !important; transition: none !important; }
}
@media (prefers-contrast: more) {
  .smart-search-standalone { --ss-line: #574261; }
  .smart-search-result, .smart-search-hero, .smart-search-tools { border-width: 2px; }
}
