:root {
  --rede-teal: #3e878d;
  --rede-teal-dark: #173f44;
  --rede-teal-soft: #edf6f6;
  --rede-yellow: #dba61f;
  --rede-coral: #ff6247;
  --rede-red: #ca3e2c;
  --rede-ink: #1b2b2d;
  --rede-copy: #526164;
  --rede-line: #dce8e9;
  --rede-surface: #f7fafa;
}

.single-product .related.products,
.single-product .rede-related-wrap,
.single-product .reviews_tab,
.single-product .seller_enquiry_form_tab,
.single-product .product_qa_tab {
  display: none !important;
}

.single-product #ast-scroll-top {
  border-color: #fff !important;
  background: var(--rede-teal) !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(27, 43, 45, .18);
}

.single-product .rede-product-info-card .price,
.single-product .rede-product-info-card .price .amount,
.single-product .rede-product-info-card .price bdi,
.single-product .rede-product-info-card .price .woocommerce-Price-currencySymbol {
  border-color: var(--rede-red) !important;
  color: var(--rede-red) !important;
}

.single-product .rede-wholesale-form table.variations label,
.single-product .rede-wholesale-form table.variations th,
.single-product .rede-wholesale-form table.variations td.label {
  border-color: var(--rede-ink) !important;
  color: var(--rede-ink) !important;
}

.single-product .rede-wholesale-form table.variations select {
  color: var(--rede-copy) !important;
}

.single-product .rede-product-support-wrap {
  background: var(--rede-surface) !important;
}

.single-product .rede-product-support-wrap > .elementor-container {
  max-width: 1200px;
}

.rede-product-community {
  width: 100%;
  color: var(--rede-ink);
}

.rede-product-community__intro {
  position: relative;
  overflow: hidden;
  padding: 34px clamp(24px, 5vw, 54px);
  border-radius: 20px;
  background: linear-gradient(128deg, var(--rede-teal-dark) 0%, var(--rede-teal) 100%);
  box-shadow: 0 20px 48px rgba(27, 43, 45, .13);
  color: #fff;
}

.rede-product-community__intro::after {
  content: "?";
  position: absolute;
  right: 34px;
  bottom: -42px;
  color: rgba(255, 255, 255, .08);
  font-family: "BEBAS NEUE", Arial, sans-serif;
  font-size: 190px;
  font-weight: 700;
  line-height: 1;
}

.rede-product-community__intro > span,
.rede-community-card__kicker {
  display: block;
  color: var(--rede-yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rede-product-community__intro h2 {
  position: relative;
  z-index: 1;
  margin: 8px 0 10px;
  color: #fff !important;
  font-family: "BEBAS NEUE", Arial, sans-serif !important;
  font-size: clamp(38px, 5vw, 58px) !important;
  font-weight: 400 !important;
  letter-spacing: .015em;
  line-height: .95 !important;
}

.rede-product-community__intro p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 16px;
  line-height: 1.65;
}

.rede-product-community__nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.rede-product-community__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.rede-product-community__nav a:hover {
  border-color: var(--rede-yellow);
  background: rgba(219, 166, 31, .2);
  transform: translateY(-1px);
}

.rede-product-community__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.rede-community-card {
  min-width: 0;
  box-sizing: border-box;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--rede-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(27, 43, 45, .07);
}

.rede-community-reviews {
  grid-column: 1 / -1;
}

.rede-community-card__header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rede-line);
}

.rede-community-card__header--compact {
  grid-template-columns: 48px minmax(0, 1fr);
}

.rede-community-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--rede-teal-soft);
  color: var(--rede-teal);
}

.rede-community-card__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.rede-community-card__kicker {
  margin-bottom: 4px;
  color: var(--rede-teal);
}

.rede-community-card__header h3 {
  margin: 0 0 6px;
  color: var(--rede-ink) !important;
  font-size: clamp(22px, 2.5vw, 29px) !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
}

.rede-community-card__header p {
  margin: 0;
  color: var(--rede-copy);
  font-size: 14px;
  line-height: 1.55;
}

.rede-community-rating {
  min-width: 108px;
  padding: 10px 14px;
  border: 1px solid rgba(219, 166, 31, .36);
  border-radius: 12px;
  background: #fffaf0;
  text-align: center;
}

.rede-community-rating strong {
  display: block;
  color: var(--rede-yellow);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.rede-community-rating span {
  display: block;
  margin-top: 5px;
  color: var(--rede-copy);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.rede-community-reviews__native {
  margin-top: 24px;
}

.rede-community-reviews #reviews {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  gap: 28px;
}

.rede-community-reviews #comments,
.rede-community-reviews #review_form_wrapper {
  min-width: 0;
  margin: 0 !important;
}

.rede-community-reviews #comments h2,
.rede-community-reviews .comment-reply-title {
  display: block;
  margin: 0 0 14px !important;
  color: var(--rede-ink) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

.rede-community-reviews #review_form_wrapper {
  padding: 22px;
  border: 1px solid var(--rede-line);
  border-radius: 14px;
  background: var(--rede-surface);
}

