/* The reviews on the product page v2, styled exactly as on the Elementor product page (template 2421): its
   "Thekua Testimonial Slider — Brand Restyle v3" and "Add a Review" HTML widgets, copied as they are. */

/* ---- from Elementor widget fb0e2d9 ---- */
.slick-dotted.slick-slider {
    border: none !important;
}
    /* ============================================
   Thekua Testimonial Slider — Brand Restyle v3
   ============================================ */

.cr-reviews-slider {
  --thekua-parchment: #FBF3E7;
  --thekua-terracotta: #B5602F;
  --thekua-jaggery: #6B3F2A;
  --thekua-gold: #C9932E;
  --thekua-ink: #3A2A1E;
  margin: 0px;
  padding: 10px 46px 40px !important;
}

.slick-dotted.slick-slider {
  padding: 0px !important;
}

/* Remove broken flag/country icon anywhere in the slider */
.cr-reviews-slider .ivole-grid-country-icon,
.cr-reviews-slider img[src*="flags/"] {
  display: none !important;
}

/* ---- Card shell — white container, full width ---- */
.cr-review-card {
  width: 100% !important;
}

.cr-review-card-inner {
  background-color: #ffffff !important;
  border: 1px solid rgba(107,63,42,0.10) !important;
  border-radius: 14px !important;
  padding: 20px 24px !important;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  height: auto;
  display: flex !important;
  flex-direction: column;
  box-shadow: 0 6px 24px rgba(107,63,42,0.08);
}

.review-content,
.review-text,
.middle-row {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* ---- Top row ---- */
.top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  border-bottom: none !important; /* kills leaked default divider from plugin CSS */
}

.top-row::after,
.reviewer::after {
  display: none !important;
  border: none !important;
}

.cr-avatar {
  border-radius: 50%;
  border: 2px solid var(--thekua-gold);
}

.cr-avatar-check {
  background: var(--thekua-terracotta) !important;
}

.reviewer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--thekua-ink);
  border-bottom: none !important;
}

/* ---- Rating row — smaller stars ---- */
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rating svg {
  width: 15px !important;
  height: 15px !important;
}

.rating .cr-rating-icon-bg {
  stroke: rgba(201,147,46,0.30) !important;
}

.rating .cr-rating-icon {
  fill: var(--thekua-gold) !important;
}

.rating-label {
  display: none !important;
}

/* Hide duplicate bold title (repeats the review text, was inflating height) */
.cr-comment-head-text {
  display: none !important;
}

/* Hide date entirely */
.datetime {
  display: none !important;
}

.reviewer-verified {
  font-family: 'Jost', sans-serif;
  font-size: 0 !important; /* hides original plugin text entirely — Reviewer, Verified Owner, etc. */
  line-height: 0 !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--thekua-terracotta) !important;
  background: rgba(181,96,47,0.10) !important;
  padding: 5px 8px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  width: fit-content !important;
  margin-top: 4px;
}

.reviewer-verified::before {
  content: "VERIFIED" !important;
  font-size: 9.5px !important;
  line-height: normal !important;
}

.reviewer-verified svg,
.reviewer-verified img {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Catch-all: hide any extra verified-owner badge/checkmark icon the plugin
   injects next to the name, so only the name + our VERIFIED pill remain */
.reviewer > *:not(.reviewer-name):not(.reviewer-verified) {
  display: none !important;
}

/* ---- Read more / Read less ---- */
.review-text p {
  font-family: 'Lora', serif;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--thekua-ink);
  opacity: 0.88;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-text.expanded p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.read-more-toggle {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--thekua-terracotta);
  cursor: pointer;
  margin-top: 8px;
  display: inline-block;
}

.read-more-toggle:hover {
  text-decoration: underline;
}

/* ---- Review text ---- */

/* ---- Arrows: forced visible, explicit position ---- */
.cr-reviews-slider .slick-arrow {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff !important;
  border: 1px solid rgba(107,63,42,0.25);
  z-index: 5;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cr-reviews-slider .slick-arrow:hover {
  background: var(--thekua-terracotta) !important;
}

.cr-reviews-slider .slick-prev { left: 0; }
.cr-reviews-slider .slick-next { right: 0; }

.cr-reviews-slider .slick-prev::before,
.cr-reviews-slider .slick-next::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--thekua-terracotta);
  border-right: 2px solid var(--thekua-terracotta);
  opacity: 1 !important;
}

.cr-reviews-slider .slick-arrow:hover::before {
  border-color: #fff;
}

.cr-reviews-slider .slick-prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.cr-reviews-slider .slick-next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

