/* Pad finder — matches home .hcw-finder-sec (dark green) + white tool card */
.hcw-finder-sec .hcw-accessory-finder.hcw-finder-grid,
.hcw-accessory-finder.hcw-finder-grid {
  width: 100%;
  min-width: 0;
  max-width: var(--hcw-wrap, 1200px);
  padding-inline: 24px;
  margin-inline: auto;
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .hcw-finder-sec .hcw-accessory-finder.hcw-finder-grid,
  .hcw-accessory-finder.hcw-finder-grid {
    grid-template-columns: 1fr;
  }
}

/* Left column — marketing (white on green section) */
.hcw-accessory-finder__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hcw-accessory-finder__badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--hcw-mint, #58eda2);
  background: rgba(88, 237, 162, 0.12);
  border: 1px solid rgba(88, 237, 162, 0.35);
  border-radius: 999px;
}

.hcw-accessory-finder__title {
  margin: 0 0 16px;
  font-family: var(--hcw-font-display, Fraunces, Georgia, serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  color: #fff;
}

.hcw-accessory-finder__intro {
  margin: 0 0 28px;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.hcw-accessory-finder__bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hcw-accessory-finder__bullets li {
  position: relative;
  padding-left: 36px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.hcw-accessory-finder__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hcw-mint, #58eda2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23013126'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 10.4a1 1 0 1 1 1.4-1.4l3.6 3.6 6.8-6.8a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E")
    center/12px no-repeat;
}

/* Right — white card (Elementor .hcw-finder-tool + our search) */
.hcw-finder-sec .hcw-accessory-finder__card,
.hcw-accessory-finder__card.hcw-finder-tool {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  color: var(--hcw-text, #013126);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  overflow: visible;
  z-index: 2;
}

.hcw-finder-sec {
  overflow: visible;
}

.hcw-accessory-finder__search-anchor {
  position: relative;
  z-index: 3;
}

.hcw-finder-sec .hcw-accessory-finder__card .hcw-accessory-finder__card-title,
.hcw-accessory-finder__card .hcw-accessory-finder__card-title.hcw-finder-tool-h3,
.elementor .hcw-accessory-finder__card-title.hcw-finder-tool-h3,
.hcw-accessory-finder__card-title {
  margin: 0 0 16px;
  font-family: var(--hcw-font-display, Fraunces, Georgia, serif);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--hcw-ink, #013126);
}

.hcw-accessory-finder__search-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 480px) {
  .hcw-accessory-finder__search-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
  }
}

.hcw-finder-sec .hcw-accessory-finder__card input.hcw-accessory-finder__input,
.hcw-accessory-finder__card .hcw-accessory-finder__input,
.elementor .hcw-accessory-finder__input,
.hcw-accessory-finder__input {
  flex: 1 1 100%;
  min-height: 50px;
  height: 50px;
  padding: 0 22px;
  border: 1px solid rgba(1, 49, 38, 0.15);
  border-radius: 999px;
  font-size: 16px;
  font-family: var(--hcw-font-sans, 'Nunito Sans', sans-serif);
  background: #fff;
  color: var(--hcw-ink, #013126);
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.hcw-finder-sec .hcw-accessory-finder__card input.hcw-accessory-finder__input:focus,
.hcw-accessory-finder__card .hcw-accessory-finder__input:focus,
.elementor .hcw-accessory-finder__input:focus,
.hcw-accessory-finder__input:focus {
  outline: 2px solid var(--hcw-mint, #58eda2);
  outline-offset: 2px;
  border-color: transparent;
}

.hcw-accessory-finder__submit {
  cursor: pointer;
  border: 0;
  flex-shrink: 0;
}

.hcw-accessory-finder__drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  border: 1px solid rgba(1, 49, 38, 0.1);
  border-radius: 16px;
  background: #faf9f7;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  z-index: 40;
}

.hcw-accessory-finder__drop[hidden] {
  display: none;
}

.hcw-accessory-finder__suggest {
  padding: 8px 0;
  list-style: none;
}

.hcw-accessory-finder__suggest li button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--hcw-ink, #013126);
}

.elementor .hcw-accessory-finder__suggest li button:hover,
.elementor .hcw-accessory-finder__suggest li button:focus-visible,
.hcw-accessory-finder__suggest li button:hover,
.hcw-accessory-finder__suggest li button:focus-visible {
  background: rgba(88, 237, 162, 0.2);
  color: var(--hcw-ink, #013126);
  outline: none;
}

.hcw-accessory-finder__hint {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hcw-muted, rgba(1, 49, 38, 0.55));
}

.hcw-accessory-finder__status {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--hcw-ink, #013126);
}

.hcw-accessory-finder__status.is-error {
  color: #9b2c2c;
}

.hcw-accessory-finder.is-loading .hcw-accessory-finder__submit {
  opacity: 0.7;
  pointer-events: none;
}

.hcw-accessory-finder__results {
  padding: 10px 12px 12px;
}

.hcw-accessory-finder__group + .hcw-accessory-finder__group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(1, 49, 38, 0.08);
}

.hcw-accessory-finder__group-title {
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(1, 49, 38, 0.65);
}

.hcw-accessory-finder__cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hcw-accessory-finder__product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(1, 49, 38, 0.08);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

a.hcw-accessory-finder__product-card:hover,
a.hcw-accessory-finder__product-card:focus-visible {
  border-color: var(--hcw-mint, #58eda2);
  background: rgba(88, 237, 162, 0.08);
  outline: none;
}

.hcw-accessory-finder__card-img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: #f3efe9;
}

.hcw-accessory-finder__card-body {
  flex: 1;
  min-width: 0;
}

.hcw-accessory-finder__product-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hcw-ink, #013126);
}

.hcw-accessory-finder__card-type {
  margin: 0;
  font-size: 13px;
  color: rgba(1, 49, 38, 0.65);
}

.hcw-accessory-finder__card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--hcw-ink, #013126);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hcw-accessory-finder__card-note {
  margin: 0;
  font-size: 13px;
  color: rgba(1, 49, 38, 0.7);
}

.hcw-accessory-finder__pick {
  padding: 4px 2px;
}

.hcw-accessory-finder__pick-lead {
  margin: 0 0 10px;
  padding: 0 6px;
  font-size: 15px;
}

.hcw-accessory-finder__pick-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hcw-accessory-finder__pick-btn {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(1, 49, 38, 0.12);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.hcw-accessory-finder__pick-btn:hover,
.hcw-accessory-finder__pick-btn:focus-visible {
  border-color: var(--hcw-mint, #58eda2);
  outline: none;
  box-shadow: 0 0 0 2px rgba(88, 237, 162, 0.35);
}

/* Replace legacy Elementor stud/pin block with CSV-backed UI */
body.home .hcw-finder-sec > .hcw-finder-grid:not(.hcw-accessory-finder) {
  display: none !important;
}

.hcw-finder-sec > .hcw-accessory-finder {
  display: grid;
}