@charset "UTF-8";
/* =====================================================
   drevko.sk – CUSTOM RATING STYLES
   Verzia: v6.6 (2026-04-29)
   Brand: #93BA40, font Nunito
   Súbor: /user/documents/rating-custom.css
   Použitie: <link rel="stylesheet" href="/user/documents/rating-custom.css?v=66">

   Iterácia v6 – súhrn aktuálneho stavu:
   – Tabová lišta Shoptetu ostáva nedotknutá, štýlujeme len obsah #ratingTab.
   – Hlavička recenzie v 3 riadkoch:
       1. meno autora
       2. hviezdy
       3. odznak "Overený nákup • DD.MM.YYYY" (text badgea + dátum spojené)
     Profilový obrázok je úplne skrytý.
     Odznak má padding 5/10/3 a line-height 1 – uppercase je opticky vycentrovaný.
   – Hviezdy v recenzii: gap 4 px, vertical-align middle, na mobile 14×14 px.
   – Bary 5★–1★ s počtom hodnotení v pravom rohu (správne fungujú aj
     keď je .rate-count zanorený v .rate-bar).
   – Formulár hodnotenia/diskusie ostáva v pôvodných veľkostiach v6.6.

   POZNÁMKA: Tento súbor nahrádza v5 aj inline blok
   <style id="drevko-rating-redesign"> v hlavičke šablóny –
   po nasadení ten inline blok pokojne odstráň.
   ===================================================== */


/* ============================================================
   SEKCIA 0 – RÁMEC OBSAHU ZÁLOŽKY HODNOTENIE
   ============================================================ */

#ratingTab {
  background: #ffffff;
  border: 1px solid #e8ecdf;
  border-radius: 14px;
  padding: 28px 32px 32px;
  box-shadow: 0 4px 14px rgba(32, 32, 32, .05);
  margin-top: 8px;
  font-family: 'Nunito', sans-serif;
}
#ratingTab > h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1f1f1f;
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #268455;
  display: inline-block;
}


/* ============================================================
   SEKCIA 1 – DETAIL PRODUKTU (priemerné hodnotenie pri popise)
   ============================================================ */

.rate-wrapper-in-description .rateAverage__link,
.rate-wrapper-in-description .rateAverage__link:visited {
  color: #444 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rate-wrapper-in-description .rate-average {
  color: #1f1f1f !important;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: none !important;
  font-family: 'Nunito', sans-serif;
}
.rate-wrapper-in-description .stars--productDetail .star-on {
  color: #f5b301 !important;
}
.rate-wrapper-in-description .starsLabel--productDetail {
  color: #777 !important;
  font-size: 13px;
  margin-left: 6px;
  text-decoration: none !important;
  font-family: 'Nunito', sans-serif;
}
.rate-wrapper-in-description .starsLabel--productDetail span:first-child {
  color: #777 !important;
  text-decoration: underline !important;
  text-decoration-color: #777 !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s ease, text-decoration-color .2s ease, text-decoration-thickness .2s ease;
}
.rate-wrapper-in-description .starsLabel--productDetail span:not(:first-child) {
  color: #999 !important;
  text-decoration: none !important;
}
.rate-wrapper-in-description .rateAverage__link:hover .rate-average,
.rate-wrapper-in-description .rateAverage__link:hover .starsLabel--productDetail span {
  color: #1f1f1f !important;
}
.rate-wrapper-in-description .rateAverage__link:hover .starsLabel--productDetail span:first-child {
  text-decoration-color: #1f1f1f !important;
  text-decoration-thickness: 2px;
}
.rate-wrapper-in-description .rateAverage__link:hover {
  text-decoration: none !important;
  cursor: pointer;
}


/* ============================================================
   SEKCIA 2 – TAB HODNOTENIE (#ratingTab)
   ============================================================ */

/* 2a) Súhrn hodnotení (priemer + bary 5★ – 1★) */
#ratingWrapper.rate-wrapper {
  background: #f8faf2;
  border: 1px solid #eef2e2;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 24px;
  font-family: 'Nunito', sans-serif;
}
#ratingWrapper .rate-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 32px;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
}
#ratingWrapper .rate-average-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
#ratingWrapper .rate-average-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#ratingWrapper .rate-average-inner .rate-average {
  font-size: 52px;
  font-weight: 800;
  color: #1f1f1f;
  line-height: 1;
  letter-spacing: -1px;
}
#ratingWrapper .rate-star-wrap .stars--productDetail .star-on,
#ratingWrapper .rate-star-wrap [class*="star-on"] {
  color: #f5b301 !important;
}
#ratingWrapper .stars--productDetail .star {
  width: 22px; height: 22px; background-size: 22px 22px;
}
#ratingWrapper .starsLabel--productDetail {
  font-size: 13px;
  color: #777;
  margin-left: 0;
}

