/* Judge.me reviews widget styles, ported from the Webflow embed (colors/fonts mapped to brand tokens). */

  /* Background: white. For transparent, change #ffffff to transparent */
  #roga-reviews { background: #ffffff !important; }
  #roga-reviews .jdgm-widget,
  #roga-reviews .jdgm-rev-widg,
  #roga-reviews .jdgm-rev-widg__header,
  #roga-reviews .jdgm-rev-widg__summary,
  #roga-reviews .jdgm-rev-widg__body,
  #roga-reviews .jdgm-rev-widg__reviews,
  #roga-reviews .jdgm-rev,
  #roga-reviews .jdgm-paginate { background: transparent !important; }
  /* All text black... */
  #roga-reviews .jdgm-widget,
  #roga-reviews .jdgm-widget *:not(select):not(option) {
    color: #1A2F4A !important;
    -webkit-text-fill-color: #1A2F4A !important;
  }
  /* ...except the "Write a review" button, which keeps white text */
  #roga-reviews .jdgm-widget .jdgm-write-rev-link,
  #roga-reviews .jdgm-widget .jdgm-write-rev-link * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }
  #roga-reviews .jdgm-rev__icon { display: none !important; }        /* no grey avatar circles */
  #roga-reviews .jdgm-rev__author { font-weight: 700 !important; }   /* bold reviewer names */
  #roga-reviews .jdgm-row-media { overflow: hidden !important; }     /* keep photo strip inside */
  /* Clickable review cards */
  #roga-reviews .jdgm-rev {
    cursor: pointer;
    border-radius: 14px;
    transition: background-color .2s ease;
  }
  @media (hover: hover) and (pointer: fine) {
    #roga-reviews .jdgm-rev:hover { background: rgba(0, 0, 0, 0.035) !important; }
  }
  #roga-reviews .jdgm-rev:focus-visible { outline: 2px solid #1A2F4A; outline-offset: 4px; }
  /* Review popup */
  .rv-modal {
    border: 0; padding: 0; margin: auto;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100svh - 48px);
    border-radius: 22px;
    background: #ffffff; color: #1A2F4A;
    box-shadow: 0 30px 80px rgba(10, 16, 28, 0.45);
    overflow: hidden;
    font-family: var(--font-head);
  }
  .rv-modal, .rv-modal * { -webkit-text-fill-color: currentColor !important; box-sizing: border-box; }
  .rv-modal { color: #1A2F4A !important; }
  .rv-modal .rv-score, .rv-modal .rv-date, .rv-modal .rv-source { color: rgba(26,47,74,.66) !important; }
  .rv-modal .rv-name, .rv-modal .rv-body, .rv-modal .rv-title,
  .rv-modal .rv-product, .rv-modal .rv-stars, .rv-modal .rv-nav button { color: #1A2F4A !important; }
  .rv-modal .rv-stars .rv-off { color: #cfd3db !important; }
  .rv-modal::backdrop { background: rgba(20, 26, 38, 0.62); backdrop-filter: blur(4px); }
  .rv-modal[open] { animation: rvIn .3s ease-out; }
  @keyframes rvIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
  @media (prefers-reduced-motion: reduce) { .rv-modal[open] { animation: none; } }
  .rv-inner { max-height: calc(100svh - 48px); overflow-y: auto; padding: 30px 30px 26px; }
  .rv-close {
    position: absolute; top: 14px; right: 14px;
    width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
    background: #f1f2f5; color: #1A2F4A; font-size: 20px; line-height: 36px;
    cursor: pointer;
  }
  .rv-close:hover { background: #e5e7ec; }
  .rv-stars { color: #1A2F4A; font-size: 20px; letter-spacing: 3px; }
  .rv-stars .rv-off { color: #cfd3db; }
  .rv-score { font-size: 14px; color: rgba(26,47,74,.66); margin-left: 6px; letter-spacing: 0; }
  .rv-name { font-size: 22px; font-weight: 700; margin: 14px 0 2px; }
  .rv-date { font-size: 14px; color: rgba(26,47,74,.66); }
  .rv-product {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 16px 0 0; padding: 7px 12px;
    border-radius: 999px; background: #f1f2f5;
    font-size: 13px; color: #1A2F4A; text-decoration: none;
  }
  .rv-product:hover { background: #e5e7ec; }
  .rv-title { font-size: 18px; font-weight: 700; margin: 22px 0 6px; }
  .rv-body { font-size: 17px; line-height: 1.6; margin: 18px 0 0; white-space: pre-line; }
  .rv-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 22px; }
  .rv-pics img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
  .rv-source {
    margin-top: 24px; padding-top: 16px;
    border-top: 1px solid #e8e8ed;
    font-size: 13px; line-height: 1.5; color: rgba(26,47,74,.66);
  }
  .rv-modal .rv-verified { color: #1A2F4A !important; font-weight: 700; }
  .rv-nav { display: flex; justify-content: space-between; margin-top: 18px; }
  .rv-nav button {
    border: 1px solid #d2d2d7; background: #ffffff; color: #1A2F4A;
    border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer;
  }
  .rv-nav button:disabled { opacity: 0.35; cursor: default; }