.rede-community-reviews .comment-form {
  margin: 0 !important;
}

.rede-community-reviews .comment-form > p {
  margin: 0 0 14px !important;
}

.rede-community-reviews label,
.rede-enquiry-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--rede-ink);
  font-size: 13px;
  font-weight: 900;
}

.rede-community-reviews input[type="text"],
.rede-community-reviews input[type="email"],
.rede-community-reviews textarea,
.rede-enquiry-form input[type="text"],
.rede-enquiry-form input[type="email"],
.rede-enquiry-form textarea {
  width: 100% !important;
  box-sizing: border-box;
  padding: 12px 13px !important;
  border: 1px solid #c8d7d9 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--rede-ink) !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.rede-community-reviews textarea,
.rede-enquiry-form textarea {
  min-height: 125px;
  resize: vertical;
}

.rede-community-reviews input:focus,
.rede-community-reviews textarea:focus,
.rede-enquiry-form input:focus,
.rede-enquiry-form textarea:focus {
  border-color: var(--rede-teal) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(62, 135, 141, .14) !important;
}

.rede-community-reviews .form-submit input,
.rede-enquiry-submit {
  min-height: 46px;
  padding: 11px 20px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--rede-coral) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(202, 62, 44, .18);
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .02em;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.rede-community-reviews .form-submit input:hover,
.rede-enquiry-submit:hover {
  background: var(--rede-red) !important;
}

.rede-community-reviews .star-rating,
.rede-community-reviews .stars a,
.rede-community-reviews .comment-form-rating {
  color: var(--rede-yellow) !important;
}

.rede-community-reviews .commentlist {
  margin: 0 !important;
}

.rede-community-reviews .commentlist li {
  margin: 0 0 14px !important;
  padding: 16px !important;
  border: 1px solid var(--rede-line) !important;
  border-radius: 12px;
  background: #fff;
}

.rede-community-reviews .commentlist img.avatar {
  border-radius: 50%;
}

.rede-community-reviews .woocommerce-noreviews,
.rede-community-empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed #c8d7d9;
  border-radius: 13px;
  background: var(--rede-surface);
  color: var(--rede-copy);
  line-height: 1.6;
  text-align: center;
}

.rede-faq-list {
  margin-top: 18px;
}

.rede-faq-item {
  border-bottom: 1px solid var(--rede-line);
}

.rede-faq-item:last-child {
  border-bottom: 0;
}

.rede-faq-item summary {
  position: relative;
  padding: 17px 42px 17px 0;
  color: var(--rede-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  list-style: none;
}

.rede-faq-item summary::-webkit-details-marker {
  display: none;
}

.rede-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rede-teal-soft);
  color: var(--rede-teal);
  font-size: 18px;
  line-height: 1;
  transform: translateY(-50%);
}

.rede-faq-item[open] summary::after {
  content: "−";
  background: var(--rede-teal);
  color: #fff;
}

.rede-faq-answer {
  padding: 0 38px 17px 0;
}

.rede-faq-answer p {
  margin: 0;
  color: var(--rede-copy);
  font-size: 13px;
  line-height: 1.65;
}

.rede-community-enquiry {
  background: linear-gradient(180deg, #fff 0%, var(--rede-surface) 100%);
}

.rede-enquiry-form {
  margin-top: 20px;
}

.rede-enquiry-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rede-enquiry-field {
  margin: 0 0 14px;
}

.rede-enquiry-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rede-enquiry-form__footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.rede-enquiry-form__footer p {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  color: var(--rede-copy);
  font-size: 11px;
  line-height: 1.45;
}

.rede-enquiry-form__footer p svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--rede-teal-soft);
  color: var(--rede-teal);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.rede-enquiry-submit {
  flex: 0 0 auto;
}

.rede-community-enquiry .alert {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--rede-line);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
}

.rede-community-enquiry .alert-success {
  border-color: #b9dcc5;
  background: #eaf7ef;
  color: #24713d;
}

@media (max-width: 900px) {
  .rede-product-community__grid,
  .rede-community-reviews #reviews {
    grid-template-columns: minmax(0, 1fr);
  }

  .rede-community-reviews #reviews {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .single-product .rede-product-support-wrap {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .rede-product-community__intro {
    padding: 27px 22px;
    border-radius: 16px;
  }

  .rede-product-community__intro::after {
    right: 8px;
    font-size: 135px;
  }

  .rede-product-community__intro p {
    font-size: 14px;
  }

  .rede-product-community__nav {
    gap: 7px;
  }

  .rede-product-community__nav a {
    padding-right: 11px;
    padding-left: 11px;
    font-size: 11px;
  }

  .rede-community-card {
    padding: 20px;
    border-radius: 15px;
  }

  .rede-community-card__header,
  .rede-community-card__header--compact {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .rede-community-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .rede-community-rating {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    align-items: baseline;
    justify-content: center;
  }

  .rede-community-rating span {
    margin: 0;
  }

  .rede-enquiry-form__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .rede-enquiry-form__footer {
    display: block;
  }

  .rede-enquiry-submit {
    width: 100%;
    margin-top: 14px;
  }
}