/* ---- Dots ---- */
.cr-reviews-slider .slick-dots {
  position: static !important;
  bottom: auto !important;
  margin-top: 16px;
}

.cr-reviews-slider .slick-dots li button::before {
  font-size: 10px;
  color: var(--thekua-ink);
  opacity: 0.3;
}

.cr-reviews-slider .slick-dots li.slick-active button::before {
  color: var(--thekua-terracotta);
  opacity: 1;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
  .cr-reviews-slider {
    padding: 10px 34px 36px !important;
  }
  .cr-review-card-inner {
    padding: 18px 18px !important;
    min-height: auto;
  }
  .reviewer-name { font-size: 15px; }
}

/* ---- from Elementor widget d1582c2 ---- */
button.cr-review-form-continue {
    display: none;
}

    /* ============================================
   Thekua "Add a Review" — summary row + trigger button
   ============================================ */

.cr-all-reviews-shortcode .cr-ajax-search,
.cr-all-reviews-shortcode .cr-count-row,
.cr-all-reviews-shortcode .commentlist,
.cr-all-reviews-shortcode .cr-show-more-review-spinner,
.cr-all-reviews-shortcode .cr-search-no-reviews {
  display: none !important;
}

.cr-all-reviews-shortcode .cr-summaryBox-wrap {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.cr-all-reviews-shortcode .cr-overall-rating-wrap {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.cr-all-reviews-shortcode .cr-average-rating span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: #3A2A1E;
}

.cr-all-reviews-shortcode .cr-total-rating-count {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #3A2A1E;
  opacity: 0.6;
}

.cr-all-reviews-shortcode .cr-add-review-wrap {
  display: flex;
  justify-content: flex-end;
}

.cr-all-reviews-shortcode .cr-all-reviews-add-review {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  background: #B5602F !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 12px 32px !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.cr-all-reviews-shortcode .cr-all-reviews-add-review:hover {
  background: #6B3F2A !important;
  transform: translateY(-1px);
}

#reviews .cr-summaryBox-wrap,
.cr-all-reviews-shortcode .cr-summaryBox-wrap,
.cr-reviews-grid .cr-summaryBox-wrap {
  display: flex !important;
  align-items: center;
  padding: 26px 30px !important;
  background-color: #ffffff !important;
  margin-top: 0px !important;
  border: 1px solid rgba(107, 63, 42, 0.10);
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(58, 42, 30, 0.06);
}

/* ---- Left block: average score + stars ---- */
.cr-all-reviews-shortcode .cr-average-rating span {
  font-family: 'Lora', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--thekua-ink, #3A2A1E);
}

.cr-all-reviews-shortcode .cr-average-rating-stars svg.cr-rating-icon {
  color: var(--thekua-gold, #C9932E) !important;
}

.cr-all-reviews-shortcode .cr-total-rating-count {
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  color: var(--thekua-ink, #3A2A1E);
  opacity: 0.55;
  margin-top: 2px;
}

/* ---- Vertical dividers between the 3 sections ---- */
.cr-all-reviews-shortcode .cr-summary-separator-side,
.cr-all-reviews-shortcode .cr-summary-separator .cr-summary-separator-int {
  background-color: rgba(107, 63, 42, 0.12) !important;
  width: 1px !important;
}

/* ---- Histogram (middle block) ---- */
.cr-all-reviews-shortcode .cr-histogramTable {
  width: 100%;
  border-collapse: collapse;
}

.cr-all-reviews-shortcode .ivole-histogramRow td {
  padding: 5px 0;
  vertical-align: middle;
}

.cr-all-reviews-shortcode .ivole-histogramCell1 {
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  color: var(--thekua-ink, #3A2A1E);
  opacity: 0.75;
  white-space: nowrap;
  padding-right: 14px !important;
  width: 52px;
}

.cr-all-reviews-shortcode .ivole-histogramCell2 {
  width: 100%;
  padding: 0 14px !important;
}

.cr-all-reviews-shortcode .ivole-histogramCell3 {
  font-family: 'Lora', serif;
  font-size: 12.5px;
  color: var(--thekua-ink, #3A2A1E);
  opacity: 0.6;
  white-space: nowrap;
  padding-left: 4px !important;
  width: 36px;
  text-align: right;
}

.cr-all-reviews-shortcode .ivole-meter {
  background: rgba(107, 63, 42, 0.08) !important;
  border-radius: 20px !important;
  height: 8px !important;
  overflow: hidden;
}

.cr-all-reviews-shortcode .ivole-meter-bar {
  background: linear-gradient(90deg, var(--thekua-gold, #C9932E), var(--thekua-terracotta, #B5602F)) !important;
  border-radius: 20px !important;
  height: 100% !important;
  font-size: 0; /* the plugin prints the number inside the bar itself; hide it, the % already shows to the right */
  transition: width 0.4s ease;
}

@media (max-width: 700px) {
  #reviews .cr-summaryBox-wrap,
  .cr-all-reviews-shortcode .cr-summaryBox-wrap,
  .cr-reviews-grid .cr-summaryBox-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 20px !important;
  }

  .cr-all-reviews-shortcode .cr-overall-rating-wrap {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }

  .cr-all-reviews-shortcode .cr-summary-separator-side {
    display: none !important;
  }

  .cr-all-reviews-shortcode .cr-add-review-wrap {
    justify-content: center;
  }

  .cr-all-reviews-shortcode .cr-all-reviews-add-review {
    width: 100%;
  }
}


/* ============================================
   Modal shell — backdrop + positioning
   The .cr-form-open class is toggled by the JS
   snippet (thekua-review-modal.js)
   ============================================ */

body.cr-review-modal-open {
  overflow: hidden;
}

.cr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58, 42, 30, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2147483646;
  opacity: 0;
  animation: crBackdropFade 0.22s ease forwards;
}

@keyframes crBackdropFade {
  to { opacity: 1; }
}

/* Form is hidden by default. The JS moves the .cr-review-form-wrap
   node to be a direct child of <body> before showing it — this is
   what this rule targets (body > .cr-review-form-wrap.cr-modal-active),
   so it is never affected by a parent section's transform/animation,
   which is the usual cause of a "fixed" popup showing up in the wrong
   place on Elementor pages. */
.cr-review-form-wrap {
  display: none !important;
}

body > .cr-review-form-wrap.cr-modal-active {
  display: block !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -48%) scale(0.96) !important;
  width: 92% !important;
  max-width: 460px !important;
  max-height: 88vh !important;
  overflow-y: auto !important;
  z-index: 2147483647 !important;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

body > .cr-review-form-wrap.cr-modal-active.cr-modal-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) !important;
}

.cr-review-form-wrap::-webkit-scrollbar {
  width: 6px;
}
.cr-review-form-wrap::-webkit-scrollbar-thumb {
  background: rgba(107, 63, 42, 0.25);
  border-radius: 10px;
}


/* ============================================
   Thekua "Write a Review" — modal card styling
   ============================================ */

.cr-review-form-wrap {
  --thekua-parchment: #FBF3E7;
  --thekua-terracotta: #B5602F;
  --thekua-jaggery: #6B3F2A;
  --thekua-gold: #C9932E;
  --thekua-ink: #3A2A1E;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: var(--thekua-ink) !important;
  border: none !important;
  border-radius: 18px !important;
  padding: 26px 28px 28px !important;
  box-shadow: 0 20px 60px rgba(58, 42, 30, 0.35) !important;
  font-family: 'Jost', sans-serif;
}

/* Belt-and-braces: force every direct text element inside the card
   to use the ink colour rather than inheriting a dark theme default */
.cr-review-form-wrap,
.cr-review-form-wrap * {
  color: var(--thekua-ink);
}

.cr-review-form-wrap .cr-onsite-question-inp,
.cr-review-form-wrap .cr-review-form-comment-txt,
.cr-review-form-wrap .cr-review-form-txt {
  background: #ffffff !important;
  color: var(--thekua-ink) !important;
}

.cr-review-form-wrap .cr-review-form-submit {
  color: #ffffff !important;
}

/* ---- Header row: title + close ---- */
.cr-review-form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(107, 63, 42, 0.10);
}

.cr-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--thekua-ink);
  cursor: pointer;
}

