/* STRÁNKA HODNOCENÍ OBCHODU – platí POUZE když JS nastaví html.oc-hodnoceni-stranka (CZ: /hodnoceni-obchodu, SK: /sk/hodnotenie-obchodu). Jinde se nic neprojeví. */
  /* ---------- proměnné + pozadí sekce (full-bleed) ---------- */
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width){
    --oc-bg: #f8f6f1;        /* pozadí stránky */
    --oc-card: #ffffff;      /* karty */
    --oc-track: #ece9e1;     /* podklad sloupců a oddělovače */
    --oc-gold: #b8872f;      /* výplň sloupců */
    --oc-yellow: #edcb62;    /* tlačítko "Přidat hodnocení" */
    --oc-avatar: #f1e5c4;    /* kolečka s iniciálami */
    background: var(--oc-bg);
    box-shadow: 0 0 0 100vmax var(--oc-bg);
    clip-path: inset(0 -100vmax);
    padding-bottom: 72px;
  }

  /* ---------- rozvržení: vlevo hero, vpravo karta ---------- */
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .content-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
    grid-template-rows: auto auto 1fr auto auto auto;
    grid-template-areas:
      "title card"
      "intro card"
      ".     card"
      "head  head"
      "list  list"
      "ctrl  ctrl";
    column-gap: clamp(32px, 6vw, 96px);
    align-items: start;
    padding-top: 40px;
  }

  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .content-inner > h1 {
    grid-area: title;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: clamp(32px, 3.4vw, 48px) !important;
    line-height: 1.15 !important;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .content-inner > h1::before {
    content: attr(data-oc-eyebrow);
    display: block;
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1.2;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-intro {
    grid-area: intro;
    margin: 0;
    max-width: 32em;
    font-size: 16px;
    line-height: 1.65;
  }

  /* ---------- karta se skóre ---------- */
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper {
    grid-area: card;
    display: block !important;
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    justify-self: end;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 !important;
    float: none !important;
    padding: 32px !important;
    box-sizing: border-box;
    background: var(--oc-card) !important;
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .07);
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .rate-wrap {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .rate-average-wrap {
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    width: auto !important;
    margin: 0 0 24px 0 !important;
    padding: 0 0 24px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--oc-track) !important;
    text-align: left !important;
  }
  /* původní "5,0 ★★★★★ 1192 hodnocení" se schová, místo něj je .oc-score + .oc-total (vkládá JS) */
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .rate-average-wrap .rate-average-inner { display: none !important; }

  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-score { display: flex; align-items: center; gap: 12px; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-num {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    font-family: var(--oc-head-font, inherit);
    font-size: clamp(52px, 5vw, 72px);
    font-weight: 700;
    line-height: 1;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-num small {
    font-size: .38em;
    font-weight: 400;
    opacity: .6;
    margin-left: .08em;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-star { display: block; font-size: clamp(36px, 3.6vw, 52px); line-height: 1; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-total { text-align: right; line-height: 1.2; white-space: nowrap; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-total strong { display: block; font-size: 22px; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-total span { display: block; margin-top: 4px; font-size: 13px; opacity: .6; }

  /* ---------- sloupce 5★ … 1★ ---------- */
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .votes {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .rate-list {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 64px;
    align-items: center;
    column-gap: 12px;
    width: auto !important;
    height: auto !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .rate-star {
    display: flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .rate-star .star { margin: 0 !important; flex: none; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .rate-block {
    position: relative;
    display: block !important;
    width: 100% !important;
    height: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 99px;
    background: var(--oc-track) !important;
    overflow: hidden;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .rate-bar {
    display: block !important;
    position: static !important;
    width: var(--rate-bar-width, 0%) !important;
    min-width: 8px;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 99px;
    background: var(--oc-gold) !important;
    box-shadow: none !important;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .rate-bar .rate-count { display: none !important; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-count { font-size: 13px; text-align: right; opacity: .7; white-space: nowrap; }

  /* ---------- tlačítko "Přidat hodnocení" ---------- */
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .add-comment { margin: 26px 0 0 0 !important; padding: 0 !important; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .add-comment .btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-radius: 6px;
    background: var(--oc-yellow) !important;
    color: #000 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 14px;
    line-height: 1.2;
    box-shadow: none;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .add-comment .btn:hover { filter: brightness(.95); }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper #rate-form { margin-top: 28px; }

  /* ---------- nadpis "Nejnovější hodnocení" ---------- */
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsListHeading {
    position: static !important;
    grid-area: head;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    width: auto !important;
    height: auto !important;
    margin: 72px 0 24px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.2;
    text-align: left;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsListHeading .oc-range { font-size: 13px; font-weight: 400; opacity: .6; text-align: right; }

  /* ---------- masonry karet ---------- */
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList {
    grid-area: list;
    display: block !important;
    column-count: 3;
    column-gap: 20px;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-wrap {
    display: block !important;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin: 0 0 20px 0 !important;
    padding: 22px 24px !important;
    box-sizing: border-box;
    background: var(--oc-card) !important;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04) !important;
  }

  /* hlavička karty: kolečko | jméno / datum, pod tím hvězdy */
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-header {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "pic   name"
      "pic   time"
      "stars stars";
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-summary,
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-rating { display: contents !important; }

  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-pic {
    grid-area: pic;
    position: relative;
    width: 44px;
    height: 44px;
    margin: 0 !important;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-initials {
    position: absolute !important;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 50%;
    background: var(--oc-avatar) !important;
    color: #4a3d22 !important;
    font-size: 14px;
    line-height: 1;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-pic img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    object-fit: cover;
    font-size: 0;            /* kdyby se obrázek nenačetl, nezobrazí se alt text přes iniciály */
    color: transparent;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-name,
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-name span {
    white-space: normal !important;
    text-transform: none !important;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-name {
    grid-area: name;
    align-self: end;
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1.25 !important;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-time {
    grid-area: time;
    align-self: start;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12.5px !important;
    opacity: .6;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-delimeter { display: none !important; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-rating .stars { grid-area: stars; margin: 12px 0 0 0 !important; }

  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList .vote-content {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    overflow-wrap: anywhere;
  }

  /* ---------- stránkování -> jedno tlačítko ---------- */
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .listingControls { grid-area: ctrl; display: block; margin: 16px 0 0 0 !important; padding: 0 !important; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .listingControls .itemsTotal,
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .listingControls .goToTop { display: none !important; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .listingControls .pagination { margin: 0 !important; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .pagination__list {
    display: flex !important;
    justify-content: center;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .pagination__list li { display: none !important; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .pagination__list li:has(.pagination__link--prev),
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .pagination__list li:has(.pagination__link--next) { display: block !important; }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .pagination__link--prev,
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .pagination__link--next {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    padding: 14px 28px !important;
    border: 1px solid currentColor !important;
    border-radius: 6px;
    background: transparent none !important;
    color: inherit !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
  }
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .pagination__link--prev::before, html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .pagination__link--prev::after,
  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .pagination__link--next::before, html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .pagination__link--next::after { content: none !important; }

  /* ---------- responzivita ---------- */
  @media (max-width: 1100px) {
    html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList { column-count: 2; }
  }
  @media (max-width: 900px) {
    html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .content-inner {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: auto;
      grid-template-areas:
        "title"
        "intro"
        "card"
        "head"
        "list"
        "ctrl";
      padding-top: 24px;
    }
    html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper { margin-top: 28px !important; padding: 24px 20px !important; border-radius: 20px; }
    html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingWrapper .rate-average-wrap { flex-wrap: wrap; align-items: flex-start; }
    html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-total { flex-basis: 100%; display: flex; gap: 6px; align-items: baseline; text-align: left; }
    html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-total strong, html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .oc-total span { display: inline; margin: 0; }
    html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsListHeading { margin-top: 48px !important; flex-wrap: wrap; }
  }
  @media (max-width: 640px) {
    html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) #ratingsList { column-count: 1; }
  }

  html.oc-hodnoceni-stranka #content-wrapper:has(#ratingWrapper.store-rating-full-width) .breadcrumbs { background: transparent !important; }

  /* pozadí přes celou šířku nesmí vytvořit vodorovný posuvník */
  html.oc-hodnoceni-stranka,
  html.oc-hodnoceni-stranka body { overflow-x: clip; }
