.tb-pet-quiz {
  --tb-product-card-divider: #e5e7eb;
  --tb-product-card-hover: #00a046;
  --tb-pet-ink: #172033;
  --tb-pet-muted: #667085;
  --tb-pet-line: #d9e1e8;
  --tb-pet-soft: #f5f8fb;
  --tb-pet-panel: #ffffff;
  --tb-pet-green: #15765e;
  --tb-pet-blue: #1d4f91;
  --tb-pet-warm: #f2a641;
  color: var(--tb-pet-ink);
  margin: 0 auto 48px;
  max-width: 1760px;
  padding: 0 16px;
}

body.tb-pet-quiz-page .woocommerce-breadcrumb {
  display: none;
}

body.tb-pet-quiz-page.ast-separate-container .ast-woocommerce-container,
body.tb-pet-quiz-page .ast-woocommerce-container {
  padding-top: 10px;
}

.tb-pet-quiz__breadcrumbs {
  color: var(--tb-pet-muted);
  font-size: 13px;
  line-height: 1.3;
  margin: 0 0 10px;
}

.tb-pet-quiz__breadcrumbs ol {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tb-pet-quiz__breadcrumbs li {
  align-items: center;
  display: inline-flex;
  min-width: 0;
}

.tb-pet-quiz__breadcrumbs li:not(:last-child)::after {
  color: #9aa5b1;
  content: "/";
  margin-left: 6px;
}

.tb-pet-quiz__breadcrumbs a {
  color: #2264a8;
  text-decoration: none;
}

.tb-pet-quiz__breadcrumbs a:hover,
.tb-pet-quiz__breadcrumbs a:focus {
  color: #0f5b49;
  text-decoration: underline;
}

.tb-pet-quiz__hero {
  align-items: center;
  background: linear-gradient(135deg, #172033 0%, #1d4f91 48%, #15765e 100%);
  border-radius: 8px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  min-height: 292px;
  overflow: hidden;
  padding: 36px 42px;
  position: relative;
}

.tb-pet-quiz__hero-copy {
  color: #fff;
  max-width: 740px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.tb-pet-quiz__eyebrow {
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.tb-pet-quiz__hero h1 {
  color: #fff;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.06;
  margin: 0 0 12px;
  max-width: 720px;
}

.tb-pet-quiz__hero-lede {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.45;
  max-width: 650px;
  margin: 0;
}

.tb-pet-quiz__hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
}

.tb-pet-quiz__hero-perks span {
  align-items: center;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  gap: 7px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.2;
}

.tb-pet-quiz__hero-perks span::before {
  background: #f2a641;
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 7px;
  width: 7px;
}

.tb-pet-quiz__hero-art {
  align-self: end;
  justify-self: end;
  margin: -36px -28px -30px 0;
  max-width: 620px;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 1;
}

.tb-pet-quiz__hero-art img {
  display: block;
  height: auto;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

.tb-pet-quiz__layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  margin-top: 16px;
}

.tb-pet-quiz__form,
.tb-pet-quiz__results {
  background: var(--tb-pet-panel);
  border: 1px solid var(--tb-pet-line);
  border-radius: 8px;
}

.tb-pet-quiz__form {
  counter-reset: tb-pet-step;
  display: grid;
  gap: 0;
  overflow: hidden;
}

.tb-pet-quiz__group {
  border: 0;
  border-bottom: 1px solid var(--tb-pet-line);
  counter-increment: tb-pet-step;
  margin: 0;
  min-width: 0;
  padding: 18px;
}

.tb-pet-quiz__group:last-child {
  border-bottom: 0;
}

.tb-pet-quiz__group legend {
  color: var(--tb-pet-ink);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 0;
}

.tb-pet-quiz__group legend::before {
  color: var(--tb-pet-green);
  content: counter(tb-pet-step) ". ";
  font-weight: 800;
}

.tb-pet-quiz__options {
  display: grid;
  gap: 8px;
}

.tb-pet-quiz__option {
  align-items: center;
  background: var(--tb-pet-soft);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--tb-pet-ink);
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 650;
  justify-content: space-between;
  line-height: 1.25;
  min-height: 44px;
  padding: 10px 12px;
  text-align: left;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  width: 100%;
}

.tb-pet-quiz__option::after {
  border: 2px solid currentColor;
  border-left: 0;
  border-top: 0;
  content: "";
  height: 11px;
  opacity: 0;
  transform: rotate(45deg);
  width: 6px;
}

.tb-pet-quiz__option:hover,
.tb-pet-quiz__option:focus-visible {
  border-color: #a8bfd2;
  outline: 0;
}

.tb-pet-quiz__option.is-active {
  background: #e8f3ee;
  border-color: var(--tb-pet-green);
  color: #0f5b49;
}

.tb-pet-quiz__option.is-active::after {
  opacity: 1;
}

.tb-pet-quiz__option:disabled {
  cursor: wait;
  opacity: 0.65;
}

.tb-pet-quiz__option[hidden] {
  display: none !important;
}

.tb-pet-quiz__guide {
  display: none;
}

.tb-pet-quiz__options--weights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tb-pet-quiz__results {
  min-height: 420px;
  padding: 16px;
}

.tb-pet-quiz__results-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.tb-pet-quiz__results h2 {
  font-size: 26px;
  line-height: 1.16;
  margin: 0;
}

.tb-pet-quiz__results .tb-pet-quiz__eyebrow {
  color: var(--tb-pet-green);
}

.tb-pet-quiz__status {
  color: var(--tb-pet-muted);
  margin: 0 0 18px;
}

.tb-pet-quiz__disclaimer {
  background: #fff8e6;
  border: 1px solid #efd38f;
  border-radius: 8px;
  color: #684a08;
  font-size: 13px;
  line-height: 1.45;
  margin: -4px 0 18px;
  padding: 10px 12px;
}

.tb-pet-quiz__disclaimer[hidden] {
  display: none !important;
}

.tb-pet-quiz__sections {
  display: grid;
  gap: 20px;
}

.tb-pet-result-section {
  display: grid;
  gap: 12px;
}

.tb-pet-result-section__head {
  display: grid;
  gap: 4px;
}

.tb-pet-result-section__head h3 {
  color: var(--tb-pet-ink);
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.tb-pet-result-section__head p {
  color: var(--tb-pet-muted);
  font-size: 14px;
  line-height: 1.35;
  margin: 0;
}

.tb-pet-result-section--exact_match,
.tb-pet-result-section--exact_match_cat,
.tb-pet-result-section--exact_match_dog,
.tb-pet-result-section--exact_match_both {
  background: #f2f9f5;
  border: 1px solid #bfdfcf;
  border-radius: 8px;
  margin: -4px;
  padding: 14px;
}

.tb-pet-quiz__grid {
  display: grid;
  align-items: stretch;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 0 0 1px;
}

.tb-pet-section-load-more {
  align-items: center;
  background: #fff;
  border: 1px solid var(--tb-pet-green);
  border-radius: 8px;
  color: var(--tb-pet-green);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 750;
  justify-content: center;
  justify-self: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 10px 18px;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.tb-pet-section-load-more:hover,
.tb-pet-section-load-more:focus {
  background: #eef8f3;
  color: var(--tb-pet-green);
}

.tb-pet-section-load-more:disabled {
  cursor: wait;
  opacity: 0.68;
}

.tb-pet-quiz__end {
  align-items: center;
  background: #f8fafb;
  border: 1px dashed var(--tb-pet-line);
  border-radius: 8px;
  color: var(--tb-pet-muted);
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 16px;
  text-align: center;
}

.tb-pet-quiz__end p {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.tb-pet-quiz__to-top {
  background: var(--tb-pet-green);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  min-height: 34px;
  padding: 9px 16px;
}

.tb-pet-quiz__to-top:hover,
.tb-pet-quiz__to-top:focus {
  background: #0f5b49;
  color: #fff;
}

.tb-pet-card {
  background: #fff;
  border: 1px solid var(--tb-product-card-divider);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: auto;
  margin: -1px 0 0 -1px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.tb-pet-card:nth-child(-n+3) {
  border-top: 0;
}

.tb-pet-card:hover,
.tb-pet-card:focus-within {
  border-color: var(--tb-product-card-hover);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  z-index: 2;
}

.tb-pet-card .tb-favorite-toggle.tb-pet-card__favorite {
  top: 8px;
  right: 8px;
}

.tb-pet-card__image {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  overflow: hidden;
}

.tb-pet-card__image img {
  height: 100%;
  object-fit: contain;
  padding: 10px;
  width: 100%;
}

.tb-pet-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.tb-pet-card__role {
  color: var(--tb-pet-green);
  font-size: 12px;
  font-weight: 750;
  margin: 0;
  text-transform: uppercase;
}

.tb-pet-card h3 {
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
}

.tb-pet-card h3 a {
  color: var(--tb-pet-ink);
  font-size: inherit;
  line-height: inherit;
}

.tb-pet-card__meta {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 34px;
  margin-top: auto;
}

.tb-pet-card__price {
  color: var(--tb-pet-ink);
  font-weight: 800;
  line-height: 1.08;
  min-width: 0;
}

.tb-pet-card__price del {
  color: var(--tb-pet-muted);
  display: block;
  font-size: 0.72em;
  font-weight: 650;
  line-height: 1.05;
  margin-bottom: 2px;
  text-decoration-thickness: 1px;
}

.tb-pet-card__price ins {
  display: block;
  text-decoration: none;
}

.tb-pet-card__price .woocommerce-Price-amount,
.tb-pet-card__price bdi {
  font-size: inherit;
  line-height: inherit;
}

.tb-pet-card__cart {
  align-items: center;
  align-self: center;
  background: var(--tb-pet-green);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  justify-self: end;
  padding: 0;
  text-decoration: none;
  width: 34px;
}

.tb-pet-card__cart:hover,
.tb-pet-card__cart:focus {
  background: #0f5b49;
  color: #fff;
  text-decoration: none;
}

.tb-pet-card__cart-icon {
  display: block;
  height: 18px;
  margin: 0 !important;
  object-fit: contain;
  width: 18px !important;
}

.tb-pet-card__meta > .added_to_cart.wc-forward {
  display: none;
}

.tb-pet-card__flag {
  background: #fff4db;
  border: 1px solid #f1c874;
  border-radius: 6px;
  color: #76520b;
  font-size: 12px;
  font-weight: 700;
  grid-column: 1 / -1;
  justify-self: start;
  line-height: 1.2;
  padding: 4px 6px;
}

.tb-pet-quiz__empty {
  background: var(--tb-pet-soft);
  border: 1px dashed var(--tb-pet-line);
  border-radius: 8px;
  color: var(--tb-pet-muted);
  grid-column: 1 / -1;
  padding: 22px;
  text-align: center;
}

.tb-pet-quiz.is-loading .tb-pet-quiz__results {
  opacity: 0.72;
}

@media (min-width: 981px) {
  body.tb-pet-quiz-page #content .ast-container,
  body.tb-pet-quiz-page .site-content .ast-container {
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
  }

  body.tb-pet-quiz-page.ast-separate-container .ast-woocommerce-container,
  body.tb-pet-quiz-page .ast-woocommerce-container {
    padding: 10px 0 32px;
  }

  .tb-pet-quiz__form {
    max-height: calc(100vh - 96px);
    overflow-x: hidden;
    overflow-y: auto;
    position: sticky;
    top: 84px;
  }

  .tb-pet-quiz__results {
    border-radius: 0;
  }

  .tb-pet-quiz__guide {
    background: #f8fafb;
    border-top: 1px solid var(--tb-pet-line);
    color: var(--tb-pet-muted);
    display: block;
    padding: 16px 18px 18px;
  }

  .tb-pet-quiz__guide h3 {
    color: var(--tb-pet-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
  }

  .tb-pet-quiz__guide ol {
    display: grid;
    gap: 8px;
    list-style: decimal;
    margin: 0;
    padding-left: 18px;
  }

  .tb-pet-quiz__guide li {
    font-size: 13px;
    line-height: 1.35;
    padding-left: 2px;
  }
}

@media (min-width: 1640px) {
  .tb-pet-quiz__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tb-pet-card:nth-child(-n+5) {
    border-top: 0;
  }
}

@media (max-width: 980px) {
  .tb-pet-quiz__hero {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 36%);
    min-height: 244px;
    padding: 30px 28px;
  }

  .tb-pet-quiz__hero-lede {
    font-size: 16px;
    line-height: 1.4;
  }

  .tb-pet-quiz__hero-art {
    margin: -26px -20px -22px 0;
    max-width: 430px;
  }

  .tb-pet-quiz__layout {
    grid-template-columns: 1fr;
  }

  .tb-pet-quiz__form {
    position: static;
  }

  .tb-pet-quiz__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-pet-card:nth-child(-n+3) {
    border-top: 1px solid var(--tb-product-card-divider);
  }

  .tb-pet-card:nth-child(-n+2) {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  body.tb-pet-quiz-page #content,
  body.tb-pet-quiz-page .site-content {
    padding-top: 0;
  }

  body.tb-pet-quiz-page #content .ast-container,
  body.tb-pet-quiz-page .site-content .ast-container {
    max-width: 100%;
    padding-left: 4px;
    padding-right: 4px;
  }

  body.tb-pet-quiz-page.ast-separate-container .ast-woocommerce-container,
  body.tb-pet-quiz-page .ast-woocommerce-container {
    padding: 4px 2px 14px;
  }

  .tb-pet-quiz {
    margin-bottom: 20px;
    padding: 0;
  }

  .tb-pet-quiz__breadcrumbs {
    font-size: 11px;
    margin: 0 4px 6px;
  }

  .tb-pet-quiz__hero {
    align-items: start;
    gap: 2px;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 13px 12px 7px;
  }

  .tb-pet-quiz__hero-copy {
    max-width: none;
    width: 100%;
  }

  .tb-pet-quiz__eyebrow {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .tb-pet-quiz__hero h1 {
    font-size: 21px;
    line-height: 1.08;
    margin-bottom: 6px;
  }

  .tb-pet-quiz__hero-lede {
    display: block;
    font-size: 12px;
    line-height: 1.25;
  }

  .tb-pet-quiz__hero-perks {
    gap: 5px 10px;
    margin-top: 8px;
  }

  .tb-pet-quiz__hero-perks span {
    font-size: 10px;
    gap: 5px;
  }

  .tb-pet-quiz__hero-perks span::before {
    height: 5px;
    width: 5px;
  }

  .tb-pet-quiz__hero-art {
    align-self: end;
    justify-self: center;
    margin: 0 auto -13px;
    max-width: 72%;
    width: 238px;
  }

  .tb-pet-quiz__layout {
    gap: 8px;
    margin-top: 8px;
  }

  .tb-pet-quiz__form {
    border-radius: 8px;
  }

  .tb-pet-quiz__group {
    border-bottom: 1px solid var(--tb-pet-line);
    padding: 8px 10px;
  }

  .tb-pet-quiz__group:last-child {
    border-bottom: 0;
  }

  .tb-pet-quiz__group legend {
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .tb-pet-quiz__options {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  }

  .tb-pet-quiz__option {
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.15;
    min-height: 36px;
    padding: 7px 8px;
    white-space: normal;
    width: 100%;
  }

  .tb-pet-quiz__option::after {
    height: 8px;
    margin-left: 8px;
    width: 4px;
  }

  .tb-pet-quiz__options--weights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-pet-quiz__options--weights .tb-pet-quiz__option {
    justify-content: space-between;
    width: 100%;
  }

  .tb-pet-quiz__results-head {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
  }

  .tb-pet-quiz__results {
    background: transparent;
    border: 0;
    min-height: 0;
    padding: 0;
  }

  .tb-pet-quiz__results .tb-pet-quiz__eyebrow {
    display: none;
  }

  .tb-pet-quiz__results h2 {
    font-size: 18px;
    line-height: 1.18;
  }

  .tb-pet-quiz__status {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .tb-pet-quiz__disclaimer {
    font-size: 11px;
    line-height: 1.35;
    margin: -2px 0 8px;
    padding: 7px 8px;
  }

  .tb-pet-quiz__sections {
    gap: 14px;
  }

  .tb-pet-result-section {
    gap: 8px;
  }

  .tb-pet-result-section__head h3 {
    font-size: 16px;
    line-height: 1.2;
  }

  .tb-pet-result-section__head p {
    font-size: 12px;
  }

  .tb-pet-result-section--exact_match,
  .tb-pet-result-section--exact_match_cat,
  .tb-pet-result-section--exact_match_dog,
  .tb-pet-result-section--exact_match_both {
    margin: 0;
    padding: 9px;
  }

  .tb-pet-quiz__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tb-pet-section-load-more {
    font-size: 12px;
    min-height: 38px;
    padding: 8px 12px;
    width: 100%;
  }

  .tb-pet-quiz__end {
    gap: 8px;
    padding: 12px 10px;
  }

  .tb-pet-quiz__end p {
    font-size: 13px;
  }

  .tb-pet-quiz__to-top {
    font-size: 12px;
    min-height: 32px;
    padding: 8px 14px;
  }

  .tb-pet-card {
    border-radius: 0;
  }

  .tb-pet-card:nth-child(-n+3) {
    border-top: 1px solid var(--tb-product-card-divider);
  }

  .tb-pet-card:nth-child(-n+2) {
    border-top: 0;
  }

  .tb-pet-card:hover,
  .tb-pet-card:focus-within {
    box-shadow: none;
  }

  .tb-pet-card .tb-favorite-toggle.tb-pet-card__favorite {
    top: 6px;
    right: 6px;
    height: 28px;
    width: 28px;
  }

  .tb-pet-card__image {
    aspect-ratio: 4 / 3;
  }

  .tb-pet-card__image img {
    padding: 8px;
  }

  .tb-pet-card__body {
    gap: 5px;
    padding: 8px;
  }

  .tb-pet-card__role {
    font-size: 10px;
    line-height: 1.1;
  }

  body.tb-pet-quiz-page .tb-pet-card h3 {
    display: -webkit-box;
    font-size: 10px;
    line-height: 1.16;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  body.tb-pet-quiz-page .tb-pet-card h3 a {
    font-size: inherit;
    line-height: inherit;
  }

  .tb-pet-card__meta {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 30px;
  }

  body.tb-pet-quiz-page .tb-pet-card__price {
    font-size: 13px;
    line-height: 1.05;
  }

  body.tb-pet-quiz-page .tb-pet-card__price .woocommerce-Price-amount,
  body.tb-pet-quiz-page .tb-pet-card__price bdi {
    font-size: inherit !important;
    line-height: inherit;
  }

  .tb-pet-card__cart {
    height: 30px;
    width: 30px;
  }

  .tb-pet-card__cart-icon {
    height: 15px;
    width: 15px !important;
  }

  .tb-pet-card__flag {
    font-size: 10px;
    padding: 3px 5px;
  }
}
