:root {
  --cdh-finder-brand: #f72564;
  --cdh-finder-brand-dark: #b31247;
  --cdh-finder-ink: #101828;
  --cdh-finder-muted: #667085;
  --cdh-finder-line: #dfe3ea;
}

.cdh-finder *,
.cdh-finder *::before,
.cdh-finder *::after {
  box-sizing: border-box;
  text-transform: none;
  letter-spacing: normal;
}

.cdh-finder__bubble {
  position: fixed;
  z-index: 99990;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--cdh-finder-brand-dark);
  box-shadow: 0 12px 35px rgb(16 24 40 / 25%);
  color: #fff;
  font:
    700 15px/1.2 system-ui,
    sans-serif;
  cursor: pointer;
}

.cdh-finder__bubble:hover {
  background: var(--cdh-finder-brand-dark);
}

.cdh-finder__dialog {
  position: fixed;
  z-index: 99991;
  right: 22px;
  bottom: 88px;
  left: auto;
  top: auto;
  width: min(380px, calc(100vw - 32px));
  max-height: min(740px, calc(100dvh - 60px));
  margin: 0;
  padding: 0;
  border: 1px solid var(--cdh-finder-line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgb(16 24 40 / 22%);
  color: var(--cdh-finder-ink);
}

.cdh-finder__dialog::backdrop {
  background: transparent;
}

.cdh-finder__panel {
  display: flex;
  min-height: 420px;
  max-height: min(740px, calc(100dvh - 60px));
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  font:
    15px/1.5 system-ui,
    sans-serif;
}

.cdh-finder__logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}

.cdh-finder__greeting {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cdh-finder__greeting-text p {
  margin: 0;
}

.cdh-finder__greeting-name {
  font-size: 15px;
  font-weight: 750;
  color: var(--cdh-finder-ink);
}

.cdh-finder__greeting-sub {
  font-size: 12px;
  color: var(--cdh-finder-muted);
}

.cdh-finder__header {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--cdh-finder-line);
}

.cdh-finder__header p {
  margin: 0;
}

.cdh-finder__eyebrow {
  color: var(--cdh-finder-brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cdh-finder__close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: var(--cdh-finder-ink);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.cdh-finder__progress {
  flex-shrink: 0;
  padding: 14px 24px 0;
  color: var(--cdh-finder-muted);
  font-size: 13px;
}

.cdh-finder__progress div {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #f2f4f7;
}

.cdh-finder__progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cdh-finder-brand);
  transition: width 180ms ease;
}

.cdh-finder__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px;
}

.cdh-finder__body h3 {
  margin: 4px 0 18px;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.2;
}

.cdh-finder__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cdh-finder__choices label {
  position: relative;
  cursor: pointer;
}

.cdh-finder__choices input {
  position: absolute;
  opacity: 0;
}

.cdh-finder__choices span {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--cdh-finder-line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.cdh-finder__choices input:checked + span {
  border-color: var(--cdh-finder-brand);
  background: #fff1f5;
  box-shadow: 0 0 0 1px var(--cdh-finder-brand);
}

.cdh-finder :focus-visible {
  outline: 3px solid var(--cdh-finder-ink);
  outline-offset: 3px;
}

.cdh-finder__footer {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--cdh-finder-line);
}

.cdh-finder__primary[hidden],
.cdh-finder__secondary[hidden] {
  display: none;
}

.cdh-finder__primary,
.cdh-finder__secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 9px;
  font:
    750 15px/1.2 system-ui,
    sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.cdh-finder__primary {
  border: 1px solid var(--cdh-finder-brand-dark);
  background: var(--cdh-finder-brand-dark);
  color: #fff;
}

.cdh-finder__secondary {
  border: 1px solid var(--cdh-finder-line);
  background: #fff;
  color: var(--cdh-finder-ink);
}

.cdh-finder__primary:disabled,
.cdh-finder__secondary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cdh-finder__privacy,
.cdh-finder__note {
  margin: 0;
  color: var(--cdh-finder-muted);
  font-size: 12px;
}

.cdh-finder__privacy {
  flex-shrink: 0;
  padding: 8px 24px 14px !important;
  text-align: center;
}

.cdh-finder__result,
.cdh-finder__success {
  display: grid;
  gap: 14px;
}

.cdh-finder__direct {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cdh-finder__direct a {
  flex: 1 1 140px;
  text-align: center;
}

.cdh-finder__result p,
.cdh-finder__success p {
  margin: 0;
}

.cdh-finder__contact {
  display: grid;
  gap: 12px;
}

.cdh-finder__contact > label:not(.cdh-finder__consent):not(.cdh-finder__trap) {
  display: grid;
  gap: 6px;
}

.cdh-finder__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cdh-finder-muted);
}

.cdh-finder__req {
  color: var(--cdh-finder-brand-dark);
}

.cdh-finder__note-inline {
  font-weight: 500;
  color: var(--cdh-finder-muted);
}

.cdh-finder__contact input,
.cdh-finder__contact textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--cdh-finder-line);
  border-radius: 9px;
  background: #fbfbfc;
  color: var(--cdh-finder-ink);
  font: inherit;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.cdh-finder__contact textarea {
  resize: vertical;
  min-height: 60px;
}

.cdh-finder__contact input:hover,
.cdh-finder__contact textarea:hover {
  border-color: var(--cdh-finder-muted);
}

.cdh-finder__contact input:focus-visible,
.cdh-finder__contact textarea:focus-visible {
  outline: none;
  background: #fff;
  border-color: var(--cdh-finder-brand);
  box-shadow: 0 0 0 3px rgb(247 37 100 / 15%);
}

.cdh-finder__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--cdh-finder-muted);
}

.cdh-finder__consent input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--cdh-finder-brand);
}

.cdh-finder__error {
  min-height: 22px;
  margin: 10px 0 0;
  color: #b42318;
  font-weight: 700;
}

.cdh-finder__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 640px) {
  .cdh-finder__bubble {
    right: 14px;
    bottom: 14px;
  }

  .cdh-finder__bubble span:last-child {
    display: none;
  }

  .cdh-finder__dialog {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-width: none;
    max-height: 100dvh;
    margin: auto 0 0;
    border: 0;
    border-radius: 18px 18px 0 0;
  }

  .cdh-finder__panel {
    min-height: min(720px, 92dvh);
    max-height: 100dvh;
  }

  .cdh-finder__header {
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .cdh-finder__logo {
    width: 28px;
    height: 28px;
  }

  .cdh-finder__body h3 {
    margin-bottom: 12px;
  }

  .cdh-finder__header,
  .cdh-finder__body,
  .cdh-finder__footer {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cdh-finder__progress i {
    transition: none;
  }
}