/* Bary 5★ – 1★
   POZN.: V Shoptete je .rate-count zanorený vnútri .rate-bar.
   Riešime to tak, že .rate-list má position:relative a count
   je absolútne umiestnený na pravom okraji riadku.
*/
#ratingWrapper .votes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
#ratingWrapper .votes .rate-list {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0 56px 0 0;
  background: transparent;
  border: 0;
  position: relative;
}
#ratingWrapper .votes .rate-star {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: #555;
  font-size: 14px;
  font-weight: 700;
}
#ratingWrapper .votes .rate-star .rate-value { font-weight: 700; }
#ratingWrapper .votes .rate-star .star,
#ratingWrapper .votes .rate-star .star-off,
#ratingWrapper .votes .rate-star .star-on {
  color: #268455 !important;
  width: 14px; height: 14px;
}
#ratingWrapper .votes .rate-block {
  height: 10px;
  background: #eef2e2;
  border-radius: 999px;
  width: 100%;
}
#ratingWrapper .votes .rate-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #268455, #2bd07e);
  border-radius: 999px;
  width: var(--rate-bar-width, 0%);
  transition: width .35s ease;
  position: static;
}
#ratingWrapper .votes .rate-bar .rate-count,
#ratingWrapper .votes .rate-list .rate-count {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 48px;
  text-align: right;
  font-size: 13px;
  color: #777;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#ratingWrapper .votes .rate-bar .rate-count.active {
  color: #124c2f;
}

/* 2b) Tlačidlo "Pridať hodnotenie" – brand pill */
#ratingTab .add-comment .btn,
#ratingTab .rate-form-trigger .btn,
#ratingTab .add-comment a,
#ratingTab a[href*="addRate"],
#ratingTab button.btn-conversion,
#ratingTab [data-testid="buttonAddRating"] {
  background: #268455 !important;
  border: 0 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 11px 24px !important;
  font-weight: 700 !important;
  font-family: 'Nunito', sans-serif !important;
  letter-spacing: .2px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease !important;
  box-shadow: 0 2px 6px rgba(38,132,85,.25) !important;
  cursor: pointer;
}
#ratingTab .add-comment .btn:hover,
#ratingTab .rate-form-trigger .btn:hover,
#ratingTab [data-testid="buttonAddRating"]:hover {
  background: #1e7248 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(38,132,85,.35) !important;
}
#ratingTab .add-comment {
  margin: 18px 0 24px;
}

/* 2c) Výpis recenzií – karty s ľavým farebným prúžkom */
#ratingsList.ratingsList {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
}
#ratingsList .vote-wrap {
  background: #ffffff;
  border: 1px solid #ececec;
  border-left: 4px solid #268455;
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(32, 32, 32, .04);
  transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease;
  font-family: 'Nunito', sans-serif;
}
#ratingsList .vote-wrap:hover {
  box-shadow: 0 6px 16px rgba(32, 32, 32, .08);
  transform: translateY(-1px);
}

/* hlavička recenzie – meno + hviezdy + dátum na jednej línii */
#ratingsList .vote-header {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px dashed #eef0e6;
  line-height: 1.2;
}

/* profilový obrázok / iniciálky – kompletne skryté */
#ratingsList .vote-pic,
#ratingsList .vote-pic img,
#ratingsList .vote-pic .vote-initials {
  display: none !important;
}

/* obsahový blok hlavičky – DVA RIADKY:
   1. riadok: meno autora (samostatne, plná šírka)
   2. riadok: Overený nákup + hviezdy + dátum (rovnaké rozostupy) */
#ratingsList .vote-header .vote-summary {
  flex: 1 1 100%;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  line-height: 1.2;
}

/* meno autora – samostatne na prvom riadku */
#ratingsList .vote-header .vote-name {
  flex: 1 1 100%;
  width: 100%;
  font-size: 16px;
  font-weight: 800;
  color: #1f1f1f;
  display: block;
  line-height: 1.3;
  margin: 0;
}
#ratingsList .vote-header .vote-name span[itemprop="name"] {
  color: #1f1f1f;
}
/* badge na mene už nie je – presúvame ho na druhý riadok */
#ratingsList .vote-header .vote-name::after { content: none !important; }

/* .vote-rating drží len hviezdy a má vlastný riadok (pod menom) */
#ratingsList .vote-header .vote-rating {
  flex: 1 1 100%;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}
#ratingsList .vote-header .vote-rating::before {
  content: none !important;  /* badge presunutý do .vote-time */
}

/* HVIEZDY – jednotný gap, vertikálne na strednú líniu */
#ratingsList .vote-header .vote-rating .stars {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  line-height: 1;
  vertical-align: middle;
}
#ratingsList .vote-header .vote-rating .stars .star {
  display: inline-block !important;
  vertical-align: middle;
  width: 16px !important;
  height: 16px !important;
  background-size: 16px 16px !important;
  flex: 0 0 auto;
}

/* zvislý oddeľovač | – v novom layoute zbytočný */
#ratingsList .vote-header .vote-delimeter { display: none !important; }

