.hcs-style-quiz-floating,
.hcs-style-quiz-inline-btn {
  border: 2px solid #111111;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 6px 6px 0 #f5b6c8;
  transition: 0.25s ease;
  font-family: inherit;
}

.hcs-style-quiz-floating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99998;
}

.hcs-style-quiz-floating:hover,
.hcs-style-quiz-inline-btn:hover {
  transform: translateY(-3px);
  box-shadow: 8px 8px 0 #f5b6c8;
}

.hcs-style-quiz-modal,
.hcs-style-quiz-modal * {
  box-sizing: border-box;
}

.hcs-style-quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  font-family: inherit;
}

.hcs-style-quiz-modal.hcs-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.hcs-style-quiz-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
}

.hcs-style-quiz-panel {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: 0;
  background: #fce9ed;
  border: 4px solid #111111;
  border-radius: 32px;
  box-shadow: 16px 16px 0 #f5b6c8;
}

.hcs-style-quiz-close {
  position: sticky;
  top: 14px;
  left: calc(100% - 54px);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #111111;
  background: #ffffff;
  color: #111111;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  margin: 14px 14px -52px auto;
}

.hcs-sq-screen {
  padding: 44px 34px 34px;
}

.hcs-sq-start {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 0 12px;
}

.hcs-sq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  box-shadow: 5px 5px 0 #f5b6c8;
  margin-bottom: 18px;
}

.hcs-sq-badge:before {
  content: "";
  width: 9px;
  height: 9px;
  background: #f26f92;
  border-radius: 50%;
}

.hcs-sq-start h2,
.hcs-sq-question h2,
.hcs-sq-results-head h2 {
  margin: 0;
  color: #111111;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -1.2px;
}

.hcs-sq-start p,
.hcs-sq-results-head p {
  margin: 14px auto 0;
  color: #222222;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 550;
  max-width: 680px;
}

.hcs-sq-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hcs-sq-btn {
  border: 2px solid #111111;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  transition: 0.25s ease;
}

.hcs-sq-btn-dark {
  background: #111111;
  color: #ffffff;
  box-shadow: 6px 6px 0 #f5b6c8;
}

.hcs-sq-btn-light {
  background: #ffffff;
  color: #111111;
}

.hcs-sq-btn:hover {
  transform: translateY(-2px);
}

.hcs-sq-progress {
  height: 8px;
  background: #ffffff;
  border: 2px solid #111111;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 26px;
}

.hcs-sq-progress span {
  display: block;
  height: 100%;
  background: #d94f73;
  width: 0%;
  transition: 0.25s ease;
}

.hcs-sq-question-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}

.hcs-sq-step {
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.hcs-sq-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.hcs-sq-option {
  text-align: left;
  background: #ffffff;
  border: 2px solid #111111;
  border-radius: 22px;
  padding: 18px;
  color: #111111;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
  cursor: pointer;
  transition: 0.2s ease;
  min-height: 82px;
  font-family: inherit;
}

.hcs-sq-option:hover,
.hcs-sq-option.hcs-selected {
  background: #111111;
  color: #ffffff;
  box-shadow: 7px 7px 0 #f5b6c8;
}

.hcs-sq-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.hcs-sq-loading {
  text-align: center;
  padding: 45px 10px;
  color: #111111;
  font-size: 18px;
  font-weight: 900;
}

.hcs-sq-results-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
}

.hcs-sq-results-title {
  color: #111111;
  font-size: 22px;
  font-weight: 900;
  margin: 26px 0 14px;
}

.hcs-sq-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hcs-sq-product {
  background: #ffffff;
  border: 2px solid #111111;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none !important;
  color: #111111;
  box-shadow: 0 14px 34px rgba(0,0,0,0.07);
  transition: 0.25s ease;
}

.hcs-sq-product:hover {
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 #f5b6c8;
}

.hcs-sq-product-img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  background: #ffffff;
  overflow: hidden;
}

.hcs-sq-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hcs-sq-product-info {
  padding: 12px;
}

.hcs-sq-rating {
  display: inline-flex;
  background: #fce9ed;
  color: #111111;
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
}

.hcs-sq-product h4 {
  margin: 0 0 8px;
  color: #111111;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.hcs-sq-price {
  color: #d94f73;
  font-size: 14px;
  font-weight: 950;
}

.hcs-sq-price ins {
  text-decoration: none;
}

.hcs-sq-price del {
  opacity: 0.45;
  font-size: 12px;
  color: #555555;
}

.hcs-sq-blogs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hcs-sq-blog,
.hcs-sq-empty {
  display: block;
  background: #ffffff;
  border: 2px solid #111111;
  border-radius: 20px;
  padding: 17px;
  text-decoration: none !important;
  color: #111111;
}

.hcs-sq-blog span {
  display: inline-flex;
  background: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 10px;
}

.hcs-sq-blog h4 {
  margin: 0 0 8px;
  color: #111111;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 900;
}

.hcs-sq-blog p,
.hcs-sq-empty {
  margin: 0;
  color: #333333;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 550;
}

@media (max-width: 768px) {
  .hcs-style-quiz-floating {
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
    font-size: 12px;
  }

  .hcs-style-quiz-modal.hcs-open {
    padding: 10px;
  }

  .hcs-style-quiz-panel {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 24px;
    border-width: 3px;
    box-shadow: 8px 8px 0 #f5b6c8;
  }

  .hcs-sq-screen {
    padding: 40px 18px 24px;
  }

  .hcs-sq-options,
  .hcs-sq-products,
  .hcs-sq-blogs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .hcs-sq-question-top {
    display: block;
  }

  .hcs-sq-step {
    display: inline-flex;
    margin-top: 12px;
  }

  .hcs-sq-option {
    min-height: 92px;
    padding: 14px;
    font-size: 13px;
    border-radius: 18px;
  }

  .hcs-sq-start h2,
  .hcs-sq-question h2,
  .hcs-sq-results-head h2 {
    font-size: 30px;
    letter-spacing: -0.8px;
  }

  .hcs-sq-start p,
  .hcs-sq-results-head p {
    font-size: 14px;
  }

  .hcs-sq-product h4 {
    font-size: 12px;
  }

  .hcs-sq-blog h4 {
    font-size: 13px;
  }
}


/* V3: auto-advance question navigation */
.hcs-sq-nav-back-only {
  justify-content: space-between;
  align-items: center;
}

.hcs-sq-auto-note {
  color: #333333;
  font-size: 13px;
  font-weight: 800;
  background: #ffffff;
  border: 2px solid rgba(17,17,17,0.12);
  border-radius: 999px;
  padding: 9px 13px;
}

@media (max-width: 520px) {
  .hcs-sq-auto-note {
    font-size: 11px;
    padding: 8px 10px;
  }
}
