:root {
  --dre-purple: #482B61;
  --dre-orange: #E08B3C;
  --dre-neutral: #E5E5E5;
  --dre-ivory: #F6F5F3;
  --dre-text: #25202A;
  --dre-muted: #726A78;
  --dre-white: #FFFFFF;
}

.dre-section,
.dre-section * {
  box-sizing: border-box;
}

.dre-section {
  position: relative;
  width: min(1800px, calc(100vw - 110px));
  max-width: none;
  margin: 28px auto 48px;
  padding: 34px;
  border: 1px solid rgba(72, 43, 97, .10);
  border-radius: 24px;
  background: var(--dre-white);
  color: var(--dre-text);
  font-family: "IBM Plex Sans Arabic", Arial, sans-serif;
  box-shadow: 0 18px 48px rgba(72, 43, 97, .06);
  overflow-x: clip;
  box-sizing: border-box;
}

.dre-section--full-bleed {
  width: min(1800px, calc(100vw - 110px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.dre-inner {
  width: 100%;
  margin: 0 auto;
}

.dre-header {
  text-align: center;
  margin: 0 auto 22px;
  max-width: 760px;
}

.dre-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--dre-orange) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dre-section .dre-title {
  margin: 0 0 8px !important;
  color: var(--dre-purple) !important;
  font-family: Montserrat, "Scheherazade New", serif !important;
  font-size: clamp(22px, 2.2vw, 32px) !important;
  line-height: 1.12 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.dre-section .dre-subtitle {
  margin: 0 !important;
  color: var(--dre-muted) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}

.dre-summary-card {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(72, 43, 97, .13);
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  box-shadow: none;
}

.dre-score-block {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 132px;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(224, 139, 60, .11), rgba(72, 43, 97, .035));
  border: 1px solid rgba(224, 139, 60, .16);
  padding: 20px;
}

.dre-average {
  display: block;
  color: var(--dre-purple) !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 42px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

.dre-stars,
.dre-review-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--dre-orange) !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.dre-star {
  display: inline-block;
}

.dre-star.is-empty {
  color: #d8d1dc !important;
}

.dre-review-count {
  display: block;
  color: var(--dre-muted) !important;
  font-size: 14px !important;
}

.dre-histogram {
  display: grid;
  gap: 10px;
}

.dre-histogram-row {
  display: grid;
  grid-template-columns: 42px 1fr 50px;
  gap: 10px;
  align-items: center;
  color: var(--dre-text) !important;
  font-size: 14px !important;
}

.dre-histogram-label {
  color: var(--dre-purple) !important;
  font-weight: 700 !important;
}

.dre-bar {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--dre-neutral);
  overflow: hidden;
}

.dre-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dre-orange), rgba(224, 139, 60, .62));
}

.dre-histogram-percent {
  color: var(--dre-muted) !important;
  text-align: end;
}

.dre-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.dre-review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: auto;
  padding: 20px;
  border: 1px solid rgba(72, 43, 97, .12);
  border-radius: 20px;
  background: var(--dre-white) !important;
  box-shadow: 0 12px 32px rgba(72, 43, 97, .055);
}

.dre-review-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dre-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--dre-purple) !important;
  background: rgba(224, 139, 60, .12) !important;
  border: 1px solid rgba(224, 139, 60, .22);
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

.dre-section .dre-review-text {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dre-text) !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  quotes: none !important;
}

.dre-section .dre-review-text::before,
.dre-section .dre-review-text::after {
  content: none !important;
}

.dre-review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0 !important;
  color: var(--dre-muted) !important;
  background: transparent !important;
  font-size: 13px !important;
}

.dre-empty-state {
  margin-top: 18px;
  padding: 22px;
  border-radius: 18px;
  border: 1px dashed rgba(72, 43, 97, .22);
  background: rgba(255, 255, 255, .78);
  text-align: center;
}

.dre-empty-state strong {
  display: block;
  color: var(--dre-purple) !important;
  font-family: Montserrat, "Scheherazade New", serif !important;
  font-size: 20px !important;
  margin-bottom: 6px;
}

.dre-empty-state p {
  margin: 0 !important;
  color: var(--dre-muted) !important;
}

.dre-form-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(72, 43, 97, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 32px rgba(72, 43, 97, .05);
}