/* DÁTUM ako súčasť "Overený nákup" odznaku
   (text "Overený nákup •" sa pridáva cez ::before)
   POZN.: padding má hore +2 px navyše, lebo uppercase text v Nunito
   nemá descender a opticky sedí vyššie v line-boxe. */
#ratingsList .vote-header .vote-time {
  margin: 0;
  flex: 0 0 auto;             /* na vlastnom 3. riadku, samé pre seba */
  align-self: flex-start;     /* zarovnaný vľavo */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #124c2f;
  background: #d1f5e3;
  border: 1px solid #8be3b7;
  padding: 5px 10px 3px;       /* top 5 / right 10 / bottom 3 / left 10 – optické vycentrovanie */
  border-radius: 999px;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-family: 'Nunito', sans-serif;
  white-space: nowrap;
  line-height: 1;              /* tesné, padding rieši priestor */
  font-variant-numeric: tabular-nums;
}
#ratingsList .vote-header .vote-time::before {
  content: "Overený nákup •";
  font-weight: 700;
  line-height: 1;
}

/* obsah recenzie */
#ratingsList .vote-content {
  color: #3a3a3a;
  line-height: 1.6;
  font-size: 15px;
  padding-top: 4px;
  font-family: 'Nunito', sans-serif;
}

/* Cleanup – staré horizontálne čiary medzi recenziami */
#ratingTab > hr,
#ratingWrapper + hr,
#ratingsList hr,
#ratingsList .vote-wrap hr { display: none; }


/* ============================================================
   SEKCIA 3 – FORMULÁR HODNOTENIA / DISKUSIE
   ============================================================ */

#formRating .smart-label-wrapper,
#formDiscussion .smart-label-wrapper {
  position: relative;
  margin-bottom: 14px;
}
#formRating .smart-label-wrapper > label,
#formRating .smart-label-wrapper .smart-label,
#formDiscussion .smart-label-wrapper > label,
#formDiscussion .smart-label-wrapper .smart-label {
  position: static !important;
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1f1f1f !important;
  margin-bottom: 6px !important;
  font-family: 'Nunito', sans-serif !important;
  transform: none !important;
  background: transparent !important;
  padding: 0 !important;
}
#formRating textarea,
#formRating input[type="text"],
#formRating input[type="email"],
#formDiscussion textarea,
#formDiscussion input[type="text"],
#formDiscussion input[type="email"] {
  border: 1px solid #d8d8d8 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-family: 'Nunito', sans-serif !important;
  font-size: 14px !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
  width: 100% !important;
  background: #ffffff;
}
#formRating textarea:focus,
#formRating input[type="text"]:focus,
#formRating input[type="email"]:focus,
#formDiscussion textarea:focus,
#formDiscussion input[type="text"]:focus,
#formDiscussion input[type="email"]:focus {
  border-color: #268455 !important;
  box-shadow: 0 0 0 3px rgba(38,132,85,.15) !important;
  outline: none !important;
}

#formRating button[type="submit"],
#formRating .btn-primary,
#formDiscussion button[type="submit"],
#formDiscussion .btn-primary {
  background: #268455 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 12px 26px !important;
  font-weight: 700 !important;
  font-family: 'Nunito', sans-serif !important;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease !important;
  box-shadow: 0 2px 6px rgba(38,132,85,.25) !important;
  cursor: pointer !important;
}
#formRating button[type="submit"]:hover,
#formDiscussion button[type="submit"]:hover {
  background: #1e7248 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(38,132,85,.35) !important;
}


/* ============================================================
   SEKCIA 4 – RESPONZIVITA
   ============================================================ */

@media (max-width: 767px) {
  #ratingTab { padding: 18px; border-radius: 12px; }

  #ratingWrapper.rate-wrapper { padding: 18px; }
  #ratingWrapper .rate-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  #ratingWrapper .rate-average-inner .rate-average { font-size: 42px; }

  #ratingsList .vote-wrap { padding: 14px 16px; }

  /* meno mierne menšie na mobile */
  #ratingsList .vote-header .vote-name {
    font-size: 15px;
  }
  /* druhý riadok (badge + hviezdy + dátum) – jednotné rozostupy */
  #ratingsList .vote-header .vote-summary {
    column-gap: 10px;
    row-gap: 8px;
  }
  /* hviezdy – menšie, ale stále s gapom (neprekrývajú sa) */
  #ratingsList .vote-header .vote-rating .stars {
    gap: 4px;
  }
  #ratingsList .vote-header .vote-rating .stars .star {
    width: 14px !important;
    height: 14px !important;
    background-size: 14px 14px !important;
  }
  /* zlúčený odznak Overený nákup • dátum – mierne menší na mobile */
  #ratingsList .vote-header .vote-time {
    font-size: 10px;
    padding: 4px 8px 2px;
    gap: 5px;
  }

  #ratingWrapper .votes .rate-list {
    grid-template-columns: 48px 1fr;
    padding-right: 44px;
    gap: 10px;
  }
}
