.dw-finder { width: min(1160px, calc(100% - 40px)); max-width: none; height: min(850px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 8px; color: #173047; background: linear-gradient(145deg, #fafbfb, #edf1f1); box-shadow: 0 24px 80px #10233240; }
.dw-finder::backdrop { background: rgb(15 29 39 / 62%); }
.dw-finder-shell { display: flex; flex-direction: column; height: 100%; }
.dw-finder-header, .dw-finder-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 32px; flex-shrink: 0; }
.dw-finder-header { border-bottom: 1px solid #dde3e5; background: #fff; }
.dw-finder-brand { display: flex; align-items: center; gap: 24px; min-width: 0; }
.dw-finder-logo { display: block; width: 165px; height: auto; max-width: 100%; }
.dw-finder-header .eyebrow { margin: 0; }
.dw-finder-header button { background: none; border: 0; padding: 8px; color: inherit; cursor: pointer; font: inherit; }
.dw-finder-header button span { font-size: 24px; margin-left: 8px; }
.dw-finder-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1; padding: 28px 32px 10px; }
.dw-finder-progress { font-size: 12px; color: #526777; margin: 0 0 10px; }
.dw-finder h2 { font-size: clamp(23px, 3vw, 34px); line-height: 1.2; margin: 0 0 12px; max-width: 850px; }
.dw-finder-intro { font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.dw-finder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dw-finder-grid.is-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dw-finder-card { display: flex; flex-direction: column; text-align: left; min-width: 0; margin: 0; padding: 0 0 20px; font: inherit; color: inherit; background: #fff; border: 1px solid #dce2e5; border-radius: 6px; overflow: hidden; box-shadow: 0 5px 18px #1730470a; }
button.dw-finder-card { cursor: pointer; transition: border-color .18s, box-shadow .18s; }
button.dw-finder-card:hover { border-color: #125ba4; box-shadow: 0 4px 16px #17304715; }
.dw-finder-picture { position: relative; display: grid; place-items: center; flex: none; width: 100%; aspect-ratio: 3 / 2; background: #edf0ef; overflow: hidden; }
.dw-finder-picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.dw-finder-result .dw-finder-picture { aspect-ratio: 3 / 2; border-bottom: 1px solid #e3e8ea; background: linear-gradient(160deg, #fff, #f0f3f3); }
.dw-finder-result .dw-finder-picture img { object-fit: contain; object-position: center; padding: 16px; box-sizing: border-box; }
.dw-finder-placeholder { font-size: 14px; color: #526777; }
.dw-finder-card-title { display: block; font-size: 18px; line-height: 1.3; font-weight: 650; margin: 18px 20px 8px; }
.dw-finder-card-text { display: block; font-size: 14px; line-height: 1.55; margin: 0 20px; }
.dw-finder-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: auto 20px 0; padding-top: 20px; }
.dw-finder-actions .button { font-size: 13px; min-height: 42px; padding: 10px 14px; }
.dw-finder-note, .dw-finder-support { font-size: 13px; line-height: 1.6; max-width: 850px; margin: 20px 0 0; }
.dw-finder-note { color: #526777; }
.dw-finder-footer { min-height: 78px; border-top: 1px solid #dde3e5; background: #f8fafa; }
.dw-finder [hidden] { display: none !important; }
.dw-finder :is(button, a):focus-visible { outline: 3px solid #0759a8; outline-offset: 3px; }
.dw-finder h2:focus { outline: none; }
.dw-finder-page { padding-block: 80px; min-height: 60vh; }
.dw-finder-page > p { max-width: 700px; }
@media (max-width: 900px) { .dw-finder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .dw-finder { width: calc(100% - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  .dw-finder-header, .dw-finder-footer { padding: 12px 16px; gap: 10px; }
  .dw-finder-header .eyebrow { font-size: 10px; }
  .dw-finder-brand { flex-direction: column; align-items: flex-start; gap: 5px; }
  .dw-finder-logo { width: 130px; }
  .dw-finder-header button { font-size: 13px; }
  .dw-finder-scroll { padding: 22px 16px 8px; }
  .dw-finder-grid, .dw-finder-grid.is-results { grid-template-columns: minmax(0, 1fr); }
  .dw-finder-picture { aspect-ratio: 16 / 9; }
  .dw-finder-footer { min-height: 65px; }
}
@media (prefers-reduced-motion: reduce) { .dw-finder-card { transition: none; } }

/* Result presentation only; selection steps retain their existing layout. */
.dw-finder.has-results .dw-finder-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dw-finder-result { padding: 0; }
.dw-finder-result-body { min-width: 0; padding: 22px; align-self: center; }
.dw-finder-result-eyebrow { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: #526777; }
.dw-finder-result .dw-finder-card-title { margin: 0 0 10px; font-size: clamp(23px, 2.3vw, 30px); line-height: 1.15; color: var(--color-blue); overflow-wrap: anywhere; }
.dw-finder-result .dw-finder-card-text { margin: 0; }
.dw-finder-result .dw-finder-actions { margin: 0; padding-top: 16px; }
.dw-finder.has-results #dw-finder-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dw-finder.has-results .dw-finder-progress { display: none; }
.dw-finder.has-results .dw-finder-intro { font-size: 13px; margin-bottom: 12px; }
.dw-finder.has-results .dw-finder-note,
.dw-finder.has-results .dw-finder-support { max-width: none; margin-top: 8px; }
@media (min-width: 901px) {
  .dw-finder.has-results { width: min(1240px, calc(100% - 40px)); }
  .dw-finder.has-results .dw-finder-scroll { padding: 16px 28px 12px; }
  .dw-finder.has-results .dw-finder-header { padding-block: 14px; }
  .dw-finder.has-results .dw-finder-footer { min-height: 66px; padding-block: 10px; }
  .dw-finder-result { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .dw-finder.has-results .dw-finder-grid { grid-auto-rows: 1fr; }
  .dw-finder-result .dw-finder-picture { height: 100%; min-height: clamp(240px, 37vh, 370px); aspect-ratio: auto; border-bottom: 0; border-right: 1px solid #e3e8ea; }
  .dw-finder-result-body { padding: 16px 24px; }
}

.dw-finder-result .dw-finder-picture img:not(.dw-finder-background) { z-index: 1; }
.dw-finder-result .dw-finder-picture img.dw-finder-background { object-fit: cover; padding: 0; opacity: .8; }
.dw-finder-result .dw-finder-placeholder { position: relative; z-index: 1; }
@media (min-width: 901px) {
  /* Keep the single-result window size; distribute its content space equally. */
  .dw-finder.has-multiple-results .dw-finder-scroll { display: flex; flex-direction: column; }
  .dw-finder.has-multiple-results .dw-finder-grid { flex: 1 0 auto; grid-auto-rows: 1fr; }
  .dw-finder.has-multiple-results .dw-finder-picture { min-height: 0; }
  .dw-finder.has-multiple-results .dw-finder-intro,
  .dw-finder.has-multiple-results .dw-finder-note,
  .dw-finder.has-multiple-results .dw-finder-support { flex-shrink: 0; }
}
