/* ==========================================================================
   Verdon review styles, one file for both places the ets_reviews module shows reviews (2026-11):
     - /all-reviews: the theme's own markup (modules/ets_reviews/views/templates/front/all-reviews*.tpl, .vrev-*)
     - the product page: the module's markup (theme copy of hook/product-wrap.tpl + the JS-rendered list),
       always under #product .ets_rv_wrap so it beats the module's all.css and colour CSS.
   Loaded by all-reviews.tpl and by templates/catalog/product.tpl. Shared pieces are written once, with both
   selectors; the sections after them hold only what is specific to one page.
   ========================================================================== */

/* ---------- Tokens ---------- */
.vrev,
.vrev-header,
#product .ets_rv_wrap,
.ets-rv-product-comment-modal {
  --vrev-green: var(--green-1, #1d6f02);
  --vrev-green-dark: var(--green-24, #25641c);
  --vrev-bar: var(--green-1, #1d6f02);
  --vrev-tint: #eef7e8;
  --vrev-star: #ef9939;
  --vrev-line: #e1e5df;
  --vrev-field: #c9d0c6;
  --vrev-shadow: 0 0.25rem 1.5rem rgb(16 40 20 / 7%);
}
.vrev svg,
.vrev-header svg,
#product .ets_rv_wrap svg:not(.ets_svg_icon svg) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Shared components
   ========================================================================== */

/* White card: summary and each review */
.vrev-summary,
.vrev-card,
#product .ets_rv_wrap .ets_rv_statistics,
#product .ets_rv_wrap .ets-rv-product-comment-list-item {
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: var(--vrev-shadow);
}

/* Avatar: tinted circle with initials */
.vrev-card__avatar,
#product .ets_rv_wrap .ets_rv_avatar_caption {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--vrev-tint) center / cover no-repeat !important;
  color: var(--vrev-green);
  font-weight: 800;
  text-transform: uppercase;
}

/* Customer name */
.vrev-card__name,
#product .ets_rv_wrap .ets-rv-comment-author-name {
  color: #111 !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
}

/* "Achiziție verificată": green check + text */
.vrev-verified,
#product .ets_rv_wrap .verify_label.purchased {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  color: var(--vrev-green) !important;
  font-size: 0.9375rem;
  font-weight: 700;
}
.vrev-verified::before,
#product .ets_rv_wrap .verify_label.purchased::before {
  content: "";
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--vrev-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

/* Date, title, text of a review */
.vrev-card__date,
#product .ets_rv_wrap .review-date {
  position: static;
  width: auto !important;
  margin: 0;
  color: #6b6b6b;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.vrev-card__title,
#product .ets_rv_wrap .ets-rv-product-comment-title-html {
  margin: 0 0 0.375rem;
  color: #111;
  font-size: 1.25rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.vrev-card__text,
#product .ets_rv_wrap .product-comment-content-html {
  margin: 0;
  color: #555;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Bars per grade */
.vrev-bars__row,
#product .ets_rv_wrap .ets_rv_statistic_rating > div {
  display: grid;
  grid-template-columns: auto 6.5rem minmax(4rem, 1fr) 2.5rem;
  align-items: center;
  gap: 1rem;
  margin: 0;
}
.vrev-bars__name,
#product .ets_rv_wrap .ets_rv_grade_stars_type {
  width: auto;
  color: #222;
  font-size: 1rem;
  text-align: left;
}
.vrev-bars__track,
#product .ets_rv_wrap .ets_rv_grade_stars_process {
  display: block;
  width: 100%;
  height: 0.625rem;
  margin: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: #e6e9e5;
}
.vrev-bars__fill,
#product .ets_rv_wrap .ets_rv_grade_stars_percent {
  display: block;
  height: 100%;
  border-radius: 1rem;
  background: var(--vrev-bar) !important;
}
.vrev-bars__total,
#product .ets_rv_wrap .ets_rv_grade_stars_total {
  color: #333;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Select-like boxes: the /all-reviews selects and the product page's sort value */
.vrev .form-select,
#product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by .ets_rv_selection {
  min-width: 13rem;
  min-height: 2.875rem;
  border: 1px solid var(--vrev-field);
  border-radius: 0.625rem;
  background-color: #fff;
  color: #222;
  font-size: 1rem;
}
.vrev .form-select:focus {
  border-color: var(--vrev-green);
  box-shadow: 0 0 0 0.2rem rgb(29 111 2 / 15%);
}
/* Bold label in front of a select ("Rating", "Sortează după", "Afișează") */
.vrev-filter__label,
#product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by label {
  margin: 0;
  color: #111;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Section header: title + one line */
.vrev-header__title,
#product .ets_rv_wrap .ets_rv_reviews_title {
  margin: 0;
  color: #111;
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: none;
}
.vrev-header__lead,
#product .ets_rv_wrap .vprw-header__lead {
  margin: 0.25rem 0 0;
  text-transform: none;
  color: #444;
  font-size: 1.0625rem;
}

/* ==========================================================================
   /all-reviews only
   ========================================================================== */

/* Stars drawn from one fill percentage: grey stars with the orange ones clipped on top */
.vrev-stars {
  position: relative;
  display: inline-block;
  color: #d6d9d4;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}
.vrev-stars::before {
  content: "★★★★★";
  position: absolute;
  inset: 0;
  width: var(--vrev-fill, 0%);
  overflow: hidden;
  color: var(--vrev-star);
}

/* The module's all.css gives this wrapper a white box with 15px padding on phones; the cards inside are the boxes here */
#content .vrev.ets_rv_all_reviews {
  padding: 0;
  background: none;
}

.vrev-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.vrev-header__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--vrev-tint);
  color: var(--vrev-green);
}
.vrev-header__icon svg {
  width: 1.875rem;
  height: 1.875rem;
}

/* Summary card */
.vrev-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 2fr);
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.75rem 2rem;
}
.vrev-summary__item {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding: 0.25rem 2rem 0.25rem 0;
}
.vrev-summary__item + .vrev-summary__item {
  padding-left: 2rem;
  border-left: 1px solid var(--vrev-line);
}
.vrev-summary__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--vrev-tint);
  color: var(--vrev-green);
}
.vrev-summary__icon svg {
  width: 1.875rem;
  height: 1.875rem;
}
.vrev-summary__label {
  display: block;
  margin-bottom: 0.125rem;
  color: #333;
  font-size: 0.9375rem;
  font-weight: 600;
}
.vrev-summary__number {
  color: #111;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
}
.vrev-summary__score {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.375rem 0.625rem;
}
.vrev-summary__of {
  color: var(--vrev-green);
  font-size: 1.125rem;
  font-weight: 700;
}
.vrev-summary__score .vrev-stars {
  margin-left: 0.25rem;
  font-size: 1.375rem;
}
.vrev-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0 0 0 2rem;
  border-left: 1px solid var(--vrev-line);
  list-style: none;
}
.vrev-bars__row .vrev-stars {
  font-size: 1rem;
}

