/*
 * Product support surfaces shared with the approved preview.
 * This file only styles WooCommerce-native reviews and theme-owned FAQ,
 * related/footer markup; it does not replace commerce behaviour.
 */

.gp-preview-product-page .gp-product-v5-included {
  align-items: center;
  background: var(--pilot-soft);
  border: 1px solid color-mix(in srgb, var(--pilot-accent) 16%, transparent);
  border-radius: 1.9rem;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  width: 100%;
}

.gp-preview-product-page .gp-product-v5-included figure {
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.gp-preview-product-page .gp-product-v5-included figure img {
  aspect-ratio: 1;
  border-radius: 1.35rem;
  display: block;
  object-fit: contain;
  width: 100%;
}

.gp-preview-product-page .gp-product-v5-included h2 {
  color: var(--pilot-accent-dark);
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  letter-spacing: -0.065em;
  line-height: 0.95;
  margin: 0;
  max-width: 8ch;
}

.gp-preview-product-page .gp-product-v5-included > div > p:not(.gp-product-v5-included__eyebrow) {
  color: var(--gp-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.gp-preview-product-page .gp-product-v5-included__eyebrow {
  display: none;
}

.gp-preview-product-page .gp-product-v5-included ul {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
}

.gp-preview-product-page .gp-product-v5-included li {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.gp-preview-product-page .gp-product-v5-included li span {
  align-items: center;
  background: var(--pilot-accent);
  border-radius: 50%;
  color: var(--pilot-accent-contrast);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.gp-preview-product-page .gp-product-v5-included li strong {
  color: var(--pilot-accent-dark);
  font-size: 0.92rem;
}

.gp-editorial-pilot-active--control .gp-product-v5-included {
  background: #edf2f7;
  border-color: rgba(38, 103, 255, 0.18);
}

.gp-editorial-pilot-active--control .gp-product-v5-included h2,
.gp-editorial-pilot-active--control .gp-product-v5-included li strong {
  color: #071a33;
}

.gp-editorial-pilot-active--control .gp-product-v5-included > div > p:not(.gp-product-v5-included__eyebrow) {
  color: #5e6672;
}

.gp-editorial-pilot-active--control .gp-product-v5-included li span {
  background: #0a84ff;
  color: #fff;
}

.gp-editorial-pilot-active--attack .gp-product-v5-included {
  background: #310811;
  border-color: #ff2d55;
}

.gp-editorial-pilot-active--attack .gp-product-v5-included h2,
.gp-editorial-pilot-active--attack .gp-product-v5-included li strong {
  color: #fff;
}

.gp-editorial-pilot-active--attack .gp-product-v5-included > div > p:not(.gp-product-v5-included__eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.gp-editorial-pilot-active--attack .gp-product-v5-included li span {
  background: #ff2d55;
  color: #fff;
}

.gp-preview-product-page .gp-preview-product-faqs {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.gp-preview-product-page .gp-preview-product-faqs > h2 {
  color: var(--pilot-ink);
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 52rem;
}

.gp-preview-product-page .gp-preview-product-faqs__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.gp-preview-product-page .gp-preview-product-faq {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--pilot-accent) 24%, #e6e6e6);
  border-radius: 1.5rem;
  box-shadow: none;
  min-height: 15rem;
  padding: 1.5rem;
}

.gp-preview-product-page .gp-preview-product-faq__icon {
  align-items: center;
  background: var(--pilot-accent-dark);
  border: 0.24rem solid var(--pilot-soft-strong);
  border-radius: 50%;
  box-shadow: none;
  color: var(--pilot-accent);
  display: flex;
  font-size: 1rem;
  font-weight: 1000;
  height: 2.6rem;
  justify-content: center;
  margin-bottom: 2rem;
  width: 2.6rem;
}

.gp-preview-product-page .gp-preview-product-faq h3 {
  color: #1d1d1f;
  font-size: 1.3rem;
  line-height: 1.1;
  margin: 0;
}

.gp-preview-product-page .gp-preview-product-faq p {
  color: var(--gp-muted);
  line-height: 1.65;
  margin: 1rem 0 0;
}

.gp-preview-product-page .gp-preview-product-reviews {
  background: #0b0d10;
  border: 1px solid color-mix(in srgb, var(--pilot-accent) 34%, transparent);
  border-radius: var(--gp-radius);
  border-top: 0.3rem solid var(--pilot-accent);
  box-shadow: none;
  color: #fff;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.gp-preview-product-page .gp-preview-product-reviews > .gp-section-heading {
  align-items: end;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
  margin-bottom: 1.5rem;
}

.gp-preview-product-page .gp-preview-product-reviews h2,
.gp-preview-product-page .gp-preview-product-reviews .gp-section-heading p {
  color: #fff;
}

.gp-preview-product-page .gp-preview-product-reviews .gp-section-heading p {
  margin: 0;
  opacity: 0.72;
}

.gp-preview-product-page .gp-preview-product-reviews .woocommerce-Reviews,
.gp-preview-product-page .gp-preview-product-reviews #review_form_wrapper,
.gp-preview-product-page .gp-preview-product-reviews #review_form {
  margin: 0;
}

.gp-preview-product-page .gp-preview-product-reviews .woocommerce-Reviews-title,
.gp-preview-product-page .gp-preview-product-reviews .woocommerce-noreviews {
  display: none;
}

.gp-preview-product-page .gp-preview-product-reviews #comments:empty,
.gp-preview-product-page .gp-preview-product-reviews #comments:not(:has(.commentlist)) {
  display: none;
}

.gp-preview-product-page .gp-preview-product-reviews #review_form_wrapper {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid color-mix(in srgb, var(--pilot-accent) 30%, rgba(255, 255, 255, 0.12));
  border-radius: 1.25rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
}

.gp-preview-product-page .gp-preview-product-reviews .comment-reply-title {
  color: #fff;
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.gp-preview-product-page .gp-preview-product-reviews .comment-form {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.gp-preview-product-page .gp-preview-product-reviews .comment-notes,
.gp-preview-product-page .gp-preview-product-reviews .comment-form-cookies-consent,
.gp-preview-product-page .gp-preview-product-reviews .gp-review-policy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

.gp-preview-product-page .gp-preview-product-reviews .comment-form label {
  color: #fff;
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  margin-bottom: 0.35rem;
}

.gp-preview-product-page .gp-preview-product-reviews select,
.gp-preview-product-page .gp-preview-product-reviews textarea,
.gp-preview-product-page .gp-preview-product-reviews input[type="text"],
.gp-preview-product-page .gp-preview-product-reviews input[type="email"] {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.55rem;
  color: #111;
  font: inherit;
  min-height: 2.9rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}

.gp-preview-product-page .gp-preview-product-reviews textarea {
  min-height: 8rem;
  resize: vertical;
}

.gp-preview-product-page .gp-preview-product-reviews select:focus,
.gp-preview-product-page .gp-preview-product-reviews textarea:focus,
.gp-preview-product-page .gp-preview-product-reviews input:focus {
  border-color: var(--pilot-accent);
  outline: 0.18rem solid color-mix(in srgb, var(--pilot-accent) 32%, transparent);
}

.gp-preview-product-page .gp-preview-product-reviews .form-submit {
  margin: 0;
}

.gp-preview-product-page .gp-preview-product-reviews .form-submit .submit {
  background: var(--pilot-accent);
  border: 1px solid var(--pilot-accent);
  border-radius: 999px;
  color: var(--pilot-accent-contrast);
  cursor: pointer;
  font-weight: 900;
  min-height: 2.9rem;
  padding: 0.75rem 1.2rem;
  width: 100%;
}

.gp-preview-product-page .gp-preview-product-reviews .commentlist {
  color: #fff;
  margin: 0 0 1.5rem;
}

.gp-preview-product-page .gp-preview-product-reviews .commentlist .description p,
.gp-preview-product-page .gp-preview-product-reviews .commentlist .meta {
  color: rgba(255, 255, 255, 0.72);
}

.gp-preview-product-page .gp-preview-product-footer {
  align-items: center;
  border-top: 1px solid var(--pilot-line);
  color: var(--pilot-ink);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
}

.gp-preview-product-page .gp-preview-product-footer strong {
  display: block;
  max-width: 42rem;
}

.gp-editorial-pilot-active--attack .gp-preview-product-footer {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: #f5f5f7;
}

@media (max-width: 1080px) {
  .gp-preview-product-page .gp-product-v5-included {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .gp-preview-product-page .gp-preview-product-faqs__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .gp-preview-product-page .gp-preview-product-reviews > .gp-section-heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .gp-preview-product-page .gp-preview-product-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .gp-preview-product-page .gp-preview-product-footer .gp-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .gp-preview-product-page .gp-product-v5-included {
    border-radius: 1.35rem;
    padding: clamp(1.35rem, 6vw, 2rem);
  }

  .gp-preview-product-page .gp-product-v5-included h2 {
    font-size: clamp(2.25rem, 12vw, 3.4rem);
  }
}