/* Relabel "Add a review" -> "Write a Review" inside the modal header,
   keeps original text for accessibility/plugin logic, just hides it visually */
.cr-nav-left span {
  font-size: 0;
}
.cr-nav-left span::after {
  content: "Write a Review";
  font-size: 20px;
}

.cr-nav-left svg {
  display: none; /* the back-arrow reads oddly as a single-step modal; nav-right (X) is the close affordance */
}

.cr-nav-right {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.15s ease;
}
.cr-nav-right:hover {
  background: var(--thekua-parchment);
}

.cr-nav-left svg path,
.cr-nav-right svg path {
  stroke: var(--thekua-terracotta);
}

/* ---- Product being reviewed ---- */
.cr-review-form-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--thekua-parchment);
  border-radius: 10px;
  padding: 14px 16px !important;
  margin-bottom: 20px;
}

.cr-review-form-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cr-review-form-item span {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--thekua-ink);
  line-height: 1.3;
}

/* ---- Labels ---- */
.cr-onsite-question label,
.cr-review-form-rating-label,
.cr-review-form-lbl {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--thekua-ink);
  margin-bottom: 6px;
  display: inline-block;
}

.required {
  color: var(--thekua-terracotta);
  margin-left: 2px;
}

/* ---- Text inputs / textarea ---- */
.cr-onsite-question-inp,
.cr-review-form-comment-txt,
.cr-review-form-txt {
  width: 100%;
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--thekua-ink);
  background: #ffffff;
  border: 1px solid rgba(107, 63, 42, 0.20);
  border-radius: 8px;
  padding: 10px 12px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cr-onsite-question-inp:focus,