/* Toolbar: title + filters */
.vrev-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.vrev-toolbar__title {
  margin: 0;
  color: #111;
  font-size: 1.5rem;
  font-weight: 800;
}
.vrev-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.vrev-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

/* Review cards */
.vrev-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.vrev-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 9fr);
  gap: 1.5rem 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--vrev-green);
}
.vrev-card__author {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.vrev-card__avatar {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.125rem;
}
.vrev-card__who {
  min-width: 0;
}
.vrev-card__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.625rem;
}
.vrev-card__product {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: #222;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}
.vrev-card__product:hover {
  color: var(--vrev-green);
}
.vrev-card__product img {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.25rem;
  border: 1px solid var(--vrev-line);
  border-radius: 0.5rem;
  background: #fff;
  object-fit: contain;
}
.vrev-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.625rem;
}
.vrev-card__meta .vrev-stars {
  font-size: 1.375rem;
}
.vrev-card__media {
  margin-top: 0.875rem;
}
.vrev-card__media ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vrev-card__media .ets_rv_fancy {
  display: block;
  width: 5rem;
  height: 5rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--vrev-tint) center / cover no-repeat;
}
.vrev-card__media .ets_rv_fancy img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.vrev-card__media video {
  width: 14rem;
  max-width: 100%;
  border-radius: 0.5rem;
}

/* Footer: page size + pagination */
.vrev-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: var(--vrev-shadow);
}
/* Bootstrap gives .form-select width:100%; the page-size select only needs room for "1000" */
.vrev .vrev-footer .form-select {
  flex: 0 0 auto;
  width: 5.5rem;
  min-width: 0;
}
.vrev-footer__total {
  color: #333;
  font-size: 0.9375rem;
  white-space: nowrap;
}
.vrev-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vrev-pages__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.625rem;
  border: 1px solid #d6dbd5;
  border-radius: 0.5rem;
  background: #fff;
  color: #222;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}
.vrev-pages__link:hover {
  border-color: var(--vrev-green);
  color: var(--vrev-green);
}
.vrev-pages__link svg {
  width: 1.125rem;
  height: 1.125rem;
}
.vrev-pages__item.active .vrev-pages__link {
  border-color: var(--vrev-green);
  background: var(--vrev-green);
  color: #fff;
}
.vrev-pages__item--far2 {
  display: none;
}
.vrev-pages__item.disabled .vrev-pages__link {
  opacity: 0.45;
  pointer-events: none;
}

/* ==========================================================================
   Product page only (module markup)
   ========================================================================== */
#product .ets_rv_wrap {
  margin-top: 1rem;
}
/* The module's outer box goes away: the summary and each review are their own cards */
#product .ets_rv_wrap .ets_rv_reviews {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
#product .ets_rv_wrap .ets_rv_wrap_filter,
#product .ets_rv_wrap .ets_rv_wrap_content {
  margin: 0;
}
#product .ets_rv_wrap #ets-rv-product-comments-list-header,
#product .ets_rv_wrap #ets-rv-product-comments-list {
  width: 100%;
  margin: 0 !important;
  padding: 0;
}
#product .ets_rv_wrap .ets_rv_tabs {
  margin: 0;
  padding: 0;
}

/* Header: outline star + title + line */
#product .ets_rv_wrap .ets_rv_reviews_header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
}
#product .ets_rv_wrap .vprw-header__icon {
  grid-row: 1 / span 2;
  color: var(--vrev-green);
}
#product .ets_rv_wrap .vprw-header__icon svg {
  display: block;
  width: 2rem;
  height: 2rem;
}
/* Same size as the page's other section titles (h2.section-title: 20px, 700) */
#product .ets_rv_wrap .ets_rv_reviews_title {
  font-size: 1.25rem;
  font-weight: 700;
}
#product .ets_rv_wrap .vprw-header__lead {
  margin-top: 0.125rem;
  font-size: 0.9375rem;
}