.dre-section #respond,
.dre-section #review_form,
.dre-section #review_form_wrapper {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.dre-form-title,
.dre-section #reply-title {
  margin: 0 0 8px !important;
  color: var(--dre-purple) !important;
  font-family: Montserrat, "Scheherazade New", serif !important;
  font-size: clamp(22px, 1.9vw, 28px) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.dre-form-note {
  margin: 0 0 16px !important;
  color: var(--dre-muted) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.dre-form-field,
.dre-section .comment-form-rating,
.dre-section .comment-form-comment,
.dre-section .comment-form-author,
.dre-section .comment-form-email {
  margin: 0 0 14px !important;
}

.dre-section label {
  display: block;
  margin: 0 0 6px !important;
  color: var(--dre-purple) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.dre-section textarea,
.dre-section input[type="text"],
.dre-section input[type="email"],
.dre-section select {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(72, 43, 97, .18) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--dre-text) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
}

.dre-section textarea {
  min-height: 150px !important;
  height: 150px;
  resize: vertical;
}

.dre-section .form-submit {
  margin: 8px 0 0 !important;
}

.dre-section .dre-submit,
.dre-section input[type="submit"].dre-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 26px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: var(--dre-orange) !important;
  color: #fff !important;
  font-family: Montserrat, "IBM Plex Sans Arabic", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer;
  box-shadow: none !important;
}

/* Style WooCommerce native rating stars only. Do not create a second star system. */
.dre-section .comment-form-rating p.stars {
  margin: 8px 0 0 !important;
}

.dre-section .comment-form-rating p.stars a {
  color: var(--dre-orange) !important;
}

html[lang^="ar"] .dre-section,
html[lang^="ar"] .dre-title,
html[lang^="ar"] .dre-empty-state strong,
html[lang^="ar"] .dre-form-title {
  direction: rtl;
}

html[lang^="ar"] .dre-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

html[lang^="ar"] .dre-title,
html[lang^="ar"] .dre-empty-state strong,
html[lang^="ar"] .dre-form-title {
  font-family: "Scheherazade New", serif !important;
}

html[lang^="ar"] .dre-section {
  font-family: Tajawal, "IBM Plex Sans Arabic", Arial, sans-serif;
}

html[lang^="ar"] .dre-histogram-percent {
  text-align: start;
}