.cr-review-form-comment-txt:focus,
.cr-review-form-txt:focus {
  outline: none;
  border-color: var(--thekua-terracotta);
  box-shadow: 0 0 0 3px rgba(181, 96, 47, 0.12);
}

.cr-onsite-question,
.cr-review-form-comment,
.cr-review-form-name,
.cr-review-form-email {
  margin-bottom: 18px;
}

.cr-review-form-ne {
  display: flex;
  gap: 16px;
}

.cr-review-form-ne > div {
  flex: 1;
}

/* ---- Rating stars row ---- */
.cr-review-form-rating {
  margin-bottom: 18px;
}

.cr-review-form-rating-cont {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cr-review-form-rating-inner {
  cursor: pointer;
  transition: transform 0.12s ease;
  line-height: 0; /* stops the bigger svg adding extra vertical space */
}
.cr-review-form-rating-inner:hover {
  transform: scale(1.15);
}

.cr-review-form-rating-inner svg {
  width: 30px !important;
  height: 28px !important;
}

.cr-review-form-rating-nbr {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--thekua-ink);
  opacity: 0.6;
  margin-left: 10px;
}

/* ---- Location chips ---- */
.cr-review-form-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cr-review-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  color: var(--thekua-ink);
  background: var(--thekua-parchment);
  border: 1px solid rgba(107, 63, 42, 0.15);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cr-review-form-location-chips .cr-review-location-chip input:checked + span,
.cr-review-location-chip:has(input:checked) {
  background: var(--thekua-terracotta);
  border-color: var(--thekua-terracotta);
  color: #ffffff;
}

.cr-review-location-chip input {
  display: none;
}

.cr-review-country-icon {
  width: 16px;
  height: 12px;
}

/* ---- Field errors ---- */
.cr-review-form-field-error {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #B3261E;
  margin-top: 4px;
  display: none;
}

/* ---- Buttons ----
   Stacked, full-width, with a clear primary (Submit) vs.
   secondary/quiet (Cancel) hierarchy — reads cleaner than two
   competing pill buttons side by side. */
.cr-review-form-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px;
  margin-top: 24px;
}

.cr-review-form-submit {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  background: var(--thekua-terracotta) !important;
  border: none;
  border-radius: 30px;
  padding: 11px 28px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cr-review-form-submit,
.cr-review-form-submit * {
  color: #ffffff !important;
}

.cr-review-form-submit:hover {
  background: var(--thekua-jaggery) !important;
}

.cr-review-form-submit:active {
  transform: scale(0.98);
}

/* The spinner-dots image sits in the DOM at all times; only show it
   while the plugin is actually submitting. If the plugin toggles this
   itself via an inline style or a class, that will take precedence —
   this just fixes the default (idle) state, which was showing the
   dots permanently next to the label. */
.cr-review-form-submit img {
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  vertical-align: middle;
}
.cr-review-form-submit.cr-loading img,
.cr-review-form-submit[data-loading="true"] img {
  display: inline-block;
}

.cr-review-form-cancel {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--thekua-ink) !important;
  background: transparent !important;
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
  width: 100%;
  opacity: 0.7;
}

.cr-review-form-cancel:hover {
  background: var(--thekua-parchment) !important;
  opacity: 1;
}

/* ---- Mobile: bottom sheet instead of centered card ---- */
@media (max-width: 600px) {
  .cr-review-form-wrap {
    padding: 20px 18px 24px;
  }

  body > .cr-review-form-wrap.cr-modal-active {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: translateY(100%) !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 92vh !important;
    border-radius: 20px 20px 0 0 !important;
  }

  body > .cr-review-form-wrap.cr-modal-active.cr-modal-visible {
    transform: translateY(0) !important;
  }

  .cr-review-form-ne {
    flex-direction: column;
    gap: 0;
  }
}