/* Summary card: average box | bars | call-out */
#product .ets_rv_wrap .ets_rv_statistics {
  display: grid;
  /* rating + bars fill the row; the owl and the call-out keep their size (as in the mockup) */
  grid-template-columns: minmax(0, 1fr) auto 22rem;
  align-items: stretch;
  gap: 1.5rem;
  margin: 0;
  padding: 0.75rem;
  border: 0;
}
#product .ets_rv_wrap .ets_rv_stats_review {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  margin: 0;
}
#product .ets_rv_wrap .ets_rv_average_rating {
  position: relative;
  display: flex;
  flex: 0 0 14.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  margin: 0;
  padding: 0.875rem 1rem;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  /* faint laurel branches on both sides of the grade */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -6 74 170'%3E%3Cpath d='M46 156Q2 104 28 10' fill='none' stroke='%23dcecca' stroke-width='2.2' stroke-linecap='round'/%3E%3Cg fill='%23dcecca'%3E%3Cellipse cx='29.5' cy='148.0' rx='11.3' ry='6.1' transform='rotate%28-177 29.5 148.0%29'/%3E%3Cellipse cx='43.2' cy='138.2' rx='11.3' ry='6.1' transform='rotate%28-73 43.2 138.2%29'/%3E%3Cellipse cx='20.5' cy='130.1' rx='10.9' ry='5.9' transform='rotate%28-168 20.5 130.1%29'/%3E%3Cellipse cx='35.2' cy='123.0' rx='10.9' ry='5.9' transform='rotate%28-64 35.2 123.0%29'/%3E%3Cellipse cx='14.5' cy='110.8' rx='10.5' ry='5.7' transform='rotate%28-158 14.5 110.8%29'/%3E%3Cellipse cx='29.6' cy='106.4' rx='10.5' ry='5.7' transform='rotate%28-54 29.6 106.4%29'/%3E%3Cellipse cx='11.4' cy='90.1' rx='10.1' ry='5.4' transform='rotate%28-150 11.4 90.1%29'/%3E%3Cellipse cx='26.4' cy='88.1' rx='10.1' ry='5.4' transform='rotate%28-46 26.4 88.1%29'/%3E%3Cellipse cx='11.1' cy='68.1' rx='9.7' ry='5.2' transform='rotate%28-142 11.1 68.1%29'/%3E%3Cellipse cx='25.6' cy='68.2' rx='9.7' ry='5.2' transform='rotate%28-38 25.6 68.2%29'/%3E%3Cellipse cx='13.5' cy='44.8' rx='9.3' ry='5.0' transform='rotate%28-135 13.5 44.8%29'/%3E%3Cellipse cx='27.3' cy='46.4' rx='9.3' ry='5.0' transform='rotate%28-31 27.3 46.4%29'/%3E%3Cellipse cx='18.5' cy='20.1' rx='8.9' ry='4.8' transform='rotate%28-130 18.5 20.1%29'/%3E%3Cellipse cx='31.5' cy='22.9' rx='8.9' ry='4.8' transform='rotate%28-26 31.5 22.9%29'/%3E%3Cellipse cx='29.9' cy='3.3' rx='8.5' ry='4.8' transform='rotate%28-75 29.9 3.3%29'/%3E%3C/g%3E%3C/svg%3E") left 0.75rem center / auto 86% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -6 74 170'%3E%3Cg transform='matrix%28-1 0 0 1 54 0%29'%3E%3Cpath d='M46 156Q2 104 28 10' fill='none' stroke='%23dcecca' stroke-width='2.2' stroke-linecap='round'/%3E%3Cg fill='%23dcecca'%3E%3Cellipse cx='29.5' cy='148.0' rx='11.3' ry='6.1' transform='rotate%28-177 29.5 148.0%29'/%3E%3Cellipse cx='43.2' cy='138.2' rx='11.3' ry='6.1' transform='rotate%28-73 43.2 138.2%29'/%3E%3Cellipse cx='20.5' cy='130.1' rx='10.9' ry='5.9' transform='rotate%28-168 20.5 130.1%29'/%3E%3Cellipse cx='35.2' cy='123.0' rx='10.9' ry='5.9' transform='rotate%28-64 35.2 123.0%29'/%3E%3Cellipse cx='14.5' cy='110.8' rx='10.5' ry='5.7' transform='rotate%28-158 14.5 110.8%29'/%3E%3Cellipse cx='29.6' cy='106.4' rx='10.5' ry='5.7' transform='rotate%28-54 29.6 106.4%29'/%3E%3Cellipse cx='11.4' cy='90.1' rx='10.1' ry='5.4' transform='rotate%28-150 11.4 90.1%29'/%3E%3Cellipse cx='26.4' cy='88.1' rx='10.1' ry='5.4' transform='rotate%28-46 26.4 88.1%29'/%3E%3Cellipse cx='11.1' cy='68.1' rx='9.7' ry='5.2' transform='rotate%28-142 11.1 68.1%29'/%3E%3Cellipse cx='25.6' cy='68.2' rx='9.7' ry='5.2' transform='rotate%28-38 25.6 68.2%29'/%3E%3Cellipse cx='13.5' cy='44.8' rx='9.3' ry='5.0' transform='rotate%28-135 13.5 44.8%29'/%3E%3Cellipse cx='27.3' cy='46.4' rx='9.3' ry='5.0' transform='rotate%28-31 27.3 46.4%29'/%3E%3Cellipse cx='18.5' cy='20.1' rx='8.9' ry='4.8' transform='rotate%28-130 18.5 20.1%29'/%3E%3Cellipse cx='31.5' cy='22.9' rx='8.9' ry='4.8' transform='rotate%28-26 31.5 22.9%29'/%3E%3Cellipse cx='29.9' cy='3.3' rx='8.5' ry='4.8' transform='rotate%28-75 29.9 3.3%29'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") right 0.75rem center / auto 86% no-repeat,
    var(--vrev-tint);
  text-align: center;
}
#product .ets_rv_wrap .ets_rv_average_rating h3 {
  position: relative;
  margin: 0;
  color: #222;
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
}
#product .ets_rv_wrap .ets_rv_average_grade {
  position: relative;
  margin: 0.125rem 0 0.25rem;
  color: var(--vrev-green-dark);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.05;
}
#product .ets_rv_wrap .ets_rv_average_rating .ets_rv_grade_stars {
  position: relative;
  justify-content: center;
  font-size: 1.375rem;
}
#product .ets_rv_wrap .ets_rv_nb_comments {
  position: relative;
  margin-top: 0.25rem;
  color: #222;
  font-size: 0.9375rem;
  text-transform: lowercase;
}
#product .ets_rv_wrap .ets_rv_statistic_rating {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0;
  padding: 0.25rem 1.5rem;
  border-left: 1px solid var(--vrev-line);
  border-right: 1px solid var(--vrev-line);
}
/* the module paints the stars in its own BO colour (#ee9a00); the theme's orange instead */
#product .ets_rv_wrap .ets_rv_grade_stars,
#product .ets_rv_wrap .ets_rv_grade_stars::before,
#product .ets_rv_wrap .ets_rv_grade_stars::after {
  color: var(--vrev-star) !important;
}
#product .ets_rv_wrap .ets_rv_statistic_rating .ets_rv_grade_stars {
  font-size: 1rem;
  letter-spacing: 0.06em;
}
/* Narrower than on /all-reviews: here the bars share the row with the average box, the owl and the call-out */
#product .ets_rv_wrap .ets_rv_statistic_rating > div {
  grid-template-columns: auto 5.75rem minmax(3rem, 1fr) 1.5rem;
  gap: 0.75rem;
}
#product .ets_rv_wrap .ets_rv_grade_stars_type,
#product .ets_rv_wrap .ets_rv_grade_stars_total {
  font-size: 0.9375rem;
  white-space: nowrap;
}
/* Owl between the bars and the call-out (desktop only, see product-wrap.tpl) */
#product .ets_rv_wrap .vprw-owl {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
  margin-bottom: -0.75rem;
}
#product .ets_rv_wrap .vprw-owl img {
  display: block;
  width: 9.5rem;
  height: auto;
}