@media (max-width: 900px) {
  .dre-summary-card {
    grid-template-columns: 1fr;
  }

  .dre-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .dre-section,
  .dre-section--full-bleed {
    width: calc(100% - 40px);
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .dre-section,
  .dre-section--full-bleed {
    width: calc(100% - 24px);
    padding: 22px 14px;
  }

  .dre-summary-card,
  .dre-review-card,
  .dre-form-card {
    border-radius: 18px;
  }

  .dre-summary-card {
    padding: 18px;
  }

  .dre-reviews-grid {
    grid-template-columns: 1fr;
  }

  .dre-review-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .dre-average {
    font-size: 42px !important;
  }

  .dre-histogram-row {
    grid-template-columns: 36px 1fr 44px;
  }
}


/* v0.1.7 — Final approved product-card width and calmer title scale. */
@media (min-width: 1025px) {
  .single-product .dre-section,
  .single-product .dre-section.dre-section--full-bleed {
    width: min(1800px, calc(100vw - 110px)) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* v0.1.8 — Refined form readability and theme override fixes. */
.dre-section .dre-title,
.dre-section .dre-form-title,
.dre-section #reply-title,
.dre-section .comment-reply-title {
  text-transform: none !important;
}

.dre-section .comment-form-cookies-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 10px 0 20px !important;
  padding: 0 !important;
}

.dre-section .comment-form-cookies-consent input[type="checkbox"] {
  width: 18px !important;
  min-width: 18px !important;
  height: 18px !important;
  margin: 4px 0 0 !important;
  border: 1px solid rgba(72, 43, 97, .18) !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  accent-color: var(--dre-orange);
}

.dre-section .comment-form-cookies-consent label {
  display: inline !important;
  margin: 0 !important;
  color: var(--dre-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.7 !important;
  text-transform: none !important;
}

.dre-section .comment-form-rating {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.dre-section .comment-form-rating label {
  margin: 0 !important;
}

.dre-section .comment-form-rating p.stars {
  margin: 0 !important;
}

.dre-section .comment-form-rating select {
  max-width: 260px;
}

/* v0.1.9 — Smart Q&A section. Safe, category-based, and visually separated from the review form. */
.dre-qna-card {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(72, 43, 97, .12);
  border-radius: 20px;
  background: rgba(246, 245, 243, .52);
  box-shadow: none;
}

.dre-qna-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.dre-qna-title,
.dre-section .dre-qna-title {
  margin: 0 !important;
  color: var(--dre-purple) !important;
  font-family: Montserrat, "Scheherazade New", serif !important;
  font-size: clamp(18px, 1.45vw, 23px) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.dre-qna-head p {
  max-width: 560px;
  margin: 0 !important;
  color: var(--dre-muted) !important;
  font-size: 13px !important;
  line-height: 1.65 !important;
  text-align: end;
}

.dre-qna-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dre-qna-item {
  min-height: 142px;
  padding: 18px;
  border: 1px solid rgba(72, 43, 97, .10);
  border-radius: 18px;
  background: #fff;
}

.dre-qna-item h4 {
  margin: 0 0 8px !important;
  color: var(--dre-purple) !important;
  font-family: Montserrat, "Scheherazade New", serif !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.dre-qna-item p {
  margin: 0 !important;
  color: var(--dre-muted) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

html[lang^="ar"] .dre-qna-head,
html[lang^="ar"] .dre-qna-grid,
html[lang^="ar"] .dre-qna-item {
  direction: rtl;
}

html[lang^="ar"] .dre-qna-title,
html[lang^="ar"] .dre-qna-item h4 {
  font-family: "Scheherazade New", serif !important;
}

html[lang^="ar"] .dre-qna-head p {
  text-align: start;
}

@media (max-width: 900px) {
  .dre-qna-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dre-qna-head p {
    text-align: start;
  }

  .dre-qna-grid {
    grid-template-columns: 1fr;
  }
}


/* v0.2.0 — Customer Product Questions. Moderated, separate from reviews, and visually calm. */
.dre-customer-questions-card {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(72, 43, 97, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 32px rgba(72, 43, 97, .045);
}

.dre-customer-questions-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.dre-customer-questions-title,
.dre-section .dre-customer-questions-title {
  margin: 0 0 6px !important;
  color: var(--dre-purple) !important;
  font-family: Montserrat, "Scheherazade New", serif !important;
  font-size: clamp(18px, 1.45vw, 23px) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.dre-customer-questions-head p,
.dre-question-guidance,
.dre-question-order-note,
.dre-question-logged-in,
.dre-no-public-questions {
  margin: 0 !important;
  color: var(--dre-muted) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.dre-question-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px !important;
  font-weight: 700 !important;
}

.dre-question-notice--success {
  color: var(--dre-purple) !important;
  background: rgba(224, 139, 60, .11);
  border: 1px solid rgba(224, 139, 60, .22);
}

.dre-question-notice--error {
  color: #7a2630 !important;
  background: rgba(122, 38, 48, .07);
  border: 1px solid rgba(122, 38, 48, .18);
}

.dre-public-questions-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 16px;
}

.dre-public-question-item {
  padding: 18px;
  border: 1px solid rgba(72, 43, 97, .10);
  border-radius: 18px;
  background: #fff;
}

.dre-public-question-label,
.dre-public-answer-label {
  color: var(--dre-orange) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dre-public-question-item h4 {
  margin: 4px 0 12px !important;
  color: var(--dre-purple) !important;
  font-family: Montserrat, "Scheherazade New", serif !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.dre-public-question-item p {
  margin: 6px 0 0 !important;
  color: var(--dre-muted) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.dre-no-public-questions {
  margin: 12px 0 14px !important;
  padding: 14px;
  border-radius: 16px;
  background: rgba(246, 245, 243, .72);
  border: 1px dashed rgba(72, 43, 97, .16);
}

.dre-ask-question-box {
  margin-top: 14px;
  border: 1px solid rgba(72, 43, 97, .12);
  border-radius: 18px;
  background: rgba(246, 245, 243, .42);
  overflow: hidden;
}

.dre-ask-question-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  color: var(--dre-purple) !important;
  font-family: Montserrat, "IBM Plex Sans Arabic", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  cursor: pointer;
  list-style: none;
}

.dre-ask-question-box summary::-webkit-details-marker {
  display: none;
}

.dre-ask-question-box summary::after {
  content: "+";
  color: var(--dre-orange);
  font-size: 22px;
  line-height: 1;
}

.dre-ask-question-box[open] summary::after {
  content: "–";
}

.dre-question-form {
  padding: 0 18px 18px;
}

.dre-question-form textarea {
  min-height: 118px !important;
  height: 118px;
}

.dre-question-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dre-question-order-note {
  margin: 2px 0 14px !important;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.dre-question-submit {
  margin-top: 2px;
}

html[lang^="ar"] .dre-customer-questions-card,
html[lang^="ar"] .dre-public-questions-list,
html[lang^="ar"] .dre-public-question-item,
html[lang^="ar"] .dre-question-form {
  direction: rtl;
}

html[lang^="ar"] .dre-customer-questions-title,
html[lang^="ar"] .dre-public-question-item h4 {
  font-family: "Scheherazade New", serif !important;
}

html[lang^="ar"] .dre-public-question-label,
html[lang^="ar"] .dre-public-answer-label {
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 900px) {
  .dre-public-questions-list,
  .dre-question-identity-grid {
    grid-template-columns: 1fr;
  }
}

/* v0.2.1 — Vendor Answer Drafts. Visible only to the product vendor/admin. */
.dre-vendor-answers-card {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(224, 139, 60, .22);
  border-radius: 20px;
  background: rgba(224, 139, 60, .055);
  box-shadow: none;
}

.dre-vendor-answers-head {
  margin-bottom: 14px;
}

.dre-vendor-answers-title,
.dre-section .dre-vendor-answers-title {
  margin: 0 0 6px !important;
  color: var(--dre-purple) !important;
  font-family: Montserrat, "Scheherazade New", serif !important;
  font-size: clamp(18px, 1.45vw, 23px) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.dre-vendor-answers-head p {
  margin: 0 !important;
  color: var(--dre-muted) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.dre-vendor-answer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dre-vendor-answer-item {
  padding: 18px;
  border: 1px solid rgba(72, 43, 97, .10);
  border-radius: 18px;
  background: #fff;
}

.dre-vendor-question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.dre-vendor-answer-item h4 {
  margin: 0 0 12px !important;
  color: var(--dre-purple) !important;
  font-family: Montserrat, "Scheherazade New", serif !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.dre-vendor-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(72, 43, 97, .07);
  color: var(--dre-purple) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.dre-vendor-status--pending {
  background: rgba(224, 139, 60, .13);
  color: var(--dre-purple) !important;
}

.dre-vendor-status--public {
  background: rgba(72, 43, 97, .10);
  color: var(--dre-purple) !important;
}

.dre-vendor-answer-form textarea {
  min-height: 104px !important;
  height: 104px;
}

.dre-vendor-published-answer {
  margin: 6px 0 0 !important;
  color: var(--dre-muted) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

html[lang^="ar"] .dre-vendor-answers-card,
html[lang^="ar"] .dre-vendor-answer-list,
html[lang^="ar"] .dre-vendor-answer-item,
html[lang^="ar"] .dre-vendor-answer-form {
  direction: rtl;
}

html[lang^="ar"] .dre-vendor-answers-title,
html[lang^="ar"] .dre-vendor-answer-item h4 {
  font-family: "Scheherazade New", serif !important;
}

@media (max-width: 900px) {
  .dre-vendor-answer-list {
    grid-template-columns: 1fr;
  }

  .dre-vendor-question-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* v0.2.3 — Invisible helper field for older cached forms; no longer blocks submission. */
.dre-question-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* v0.2.3 — Admin-only technical reason under question submission errors. */
.dre-question-error-reason {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  opacity: .75;
}


/* Review intelligence */
.dre-insights-card {
  margin: 22px 0 28px;
  padding: 18px 22px;
  border: 1px solid rgba(72, 43, 97, .10);
  border-radius: 20px;
  background: rgba(246, 245, 243, .55);
}

.dre-insights-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dre-insights-eyebrow {
  color: var(--dre-orange);
  font-family: "Montserrat", "IBM Plex Sans Arabic", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dre-tone-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--dre-muted);
  font-size: 13px;
  border: 1px solid rgba(72, 43, 97, .08);
}

.dre-tone-pill strong {
  color: var(--dre-purple);
  font-weight: 700;
}

.dre-customers-say {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--dre-text);
}

.dre-customers-say > strong {
  flex: 0 0 auto;
  color: var(--dre-purple);
}

.dre-insight-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dre-insight-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--dre-purple);
  border: 1px solid rgba(224, 139, 60, .22);
  font-size: 13px;
  font-weight: 650;
}

.dre-insight-muted {
  margin: 0;
  color: var(--dre-muted);
}

.dre-insight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.dre-insight-icon svg {
  display: block;
}

.dre-insights-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dre-insight-icon--eyebrow,
.dre-insight-icon--line,
.dre-insight-icon--label,
.dre-insight-icon--meta {
  color: var(--dre-orange);
}

.dre-insight-icon--tone {
  color: var(--dre-orange);
}

.dre-customer-says-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dre-customers-say > strong,
.dre-most-mentioned {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dre-most-mentioned {
  gap: 8px;
}

@media (max-width: 767px) {
  .dre-insights-card {
    padding: 16px;
  }

  .dre-insights-head,
  .dre-customers-say {
    display: block;
  }

  .dre-tone-pill {
    margin-top: 10px;
  }

  .dre-insight-chips {
    margin-top: 10px;
  }
}

/* v0.3.3 review submission messages */
.dre-message {
  margin: 0 0 22px;
  padding: 16px 20px;
  border-radius: 18px;
  font-weight: 700;
  line-height: 1.6;
}
.dre-message--success {
  color: #24472f;
  background: rgba(72, 97, 67, .08);
  border: 1px solid rgba(72, 97, 67, .18);
}
.dre-message--error {
  color: #7c1f25;
  background: rgba(124, 31, 37, .07);
  border: 1px solid rgba(124, 31, 37, .18);
}
.dre-review-signed-in {
  margin-top: 0;
}
.dre-review-cookies {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 20px;
  color: var(--dre-text-muted);
  font-weight: 600;
}
.dre-review-cookies input {
  width: 18px;
  height: 18px;
  margin: 0;
}

/* v0.3.4 — Better review UX: visible stars, optional guest identity. */
.dre-section .dre-review-optional-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 14px;
}

.dre-section .dre-review-optional-identity .dre-optional-note {
  grid-column: 1 / -1;
  margin-bottom: 0 !important;
}

.dre-section .dre-optional-label {
  color: var(--dre-muted);
  font-size: 12px;
  font-weight: 600;
}

.dre-section .dre-rating-field {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.dre-section .dre-review-form.dre-rating-enhanced .dre-rating-select-native {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.dre-section .dre-rating-stars-input {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
}

.dre-section .dre-rating-star-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  background: transparent !important;
  color: rgba(72, 43, 97, .22) !important;
  font-size: 30px !important;
  line-height: 1 !important;
  padding: 0 !important;
  cursor: pointer;
  box-shadow: none !important;
  transition: color .16s ease, transform .16s ease;
}

.dre-section .dre-rating-star-button.is-selected,
.dre-section .dre-rating-star-button:hover,
.dre-section .dre-rating-star-button:focus-visible {
  color: var(--dre-orange) !important;
}

.dre-section .dre-rating-star-button:focus-visible {
  outline: 2px solid rgba(224, 139, 60, .45) !important;
  outline-offset: 4px;
  border-radius: 8px;
}

.dre-section .dre-rating-star-button:hover {
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .dre-section .dre-review-optional-identity {
    grid-template-columns: 1fr;
  }
}

/* v0.3.6 — Customer Says refined insight line */
.dre-customer-says-line {
  margin: 0 0 14px;
  color: var(--dre-purple);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.65;
  font-weight: 650;
}

.dre-insight-meta-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dre-most-mentioned {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: var(--dre-muted);
  border: 1px solid rgba(72, 43, 97, .08);
  font-size: 13px;
}

.dre-most-mentioned strong {
  color: var(--dre-purple);
}


.dre-marketing-draft {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  border: 1px dashed rgba(224, 139, 60, .34);
  color: var(--dre-text);
}

.dre-marketing-draft-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dre-marketing-draft-head strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dre-purple);
  font-weight: 750;
}

.dre-marketing-draft-head span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(72, 43, 97, .06);
  color: var(--dre-muted);
  font-size: 12px;
  font-weight: 650;
}

.dre-marketing-draft p {
  margin: 0 0 6px;
  color: var(--dre-purple);
  font-weight: 650;
}

.dre-marketing-draft small {
  display: block;
  color: var(--dre-muted);
}

@media (max-width: 767px) {
  .dre-marketing-draft-head {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* v0.7.6 — Separate product questions from the customer review experience. */
.dre-section--questions {
  margin-bottom: 26px;
}

.dre-section--reviews {
  margin-top: 26px;
}

.dre-inner--questions > :first-child {
  margin-top: 0 !important;
}

.dre-inner--questions > :last-child {
  margin-bottom: 0 !important;
}

.dre-section--questions .dre-qna-card,
.dre-section--questions .dre-customer-questions-card {
  box-shadow: none;
}

.dre-section--questions + .dre-section--reviews {
  margin-top: 28px;
}

@media (max-width: 768px) {
  .dre-section--questions,
  .dre-section--reviews,
  .dre-section--questions + .dre-section--reviews {
    margin-top: 18px;
    margin-bottom: 24px;
  }
}
