.jps-shell,
.jps-shell[data-jps-search] {
  --jps-ink: #161616;
  --jps-muted: #5a4d40;
  --jps-accent: #d96a00;
  --jps-accent-strong: #ff9a1f;
  --jps-form-radius: 14px;
  --jps-submit-width: 68px;
  --jps-dropdown-offset: 10px;
  --jps-line: rgba(232, 145, 69, 0.22);
  --jps-metal-highlight: #fffdf9;
  --jps-metal-sheen: #f3ede3;
  --jps-metal-shadow-color: #dfd6ca;
  --jps-metal-border: rgba(67, 69, 73, 0.16);
  --jps-metal-surface:
    linear-gradient(138deg, rgba(255, 251, 246, 0.62) 2%, rgba(255, 242, 225, 0.24) 10%, rgba(255, 255, 255, 0) 20%),
    radial-gradient(ellipse 315% 270% at 18% 10%, rgba(255, 251, 244, 0.9) 0%, rgba(255, 241, 222, 0.68) 24%, rgba(255, 212, 162, 0.28) 52%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(circle at 50% 70%, rgba(232, 108, 0, 0.12) 0%, rgba(232, 108, 0, 0.03) 22%, rgba(232, 108, 0, 0) 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.14) 8%, rgba(255, 255, 255, 0) 17%, rgba(232, 108, 0, 0.03) 56%, rgba(90, 47, 11, 0.16) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 9%, rgba(255, 255, 255, 0) 18%, rgba(90, 47, 11, 0) 82%, rgba(90, 47, 11, 0.08) 100%),
    linear-gradient(180deg, #fef6ef 0%, #fbe7cb 18%, #f7d7aa 58%, #f1c78f 100%);
  --jps-metal-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 10px 24px rgba(255, 240, 220, 0.2),
    inset 0 -34px 50px rgba(217, 120, 15, 0.14),
    inset 24px 0 40px rgba(217, 120, 15, 0.09),
    inset -24px 0 40px rgba(217, 120, 15, 0.09),
    0 0 0 1px rgba(224, 139, 45, 0.12),
    0 10px 20px rgba(70, 42, 18, 0.14),
    0 22px 42px rgba(52, 30, 12, 0.2),
    0 18px 34px rgba(96, 58, 24, 0.14),
    0 0 30px rgba(56, 34, 15, 0.1);
  color: var(--jps-ink);
  font-family: inherit;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: min(100%, 560px);
  max-width: 100%;
  min-width: min(280px, 100%);
  margin: 0 auto;
}

.jps-shell[data-jps-search] > .jps-form,
.jps-shell[data-jps-search] > .jps-dropdown {
  grid-column: 1;
  min-width: 0;
  float: none !important;
}

.jps-shell[data-jps-search] > .jps-form {
  width: 100% !important;
  margin: 0;
}

.jps-shell[data-jps-search] > .jps-dropdown {
  width: calc(100% - var(--jps-submit-width) - var(--jps-dropdown-offset) - 20px);
  max-width: 100%;
  margin: -11px 10px 0 calc(var(--jps-submit-width) + (var(--jps-dropdown-offset) / 2) + 10px);
}

.jps-shell *,
.jps-shell *::before,
.jps-shell *::after {
  box-sizing: border-box;
}

.jps-shell .jps-form {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 0;
  border-radius: var(--jps-form-radius);
  border: 0;
  background: linear-gradient(180deg, #fffdf9 0%, #f8f4ee 36%, #ebe2d8 100%);
  box-shadow: 0 6px 16px rgba(24, 18, 12, 0.16);
  overflow: hidden;
}

.jps-shell .jps-form::after {
  content: attr(data-jps-year-hint);
  position: absolute;
  top: calc(50% + 2px);
  right: 16px;
  color: var(--jps-accent);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 180ms ease;
}

.jps-shell--year-hint .jps-form::after {
  opacity: 1;
}

.jps-shell .jps-form__icon {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: stretch;
  position: relative;
  left: -3px;
  min-width: var(--jps-submit-width);
  padding-left: 21px;
  height: auto;
  margin: 0;
  padding-right: 18px;
  border: 0;
  border-right: 1px solid rgba(95, 41, 5, 0.28);
  border-radius: 0;
  background: linear-gradient(115deg, #8a3600 0%, #b84a00 35%, var(--jps-accent) 70%, #ff9d4a 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -3px 10px rgba(0, 0, 0, 0.28),
    0 12px 24px rgba(217, 106, 0, 0.18);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.jps-shell .jps-form__icon svg {
  width: 21.6px;
  height: 21.6px;
  fill: currentColor;
  transition: opacity 180ms ease;
}

.jps-shell .jps-form__icon::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: opacity 160ms ease, transform 160ms ease;
}

.jps-shell .jps-form__icon:hover,
.jps-shell .jps-form__icon:focus-visible {
  outline: none;
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 22px rgba(232, 108, 0, 0.24),
    0 14px 26px rgba(217, 106, 0, 0.22);
  transform: none;
}

.jps-shell--submit-pending .jps-form__icon svg,
.jps-shell--loading .jps-form__icon svg {
  opacity: 0.28;
}

.jps-shell--submit-pending .jps-form__icon::after,
.jps-shell--loading .jps-form__icon::after {
  opacity: 1;
  transform: scale(1);
  animation: jps-spin 720ms linear infinite;
}

.jps-shell .jps-form input[type="text"],
.jps-shell .jps-form input[type="search"] {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 46px;
  padding: 0 18px 0 16px;
  border: 0;
  background: transparent;
  color: var(--jps-ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  box-shadow: none;
  writing-mode: horizontal-tb;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}

.jps-shell--year-hint .jps-form input[type="text"],
.jps-shell--year-hint .jps-form input[type="search"] {
  padding-right: 92px;
}

.jps-shell .jps-form input[type="text"]::placeholder,
.jps-shell .jps-form input[type="search"]::placeholder {
  color: rgba(22, 22, 22, 0.62);
}

.jps-shell .jps-form input[type="text"]:focus,
.jps-shell .jps-form input[type="search"]:focus {
  outline: none;
}

.jps-shell .jps-form input[type="search"]::-webkit-search-decoration,
.jps-shell .jps-form input[type="search"]::-webkit-search-cancel-button,
.jps-shell .jps-form input[type="search"]::-webkit-search-results-button,
.jps-shell .jps-form input[type="search"]::-webkit-search-results-decoration {
  display: none;
  -webkit-appearance: none;
}

.jps-dropdown {
  position: relative;
  z-index: 2;
  animation: jps-slide-down 220ms cubic-bezier(.22,.61,.36,1);
}

@keyframes jps-spin {
  to {
    transform: rotate(360deg) scale(1);
  }
}

.jps-dropdown[hidden] {
  display: none !important;
}

.jps-dropdown__inner {
  display: block;
  width: 100%;
  padding: 11px 0 8px;
  border: 1px solid rgba(67, 69, 73, 0.12);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: rgba(255, 249, 242, 0.98);
  box-shadow: 0 14px 26px rgba(24, 18, 12, 0.16);
  overflow: hidden;
}

.jps-dropdown__title {
  margin: 0;
  padding: 0 14px 7px;
  color: var(--jps-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.jps-dropdown__message {
  margin: 0;
  padding: 4px 14px 8px;
  color: var(--jps-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.jps-dropdown__message-accent {
  color: var(--jps-accent);
  font-weight: 900;
}

.jps-dropdown__list {
  display: grid;
  gap: 1px;
}

.jps-suggestion,
.jps-result-card {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.jps-suggestion:hover,
.jps-suggestion:focus-visible,
.jps-suggestion--active,
.jps-result-card:hover,
.jps-result-card:focus-visible {
  outline: none;
  background: rgba(232, 108, 0, 0.08);
  color: var(--jps-ink);
  transform: none;
}

.jps-suggestion__tag,
.jps-result-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 0.32rem 0.52rem;
  border: 1px solid rgba(217, 106, 0, 0.18);
  border-radius: 8px;
  background: rgba(232, 108, 0, 0.1);
  color: var(--jps-accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.jps-suggestion__body,
.jps-result-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jps-suggestion__title,
.jps-result-card__title {
  color: var(--jps-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.jps-suggestion__copy,
.jps-result-card__copy {
  color: var(--jps-muted);
  font-size: 12px;
  line-height: 1.35;
}

.jps-suggestion__arrow,
.jps-result-card__arrow {
  color: var(--jps-accent);
  font-size: 24px;
  line-height: 1;
}

.jps-answer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin: 0 10px 9px;
  padding: 11px 12px;
  border: 1px solid rgba(84, 57, 34, 0.14);
  border-left: 4px solid var(--jps-accent);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 244, 232, 0.96));
  box-shadow: 0 8px 18px rgba(24, 18, 12, 0.08);
}

.jps-answer-card--link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.jps-answer-card--link:hover,
.jps-answer-card--link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(228, 111, 14, 0.35);
  box-shadow: 0 12px 24px rgba(24, 18, 12, 0.12);
}

.jps-answer-card__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 24px;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(67, 69, 73, 0.08);
  color: var(--jps-ink);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.jps-answer-card__body {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.jps-answer-card__question {
  color: var(--jps-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.jps-answer-card__answer {
  color: var(--jps-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.jps-feedback {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(214, 148, 53, 0.26);
  background: rgba(255, 249, 242, 0.96);
  box-shadow: 0 8px 18px rgba(24, 18, 12, 0.1);
}

.jps-feedback--warning {
  border-color: rgba(214, 148, 53, 0.36);
}

.jps-feedback--success {
  border-color: rgba(105, 153, 96, 0.32);
}

.jps-feedback__title {
  margin: 0;
  color: var(--jps-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.jps-feedback__copy {
  margin: 4px 0 0;
  color: var(--jps-muted);
  font-size: 13px;
  line-height: 1.4;
}

@keyframes jps-slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jps-product-fitment-link {
  --jps-fitment-orange: #e86c00;
  --jps-fitment-hover-text: #434549;
  --jps-fitment-breath: 4.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: max-content;
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(115deg, #8a3600 0%, #b84a00 35%, var(--jps-fitment-orange) 70%, #ff9d4a 100%);
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.25px;
  line-height: 1;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -3px 10px rgba(0, 0, 0, 0.55),
    0 18px 45px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform-origin: center;
  isolation: isolate;
  animation: jopicBreath var(--jps-fitment-breath) ease-in-out infinite;
  transition: all 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

.jps-product-fitment-link:hover,
.jps-product-fitment-link:focus {
  background: linear-gradient(115deg, #ffffff 0%, #ffd7b0 30%, #ff9947 65%, var(--jps-fitment-orange) 100%);
  color: var(--jps-fitment-hover-text);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 26px rgba(232, 108, 0, 0.35),
    0 24px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(-3px) scale(1.03);
}

.jps-product-fitment-link:active {
  animation: none;
  filter: brightness(0.98);
  transform: translateY(0) scale(0.92);
}

.jps-product-fitment-link::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
}

.jps-product-fitment-link:active::after {
  animation: jopicClickFlash 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.jps-product-fitment-link::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
}

.jps-product-fitment-link:active::before {
  animation: jopicRipple 0.55s ease-out both;
}

@keyframes jopicBreath {
  0% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-3px) scale(1.02);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes jopicRipple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }

  15% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

@keyframes jopicClickFlash {
  0% {
    opacity: 0;
    transform: scale(0.25);
  }

  30% {
    opacity: 0.9;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jps-product-fitment-link,
  .jps-product-fitment-link::before,
  .jps-product-fitment-link::after {
    animation: none !important;
  }
}

@media (max-width: 780px) {
  .jps-shell,
  .jps-shell[data-jps-search] {
    --jps-submit-width: 56px;
    --jps-dropdown-offset: 8px;
  }

  .jps-shell .jps-form__icon {
    padding: 0 12px;
  }

  .jps-form input[type="text"] {
    font-size: 15px;
    height: 46px;
    padding: 0 14px 0 12px;
  }

  .jps-result-card {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .jps-result-card__tag {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