/* "Ai cumpărat acest produs?" call-out with the write-a-review button */
#product .ets_rv_wrap .ets_rv_modal_review {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  width: auto;
  max-width: none; /* the module caps it at 181px on tablets */
  margin: 0;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  background: var(--vrev-tint);
  text-align: left;
}
/* speech-bubble tail towards the owl (only while the owl is shown) */
#product .ets_rv_wrap .ets_rv_modal_review::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.625rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.1875rem;
  background: var(--vrev-tint);
  transform: translateY(-50%) rotate(45deg);
}
#product .ets_rv_wrap .vprw-cta__title {
  margin: 0 0 0.25rem;
  color: #111;
  font-size: 1.1875rem;
  font-weight: 800;
  line-height: 1.25;
}
#product .ets_rv_wrap .vprw-cta__text {
  margin: 0 0 0.875rem;
  color: #333;
  font-size: 0.9375rem;
  line-height: 1.45;
}
#product .ets_rv_wrap .ets-rv-btn-comment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0.625rem;
  background: var(--vrev-green) !important;
  color: #fff !important;
  font-size: 1.0625rem;
  font-weight: 700;
}
#product .ets_rv_wrap .ets-rv-btn-comment:hover {
  background: var(--vrev-green-dark) !important;
}
#product .ets_rv_wrap .ets-rv-btn-comment i {
  display: inline-flex;
  margin: 0;
}
#product .ets_rv_wrap .ets-rv-btn-comment svg {
  width: 1.125rem;
  height: 1.125rem;
}
/* the module's pencil; its own CSS leaves the path unfilled */
#product .ets_rv_wrap .ets-rv-btn-comment svg path {
  fill: currentColor !important;
}

/* Filter row, outside the cards */
#product .ets_rv_wrap .ets_rv_review_filter {
  margin: 1.75rem 0 1rem;
  padding: 0;
  border: 0;
}
#product .ets_rv_wrap .ets_rv_filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  border: 0;
}
#product .ets_rv_wrap .ets_rv_filter > li {
  margin: 0;
  border: 0;
  background: none;
}
/* "Recenzii (n)" pill */
#product .ets_rv_wrap .ets_rv_filter .ets_rv_tab {
  border: 1.5px solid var(--vrev-green) !important;
  border-radius: 0.625rem;
  background: var(--vrev-tint) !important;
}
#product .ets_rv_wrap .ets_rv_filter .ets_rv_tab .ets_rv_bulk_actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.875rem;
  padding: 0 1rem 0 1.25rem;
  border: 0;
  color: var(--vrev-green);
  font-size: 1.0625rem;
  font-weight: 700;
}
#product .ets_rv_wrap .ets_rv_filter .ets_rv_tab .ets_rv_selection,
#product .ets_rv_wrap .ets_rv_filter .ets_rv_tab .dropdown-toggle {
  color: var(--vrev-green);
}
/* the module draws a white triangle here; a green chevron like the sort box */
#product .ets_rv_wrap .ets_rv_filter .ets_rv_tab .dropdown-toggle::after {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d6f02' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.15s ease;
}
#product .ets_rv_wrap .ets_rv_filter .ets_rv_bulk_actions.open > .dropdown-toggle::after {
  transform: rotate(180deg);
}
/* Sort: label outside, the value is the box. The module also draws a border on the wrapper: removed (it doubled) */
#product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by .ets_rv_bulk_actions {
  padding: 0;
  border: 0;
  background: none;
}
#product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
#product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by .dropdown-toggle::after {
  display: none;
}
#product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by .ets_rv_selection {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
}
#product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by .ets_rv_selection::after {
  content: "";
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Opened by the small script at the end of product-wrap.tpl (the module's Bootstrap 3 dropdowns do nothing under Bootstrap 5) */
#product .ets_rv_wrap .ets_rv_filter .ets_rv_bulk_actions {
  position: relative;
  cursor: pointer;
}
#product .ets_rv_wrap .ets_rv_filter .ets_rv_bulk_actions.open > .ets_rv_ul_dropdown {
  display: block;
  top: calc(100% + 0.25rem);
  min-width: max(100%, 13rem);
  padding: 0.375rem !important;
  z-index: 20;
}
/* "Recenzii (n)" opens to the right of its pill (the module anchors it right: -1px) */
#product .ets_rv_wrap .ets_rv_filter .ets_rv_tab .ets_rv_ul_dropdown {
  right: auto;
  left: 0;
  margin: 0;
}
#product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by .ets_rv_ul_dropdown {
  right: 0;
  left: auto;
  margin: 0;
}
#product .ets_rv_wrap .ets_rv_filter .ets_rv_li_dropdown {
  border-radius: 0.375rem;
  white-space: nowrap;
}
#product .ets_rv_wrap .ets_rv_ul_dropdown {
  padding: 0.375rem;
  border: 1px solid var(--vrev-line);
  border-radius: 0.625rem;
  box-shadow: 0 0.5rem 1.5rem rgb(16 40 20 / 12%);
}
#product .ets_rv_wrap .ets_rv_li_dropdown {
  padding: 0.5rem 0.75rem;
  border: 0 !important;
  border-radius: 0.375rem;
  background: none !important;
  color: #222 !important;
  font-size: 0.9375rem;
}
#product .ets_rv_wrap .ets_rv_li_dropdown:hover,
#product .ets_rv_wrap .ets_rv_li_dropdown.active {
  background: var(--vrev-tint) !important;
  color: var(--vrev-green) !important;
}

/* One card per review */
#product .ets_rv_wrap .ets-rv-product-comment-list-item {
  position: relative;
  margin: 0 0 1rem;
  padding: 1.5rem 1.75rem 1.25rem;
  border: 0;
}
#product .ets_rv_wrap .ets-rv-product-comment-list-item > .ets-rv-comment-author-avatar {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  width: 3.75rem;
  height: 3.75rem;
  margin: 0;
  background: none;
}
#product .ets_rv_wrap .ets_rv_avatar_caption {
  width: 100%;
  height: 100%;
  font-size: 1.375rem;
}
/* Top row: author (beside the avatar) and stars + date (right), then a divider */
#product .ets_rv_wrap .ets-rv-product-comment-list-item > .ets-rv-comment-infos {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  min-height: 3.75rem;
  margin: 0 0 1rem;
  padding: 0.125rem 0 1rem 5rem;
  border-bottom: 1px solid var(--vrev-line);
}
#product .ets_rv_wrap .comment-author {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  width: auto;
  min-width: 0;
  padding: 0;
}
#product .ets_rv_wrap .verify_label.purchased {
  flex-basis: 100%;
}
#product .ets_rv_wrap .comment-author-profile {
  color: #6b6b6b;
  font-size: 0.8125rem;
}
#product .ets_rv_wrap .comment_flag img {
  display: block;
  width: 1.25rem;
  border-radius: 2px;
}
/* The module forces a row and a 100% wide date here, which pushed the date out of the card */
#product .ets_rv_wrap .ets-rv-comment-author-rate {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column !important;
  align-items: flex-end;
  gap: 0.375rem;
  width: auto;
  height: auto;
  margin: 0;
}
#product .ets_rv_wrap .ets-rv-comment-author-rate .ets_rv_grade_stars {
  align-items: center;
  font-size: 1.375rem;
}
#product .ets_rv_wrap .ets_rv_average_grade_item {
  display: inline;
  margin-left: 0.375rem;
  color: #444;
  font-size: 0.9375rem;
  letter-spacing: 0;
}
#product .ets_rv_wrap .ets-rv-comment-content {
  padding: 0;
}
/* "Ți-a fost de ajutor?" row */
#product .ets_rv_wrap .ets-rv-comment-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
#product .ets_rv_wrap .label_helpful {
  margin-right: 0.25rem;
  color: #555;
  font-size: 0.9375rem;
}
#product .ets_rv_wrap .useful-product-comment,
#product .ets_rv_wrap .ets-rv-not-useful-product-comment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  border: 1px solid var(--vrev-field);
  border-radius: 0.625rem;
  background: #fff;
  color: #555;
  font-size: 1rem;
  cursor: pointer;
}
#product .ets_rv_wrap .useful-product-comment {
  color: var(--vrev-green);
  font-weight: 700;
}
#product .ets_rv_wrap .useful-product-comment:hover,
#product .ets_rv_wrap .ets-rv-not-useful-product-comment:hover {
  border-color: var(--vrev-green);
}
/* Counts as plain numbers: the module wraps them in "(…)" */
#product .ets_rv_wrap .useful-product-comment-value::before,
#product .ets_rv_wrap .useful-product-comment-value::after,
#product .ets_rv_wrap .ets-rv-not-useful-product-comment-value::before,
#product .ets_rv_wrap .ets-rv-not-useful-product-comment-value::after {
  content: none;
}
#product .ets_rv_wrap .ets-rv-comment-buttons .ets_svg_icon svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
  stroke: none;
}

