.atp-parts-search {
  padding: 76px 0;
  background: #f4f7fa;
  color: #16233b;
}

/* Mobirise viewport animations must not hide interactive search controls. */
.atp-parts-search *,
.atp-parts-search *::before,
.atp-parts-search *::after {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
}

.atp-parts-search .atp-parts-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.atp-parts-search .atp-parts-kicker {
  margin: 0 0 10px;
  color: #39847a;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.atp-parts-search h2 {
  margin: 0 0 14px;
  color: #13287d;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.1;
  letter-spacing: 0;
}

.atp-parts-search .atp-parts-intro {
  margin: 0;
  color: #53627a;
  font-size: 18px;
  line-height: 1.7;
}

.atp-parts-tool {
  padding: 28px;
  border: 1px solid #d7e0e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 31, 66, .09);
}

.atp-parts-label {
  display: block;
  margin-bottom: 8px;
  color: #16233b;
  font-weight: 800;
}

.atp-parts-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.atp-parts-input-wrap {
  position: relative;
  min-width: 0;
}

.atp-parts-search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 22px;
  height: 22px;
  color: #53627a;
  transform: translateY(-50%);
  pointer-events: none;
}

.atp-parts-search-icon circle,
.atp-parts-search-icon path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.atp-parts-input {
  width: 100%;
  min-height: 56px;
  padding: 13px 52px 13px 52px;
  border: 2px solid #aebaca;
  border-radius: 6px;
  background: #fff;
  color: #16233b;
  font: inherit;
  font-size: 17px;
}

.atp-parts-input:focus {
  border-color: #39847a;
  outline: 4px solid rgba(57, 132, 122, .16);
}

.atp-parts-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #53627a;
  cursor: pointer;
  transform: translateY(-50%);
}

.atp-parts-clear:hover,
.atp-parts-clear:focus-visible {
  background: #edf1f5;
  color: #13287d;
}

.atp-parts-clear svg,
.atp-parts-copy svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.atp-parts-copy {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 0;
  border-radius: 5px;
  background: #13287d;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.atp-parts-copy svg {
  width: 20px;
  height: 20px;
}

.atp-parts-copy:hover:not(:disabled),
.atp-parts-copy:focus-visible:not(:disabled) {
  background: #0c183b;
}

.atp-parts-copy:disabled {
  background: #d8dee7;
  color: #687386;
  cursor: not-allowed;
}

.atp-parts-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 0;
  color: #53627a;
  font-size: 14px;
}

.atp-parts-meta p {
  margin: 0;
}

.atp-parts-status {
  font-weight: 700;
}

.atp-parts-results {
  max-height: 520px;
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
}

.atp-parts-result-button {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #dce3eb;
  border-left: 5px solid #b9c4d1;
  border-radius: 4px;
  background: #fff;
  color: #16233b;
  text-align: left;
  cursor: pointer;
}

.atp-parts-result-button:hover,
.atp-parts-result-button:focus-visible {
  border-color: #39847a;
  border-left-color: #39847a;
  outline: 3px solid rgba(57, 132, 122, .13);
}

.atp-parts-result.is-exact .atp-parts-result-button {
  border-color: #0c183b;
  border-left-color: #ffe52c;
  background: #0c183b;
  color: #fff;
}

.atp-parts-exact-badge {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 3px;
  background: #ffe52c;
  color: #151515;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.atp-parts-empty {
  margin-top: 22px;
  padding: 24px;
  border-left: 5px solid #ffe52c;
  background: #f4f7fa;
}

.atp-parts-empty p {
  margin: 0 0 12px;
}

.atp-parts-empty a {
  font-weight: 800;
}

.atp-parts-search [hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .atp-parts-search {
    padding: 54px 0;
  }

  .atp-parts-tool {
    padding: 20px 16px;
  }

  .atp-parts-controls {
    grid-template-columns: 1fr;
  }

  .atp-parts-copy {
    width: 100%;
  }

  .atp-parts-meta {
    display: block;
  }

  .atp-parts-meta p + p {
    margin-top: 6px;
  }

  .atp-parts-result-button {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atp-parts-search * {
    scroll-behavior: auto !important;
  }
}