/* Replies (e.g. the shop answering a review): tinted box inside the review card */
#product .ets_rv_wrap .ets_rv_comment_list .comment-list-item {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
  background: none;
}
#product .ets_rv_wrap .comment-list-item .comment-list-item-info {
  position: relative;
  padding: 1rem 1.25rem 1rem 4.25rem;
  border-radius: 0.875rem;
  background: #f4f8f1;
}
#product .ets_rv_wrap .comment-list-item .ets-rv-comment-author-avatar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
}
#product .ets_rv_wrap .comment-list-item .ets_rv_avatar_caption {
  background: var(--vrev-green) !important;
  color: #fff;
  font-size: 1rem;
}
#product .ets_rv_wrap .comment-list-item .ets-rv-comment-infos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0;
  border: 0;
}
#product .ets_rv_wrap .comment-list-item .comment-author {
  padding-right: 0;
}
#product .ets_rv_wrap .comment-list-item .ets-rv-comment-author-name {
  font-size: 1rem !important;
}
#product .ets_rv_wrap .comment-list-item .ets-rv-comment-author-rate {
  flex-direction: row !important;
}
/* A reply has no purchase to verify: the module still prints an empty label */
#product .ets_rv_wrap .comment-list-item .verify_label {
  display: none;
}
#product .ets_rv_wrap .comment-list-item .ets-rv-comment-content-html {
  margin: 0.375rem 0 0.5rem;
  color: #333;
  font-size: 0.9375rem;
}

/* Below 1400px there is no room for the owl (product-wrap.tpl does not even download it there) */
@media (max-width: 1399.98px) {
  #product .ets_rv_wrap .ets_rv_statistics {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  }
  #product .ets_rv_wrap .vprw-owl,
  #product .ets_rv_wrap .ets_rv_modal_review::before {
    display: none;
  }
  #product .ets_rv_wrap .ets_rv_statistic_rating {
    border-right: 0;
  }
}

/* ==========================================================================
   Tablets
   ========================================================================== */
@media (max-width: 1199.98px) {
  .vrev-summary {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem 0;
  }
  .vrev-bars {
    grid-column: 1 / -1;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--vrev-line);
    border-left: 0;
  }
}

/* Small tablets: the call-out goes under the rating, full width (the module gives it a fixed width) */
@media (max-width: 991.98px) {
  #product .ets_rv_wrap .ets_rv_statistics {
    grid-template-columns: minmax(0, 1fr);
  }
  #product .ets_rv_wrap .ets_rv_statistic_rating {
    flex: 1 1 auto;
    width: auto;
    max-width: 32rem;
  }
}

/* ==========================================================================
   Phones
   ========================================================================== */
@media (max-width: 767.98px) {
  /* Shared */
  .vrev-bars__row,
  #product .ets_rv_wrap .ets_rv_statistic_rating > div {
    grid-template-columns: auto 5.25rem minmax(2.5rem, 1fr) 1.75rem;
    gap: 0.5rem;
  }
  .vrev-bars__row .vrev-stars,
  #product .ets_rv_wrap .ets_rv_statistic_rating .ets_rv_grade_stars {
    font-size: 0.875rem;
  }
  .vrev-bars__name,
  .vrev-bars__total,
  #product .ets_rv_wrap .ets_rv_grade_stars_type,
  #product .ets_rv_wrap .ets_rv_grade_stars_total {
    font-size: 0.875rem;
    white-space: nowrap;
  }
  .vrev-header__lead,
  #product .ets_rv_wrap .vprw-header__lead {
    font-size: 0.9375rem;
  }
  .vrev-card__name,
  #product .ets_rv_wrap .ets-rv-comment-author-name {
    font-size: 1.0625rem !important;
  }
  .vrev-card__title,
  #product .ets_rv_wrap .ets-rv-product-comment-title-html {
    font-size: 1.125rem;
  }
  .vrev-card__text,
  #product .ets_rv_wrap .product-comment-content-html {
    font-size: 1rem;
  }

  /* /all-reviews */
  .vrev-header {
    gap: 0.625rem;
    margin: 0.5rem 0 1rem;
  }
  .vrev-header__icon {
    width: 2.5rem;
    height: 2.5rem;
  }
  .vrev-header__icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  /* "Recenzii de la clienți" on one line, down to 320px wide phones */
  .vrev-header__title {
    font-size: clamp(1.125rem, 5.6vw, 1.375rem);
    white-space: nowrap;
  }
  .vrev-summary {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.25rem;
  }
  .vrev-summary__item {
    padding: 0;
  }
  .vrev-summary__item + .vrev-summary__item {
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--vrev-line);
    border-left: 0;
  }
  .vrev-summary__icon {
    width: 3rem;
    height: 3rem;
  }
  .vrev-summary__number {
    font-size: 1.875rem;
  }
  .vrev-bars {
    padding-top: 1.25rem;
  }
  .vrev-toolbar__filters,
  .vrev-filter {
    width: 100%;
  }
  .vrev-filter {
    justify-content: space-between;
  }
  .vrev .vrev-filter .form-select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 15rem;
  }
  .vrev-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.125rem 1rem 1.25rem;
  }
  .vrev-card__avatar {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1rem;
  }
  .vrev-footer {
    justify-content: center;
    padding: 1rem;
  }
  .vrev .vrev-footer__per-page {
    justify-content: center;
    width: auto;
  }
  .vrev-pages {
    justify-content: center;
  }
  .vrev-pages__link {
    min-width: 2.25rem;
    height: 2.25rem;
  }

  /* Product page */
  #product .ets_rv_wrap .vprw-header__icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  #product .ets_rv_wrap .ets_rv_reviews_title {
    font-size: 1.125rem;
  }
  #product .ets_rv_wrap .ets_rv_stats_review {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  /* In a column the desktop flex-basis would become a height */
  #product .ets_rv_wrap .ets_rv_average_rating,
  #product .ets_rv_wrap .ets_rv_statistic_rating {
    flex: 0 0 auto;
  }
  /* Rating as one slim row: "5,0 ★★★★★ 2 recenzii" under the label (the module fixes its width at 170px) */
  #product .ets_rv_wrap .ets_rv_average_rating {
    flex-flow: row wrap;
    gap: 0.25rem 0.75rem;
    width: auto;
    max-width: none;
    padding: 0.75rem 1rem;
  }
  #product .ets_rv_wrap .ets_rv_average_rating > :first-child {
    flex: 0 0 100%;
  }
  #product .ets_rv_wrap .ets_rv_average_grade {
    margin: 0;
    font-size: 2rem;
  }
  #product .ets_rv_wrap .ets_rv_nb_comments {
    margin: 0;
  }
  #product .ets_rv_wrap .ets_rv_statistic_rating {
    padding: 0;
    border-left: 0;
  }
  #product .ets_rv_wrap .ets_rv_modal_review {
    padding: 1.25rem;
  }
  #product .ets_rv_wrap .vprw-cta__title {
    font-size: 1.1875rem;
  }
  /* "Recenzii (n)" and the sort box on one row; the module makes each li 100% wide */
  #product .ets_rv_wrap .ets_rv_filter {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  #product .ets_rv_wrap .ets_rv_filter .ets_rv_tab {
    flex: 0 0 auto;
    width: auto;
  }
  #product .ets_rv_wrap .ets_rv_filter .ets_rv_tab .ets_rv_bulk_actions {
    gap: 0.5rem;
    padding: 0 0.75rem 0 0.875rem;
    font-size: 1rem;
  }
  #product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by.active {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  #product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by .dropdown-toggle {
    width: 100%;
  }
  /* The box already reads "Cele mai recente"; the label stays for screen readers */
  #product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  #product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by .ets_rv_selection {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 0.875rem;
    white-space: nowrap;
  }
  #product .ets_rv_wrap .ets_rv_filter .ets_rv_sort_by .ets_rv_ul_dropdown {
    right: 0;
    left: auto;
  }
  #product .ets_rv_wrap .ets-rv-product-comment-list-item {
    padding: 1.125rem 1rem 1rem;
  }
  #product .ets_rv_wrap .ets-rv-product-comment-list-item > .ets-rv-comment-author-avatar {
    top: 1.125rem;
    left: 1rem;
    width: 2.75rem;
    height: 2.75rem;
  }
  #product .ets_rv_wrap .ets-rv-product-comment-list-item > .ets-rv-comment-infos {
    flex-wrap: wrap;
    min-height: 2.75rem;
    padding-left: 3.5rem;
  }
  #product .ets_rv_wrap .ets-rv-comment-author-rate {
    flex-direction: row !important;
    justify-content: space-between;
    width: 100%;
  }
  #product .ets_rv_wrap .comment-list-item .comment-list-item-info {
    padding: 0.875rem 0.875rem 0.875rem 3.5rem;
  }
  #product .ets_rv_wrap .comment-list-item .ets-rv-comment-author-avatar {
    left: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Small phones: one row of pages on /all-reviews (see the --far / --edge note in all-reviews-list.tpl) */
@media (max-width: 575.98px) {
  .vrev-pages {
    flex-wrap: nowrap;
  }
  .vrev-pages__item--far1,
  .vrev-pages__item--edge {
    display: none;
  }
}

/* ==========================================================================
   Review windows of the module (theme hook/post-comment-modal.tpl + alert-modal.tpl):
   "Scrie o recenzie", the sign-in prompt, "Mulțumim pentru recenzie!" and the error.
   They sit outside .ets_rv_wrap, so they are scoped by the module's own modal class.
   ========================================================================== */
.ets-rv-modal-backdrop.in {
  background: #10281a;
  opacity: 0.55;
}
.ets-rv-modal.ets-rv-product-comment-modal .ets-rv-modal-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-width: none;
}
/* the sign-in prompt is short: a narrower window */
.ets-rv-modal.popup_login_form.ets-rv-product-comment-modal .ets-rv-modal-dialog {
  width: min(30rem, calc(100vw - 2rem));
}
.ets-rv-product-comment-modal .ets-rv-modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 1.25rem;
  background: #fff !important; /* the module makes it transparent for the sign-in prompt (!important) */
  box-shadow: 0 1.5rem 3.5rem rgb(16 40 20 / 22%);
  color: #222;
  text-align: left;
}
.ets-rv-product-comment-modal .ets_rv_reviews_modal,
.ets-rv-product-comment-modal .ets_rv_login,
.ets-rv-product-comment-modal .ets_rv_is_block,
.ets-rv-product-comment-modal .ets_rv_purchase_product,
.ets-rv-product-comment-modal .ets_rv_post_allowed {
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Header: title with a green icon, round close button */
.ets-rv-product-comment-modal .ets-rv-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 1.375rem 4rem 0 1.5rem;
  border: 0;
}
.ets-rv-product-comment-modal .ets-rv-modal-header .h2,
.ets-rv-product-comment-modal .ets-rv-modal-header .h3,
.ets-rv-product-comment-modal .ets-rv-modal-header h2,
.ets-rv-product-comment-modal .ets-rv-modal-header h3 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  color: #111;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: none;
}
.ets-rv-product-comment-modal .ets-rv-modal-header .h2 svg,
.ets-rv-product-comment-modal .ets-rv-modal-header .h3 svg,
.ets-rv-product-comment-modal .ets-rv-modal-header h2 svg,
.ets-rv-product-comment-modal .ets-rv-modal-header h3 svg {
  flex: 0 0 auto;
  width: 1.375rem;
  height: 1.375rem;
  fill: var(--vrev-green);
  vertical-align: middle;
}
.ets-rv-product-comment-modal .ets-rv-modal-header .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f3f0;
  opacity: 1;
  box-shadow: none;
  cursor: pointer;
}
.ets-rv-product-comment-modal .ets-rv-modal-header .close:hover {
  background: var(--vrev-tint);
}
.ets-rv-product-comment-modal .ets-rv-modal-header .close svg {
  width: 0.75rem;
  height: 0.75rem;
  fill: #444;
}

/* Body and fields */
.ets-rv-product-comment-modal .ets-rv-modal-body {
  padding: 1.25rem 1.5rem 0.25rem;
  font-size: 1rem;
}
/* Product being reviewed: a slim strip (image + name), not a second page title */
.ets-rv-product-comment-modal .ets-rv-modal-body .row.modal_body_infor {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1.25rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--vrev-tint);
}
.ets-rv-product-comment-modal .ets-rv-modal-body .row.modal_body_infor > [class*="col-"] {
  width: auto;
  margin: 0;
  padding: 0;
}
.ets-rv-product-comment-modal .ets-rv-modal-body .modal_body_infor > .modal_product_img {
  flex: 0 0 4rem;
  max-width: 4rem;
}
.ets-rv-product-comment-modal .modal_product_img .product-cover {
  height: auto;
  margin: 0;
  padding: 0;
}
.ets-rv-product-comment-modal .modal_product_img img {
  display: block;
  margin: 0;
  width: 4rem !important;
  height: 4rem !important;
  border-radius: 0.5rem;
  background: #fff;
  object-fit: contain;
}
.ets-rv-product-comment-modal .modal_product_img .product-flags {
  display: none;
}
.ets-rv-product-comment-modal .ets-rv-modal-body .modal_body_infor > .modal_product_info {
  flex: 1 1 auto;
  min-width: 0;
}
.ets-rv-product-comment-modal .modal_product_info h4 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #111;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ets-rv-product-comment-modal .modal_product_info [itemprop="description"] {
  display: none;
}
.ets-rv-product-comment-modal .ets-rv-modal-body .row > [class*="col-"] {
  margin-bottom: 1rem;
}
.ets-rv-product-comment-modal .form-label {
  display: block;
  margin: 0 0 0.375rem;
  color: #222;
  font-size: 0.9375rem;
  font-weight: 700;
}
.ets-rv-product-comment-modal .form-label sup.required {
  top: -0.15em;
  margin-left: 0.125rem;
  color: #c62828;
  font-size: 0.875rem;
}
.ets-rv-product-comment-modal input[type="text"],
.ets-rv-product-comment-modal textarea {
  width: 100%;
  min-height: 2.875rem;
  margin: 0;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--vrev-field);
  border-radius: 0.625rem;
  background: #fff;
  box-shadow: none;
  color: #222;
  font-size: 1rem;
  line-height: 1.4;
}
.ets-rv-product-comment-modal textarea {
  min-height: 7.5rem;
  resize: vertical;
}
.ets-rv-product-comment-modal input[type="text"]::placeholder,
.ets-rv-product-comment-modal textarea::placeholder {
  color: #7a8278;
}
.ets-rv-product-comment-modal input[type="text"]:focus,
.ets-rv-product-comment-modal textarea:focus {
  border-color: var(--vrev-green);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgb(29 111 2 / 15%);
}
.ets-rv-product-comment-modal .desc_error {
  margin: 0.375rem 0 0;
  color: #c62828;
  font-size: 0.8125rem;
}

/* "Cât de mulțumit ești de produs?": criterion name + big stars in a tinted strip */
.ets-rv-product-comment-modal #criterions_list,
.ets-rv-product-comment-modal #criterions_list tbody {
  display: block;
  width: 100%;
}
.ets-rv-product-comment-modal #criterions_list .criterion-rating:not(.template) {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--vrev-tint);
}
.ets-rv-product-comment-modal #criterions_list td {
  padding: 0;
  border: 0;
}
.ets-rv-product-comment-modal #criterions_list td label {
  margin: 0 !important;
  color: #222;
  font-size: 1rem;
  font-weight: 600 !important;
}
/* the module fixes the star row at 17px, so the bigger stars hung below the "Calitate" line */
.ets-rv-product-comment-modal #criterions_list td {
  display: flex;
  align-items: center;
}
/* the two star layers (empty / full) are absolute inside it, so it needs the stars' own size */
.ets-rv-product-comment-modal .ets-pc-criterion .ets-rv-grade-stars {
  display: block;
  width: 10rem;
  height: 1.75rem;
}
.ets-rv-product-comment-modal .ets-pc-criterion .ets-rv-star-content {
  align-items: center;
}
.ets-rv-product-comment-modal .ets-pc-criterion .star {
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 0.25rem 0 0;
  cursor: pointer;
}
.ets-rv-product-comment-modal .ets-pc-criterion .star svg {
  width: 100%;
  height: 100%;
  fill: var(--vrev-star) !important;
}

/* Footer: "Renunță" quiet, "Trimite recenzia" green */
.ets-rv-product-comment-modal .ets-rv-post_content_footer_modal,
.ets-rv-product-comment-modal .ets-rv-modal-footer {
  margin: 0;
  padding: 1rem 1.5rem 1.375rem;
  border: 0;
}
.ets-rv-product-comment-modal .ets-rv-post_content_footer_modal {
  border-top: 1px solid var(--vrev-line);
}
.ets-rv-product-comment-modal .post-comment-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  float: none;
  width: 100%;
  padding: 0;
}
.ets-rv-product-comment-modal .post-comment-buttons.button_center {
  justify-content: center;
}
.ets-rv-product-comment-modal .post-comment-buttons .btn,
.ets-rv-product-comment-modal .ets_rv_login .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  float: none;
  min-width: 9rem;
  min-height: 2.875rem;
  margin: 0;
  padding: 0 1.375rem;
  border: 1px solid var(--vrev-green) !important;
  border-radius: 0.625rem;
  background: var(--vrev-green) !important;
  box-shadow: none;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
}
.ets-rv-product-comment-modal .post-comment-buttons .btn:hover,
.ets-rv-product-comment-modal .ets_rv_login .btn:hover {
  border-color: var(--vrev-green-dark) !important;
  background: var(--vrev-green-dark) !important;
}
.ets-rv-product-comment-modal .post-comment-buttons .cancel_button,
.ets-rv-product-comment-modal .ets_rv_login .create_account {
  border-color: var(--vrev-field) !important;
  background: #fff !important;
  color: #333 !important;
}
.ets-rv-product-comment-modal .post-comment-buttons .cancel_button:hover,
.ets-rv-product-comment-modal .ets_rv_login .create_account:hover {
  border-color: var(--vrev-green) !important;
  background: var(--vrev-tint) !important;
  color: var(--vrev-green) !important;
}
.ets-rv-product-comment-modal .ets_rv_login .btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.ets-rv-product-comment-modal .ets_rv_login .btn i {
  display: inline-flex;
}

/* Sign-in prompt: the module pins a dark close button on the corner of the box; ours instead */
.ets-rv-modal.popup_login_form.ets-rv-product-comment-modal .ets_rv_login button.close {
  top: 0.875rem;
  right: 0.875rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: #f1f3f0;
  box-shadow: none;
}
.ets-rv-modal.popup_login_form.ets-rv-product-comment-modal .ets_rv_login button.close:hover {
  background: var(--vrev-tint);
}
/* Sign-in prompt: the module leaves the title empty */
.ets-rv-product-comment-modal .ets_rv_login .ets-rv-modal-header h2 {
  display: none;
}
.ets-rv-product-comment-modal .ets_rv_login .ets-rv-modal-body {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 3.25rem 2rem 1.75rem; /* clear of the close button */
  text-align: center;
}
.ets-rv-product-comment-modal .ets_rv_login .ets-rv-modal-body p {
  flex: 0 0 100%;
  margin: 0 0 0.5rem;
  color: #222;
  font-size: 1.0625rem;
  font-weight: 600;
}

/* Confirmation / error after sending: centred, big icon */
#ets-rv-product-comment-posted-modal .ets-rv-modal-header,
#ets-rv-product-comment-post-error .ets-rv-modal-header,
#ets-rv-product-question-posted-modal .ets-rv-modal-header {
  justify-content: center;
  padding: 2rem 1.5rem 0;
  text-align: center;
}
#ets-rv-product-comment-posted-modal .ets-rv-modal-header .h2,
#ets-rv-product-comment-post-error .ets-rv-modal-header .h2,
#ets-rv-product-question-posted-modal .ets-rv-modal-header .h2 {
  flex-direction: column;
  gap: 0.875rem;
}
#ets-rv-product-comment-posted-modal .ets-rv-modal-header .h2 i,
#ets-rv-product-comment-post-error .ets-rv-modal-header .h2 i,
#ets-rv-product-question-posted-modal .ets-rv-modal-header .h2 i {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--vrev-tint);
}
#ets-rv-product-comment-posted-modal .ets-rv-modal-header .h2 svg,
#ets-rv-product-comment-post-error .ets-rv-modal-header .h2 svg,
#ets-rv-product-question-posted-modal .ets-rv-modal-header .h2 svg {
  width: 2.25rem;
  height: 2.25rem;
}
#ets-rv-product-comment-post-error .ets-rv-modal-header .h2 i {
  background: #fdecea;
}
#ets-rv-product-comment-post-error .ets-rv-modal-header .h2 svg {
  fill: #c62828;
}
#ets-rv-product-comment-posted-modal .ets-rv-modal-body,
#ets-rv-product-comment-post-error .ets-rv-modal-body,
#ets-rv-product-question-posted-modal .ets-rv-modal-body {
  padding: 0.75rem 2rem 0.5rem;
  color: #444;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}
#ets-rv-product-comment-posted-modal .ets-rv-modal-footer,
#ets-rv-product-comment-post-error .ets-rv-modal-footer,
#ets-rv-product-question-posted-modal .ets-rv-modal-footer {
  padding: 0.5rem 1.5rem 1.75rem;
}
#ets-rv-product-comment-posted-modal .ets-rv-modal-body .row > [class*="col-"],
#ets-rv-product-comment-post-error .ets-rv-modal-body .row > [class*="col-"],
#ets-rv-product-question-posted-modal .ets-rv-modal-body .row > [class*="col-"] {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Reply / comment box under a review (hook/product-comment-form.tpl)
   ========================================================================== */
#product .ets_rv_wrap form[class*="form-control-"] textarea {
  width: 100%;
  min-height: 5.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--vrev-field);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: none;
  color: #222;
  font-size: 0.9375rem;
  line-height: 1.45;
  resize: vertical;
}
#product .ets_rv_wrap form[class*="form-control-"] textarea:focus {
  border-color: var(--vrev-green);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgb(29 111 2 / 15%);
}
#product .ets_rv_wrap form[class*="form-control-"] .form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.625rem;
}
#product .ets_rv_wrap form[class*="form-control-"] .form-footer button {
  min-height: 2.5rem;
  margin: 0;
  padding: 0 1.125rem;
  border-radius: 0.625rem;
  box-shadow: none;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
}
#product .ets_rv_wrap form[class*="form-control-"] .form-footer [class*="ets_rv_post_"] {
  border: 1px solid var(--vrev-green) !important;
  background: var(--vrev-green) !important;
  color: #fff !important;
}
#product .ets_rv_wrap form[class*="form-control-"] .form-footer [class*="ets_rv_post_"]:hover {
  border-color: var(--vrev-green-dark) !important;
  background: var(--vrev-green-dark) !important;
}
#product .ets_rv_wrap form[class*="form-control-"] .form-footer [class*="ets_rv_cancel_"] {
  border: 1px solid var(--vrev-field) !important;
  background: #fff !important;
  color: #333 !important;
}
#product .ets_rv_wrap form[class*="form-control-"] .form-footer [class*="ets_rv_cancel_"]:hover {
  border-color: var(--vrev-green) !important;
  color: var(--vrev-green) !important;
}

@media (max-width: 575.98px) {
  .ets-rv-product-comment-modal .ets-rv-modal-header {
    padding: 1.125rem 3.5rem 0 1.125rem;
  }
  .ets-rv-product-comment-modal .ets-rv-modal-header .h2,
  .ets-rv-product-comment-modal .ets-rv-modal-header .h3 {
    font-size: 1.1875rem;
  }
  .ets-rv-product-comment-modal .ets-rv-modal-body {
    padding: 1rem 1.125rem 0;
  }
  .ets-rv-product-comment-modal .ets-rv-post_content_footer_modal,
  .ets-rv-product-comment-modal .ets-rv-modal-footer {
    padding: 0.875rem 1.125rem 1.125rem;
  }
  .ets-rv-product-comment-modal .post-comment-buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 0.75rem;
    white-space: nowrap;
  }
}

