:root {
  --pvr-accent-color: #2563eb;
  --pvr-accent-color-dark: #1d4ed8;
  --pvr-star-color: #f59e0b;
  --pvr-card-bg: #ffffff;
  --pvr-card-bg-soft: #f8fbff;
  --pvr-text-color: #111827;
  --pvr-radius: 12px;
  --pvr-border-color: #e5e7eb;
  --pvr-muted-color: #6b7280;
  --pvr-error-color: #dc2626;
  --pvr-error-bg: #fef2f2;
  --pvr-success-bg: #ecfdf5;
  --pvr-success-text: #047857;
  --pvr-surface-color: #f8fafc;
  --pvr-gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
  --pvr-gradient-accent: linear-gradient(135deg, #2563eb, #0ea5e9);
  --pvr-card-shadow: 0 0 10px rgba(0,0,0,0.15);
  --pvr-text-link: #1e76c5;
  --pvr-text-link-hover: #ff7878;
  --pvr-shadow-sm: 1px 1px 2px rgba(0, 0, 0, 0.12);
  --pvr-shadow-md: 1px 1px 4px rgba(0, 0, 0, 0.25);
  --pvr-shadow-lg: 0 0 10px rgba(0, 0, 0, 0.15);
  --pvr-radius-sm: calc(var(--pvr-radius) * 0.5);
  --pvr-radius-md: var(--pvr-radius);
  --pvr-radius-lg: calc(var(--pvr-radius) * 1.6667);
  --pvr-radius-full: 50%;
  --pvr-transition: 0.2s ease;
  --pvr-transition-slow: 0.3s ease;
  --pvr-thumb-w: 120px;
  --pvr-thumb-h: 120px;
  --pvr-large-thumb-w: 400px;
  --pvr-large-thumb-h: 400px;
  --pvr-criteria-bg: #f2f2f7;
  --pvr-criteria-star-inactive: #d1d1d6;
  --pvr-criteria-star-active: #ff9500;

  /* Typography. Sizes are theme-relative in the Theme-adaptive / Flat
     presets (see the preset blocks at the end of this file), so the module
     scales with the active theme instead of forcing its own type scale. */
  --pvr-font-family: inherit;
  --pvr-font-size: 14px;
  --pvr-line-height: 1.5;
  --pvr-content-line-height: 1.75;
  --pvr-content-font-size: 14px;
  --pvr-heading-font-size: 22px;
  --pvr-title-font-size: 15px;
  --pvr-meta-font-size: 13px;
  --pvr-small-font-size: 12px;
  --pvr-tiny-font-size: 11px;
  --pvr-lead-font-size: 16px;
  --pvr-subheading-font-size: 18px;
  --pvr-display-font-size: 20px;

  /* Spacing scale. The scale multiplies every step (Design tab slider). */
  --pvr-space-scale: 1;
  --pvr-space-1: calc(4px * var(--pvr-space-scale));
  --pvr-space-2: calc(8px * var(--pvr-space-scale));
  --pvr-space-3: calc(12px * var(--pvr-space-scale));
  --pvr-space-4: calc(16px * var(--pvr-space-scale));
  --pvr-space-5: calc(20px * var(--pvr-space-scale));
  --pvr-space-6: calc(24px * var(--pvr-space-scale));

  /* Surfaces. */
  --pvr-card-radius: var(--pvr-radius);
  --pvr-card-padding: 5px;
  --pvr-card-border: 1px solid var(--pvr-border-color);
  --pvr-card-separator: 1px solid var(--pvr-border-color);
  --pvr-card-accent-line: linear-gradient(90deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.55), rgba(14, 165, 233, 0));
  --pvr-surface-border: 1px solid rgba(226, 232, 240, 0.9);
  --pvr-surface-padding: 10px 6px;
  --pvr-surface-radius: var(--pvr-radius);
  --pvr-chip-bg: rgba(0, 0, 0, 0.05);
  --pvr-track-bg: #eef2f7;
  --pvr-info-bg: #eff6ff;
  --pvr-info-border: #93c5fd;

  /* Overlays (modals, lightboxes) stay opaque — they float above the page
     and must not inherit the page background. */
  --pvr-modal-bg: #ffffff;
  --pvr-modal-text: var(--pvr-text-color);

  /* Buttons. */
  --pvr-btn-font-size: 13px;
  --pvr-btn-font-weight: 600;
  --pvr-btn-padding-y: 9px;
  --pvr-btn-padding-x: 14px;
  --pvr-btn-cta-padding-y: 12px;
  --pvr-btn-cta-padding-x: 24px;
  --pvr-btn-radius: 999px;
  --pvr-btn-bg: transparent;
  --pvr-btn-color: var(--pvr-text-color);
  --pvr-btn-border-color: var(--pvr-border-color);
  --pvr-btn-accent-bg: var(--pvr-gradient-accent);
  --pvr-btn-accent-color: #ffffff;
  --pvr-btn-accent-border: transparent;
}

/* Criteria Voting & Display */
.pvr-criteria-voting {
    margin: 20px 0;
    padding: 15px;
    background: var(--pvr-criteria-bg);
    border-radius: var(--pvr-radius);
}

.pvr-criteria-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pvr-criteria-label {
    font-size: var(--pvr-meta-font-size);
    color: var(--pvr-text-color);
}

.pvr-criteria-stars {
    display: flex;
    gap: var(--pvr-space-1);
}

.pvr-criteria-stars label {
    cursor: pointer;
}

.pvr-criteria-stars svg {
    transition: fill 0.2s;
}

.pvr-review__criteria {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--pvr-space-2);
}

.pvr-criterion-display-item {
    font-size: var(--pvr-tiny-font-size);
    color: var(--pvr-muted-color);
    background: var(--pvr-surface-color);
    padding: 6px 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pvr-criterion-dots {
    display: flex;
    gap: 2px;
}

.pvr-criterion-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pvr-criteria-star-inactive);
}

.pvr-criterion-dot--active {
    background: var(--pvr-criteria-star-active);
}

.pvr-btn {
  padding: .5rem 1rem;
  box-shadow: none;
  outline: 0 !important;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.pvr-icon {
  width: 1em;
  height: 1em;
  display: block;
  /* The sprite symbols mostly carry no fill of their own — the colour has
     to reach them through `fill`, otherwise they render black. */
  fill: currentColor;
}

.pvr-notice-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  width: min(380px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  gap: var(--pvr-space-3);
  z-index: 999999;
  pointer-events: none;
}

.pvr-notice {
  display: flex;
  align-items: center;
  gap: var(--pvr-space-3);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  font-family: inherit;
  opacity: 0;
  transform: translateY(-16px) scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  border: 1px solid transparent;
}

.pvr-notice--show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pvr-notice--hide {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
}

.pvr-notice--error {
  background-color: #fef2f2;
  border-color: #fed7d7;
  color: #991b1b;
}

.pvr-notice--success {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.pvr-notice--info {
  background-color: #fffbeb;
  border-color: #fef3c7;
  color: #92400e;
}

.pvr-notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.pvr-notice__svg-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.pvr-notice__text {
  flex: 1;
  font-size: var(--pvr-content-font-size);
  font-weight: 500;
  line-height: 1.45;
}

.pvr-notice__close {
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  opacity: 0.5;
  font-size: var(--pvr-subheading-font-size);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.pvr-notice__close:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.06);
}

.pvr-reviews-wrapper {
  color: var(--pvr-text-color);
  width: 100%;
  max-width: var(--pvr-content-width, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--pvr-space-5);
  line-height: var(--pvr-line-height);
  img{
    -webkit-user-drag: none;
    user-select: none;
  }
}

.pvr-media-modal img{
  -webkit-user-drag: none;
    user-select: none;
}

.pvr-overview {
  display: grid;
  gap: var(--pvr-space-5);
}

.pvr-form-section,
.pvr-summary {
  background: var(--pvr-card-bg);
  border: 1px solid var(--pvr-border-color);
  border-radius: 24px;
  box-shadow: var(--pvr-card-shadow);
  padding: var(--pvr-space-5);
  display: grid;
  gap: var(--pvr-space-4);
  position: relative;
  overflow: hidden;
}

.pvr-form-section::before,
.pvr-summary::before,
.pvr-summary__criteria-grid::before,
.pvr-review-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--pvr-card-accent-line);
}

.pvr-form-section {
  background: var(--pvr-card-bg);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: var(--pvr-space-5);
}

.pvr-title {
  font-size: var(--pvr-heading-font-size);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.pvr-list-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--pvr-space-4);
}

.pvr-write-review-btn {
  appearance: none;
  border: 1px solid var(--pvr-btn-accent-border);
  background: var(--pvr-btn-accent-bg);
  color: var(--pvr-btn-accent-color);
  border-radius: var(--pvr-btn-corner, var(--pvr-btn-radius));
  padding: var(--pvr-btn-cta-padding-y) var(--pvr-btn-cta-padding-x);
  font-size: var(--pvr-btn-font-size);
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.pvr-write-review-btn:hover {
  background: var(--pvr-btn-accent-bg);
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.pvr-review-form-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  z-index: 100001;
  color: var(--pvr-modal-text);
}

.pvr-review-form-modal[hidden] {
  display: none !important;
}

.pvr-review-form-modal__wrapper {
  position: relative;
  width: min(860px, 100%);
}

.pvr-review-form-modal__dialog {
  position: relative;
  width: 100%;
  max-height: min(90vh, 900px);
  overflow: hidden;
  overscroll-behavior: contain;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  background: var(--pvr-modal-bg);
}

.pvr-review-form-modal__close {
  position: absolute;
  top: -16px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--pvr-border-color);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pvr-text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.pvr-review-form-modal__close-icon {
  width: 16px;
  height: 16px;
  display: block;
  color: currentColor;
  fill: none;
  stroke: currentColor;
}

.pvr-reply-form-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pvr-space-5);
  z-index: 100001;
  color: var(--pvr-modal-text);
}

.pvr-reply-form-modal[hidden] {
  display: none !important;
}

.pvr-reply-form-modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: min(90vh, 700px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 24px;
  background: var(--pvr-modal-bg);
}

.pvr-reply-form-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--pvr-border-color);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pvr-text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.pvr-reply-form-modal__close-icon {
  width: 16px;
  height: 16px;
  display: block;
  color: currentColor;
  fill: none;
  stroke: currentColor;
}

.pvr-reply-form-section {
  padding: var(--pvr-space-6);
}

.pvr-reply-form-section .pvr-reply-form {
  background: transparent;
  border: var(--pvr-surface-border);
  padding: 0;
  margin-top: 0;
  border-radius: 0;
}

.pvr-list-subtitle {
  margin: 6px 0 0;
  color: var(--pvr-muted-color);
  font-size: var(--pvr-content-font-size);
}

.pvr-product-media-strip {
  border-radius: 24px;
  padding: var(--pvr-space-5) 0;
  display: grid;
  gap: 14px;
}

/* display: grid above overrides the UA [hidden] style — hide explicitly. */
.pvr-product-media-strip[hidden] {
  display: none;
}

.pvr-product-media-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pvr-space-3);
  flex-wrap: wrap;
}

.pvr-product-media-strip__title {
  margin: 0;
  font-size: var(--pvr-subheading-font-size);
  font-weight: 700;
}

.pvr-product-media-strip__open-all {
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: rgba(37, 99, 235, 0.08);
  color: var(--pvr-accent-color);
  border-radius: var(--pvr-btn-corner, 999px);
  cursor: pointer;
  font-weight: 600;
}

.pvr-product-media-strip__grid {
  display: flex;
  gap: 5px;
  padding: var(--pvr-space-1) var(--pvr-space-1) 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  min-height: fit-content;
  scrollbar-color: rgba(148, 163, 184, 0.9) transparent;
}

.pvr-product-media-strip__grid::-webkit-scrollbar {
  height: 6px;
}

.pvr-product-media-strip__grid::-webkit-scrollbar-track {
  background: transparent;
}

.pvr-product-media-strip__grid::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.75);
  border-radius: 10px;
}

.pvr-product-media-strip__grid.ex-scroll {
  cursor: grab;
  user-select: none;
}

.pvr-product-media-strip__grid.ex-scroll.active {
  cursor: grabbing;
}

/* Customer Media strip tiles — same feedback as the review-card media
   triggers (.pvr-review-media-trigger): no own hover border, a small zoom
   on the media instead. */
.pvr-product-media-item {
  /* No border of its own: themes (Astra and others) recolour every button
     on hover, which would draw a frame around the tile. Padding is 0: the
     tile is border-box, so the media fills it edge to edge and the corner
     silhouette is always the tile's own border-radius — with a padding gap
     the resting frame and the hover zoom were clipped at different offsets
     and the corners read as a radius change. */
  padding: 0;
  border: 0;
  border-radius: var(--pvr-radius-md);
  background: transparent !important;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 var(--pvr-thumb-w);
  width: var(--pvr-thumb-w);
  height: var(--pvr-thumb-h);
  position: relative;
  outline: 0 !important;
}

.pvr-product-media-item:hover,
.pvr-product-media-item:focus,
.pvr-product-media-item:focus-visible {
  border: 0;
  /* Themes also restyle button corners on hover — the radius drives the
     overflow clip of the zooming media, so pin it here (0,2,0 beats a
     `button:hover` theme rule) to keep the corner shape identical. */
  border-radius: var(--pvr-radius-md);
}

.pvr-product-media-item:focus-visible {
  outline: 2px solid var(--pvr-accent-color);
  outline-offset: 4px;
}

.pvr-product-media-item img{
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.pvr-product-media-item .pvr-review-media-image,
.pvr-product-media-item .pvr-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--pvr-border-color);
  /* Same corner as the tile clip: at rest the frame rounds exactly along
     the tile radius, so the hover zoom cannot make the corner look different. */
  border-radius: inherit;
  transition: transform 0.2s ease;
}

.pvr-product-media-item:hover .pvr-review-media-image,
.pvr-product-media-item:hover .pvr-media-video,
.pvr-product-media-item:focus-visible .pvr-review-media-image,
.pvr-product-media-item:focus-visible .pvr-media-video {
  transform: scale(1.04);
}

.pvr-review-media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}

.pvr-media-item--photo .pvr-review-media-play {
  display: none;
}

.pvr-privacy-label{
  display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    input{
      margin-right: 10px;
    }
}

.pvr-media-grid-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--pvr-modal-text);
}

.pvr-media-grid-modal__dialog {
  width: 100vw;
  /* dvh follows the dynamic browser UI on mobile: 100vh is measured against
     the toolbar-HIDDEN viewport, so showing/hiding the URL bar resized the
     visible area and shifted the dialog. vh stays as the legacy fallback. */
  height: 100vh;
  height: 100dvh;
  max-height: none;
  background: var(--pvr-modal-bg);
  border-radius: 0;
  padding: var(--pvr-space-5);
  display: flex;
  flex-direction: column;
  /* The dialog is the scroll container: the ribbon grows downward without
     limit instead of being squeezed into one screen. */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.pvr-media-grid-modal__title {
  grid-column: 1 / -1;
  margin: 4px 4px 6px;
  padding-right: 44px;
  font-size: var(--pvr-display-font-size);
}

.pvr-media-grid-modal__title-count {
  font-size: 0.65em;
  font-weight: 400;
  color: #94a3b8;
  vertical-align: super;
  line-height: 1;
  margin-left: 3px;
}

.pvr-media-grid-modal__close {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 11;
}

.pvr-media-grid-modal__close-icon {
  width: 22px;
  height: 22px;
}

.pvr-media-grid-modal__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  padding: var(--pvr-space-1);
  width: 97vw;
  margin: 0 auto;
  /* Natural height: the grid is never squeezed into the viewport — it
     simply grows and the dialog scrolls (see __dialog). */
  flex: 1 0 auto;
}

/* WebKit/Safari does not feed aspect-ratio transferred sizes into grid
   track intrinsic sizing — rows stayed short and tiles overlapped. An
   in-flow ::before spacer makes the 3:4 tile height part of normal flow,
   so every engine sizes the row track from the real tile box. */
.pvr-media-grid-modal__grid .pvr-grid-media-item::before {
  content: "";
  display: block;
  padding-top: 133.333%;
}

.pvr-media-grid-modal__grid .pvr-grid-skeleton::before {
  content: "";
  display: block;
  padding-top: 133.333%;
}

.pvr-grid-media-item {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  position: relative;
  border-radius: var(--pvr-radius-lg);
  box-shadow: var(--pvr-shadow-md);
}

.pvr-grid-media-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  transition: var(--pvr-transition-slow);
  will-change: transform;
}

.pvr-grid-media-item:hover .pvr-grid-media-thumb {
  transform: scale(1.05);
}

.pvr-grid-media-thumb--video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.pvr-grid-media-thumb--video svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.pvr-grid-media-item:hover .pvr-grid-media-thumb--video {
  opacity: 0;
}

/* Skeleton placeholders shown while a media grid batch is loading. */
.pvr-grid-skeleton {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: var(--pvr-radius-lg);
  box-shadow: var(--pvr-shadow-md);
  background: linear-gradient(100deg, #e2e8f0 32%, #f8fafc 50%, #e2e8f0 68%);
  background-size: 200% 100%;
  animation: pvr-skeleton-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pvr-skeleton-shimmer {
  0% {
    background-position: 130% 0;
  }
  100% {
    background-position: -130% 0;
  }
}

/* ---- Review details modal: skeleton while the review card is fetched ----
   The placeholder card carries these blocks in the class names the modal
   clones (author info / content), so the aside and mobile slide shimmer
   from the very first frame the modal opens. */
.pvr-review__skeleton {
  display: block;
  border-radius: 8px;
  background: linear-gradient(100deg, #e2e8f0 32%, #f8fafc 50%, #e2e8f0 68%);
  background-size: 200% 100%;
  animation: pvr-skeleton-shimmer 1.4s ease-in-out infinite;
}

.pvr-review__skeleton--avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.pvr-review__skeleton--name {
  width: min(140px, 40vw);
  height: 13px;
}

.pvr-review__skeleton--stars {
  width: 92px;
  height: 14px;
  margin-top: 6px;
}

.pvr-review__skeleton--line {
  height: 11px;
  width: 100%;
  margin-top: 10px;
}

.pvr-review__skeleton--line:first-child {
  margin-top: 4px;
}

.pvr-review__skeleton--short {
  width: 58%;
}

/* Media pane: while the placeholder card is shown the pane paints NO image —
   the tile's size/aspect differs from the popup image (Lightbox Image Max),
   so a shimmer block stands in instead (dark palette fits the pane bg). */
.pvr-media-modal[data-pvr-loading] .pvr-media-modal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, #1e293b 32%, #334155 50%, #1e293b 68%);
  background-size: 200% 100%;
  animation: pvr-skeleton-shimmer 1.4s ease-in-out infinite;
  pointer-events: none;
}

/* Mobile bottom bar: the placeholder card has no text yet — shimmer bars
   stand in for the author name and the review excerpt. */
.pvr-media-modal[data-pvr-loading] .pvr-media-modal__mobile-bar-name {
  display: block;
  width: 110px;
  min-height: 12px;
  border-radius: 6px;
  background: linear-gradient(100deg, #e2e8f0 32%, #f8fafc 50%, #e2e8f0 68%);
  background-size: 200% 100%;
  animation: pvr-skeleton-shimmer 1.4s ease-in-out infinite;
}

.pvr-media-modal[data-pvr-loading] .pvr-media-modal__mobile-bar-text {
  display: block;
  width: 65%;
  min-height: 12px;
  margin-top: 6px;
  border-radius: 6px;
  background: linear-gradient(100deg, #e2e8f0 32%, #f8fafc 50%, #e2e8f0 68%);
  background-size: 200% 100%;
  animation: pvr-skeleton-shimmer 1.4s ease-in-out infinite;
}

.pvr-summary__average {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.pvr-summary__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px var(--pvr-space-3);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--pvr-accent-color);
  font-size: var(--pvr-small-font-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pvr-summary__number {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--pvr-text-color);
}

.pvr-summary__count {
  font-size: var(--pvr-content-font-size);
  color: var(--pvr-muted-color);
}

.pvr-summary__breakdown {
  display: grid;
  gap: 10px;
}

.pvr-breakdown__row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pvr-breakdown__label {
  font-size: var(--pvr-content-font-size);
  color: var(--pvr-muted-color);
  white-space: nowrap;
  min-width: 28px;
  display: flex;
  align-items: center;
  font-weight: 600;
  gap: 3px;
}
.pvr-breakdown__label .pvr-star-icon{
  width: 14px;
  height: 14px;
  vertical-align: middle;
  fill: var(--pvr-star-color);
}

.pvr-breakdown__count {
  font-size: var(--pvr-content-font-size);
  color: var(--pvr-muted-color);
  min-width: 20px;
  text-align: right;
  font-weight: 600;
}

.pvr-breakdown__bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--pvr-track-bg);
  overflow: hidden;
}

.pvr-breakdown__fill {
  height: 100%;
  width: 0;
  background: var(--pvr-gradient-accent);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.pvr-summary__criteria-grid {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: nowrap;
    gap: var(--pvr-space-3);
    padding: var(--pvr-space-5);
    background: var(--pvr-card-bg);
    border: 1px solid var(--pvr-border-color);
    border-radius: 24px;
    box-shadow: var(--pvr-card-shadow);
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
}

.pvr-summary__criteria-card {
    background: var(--pvr-card-bg-soft);
    border: 1px solid var(--pvr-border-color);
    border-radius: var(--pvr-radius-sm);
    padding: var(--pvr-space-3);
    text-align: center;
    transition: all var(--pvr-transition);
    width: max-content;
    flex-shrink: 0;
    min-width: 160px;
    max-width: 260px;
}

.pvr-summary__criteria-card:hover {
  border-color: var(--pvr-accent-color);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}

.pvr-summary__criteria-rating {
  font-size: var(--pvr-heading-font-size);
  font-weight: 700;
  color: var(--pvr-accent-color);
  margin-bottom: 6px;
  line-height: 1;
}

.pvr-summary__criteria-title {
  font-size: var(--pvr-small-font-size);
  font-weight: 600;
  color: var(--pvr-text-color);
  margin-bottom: 4px;
  word-break: break-word;
}

.pvr-summary__criteria-description {
  font-size: var(--pvr-tiny-font-size);
  color: var(--pvr-muted-color);
  line-height: 1.3;
  word-break: break-word;
}

.pvr-reviews-list{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pvr-review-item {
  background: var(--pvr-card-bg);
  border: var(--pvr-card-border);
  border-bottom: var(--pvr-card-separator);
  border-radius: var(--pvr-card-radius);
  box-shadow: var(--pvr-card-shadow);
  padding: var(--pvr-card-padding);
  display: flex;
  flex-direction: column;
  gap: var(--pvr-space-4);
  position: relative;
}

.pvr-review__product-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding-bottom: var(--pvr-space-3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 4px;
}

/* Rendered on every card so the media modal can clone it into its sidebar;
   hidden on the page for non-widget cards (list, My Reviews) — the modal
   clone drops this class in cloneProductBlock(). */
.pvr-review__product-link--hidden {
  display: none;
}

/* Modal sidebar copy (top of the aside / mobile slide, above the author). */
.pvr-media-modal__product {
  flex-shrink: 0;
}

.pvr-review__product-img {
  width: var(--pvr-product-img-size, 40px);
  height: var(--pvr-product-img-size, 40px);
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--pvr-border-color);
}

.pvr-review__product-name {
  font-size: var(--pvr-meta-font-size);
  font-weight: 600;
  color: var(--pvr-text-color);
  line-height: 1.3;
}

.pvr-review__product-link:hover .pvr-review__product-name {
  color: var(--pvr-accent-color);
}

.pvr-stars {
  display: inline-flex;
  align-items: center;
  gap: var(--pvr-space-2);
  color: var(--pvr-star-color);
}

/* Rating stars (sprite #ex-star).
   Two markup variants are used:
   <svg class="pvr-star pvr-star--full">…</svg>
   <span class="pvr-star pvr-star--full"><svg>…</svg></span>
   The symbol has no fill of its own, so the colour must reach the SVG
   through `fill` — `color` alone would leave the shape filled with the
   default black. */
.pvr-star {
  display: block;
  fill: currentColor;
}

svg.pvr-star {
  width: var(--pvr-star-size, 14px);
  height: var(--pvr-star-size, 14px);
}

.pvr-star--full,
.pvr-star--half,
.pvr-star--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
}

.pvr-star--full {
  color: var(--pvr-star-color);
  fill: var(--pvr-star-color);
}

.pvr-star--half {
  color: #e5b769;
  fill: #e5b769;
}

.pvr-star--empty {
  color: #d1d5db;
  fill: #d1d5db;
}

.pvr-star svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}

.pvr-stars--sm {
  font-size: var(--pvr-title-font-size);
}

.pvr-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--pvr-success-bg);
  color: var(--pvr-success-text);
  font-size: var(--pvr-small-font-size);
  font-weight: 600;
  width: fit-content;
}

.pvr-review__media {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  white-space: nowrap;
  transition: all var(--ex-transition);
  will-change: transform;
  user-select: none;
  cursor: grab;
  padding: var(--pvr-space-1) var(--pvr-space-1) 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.9) transparent;
}

.pvr-review__media:active {
  cursor: grabbing;
}

.pvr-review__media::-webkit-scrollbar {
  height: 6px;
}

.pvr-review__media::-webkit-scrollbar-track {
  background: transparent;
}

.pvr-review__media::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.75);
  border-radius: 10px;
}

.pvr-media-item {
  position: relative;
  isolation: isolate;
  flex: 0 0 var(--pvr-thumb-w, 120px);
  width: var(--pvr-thumb-w, 120px);
  max-width: var(--pvr-thumb-w, 120px);
}

.pvr-review-media-trigger {
  cursor: pointer;
  outline: 0 !important;
}

.pvr-review-media-trigger:focus-visible {
  outline: 2px solid var(--pvr-accent-color);
  outline-offset: 4px;
}

.pvr-media-item--video {
  aspect-ratio: 16 / 9;
}

.pvr-media-item__media {
  width: 100%;
  height: 100%;
}

.pvr-media-item__status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: var(--pvr-tiny-font-size);
  font-weight: 700;
  backdrop-filter: blur(10px);
  display: none;
}

.pvr-media-item__size {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  padding: 2px var(--pvr-space-2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
  backdrop-filter: blur(10px);
}

.pvr-media-item[data-status="uploaded"] .pvr-media-item__status {
  background: rgba(5, 150, 105, 0.82);
}

.pvr-media-item[data-status="processing"] .pvr-media-item__status,
.pvr-media-item[data-status="uploading"] .pvr-media-item__status,
.pvr-media-item[data-status="uploaded"] .pvr-media-item__status {
  display: inline-flex;
}

.pvr-media-item__controls {
    position: absolute;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--pvr-space-2);
    width: stretch;
    padding: 5px;
}

.pvr-media-action {
  appearance: none;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.57);
  color: var(--pvr-text-color);
  font-size: var(--pvr-lead-font-size);
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pvr-media-action:hover,
.pvr-media-action:focus-visible {
  background: #ffffff;
  color: var(--pvr-accent-color);
  transform: translateY(-1px);
  outline: none;
}

.pvr-media-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--pvr-radius-md);
  overflow: hidden;
  background: var(--pvr-surface-color);
  border: 1px solid var(--pvr-border-color);
  box-shadow: none;
}

.pvr-media-thumb--video {
  aspect-ratio: 16 / 9;
}

.pvr-review__media .pvr-media-thumb {
  width: var(--pvr-thumb-w, 120px);
  height: var(--pvr-thumb-h, 120px);
  aspect-ratio: auto;
}

.pvr-review__media .pvr-media-thumb--video {
  aspect-ratio: auto;
}

.pvr-review__media .pvr-media-item--video {
  aspect-ratio: auto;
}

.pvr-media-thumb img,
.pvr-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
  pointer-events: none;
}

.pvr-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.pvr-review-media-trigger:hover .pvr-media-thumb img,
.pvr-review-media-trigger:hover .pvr-media-thumb video,
.pvr-review-media-trigger:focus-visible .pvr-media-thumb img,
.pvr-review-media-trigger:focus-visible .pvr-media-thumb video {
  transform: scale(1.04);
}

.pvr-review-media-play svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: currentColor;
}

.pvr-review__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.pvr-review__author-info {
  display: flex;
  align-items: flex-start;
  gap: var(--pvr-space-3);
}

.pvr-review__avatar {
  width: var(--pvr-avatar-size, 70px);
  height: var(--pvr-avatar-size, 70px);
  border-radius: var(--pvr-radius-sm);
  object-fit: cover;
  box-shadow: none;
  transition: transform var(--pvr-transition);
  cursor: pointer;
  z-index: 2;
  position: relative;
  transform-origin: center left;
}

.pvr-review__avatar:hover {
  transform: scale(1.1);
  z-index: 5;
}

.pvr-review__avatar--expanded {
  transform: scale(3.5) translateY(30%) !important;
  box-shadow: var(--pvr-shadow-lg);
  z-index: 100;
}

.pvr-review__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pvr-review__meta-top {
  display: flex;
  align-items: center;
  gap: var(--pvr-space-2);
  flex-wrap: wrap;
}

.pvr-review__author {
  font-weight: 700;
  font-size: var(--pvr-title-font-size);
}

.pvr-review__date {
  font-size: var(--pvr-small-font-size);
  color: var(--pvr-muted-color);
}

.pvr-review__badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pvr-review__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--pvr-space-1);
}

.pvr-review__content {
  font-size: var(--pvr-content-font-size);
  line-height: var(--pvr-content-line-height);
  color: var(--pvr-text-color);
  width: 100%;
}

.pvr-review__content-inner {
  background: var(--pvr-surface-color);
  border: var(--pvr-surface-border);
  border-radius: var(--pvr-surface-radius);
  padding: var(--pvr-surface-padding);
}

/* Optional review headline (top of the text block, under the author info). */
.pvr-review__title {
  font-size: var(--pvr-title-font-size);
  font-weight: 600;
  line-height: 1.4;
  color: var(--pvr-text-color);
  margin: 0 0 6px;
}

.pvr-my-review-card__title {
  font-size: var(--pvr-title-font-size);
  font-weight: 600;
  line-height: 1.4;
  color: var(--pvr-text-color);
  margin-bottom: 6px;
}


.pvr-review__field {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--pvr-card-bg);
    border: 1px solid var(--pvr-border-color);
}

.pvr-review__field-label {
    display: block;
    font-size: var(--pvr-small-font-size);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.pvr-review__field--pros .pvr-review__field-label {
    color: var(--pvr-success-text);
}

.pvr-review__field--cons .pvr-review__field-label {
    color: var(--pvr-error-color);
}

.pvr-review__field-value {
    display: block;
    line-height: 1.6;
}

.pvr-form__limitations{
  min-height: 80px !important;
}

.pvr-review__city {
    font-size: var(--pvr-small-font-size);
    color: var(--pvr-muted-color);
    background: var(--pvr-chip-bg);
    padding: 2px var(--pvr-space-2);
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 6px;
}

.pvr-review__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--pvr-space-3);
  padding-top: var(--pvr-space-1);
  flex-wrap: wrap;
  margin-top: auto;
}

.pvr-helpful {
  display: flex;
  align-items: flex-start;
  gap: var(--pvr-space-2);
  flex-wrap: wrap;
  flex-direction: column;
}

.pvr-helpful__label {
  font-size: var(--pvr-meta-font-size);
  color: var(--pvr-muted-color);
}

.pvr-helpful__btns {
  display: flex;
  align-items: center;
  gap: var(--pvr-space-2);
  flex-wrap: wrap;
}

.pvr-helpful__btns .pvr-widget-read-more {
  margin-left: auto;
}

.pvr-vote-btn {
  appearance: none;
  border: 1px solid var(--pvr-btn-border-color);
  border-radius: var(--pvr-btn-corner, var(--pvr-btn-radius));
  background: var(--pvr-btn-bg);
  color: var(--pvr-btn-color);
  padding: var(--pvr-btn-padding-y) var(--pvr-btn-padding-x);
  font-size: var(--pvr-btn-font-size);
  font-weight: var(--pvr-btn-font-weight);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  min-width: 50px;
}

.pvr-vote-btn:hover,
.pvr-vote-btn:focus-visible {
  border-color: var(--pvr-accent-color);
  color: var(--pvr-accent-color);
  outline: none;
}

.pvr-vote-btn--active {
  border-color: var(--pvr-accent-color);
  background: rgba(37, 99, 235, 0.08);
  color: var(--pvr-accent-color);
  box-shadow: none;
}

.pvr-helpful__balance {
  font-size: var(--pvr-meta-font-size);
  font-weight: 700;
  padding: var(--pvr-space-1) 10px;
  border-radius: 999px;
  min-width: 32px;
  text-align: center;
}

.pvr-helpful__balance--positive {
  background: var(--pvr-success-bg);
  color: var(--pvr-success-text);
}

.pvr-helpful__balance--negative {
  background: var(--pvr-error-bg);
  color: var(--pvr-error-color);
}

.pvr-vote-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.pvr-reply-toggle {
  appearance: none;
  border: 1px solid var(--pvr-btn-accent-border);
  background: var(--pvr-btn-accent-bg);
  color: var(--pvr-btn-accent-color);
  font-size: var(--pvr-btn-font-size);
  cursor: pointer;
  padding: var(--pvr-btn-padding-y) var(--pvr-btn-padding-x);
  border-radius: var(--pvr-btn-corner, var(--pvr-btn-radius));
  font-weight: var(--pvr-btn-font-weight);
  box-shadow: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.pvr-reply-toggle:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.pvr-replies {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding-left: var(--pvr-space-4);
  border-left: 2px solid rgba(37, 99, 235, 0.12);
}

.pvr-replies--nested {
  padding-left: var(--pvr-space-3);
}

.pvr-reply {
  padding: 14px;
  border: var(--pvr-surface-border);
  border-radius: 18px;
  background: var(--pvr-card-bg-soft);
  color: var(--pvr-text-color);
}

.pvr-reply--owner {
  background: var(--pvr-info-bg);
  border-color: var(--pvr-info-border);
}

.pvr-reply__header {
  display: flex;
  align-items: center;
  gap: var(--pvr-space-2);
  margin-bottom: 6px;
}

.pvr-reply__author {
  font-weight: 600;
  font-size: var(--pvr-meta-font-size);
}

.pvr-reply__date {
  font-size: var(--pvr-small-font-size);
  color: var(--pvr-muted-color);
}

.pvr-reply__content {
  font-size: var(--pvr-meta-font-size);
  line-height: 1.5;
}

.pvr-owner-badge {
  display: inline-flex;
  padding: 2px var(--pvr-space-2);
  border-radius: 999px;
  background: var(--pvr-accent-color);
  color: #ffffff;
  font-size: var(--pvr-tiny-font-size);
  font-weight: 600;
}

.pvr-reply-form {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 14px;
  border-radius: 18px;
  background: var(--pvr-surface-color);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.pvr-form {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: grid;
  gap: var(--pvr-space-3);
}

.pvr-form__hero {
  display: grid;
  gap: var(--pvr-space-1);
}

.pvr-form__intro {
  display: grid;
  gap: var(--pvr-space-1);
}

.pvr-form__eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px var(--pvr-space-3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--pvr-accent-color);
  font-size: var(--pvr-small-font-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pvr-form__title {
  margin: 0;
  font-size: var(--pvr-display-font-size);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pvr-form__description {
  margin: 0;
  color: var(--pvr-muted-color);
  font-size: var(--pvr-meta-font-size);
}

/* Which product this review is written for — identity row. */
.pvr-form__product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pvr-form__product-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pvr-surface-color);
  border: 1px solid var(--pvr-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pvr-form__product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pvr-form-picker__thumb-placeholder {
  width: 55%;
  height: 55%;
  color: #94a3b8;
}

.pvr-form__product-name {
  min-width: 0;
  font-size: var(--pvr-lead-font-size);
  font-weight: 600;
  color: var(--pvr-text-color);
  overflow: hidden;
  text-overflow: ellipsis;
  /* nowrap stretched the identity row past the viewport on mobile —
     long product names must wrap instead of forcing min-content width. */
  overflow-wrap: anywhere;
}

.pvr-form__meta {
  display: flex;
  align-items: flex-start;
}

.pvr-form__user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--pvr-text-color);
  font-size: var(--pvr-meta-font-size);
  font-weight: 600;
}

.pvr-reward-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--pvr-gradient-soft);
  border: 1px dashed rgba(37, 99, 235, 0.45);
}

.pvr-reward-banner__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--pvr-gradient-accent);
  color: #ffffff;
  flex-shrink: 0;
}

.pvr-reward-banner__icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.pvr-reward-banner__body {
  display: grid;
  gap: 2px;
}

.pvr-reward-banner__title {
  font-size: var(--pvr-content-font-size);
  font-weight: 700;
  color: var(--pvr-text-color);
}

.pvr-reward-banner__text {
  font-size: var(--pvr-meta-font-size);
  line-height: 1.5;
  color: var(--pvr-muted-color);
}

.pvr-form__group {
  display: grid;
  gap: 6px;
}

/* Section headings inside the form: "Your profile", "Your ratings". */
.pvr-form__section-title {
  /* !important: theme content rules like `.entry-content p` out-specify
     this class and pull the heading's top spacing apart. */
  margin: 2px 0 0 !important;
  font-size: var(--pvr-meta-font-size);
  font-weight: 700;
  color: var(--pvr-text-color);
}

.pvr-form__helper {
  font-size: var(--pvr-small-font-size);
  line-height: 1.35;
  color: var(--pvr-muted-color);
  margin-top: -2px;
}

.pvr-avatar-upload {
  display: flex;
  align-items: center;
  gap: var(--pvr-space-3);
  /* Pulls the Pros section ~20-25% closer (12px grid gap -> ~7px). */
  margin: 0 0 -5px;
}

.pvr-avatar-upload__user {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.pvr-avatar-upload__name {
  font-size: var(--pvr-title-font-size);
  font-weight: 700;
  color: var(--pvr-text-color);
  line-height: 1.25;
  word-break: break-word;
}

.pvr-avatar-preview {
  width: 56px;
  height: 56px;
  border-radius: var(--pvr-radius-md);
  overflow: hidden;
  background: var(--pvr-surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--pvr-heading-font-size);
  flex-shrink: 0;
  border: 1px solid var(--pvr-border-color);
}

.pvr-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pvr-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.pvr-avatar-placeholder svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

.pvr-avatar-label {
  cursor: pointer;
  color: var(--pvr-text-link, #1e76c5);
  font-size: var(--pvr-small-font-size);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pvr-avatar-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pvr-space-5);
  background: rgba(17, 24, 39, 0.7);
  color: var(--pvr-modal-text);
}

.pvr-avatar-crop-modal__dialog {
  width: 100%;
  max-width: 460px;
  background: var(--pvr-modal-bg);
  border-radius: 14px;
  box-shadow: none;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.pvr-avatar-crop-modal__title {
  font-size: var(--pvr-lead-font-size);
  font-weight: 700;
  color: var(--pvr-text-color);
}

.pvr-avatar-crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  touch-action: none;
}

.pvr-avatar-crop-stage img {
  position: absolute;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
}

.pvr-avatar-crop-box {
  position: absolute;
  border: 2px solid #fff;
  border-radius: var(--pvr-radius-md);
  outline: 9999px solid rgba(15, 23, 42, 0.45);
  cursor: grab;
  touch-action: none;
}

.pvr-avatar-crop-box:active {
  cursor: grabbing;
}

.pvr-avatar-crop-resize {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pvr-primary, #2271b1);
  box-shadow: none;
  cursor: nwse-resize;
  padding: 0;
}

.pvr-avatar-crop-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--pvr-space-2);
}

.pvr-avatar-crop-modal__btn {
  border: 1px solid var(--pvr-border-color);
  border-radius: var(--pvr-btn-corner, 8px);
  font-size: var(--pvr-meta-font-size);
  line-height: 1;
  padding: 10px 14px;
  cursor: pointer;
}

.pvr-avatar-crop-modal__btn--secondary {
  background: var(--pvr-btn-bg);
  color: var(--pvr-btn-color);
  border: 1px solid var(--pvr-btn-border-color);
}

.pvr-avatar-crop-modal__btn--primary {
  background: var(--pvr-primary, #2271b1);
  border-color: var(--pvr-primary, #2271b1);
  color: #fff;
}

.pvr-form__label {
  font-size: var(--pvr-meta-font-size);
  font-weight: 700;
  color: var(--pvr-text-color);
}

.pvr-form__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pvr-space-3);
  flex-wrap: wrap;
}

.pvr-form__hint {
  font-size: var(--pvr-small-font-size);
  color: var(--pvr-muted-color);
}

.pvr-form__row {
  display: grid;
  gap: 10px;
}

.pvr-form__textarea {
  min-height: 110px;
  resize: vertical;
}

.pvr-form__submit {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  /* Submit button (meta) on the right, status message on the left. */
  flex-direction: row-reverse;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: var(--pvr-space-1);
}

.pvr-form__submit-meta {
  display: grid;
  gap: 10px;
  justify-items: end;
  /* Theme buttons set justify-self:start — force right alignment. */
  align-items: start;
}

.pvr-form__submit-meta > * {
  justify-self: end;
  text-align: right;
}

.pvr-form__message {
  font-size: var(--pvr-meta-font-size);
  min-height: 20px;
  align-self: center;
}

.pvr-form__message--success {
  color: var(--pvr-success-text);
}

.pvr-form__message--error {
  color: var(--pvr-error-color);
}

.pvr-required {
  color: var(--pvr-error-color);
  margin-left: 2px;
}

/* [pvr_review_form] — standalone form card + product picker autocomplete. */
.pvr-form-standalone {
  overflow: visible;
  flex: none;
  min-height: 0;
  max-width: 760px;
  margin: 0 auto 24px;
  box-shadow: none;
}

.pvr-form-picker {
  display: flex;
  flex-direction: column;
  gap: var(--pvr-space-2);
  margin: 0 0 4px;
}

.pvr-form-picker__label {
  font-size: var(--pvr-content-font-size);
  font-weight: 600;
  color: var(--pvr-text-color);
}

.pvr-form-picker__wrap {
  position: relative;
}

.pvr-form-picker__input {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid var(--pvr-border-color);
  border-radius: var(--pvr-input-radius, 16px);
  background: var(--pvr-card-bg);
  color: var(--pvr-text-color);
  padding: var(--pvr-space-3) 14px;
  font-family: inherit;
  font-size: var(--pvr-content-font-size);
  line-height: 1.45;
  box-shadow: none;
}

.pvr-form-picker__input:focus {
  border-color: var(--pvr-accent-color);
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 1px;
}

.pvr-form-picker__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--pvr-card-bg);
  border: 1px solid var(--pvr-border-color);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
}

.pvr-form-picker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--pvr-space-2) 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--pvr-text-color);
  font-size: var(--pvr-content-font-size);
}

.pvr-form-picker__item:hover,
.pvr-form-picker__item.is-active {
  background: var(--pvr-card-bg-soft, rgba(37, 99, 235, 0.06));
}

.pvr-form-picker__thumb {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--pvr-surface-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pvr-form-picker__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pvr-form-picker__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pvr-form-picker__count {
  flex: none;
  font-size: var(--pvr-small-font-size);
  color: var(--pvr-muted-color);
  background: var(--pvr-surface-color);
  border-radius: 999px;
  padding: 2px var(--pvr-space-2);
}

.pvr-form-picker__empty {
  padding: var(--pvr-space-3) 10px;
  color: var(--pvr-muted-color);
  font-size: var(--pvr-content-font-size);
  text-align: center;
}

.pvr-form--picker-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.pvr-form-picker__hint {
  color: var(--pvr-muted-color);
  font-size: var(--pvr-content-font-size);
}

.pvr-form input,
.pvr-form textarea,
.pvr-form select,
.pvr-reply-form input,
.pvr-reply-form textarea {
  border: 1px solid var(--pvr-border-color);
  border-radius: var(--pvr-input-radius, 16px);
  background: var(--pvr-card-bg);
  color: var(--pvr-text-color);
  padding: var(--pvr-space-3) 14px;
  /* Explicit size: themes styling inputs directly beat font:inherit. */
  font-family: inherit;
  font-size: var(--pvr-content-font-size);
  line-height: 1.45;
  box-shadow: none;
}

.pvr-form input:focus,
.pvr-form textarea:focus,
.pvr-form select:focus,
.pvr-reply-form input:focus,
.pvr-reply-form textarea:focus {
  border-color: var(--pvr-accent-color);
  outline: none;
  outline: 2px solid rgba(37, 99, 235, 0.35);
  outline-offset: 1px;
}

.pvr-form input{
  outline: 0 !important;
}

/* Class-scoped text inputs: themes (Astra et al.) style input[type=...]
   with the same specificity as the shared .pvr-form input rule above and
   win by loading later — that is how sharp corners and theme borders
   replaced the form look on client sites. Same declarations as the
   textarea so the fields match. */
.pvr-form .pvr-form__input,
.pvr-reply-form .pvr-form__input {
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: var(--pvr-input-radius, 16px);
  background: var(--pvr-card-bg);
  color: var(--pvr-text-color);
  padding: 12px 14px;
  font-family: inherit;
  font-size: var(--pvr-content-font-size);
  line-height: 1.45;
  box-shadow: none;
}

.pvr-form .pvr-form__input:focus,
.pvr-reply-form .pvr-form__input:focus {
  border-color: var(--pvr-accent-color);
}

.pvr-rating-input {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.pvr-rating-star {
  font-size: 28px;
  line-height: 1;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pvr-rating-star svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  display: block;
}

.pvr-rating-star.pvr-star--active {
  color: var(--pvr-star-color);
}

.pvr-rating-star:hover {
  color: var(--pvr-star-color);
}

.pvr-rating-star:hover {
  transform: scale(1.05);
}

.pvr-criteria-voting-block {
  margin: 4px 0 0;
  padding: 0;
}

.pvr-criteria-scroll {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--pvr-space-1) 2px 6px;
}

.pvr-criteria-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--pvr-space-1);
  min-width: 150px;
  margin-bottom: 0;
  padding: 0;
  flex: 0 0 auto;
}

.pvr-criteria-row__head {
  min-width: 0;
  display: inline-flex;
}

.pvr-criteria-row__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pvr-criteria-row__title {
  font-size: var(--pvr-content-font-size);
  font-weight: 600;
  color: var(--pvr-text-color);
  line-height: 1.3;
  white-space: nowrap;
  cursor: help;
}

.pvr-criteria-row__required {
  color: var(--pvr-error-color);
  margin-left: 2px;
}

.pvr-criteria-row__info {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--pvr-muted-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  background: var(--pvr-card-bg);
}

.pvr-tooltip-portal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100002;
  max-width: 280px;
  padding: var(--pvr-space-2) 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #f8fafc;
  font-size: var(--pvr-tiny-font-size);
  line-height: 1.35;
  white-space: normal;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.pvr-tooltip-portal--visible {
  opacity: 1;
  transform: translateY(0);
}

.pvr-rating-input.pvr-criteria-stars {
  width: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  gap: 3px;
}

.pvr-criteria-stars .pvr-rating-star {
  font-size: var(--pvr-subheading-font-size);
}

.pvr-criteria-stars .pvr-rating-star svg {
  width: 22px;
  height: 22px;
}

.pvr-criteria-row--invalid {
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.32);
}

.pvr-upload-zone {
  position: relative;
  border: 2px dashed rgba(100, 116, 139, 0.35);
  border-radius: var(--pvr-input-radius, 16px);
  background: var(--pvr-card-bg-soft);
  padding: 18px 14px;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.pvr-upload-zone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.pvr-upload-zone__icon {
  font-size: 30px;
  color: var(--pvr-accent-color);
}

.pvr-upload-zone__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--pvr-accent-color);
  font-size: var(--pvr-tiny-font-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pvr-upload-zone__text {
  font-size: var(--pvr-content-font-size);
  font-weight: 700;
  color: var(--pvr-text-color);
}

.pvr-upload-zone__hint {
  font-size: var(--pvr-tiny-font-size);
  line-height: 1.25;
  color: var(--pvr-muted-color);
}

.pvr-upload-zone__limits {
  display: grid;
  gap: 1px;
  justify-items: center;
  text-align: center;
}

.pvr-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.pvr-upload-zone:hover,
.pvr-upload-zone:focus-within {
  border-color: var(--pvr-accent-color);
  background: var(--pvr-surface-color);
  transform: translateY(-1px);
}

.pvr-upload-progress {
  display: grid;
  gap: 6px;
}

.pvr-progress-text {
  font-size: var(--pvr-meta-font-size);
  color: var(--pvr-muted-color);
}

.pvr-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--pvr-track-bg);
}

.pvr-progress-fill {
  width: 0;
  height: 100%;
  background: var(--pvr-gradient-accent);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.pvr-submit-btn {
  appearance: none;
  border: none;
  border-radius: var(--pvr-btn-corner, 999px);
  background: var(--pvr-gradient-accent);
  color: #ffffff;
  padding: 13px 22px;
  font-size: var(--pvr-content-font-size);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  box-shadow: none;
}

.pvr-submit-btn:hover,
.pvr-submit-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: none;
  filter: brightness(1.03);
  outline: none;
}

.pvr-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pvr-media-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pvr-media-preview .pvr-media-thumb {
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: none;
}

.pvr-form__hint--media {
  display: inline-block;
  margin-top: 10px;
}

/* Per-item progress bar */
.pvr-media-item__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border-radius: 0 0 var(--pvr-radius-md) var(--pvr-radius-md);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pvr-media-item[data-status="uploading"] .pvr-media-item__progress,
.pvr-media-item[data-status="processing"] .pvr-media-item__progress {
  opacity: 1;
}

.pvr-media-item[data-status="uploaded"] .pvr-media-item__progress {
  opacity: 0;
}

.pvr-media-item__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--pvr-gradient-accent);
  transition: width 0.2s ease;
  position: relative;
  overflow: hidden;
}

.pvr-media-item__progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: pvr-shimmer 1.5s ease-in-out infinite;
}

@keyframes pvr-shimmer {
  0%   { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}

/* Upload mode — hide form fields, show centered upload screen */
.pvr-form--uploading .pvr-form__hero,
.pvr-form--uploading .pvr-avatar-upload,
.pvr-form--uploading .pvr-upload-zone,
.pvr-form--uploading .pvr-form__hint--media,
.pvr-form--uploading .pvr-privacy-group,
.pvr-form--uploading .pvr-form__submit,
.pvr-form--uploading .pvr-form__group,
.pvr-form--uploading .pvr-form__row,
.pvr-form--uploading .pvr-media-preview,
.pvr-form--uploading .pvr-thankyou {
  display: none !important;
}

.pvr-upload-view {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 480px;
  padding: 40px var(--pvr-space-6) 30px;
  box-sizing: border-box;
}

.pvr-form--uploading .pvr-upload-view {
  display: flex;
}

.pvr-upload-view__spinner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 40px 0 var(--pvr-space-5);
}

/* Pulse wave loader */
.pvr-upload-spinner {
  width: 48px;
  height: 48px;
  display: inline-block;
  position: relative;
  margin-bottom: 24px;
}

.pvr-upload-spinner::after,
.pvr-upload-spinner::before {
  content: '';  
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6ebeff;
  position: absolute;
  left: 0;
  top: 0;
  animation: pvr-pulse-loader 2s linear infinite;
}

.pvr-upload-spinner::after {
  animation-delay: 1s;
}

@keyframes pvr-pulse-loader {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.pvr-upload-view__title {
  font-size: var(--pvr-title-font-size);
  color: var(--pvr-text-color);
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
  max-width: 380px;
}

/* Bottom Progress area */
.pvr-upload-view__progress {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--pvr-space-2);
}

.pvr-upload-view__percent-wrap {
  width: 100%;
  text-align: center;
  margin-bottom: 2px;
}

.pvr-upload-view__percent {
  font-size: var(--pvr-content-font-size);
  font-weight: 500;
  color: var(--pvr-text-color);
}

.pvr-upload-view__progress .pvr-progress-bar {
  width: 100%;
  height: 14px;
  background: #cbf3e4;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.pvr-upload-view__progress .pvr-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #10b981 100%);
  background-size: 200% 100%;
  transition: width 0.12s linear;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.pvr-upload-view__progress .pvr-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  animation: pvr-liquid-shimmer 2s ease-in-out infinite;
}

@keyframes pvr-liquid-shimmer {
  0%   { transform: translateX(-150%); }
  100% { transform: translateX(150%); }
}

.pvr-upload-view__hint {
  display: block;
  font-size: var(--pvr-tiny-font-size);
  color: var(--pvr-success-text);
  text-align: center;
  margin-top: 2px;
  line-height: 1.4;
  max-width: 540px;
}

.pvr-upload-view__cancel-wrap {
  margin-top: 14px;
}

.pvr-upload-view__cancel-btn {
  appearance: none;
  border: none;
  border-radius: var(--pvr-btn-corner, 8px);
  background: #ff5b60;
  color: #ffffff;
  padding: 9px 28px;
  font-size: var(--pvr-meta-font-size);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, filter 0.15s ease;
  box-shadow: 0 2px 6px rgba(255, 91, 96, 0.3);
}

.pvr-upload-view__cancel-btn:hover {
  background: #f0484d;
  filter: brightness(1.02);
}

.pvr-upload-view__cancel-btn:active {
  transform: scale(0.97);
}

/* Thank you screen */
.pvr-thankyou {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--pvr-space-4);
  padding: 48px var(--pvr-space-5);
  text-align: center;
}

.pvr-form--thankyou .pvr-form__hero,
.pvr-form--thankyou .pvr-avatar-upload,
.pvr-form--thankyou .pvr-form__group,
.pvr-form--thankyou .pvr-form__row,
.pvr-form--thankyou .pvr-upload-zone,
.pvr-form--thankyou .pvr-form__hint--media,
.pvr-form--thankyou .pvr-media-preview,
.pvr-form--thankyou .pvr-privacy-group,
.pvr-form--thankyou .pvr-form__submit,
.pvr-form--thankyou .pvr-upload-view {
  display: none !important;
}

.pvr-form--thankyou .pvr-thankyou {
  display: flex;
}

.pvr-thankyou__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pvr-check-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.pvr-thankyou__icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: pvr-check-draw 0.4s 0.3s ease forwards;
}

@keyframes pvr-check-bounce {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pvr-check-draw {
  to { stroke-dashoffset: 0; }
}

.pvr-thankyou__title {
  font-size: var(--pvr-subheading-font-size);
  font-weight: 600;
  color: var(--pvr-text-color, #1f2937);
  margin: 0;
}

.pvr-thankyou__subtitle {
  font-size: var(--pvr-content-font-size);
  color: var(--pvr-muted-color, #6b7280);
  margin: 0;
  line-height: 1.5;
}

/* Partial upload failure notice: the review IS submitted, so this stays
   inside the thank-you screen (never an error screen) and offers a retry. */
.pvr-thankyou__warning {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--pvr-space-3) var(--pvr-space-4);
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.08);
  border-radius: 12px;
  box-sizing: border-box;
}

.pvr-thankyou__warning-text {
  margin: 0;
  font-size: var(--pvr-meta-font-size);
  line-height: 1.5;
  color: var(--pvr-text-color, #1f2937);
}

.pvr-thankyou__warning-actions {
  display: flex;
  justify-content: center;
}

.pvr-thankyou__retry {
  padding: var(--pvr-space-2) 22px;
  border-radius: var(--pvr-btn-corner, 999px);
  border: none;
  background: var(--pvr-accent-color, #2563eb);
  color: #fff;
  font-size: var(--pvr-meta-font-size);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.pvr-thankyou__retry:hover {
  opacity: 0.88;
}

.pvr-thankyou__retry:disabled {
  opacity: 0.55;
  cursor: default;
}

.pvr-thankyou__close {
  margin-top: 8px;
  padding: 10px 32px;
  border-radius: 999px;
  border: 1px solid var(--pvr-border-color);
  background: var(--pvr-btn-bg);
  color: var(--pvr-btn-color);
  font-size: var(--pvr-content-font-size);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pvr-thankyou__close:hover {
  background: var(--pvr-surface-color);
  border-color: var(--pvr-muted-color);
}

/* Standalone form keeps the thank-you screen and hides this button —
   theme `button { display: … }` rules would beat the UA [hidden] style. */
.pvr-thankyou__close[hidden] {
  display: none;
}

html.pvr-modal-open,
body.pvr-modal-open {
  overflow: hidden !important;
}

.pvr-media-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--pvr-modal-bg);
  backdrop-filter: blur(8px);
  color: var(--pvr-modal-text);
}

.pvr-media-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  width: 100vw;
  /* Same dvh rationale as .pvr-media-grid-modal__dialog. */
  height: 100vh;
  height: 100dvh;
  max-height: none;
  overflow: hidden;
  overscroll-behavior: contain;
  box-shadow: none;
}

.pvr-round-btn{
  cursor: pointer;
  height: 42px;
  width: 42px;
  text-align: center;
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.52);
  color: #fff;
  line-height: 42px;
  padding: 0;
  transition: all var(--pvr-transition);
  flex-shrink: 0;
  border: none;
  svg{
    fill: #fff;
    color: #fff;
    transition: all var(--pvr-transition);
  }
  &:hover{
    background: rgba(2, 6, 23, 0.72);
  }
}

.pvr-media-modal__close {
  padding: 0;
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
}

.pvr-media-modal__expand {
  padding: 0;
  position: absolute;
  top: 5px;
  right: calc(33.33% + 12px);
  z-index: 2;
}

.pvr-media-modal__close-icon {
  width: 22px;
  height: 22px;
}

.pvr-media-modal__expand-icon {
  width: 20px;
  height: 20px;
}

.pvr-media-modal__mobile-bar {
  display: none;
}

.pvr-media-modal__mobile-slide {
  display: none;
  background: var(--pvr-modal-bg);
}

.pvr-media-modal__all-media {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  height: 44px;
  border: none;
  border-radius: var(--pvr-btn-corner, 999px);
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: var(--pvr-space-2);
  padding: 0 14px 0 10px;
  font-size: var(--pvr-meta-font-size);
  font-weight: 600;
  cursor: pointer;
}

.pvr-media-modal__all-media .back-arrow {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.pvr-media-modal__media {
  position: relative;
  min-height: 100%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}

.pvr-media-modal__media.has-blur-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pvr-media-bg-image);
  background-size: cover;
  background-position: center;
  z-index: 0 ;
  margin: -30px;
  filter: blur(50px) saturate(0.95) brightness(.85);
}

.pvr-media-modal__image,
.pvr-media-modal__video {
    height: 100%;
    width: 100%;
    z-index: 1;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    position: relative;
}

.pvr-media-modal__video-player {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pvr-media-modal__video-player .pvr-media-modal__video {
  width: auto;
  max-width: 100%;
}

.pvr-media-modal__video-player--native-fullscreen {
  width: 100vw;
  height: 100vh;
  background: #000;
}

.pvr-media-modal__video-player--native-fullscreen .pvr-media-modal__video {
  width: 100%;
  object-fit: contain;
}

.pvr-media-modal__video-player--native-fullscreen .pvr-media-modal__video-controls {
  display: none;
}

.pvr-media-modal__video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: auto auto auto minmax(120px, 1fr) auto auto auto;
  align-items: center;
  gap: var(--pvr-space-2);
  padding: 10px var(--pvr-space-3);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 70%, rgba(0, 0, 0, 0) 100%);
}

.pvr-video-control-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #ffffff;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pvr-video-control-btn:hover,
.pvr-video-control-btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.pvr-video-control-btn__icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.pvr-video-control__time,
.pvr-video-control__preload {
  font-size: var(--pvr-small-font-size);
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.pvr-video-control__preload {
  min-width: 42px;
  text-align: right;
  color: rgba(255, 255, 255, 0.84);
}

.pvr-video-control__seek-wrap {
  --pvr-buffered-pct: 0%;
  --pvr-played-pct: 0%;
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
}

.pvr-video-control__buffered {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.52) 0 var(--pvr-buffered-pct), rgba(255, 255, 255, 0.26) var(--pvr-buffered-pct) 100%);
  pointer-events: none;
}

/* Theme-proof seek bar: themes style input[type="range"] with their own
   background/height (attribute selectors outweight the bare class) — the
   input then paints a second bar over the custom track ("doubled" seek
   bar) and recolors the thumb. Pin every visual layer explicitly; the
   doubled-bar sources (input background/border) get !important. */
.pvr-media-modal__video-controls .pvr-video-control__seek {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
}

.pvr-media-modal__video-controls .pvr-video-control__seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  border: none;
  box-shadow: none;
  background: linear-gradient(to right, #ff2f52 0 var(--pvr-played-pct), rgba(255, 255, 255, 0) var(--pvr-played-pct) 100%);
}

.pvr-media-modal__video-controls .pvr-video-control__seek::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  margin-top: -4px !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15) !important;
}

.pvr-media-modal__video-controls .pvr-video-control__seek::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  border: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.12);
}

.pvr-media-modal__video-controls .pvr-video-control__seek::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: #ff2f52;
}

.pvr-media-modal__video-controls .pvr-video-control__seek::-moz-range-thumb {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15) !important;
}

.pvr-media-modal__nav {
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.72);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pvr-media-modal__nav-icon {
  width: 24px;
  height: 24px;
}

.pvr-media-modal__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pvr-media-modal__counter {
  position: absolute;
    left: 16px;
    top: 75px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.72);
    color: #fff;
    font-size: var(--pvr-small-font-size);
    line-height: 1;
    z-index: 2;
}

.pvr-media-modal__aside {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 0;
  overflow: hidden;
  background: var(--pvr-modal-bg);
  height: 100%;
}

.pvr-media-modal__aside-scroll {
  display: flex;
  flex-direction: column;
  gap: var(--pvr-space-5);
  overscroll-behavior: contain;
  padding: var(--pvr-space-3);
  padding-bottom: 40px;
  overflow-y: auto;
}

.pvr-media-modal__thumb-item.pvr-media-modal__thumb-item--active {
  border-color: var(--pvr-accent-color);
}

.pvr-media-modal__rating .pvr-star {
  width: 16px;
  height: 16px;
}

.pvr-media-modal__thumb-strip {
  display: flex;
  gap: 5px;
  padding: var(--pvr-space-1) var(--pvr-space-1) 10px;
  overscroll-behavior-x: contain;
  overflow-x: auto;
  scrollbar-width: thin;
  min-height: fit-content;
  scrollbar-color: rgba(148, 163, 184, 0.9) transparent;
}

.pvr-media-modal__thumb-strip::-webkit-scrollbar {
  height: 6px;
}

.pvr-media-modal__thumb-strip::-webkit-scrollbar-track {
  background: transparent;
}

.pvr-media-modal__thumb-strip::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.75);
  border-radius: 10px;
}

.pvr-media-modal__thumb-item {
  flex: 0 0 var(--pvr-thumb-w, 54px);
  height: var(--pvr-thumb-h, 54px);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  position: relative;
}

.pvr-media-modal__thumb-item:hover {
  border-color: var(--pvr-accent-color);
}

.pvr-media-modal__thumb-item.pvr-media-modal__thumb-item--video {
  position: relative;
}

.pvr-media-modal__thumb-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.pvr-media-modal__extra-fields,
.pvr-media-modal__content .pvr-review__extra-fields {
  background: var(--pvr-surface-color);
  padding: var(--pvr-space-3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: var(--pvr-space-2);
}

.pvr-media-modal__author {
  align-items: center;
}

.pvr-media-modal__badges {
  justify-content: flex-start;
}

.pvr-media-modal__content {
  margin: 0;
}

.pvr-media-modal__footer {
  align-items: flex-start;
}

.pvr-media-modal__reply-form {
  margin-top: 0;
}

.pvr-media-modal__replies {
  margin-top: 0;
}

.pvr-no-reviews {
  text-align: center;
  color: var(--pvr-muted-color);
  padding: 36px 18px;
  font-size: var(--pvr-content-font-size);
  background: var(--pvr-surface-color);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 20px;
}

.pvr-widget-reviews {
  position: relative;
  margin: 20px 0;
}

.pvr-widget-title {
  margin: 20px 0 14px;
  font-size: var(--pvr-display-font-size);
  font-weight: 700;
  line-height: 1.3;
  color: var(--pvr-text-color, #0f172a);
}

/* ============================================
   Grid Widget
   ============================================ */
.pvr-reviews-grid {
  display: grid;
  gap: 18px;
}

.pvr-reviews-grid__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pvr-reviews-grid__item .pvr-review-item {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.pvr-reviews-grid__item .pvr-review-item > * {
  flex-shrink: 0;
}

.pvr-reviews-grid__item .pvr-review__content {
  flex: 1 1 auto;
  min-height: 0;
}

/* ============================================
   Carousel Widget
   ============================================ */
.ex-reviews__carousel-item {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.ex-reviews__carousel-item .pvr-review-item {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.ex-reviews__carousel-item .pvr-review-item > * {
  flex-shrink: 0;
}

.ex-reviews__carousel-item .pvr-review__content {
  flex: 1 1 auto;
  min-height: 0;
}

/* ============================================
   Shared Widget Styles
   ============================================ */
.pvr-widget-reviews .pvr-review__content {
  font-size: clamp(13px, 1.4vw, 15px);
}

/* Clamp long review text in widget cards only.
   The media modal clones this content outside .pvr-widget-reviews,
   so the modal always shows the full review text. */
.pvr-widget-reviews .pvr-review__content-inner p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

/* "Read more" inside the media modal is redundant —
   the modal already shows the full review. */
.pvr-media-modal__footer .pvr-widget-read-more {
  display: none;
}

.pvr-review__footer {
  margin-top: auto;
}

.pvr-widget-read-more {
  background: none;
  border: none;
  color: var(--pvr-accent-color, #2563eb);
  font-size: var(--pvr-meta-font-size);
  font-weight: 500;
  cursor: pointer;
  padding: var(--pvr-space-1) 0;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.pvr-widget-read-more:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.pvr-reviews-carousel-wrapper {
  position: relative;
  padding-inline: 22px;
}

.pvr-reviews-carousel {
  display: flex;
  gap: 18px;
  overflow: hidden;
  padding: 2px 2px 14px;
  will-change: transform;
}

.pvr-carousel-controls {
  pointer-events: none;
}

.pvr-carousel-control {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--pvr-text-color);
  box-shadow: var(--pvr-card-shadow);
  transform: translateY(-50%);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pvr-carousel-control:hover,
.pvr-carousel-control:focus-visible {
  border-color: var(--pvr-accent-color);
  color: var(--pvr-accent-color);
  background: #ffffff;
  transform: translateY(-50%) scale(1.03);
  outline: none;
}

.pvr-carousel-control .pvr-icon {
  width: 18px;
  height: 18px;
}

.pvr-carousel-prev {
  left: 0;
}

.pvr-carousel-next {
  right: 0;
}

.pvr-reviews-carousel-wrapper .pvr-carousel-controls {
  pointer-events: none;
}

@media (min-width: 768px) {
  .pvr-reviews-wrapper {
    gap: var(--pvr-space-6);
  }

  .pvr-overview {
    align-items: start;
  }

  .pvr-summary {
    grid-template-columns: minmax(180px, 220px) 1fr;
    align-items: start;
    gap: var(--pvr-space-5);
    padding: var(--pvr-space-6);
  }

  .pvr-review-item {
    padding: var(--pvr-space-5) var(--pvr-space-3);
  }

  .pvr-form__row {
    grid-template-columns: 1fr 1fr;
  }

  .pvr-submit-btn {
    width: auto;
    justify-self: end;
  }

  .pvr-reviews-grid {
    gap: var(--pvr-space-5);
  }

}

@media (max-width: 1440px) {
  .pvr-media-grid-modal__grid{
    grid-template-columns: repeat(5, minmax(0px, 1fr));
  }
}

@media (max-width: 1024px) {
  .pvr-media-grid-modal__grid{
    grid-template-columns: repeat(4, minmax(0px, 1fr));
  }
}

@media (max-width: 900px) {
  .pvr-media-modal {
    padding: 0;
  }

  .pvr-media-modal__dialog {
    grid-template-columns: 1fr;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .pvr-media-modal__media {
    height: 100vh;
    height: 100dvh;
  }

  .pvr-media-modal__image,
  .pvr-media-modal__video {
    width: 100%;
    height: auto;
    min-height: 60vh;
    min-height: 60dvh;
    object-fit: cover;
    object-position: center center;
  }

  .pvr-media-modal__aside {
    display: none;
  }

  .pvr-media-modal__all-media {
    left: 12px;
    max-width: calc(100vw - 140px);
  }

  .pvr-media-modal__counter {
    left: 12px;
    top: 70px;
  }

  .pvr-media-modal__video-controls {
    grid-template-columns: auto auto auto minmax(80px, 1fr) auto auto auto;
    gap: 6px;
    padding: var(--pvr-space-2) 10px;
    bottom: 0px;
  }

  .pvr-video-control__time,
  .pvr-video-control__preload {
    font-size: var(--pvr-tiny-font-size);
  }

  .pvr-media-modal__close {
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
  }

  .pvr-media-modal__expand {
    top: 60px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
  }

  .pvr-media-modal__mobile-bar {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 70%, transparent 100%);
    padding: 40px var(--pvr-space-4) var(--pvr-space-4);
    cursor: pointer;
    transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .pvr-video-modal .pvr-media-modal__mobile-bar {
    bottom: 50px;
  }

  .pvr-media-modal__mobile-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .pvr-media-modal__mobile-bar-avatar {
    flex-shrink: 0;
  }

  .pvr-media-modal__mobile-bar-avatar .pvr-review__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
  }

  .pvr-media-modal__mobile-bar-avatar .pvr-review__avatar--placeholder {
    width: 36px;
    height: 36px;
    font-size: var(--pvr-content-font-size);
  }

  .pvr-media-modal__mobile-bar-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .pvr-media-modal__mobile-bar-name {
    color: #fff;
    font-size: var(--pvr-content-font-size);
    font-weight: 600;
    line-height: 1.3;
  }

  .pvr-media-modal__mobile-bar-rating .pvr-star {
    width: 12px;
    height: 12px;
  }

  .pvr-media-modal__mobile-bar-rating .pvr-star--full {
    color: var(--pvr-star-color);
  }

  .pvr-media-modal__mobile-bar-rating .pvr-star--empty {
    color: rgba(255,255,255,0.3);
  }

  .pvr-media-modal__mobile-bar-expand {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  .pvr-media-modal__mobile-bar-expand:active {
    transform: scale(1.15);
  }

  .pvr-media-modal__mobile-bar-expand svg {
    transform: rotate(180deg);
  }

  .pvr-media-modal__mobile-bar-text {
    color: rgba(255,255,255,0.8);
    font-size: var(--pvr-small-font-size);
    line-height: 1.4;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
  }

  .pvr-media-modal__mobile-slide {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    height: 80vh;
    height: 80dvh;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
  }

  .pvr-media-modal__mobile-slide--open {
    transform: translateY(0);
  }

  .pvr-media-modal__mobile-slide-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px var(--pvr-space-4) 10px;
    position: relative;
  }

  .pvr-media-modal__mobile-slide-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #d1d5db;
  }

  .pvr-media-modal__mobile-slide-close {
    position: absolute;
    right: 8px;
    top: 4px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    color: var(--pvr-muted-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    svg{
      width: 18px;
      height: 18px;
      fill: currentColor;
    }
  }

  .pvr-media-modal__mobile-slide-close:hover {
    background: rgba(0,0,0,0.72);
  }

  .pvr-media-modal__mobile-slide-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 0 var(--pvr-space-3) var(--pvr-space-4);
    display: flex;
    flex-direction: column;
    gap: var(--pvr-space-3);
    box-sizing: border-box;
    width: 100%;
  }

  .pvr-media-modal__mobile-slide-thumbs {
    flex-shrink: 0;
    padding: 10px var(--pvr-space-3) var(--pvr-space-4);
    border-top: 1px solid var(--pvr-border-color);
  }

  .pvr-media-modal__mobile-thumb-strip {
    display: flex;
    gap: var(--pvr-space-2);
    overflow-x: auto;
    padding-bottom: var(--pvr-space-1);
  }

  .pvr-media-modal__mobile-thumb-strip .pvr-media-modal__thumb-item {
    flex: 0 0 54px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    position: relative;
  }

  .pvr-media-modal__mobile-thumb-strip .pvr-media-modal__thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .pvr-media-modal__mobile-thumb-strip .pvr-media-modal__thumb-item--active {
    border-color: var(--pvr-accent-color);
  }

  .pvr-media-modal__mobile-thumb-strip .pvr-media-modal__thumb-item--video .pvr-review-media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
  }

  .pvr-media-modal__mobile-thumb-strip .pvr-media-modal__thumb-item--video .pvr-review-media-play svg {
    width: 14px;
    height: 14px;
  }

  .pvr-media-modal__mobile-slide-scroll .pvr-media-modal__author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  .pvr-media-modal__mobile-slide-scroll .pvr-media-modal__author .pvr-review__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .pvr-media-modal__mobile-slide-scroll .pvr-media-modal__author .pvr-review__avatar--placeholder {
    width: 40px;
    height: 40px;
    font-size: var(--pvr-lead-font-size);
  }

  .pvr-media-modal__mobile-slide-date {
    font-size: var(--pvr-small-font-size);
    color: var(--pvr-muted-color);
  }

  .pvr-media-modal__mobile-slide-scroll .pvr-media-modal__content {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: var(--pvr-content-font-size);
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
  }

  .pvr-media-modal__mobile-slide-scroll .pvr-review__content-inner {
    background: var(--pvr-surface-color);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: var(--pvr-space-3) 14px;
    width: 100%;
    box-sizing: border-box;
  }

  .pvr-media-modal__mobile-slide-scroll .pvr-review__extra-fields {
    width: 100%;
    box-sizing: border-box;
  }

  .pvr-media-modal__mobile-slide-scroll .pvr-review__field {
    width: 100%;
    box-sizing: border-box;
  }

  .pvr-media-modal__mobile-slide-scroll .pvr-media-modal__footer {
    margin-top: 2px;
    width: 100%;
    box-sizing: border-box;
  }

  .pvr-media-modal__mobile-slide-scroll .pvr-media-modal__replies {
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .pvr-media-modal__mobile-slide-scroll .pvr-reply {
    width: 100%;
    box-sizing: border-box;
  }

  .pvr-reviews-carousel-wrapper {
    padding-inline: 0;
  }

  .pvr-carousel-controls {
    display: none;
  }
}

.pvr-media-modal__nav--prev {
  left: 12px;
}

.pvr-media-modal__nav--next {
  right: calc(33.333% + 12px);
}

@media (max-width: 900px) {
  .pvr-media-modal__nav--prev {
    left: 2px;
  }

  .pvr-media-modal__nav--next {
    right: 2px;
  }
  .pvr-media-modal__nav{
    background: rgb(2 6 23 / 32%);
    width: 40px;
    height: 40px;
  }
}

  .pvr-media-modal__video-controls {
    grid-template-columns: auto auto auto minmax(80px, 1fr) auto auto auto;
    gap: 6px;
    padding: var(--pvr-space-2) 10px;
  }

  .pvr-video-control__time,
  .pvr-video-control__preload {
    font-size: var(--pvr-tiny-font-size);
  }
  .pvr-media-grid-modal__dialog{
    padding: 0;
  }
  .pvr-media-grid-modal__close{
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 11;
  }

@media (max-width: 640px) {
  .pvr-media-grid-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pvr-space-2);
    width: 97vw;
  }
  .pvr-media-modal__all-media {
    left: 10px;
    max-width: calc(100vw - 136px);
    padding-right: var(--pvr-space-3);
  }
}

@media (min-width: 1024px) {
  .pvr-reviews-wrapper {
    gap: 28px;
    padding: 1rem;
  }
}

.pvr-review__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pvr-primary-color, #2ecc71);
    color: #fff;
    font-weight: 700;
    font-size: calc(var(--pvr-avatar-size, 48px) * 0.4);
    text-transform: uppercase;
    aspect-ratio: 1/1;
    width: var(--pvr-avatar-size, 48px);
    height: var(--pvr-avatar-size, 48px);
}

/* My Avatar Page */
.pvr-my-avatar {
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.pvr-my-avatar__preview {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--pvr-surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    margin: 20px 0;
    border: 3px solid var(--pvr-border-color);
    position: relative;
}
.pvr-my-avatar__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pvr-account-avatar-placeholder {
    font-size: 64px;
    line-height: 1;
}
.pvr-my-avatar__upload {
    margin-top: 16px;
}

.pvr-reviews-wrapper :focus {
    outline: none;
}

.pvr-reviews-wrapper :focus-visible {
    outline: 2px solid var(--pvr-primary-color, #7F77DD);
    outline-offset: 2px;
    border-radius: 12px;
}

.pvr-btn--secondary {
    background: var(--pvr-btn-bg);
    border: 1px solid var(--pvr-btn-border-color);
    color: var(--pvr-btn-color);
    padding: var(--pvr-btn-padding-y) var(--pvr-btn-padding-x);
    border-radius: var(--pvr-btn-corner, var(--pvr-btn-radius));
    font-size: var(--pvr-btn-font-size);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pvr-btn--secondary:hover {
    background: rgba(127, 119, 221, 0.08);
}

.pvr-btn--secondary:active {
    transform: scale(0.97);
}

/* My Reviews Page */
.pvr-my-reviews__list {
    display: flex;
    flex-direction: column;
    gap: var(--pvr-space-5);
    margin-top: 20px;
}
.pvr-my-review-card {
    display: flex;
    gap: var(--pvr-space-5);
    background: var(--pvr-card-bg);
    border: 1px solid var(--pvr-border-color);
    border-radius: var(--pvr-radius);
    padding: var(--pvr-space-4);
    box-shadow: var(--pvr-card-shadow);
    position: relative;
    overflow: hidden;
}
.pvr-my-review-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: var(--pvr-card-accent-line);
}
.pvr-my-review-card__product {
    flex: 0 0 100px;
}
.pvr-my-review-card__product-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--pvr-border-color);
}
.pvr-my-review-card__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--pvr-space-2);
}
.pvr-my-review-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.pvr-my-review-card__product-name {
    font-weight: 700;
    font-size: var(--pvr-title-font-size);
    color: var(--pvr-text-color);
    text-decoration: none;
}
.pvr-my-review-card__product-name:hover {
    color: var(--pvr-accent-color);
}
.pvr-my-review-card__date {
    font-size: var(--pvr-small-font-size);
    color: var(--pvr-muted-color);
    white-space: nowrap;
}
.pvr-my-review-card__rating {
    display: flex;
    align-items: center;
    gap: var(--pvr-space-1);
}
.pvr-my-review-card__pending {
    font-size: var(--pvr-small-font-size);
    color: var(--pvr-error-color);
    margin-left: 8px;
    font-weight: 600;
}
.pvr-my-review-card__title {
    font-weight: 600;
    font-size: var(--pvr-content-font-size);
    color: var(--pvr-text-color);
}
.pvr-my-review-card__content {
    font-size: var(--pvr-content-font-size);
    line-height: 1.6;
    color: var(--pvr-text-color);
    background: var(--pvr-surface-color);
    border: var(--pvr-surface-border);
    border-radius: 12px;
    padding: var(--pvr-space-3) 14px;
}
.pvr-my-review-card__extra {
    display: flex;
    flex-direction: column;
    gap: var(--pvr-space-1);
    font-size: var(--pvr-meta-font-size);
}
.pvr-my-review-card__pros {
    color: var(--pvr-success-text);
}
.pvr-my-review-card__cons {
    color: var(--pvr-error-color);
}
.pvr-my-review-card__media {
    display: flex;
    gap: var(--pvr-space-2);
    flex-wrap: wrap;
}
.pvr-my-review-card__media-item {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--pvr-border-color);
    position: relative;
}
.pvr-my-review-card__media-item img,
.pvr-my-review-card__media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pvr-my-review-card__media-item--video .pvr-review-media-play {
    width: 24px;
    height: 24px;
}
.pvr-my-review-card__media-item--video .pvr-review-media-play svg {
    width: 16px;
    height: 16px;
}
.pvr-my-reviews__pagination {
    display: flex;
    justify-content: center;
    gap: var(--pvr-space-2);
    margin-top: 24px;
}
.pvr-my-reviews__pagination .pvr-btn {
    border: 1px solid var(--pvr-border-color);
    border-radius: var(--pvr-btn-corner, 8px);
    background: var(--pvr-card-bg);
    color: var(--pvr-text-color);
    min-width: 40px;
    text-decoration: none;
}
.pvr-my-reviews__pagination .pvr-btn--active {
    background: var(--pvr-accent-color);
    color: #fff;
    border-color: var(--pvr-accent-color);
}

@media (max-width: 640px) {
    .pvr-my-review-card {
        flex-direction: column;
    }
    .pvr-my-review-card__product {
        flex: 0 0 auto;
    }
    .pvr-my-review-card__product-img {
        width: 80px;
        height: 80px;
    }
}

/* Mobile: the review form opens full-screen without insets. The floating
   close button (absolutely positioned over the dialog edge) has no room
   there, so it moves INSIDE the form header area. */
@media (max-width: 640px) {
    .pvr-review-form-modal {
        padding: 0;
        align-items: stretch;
    }

    .pvr-review-form-modal__wrapper {
        width: 100%;
    }

    .pvr-review-form-modal__dialog {
        width: 100%;
        max-height: none;
        height: 100%;
        border-radius: 0;
    }

    .pvr-review-form-modal .pvr-form-section {
        flex: 1;
        min-height: 0;
        border: none;
        border-radius: 0;
    }

    .pvr-review-form-modal__close {
        top: 10px;
        right: 10px;
        background: var(--pvr-surface-color, #f8fafc);
    }

    /* The subtitle pushes the header button out of the row on phones. */
    .pvr-list-subtitle {
        display: none;
    }

    /* Stack title above the button on phones: flex-start keeps the button
       at its natural width instead of squeezing it beside the title. */
    .pvr-list-header {
        align-items: flex-start;
        justify-content: space-between;
        flex-direction: column;
    }
}

.pvr-compress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pvr-fade-in 0.2s ease;
}

@keyframes pvr-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pvr-compress-modal {
    background: var(--pvr-modal-bg);
    border-radius: 20px;
    padding: 28px var(--pvr-space-6) var(--pvr-space-6);
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: pvr-modal-slide-up 0.25s ease;
    position: relative;
    overflow: hidden;
  color: var(--pvr-modal-text);
}

@keyframes pvr-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pvr-compress-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.pvr-compress-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--pvr-gradient-soft);
    color: var(--pvr-accent-color, #2563eb);
    flex-shrink: 0;
}

.pvr-compress-header__text {
    font-size: 17px;
    font-weight: 600;
    color: var(--pvr-text-color, #111827);
}

.pvr-compress-file-info {
    display: inline-block;
    font-size: var(--pvr-small-font-size);
    font-weight: 500;
    color: var(--pvr-muted-color, #6b7280);
    background: var(--pvr-surface-color, #f8fafc);
    border: 1px solid var(--pvr-border-color, #e5e7eb);
    border-radius: 20px;
    padding: var(--pvr-space-1) 14px;
    margin: 10px 0 6px;
}

.pvr-compress-info {
    font-size: 12.5px;
    color: var(--pvr-muted-color, #6b7280);
    margin: 0 0 10px;
    line-height: 1.4;
}

.pvr-compress-preview {
    width: 100%;
    max-height: 240px;
    background: #000;
    border-radius: var(--pvr-radius, 12px);
    margin: 0 0 16px;
    display: block;
}

.pvr-compress-progress {
    margin: 0 0 4px;
}

.pvr-compress-progress__track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: var(--pvr-border-color, #e5e7eb);
    overflow: hidden;
    position: relative;
}

.pvr-compress-progress__fill {
    height: 100%;
    border-radius: 999px;
    background: var(--pvr-gradient-accent);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    min-width: 0;
}

.pvr-compress-progress__shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 100%
    );
    animation: pvr-shimmer 1.8s ease-in-out infinite;
    z-index: 2;
    border-radius: 999px;
}

@keyframes pvr-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

.pvr-compress-progress__text {
    font-size: 12.5px;
    color: var(--pvr-muted-color, #6b7280);
    margin: 8px 0 0;
    min-height: 18px;
}

.pvr-compress-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.pvr-compress-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
    font-family: inherit;
}

.pvr-compress-btn:active {
    transform: scale(0.92);
}

.pvr-compress-btn--icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--pvr-surface-color, #f8fafc);
    color: var(--pvr-text-color, #111827);
    border: 1px solid var(--pvr-border-color, #e5e7eb);
}

/* Icon libraries loaded from CDN (Font Awesome et al.) reset svg width to 0
   !important — which also hits our inline button icons. Inline width cannot
   win that fight, but min-width can: the box grows back to the icon size. */
.pvr-compress-btn svg {
    min-width: 16px;
    min-height: 16px;
    width: 16px;
    height: 16px;
    display: block;
}

.pvr-compress-btn--icon:hover {
    background: var(--pvr-border-color, #e5e7eb);
}

.pvr-compress-btn--icon:focus-visible {
    outline: 2px solid var(--pvr-accent-color, #2563eb);
    outline-offset: 2px;
}

.pvr-compress-btn--cancel {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fef2f2;
    color: var(--pvr-error-color);
    border: 1px solid #fecaca;
}

.pvr-compress-btn--cancel:hover {
    background: #fee2e2;
    border-color: #f87171;
}

.pvr-compress-btn--cancel:focus-visible {
    outline: 2px solid var(--pvr-error-color);
    outline-offset: 2px;
}

/* ============================================
   Focus outline override — scoped to module
   containers only (mouse/touch: no outline,
   keyboard focus-visible: theme default kept).
   Does not affect theme elements outside .pvr-*
   ============================================ */
.pvr-form :focus:not(:focus-visible),
.pvr-review-item :focus:not(:focus-visible),
.pvr-all-reviews :focus:not(:focus-visible),
.pvr-widget-reviews :focus:not(:focus-visible),
.pvr-reply-form-modal :focus:not(:focus-visible),
.pvr-review-form-modal :focus:not(:focus-visible),
.pvr-media-modal :focus:not(:focus-visible),
.pvr-media-grid-modal :focus:not(:focus-visible),
.pvr-avatar-crop-modal :focus:not(:focus-visible),
.pvr-compress-modal :focus:not(:focus-visible),
.pvr-btn:focus:not(:focus-visible),
.pvr-filter-btn:focus:not(:focus-visible),
.pvr-sort-btn:focus:not(:focus-visible),
.pvr-vote-btn:focus:not(:focus-visible),
.pvr-widget-read-more:focus:not(:focus-visible),
.pvr-review-media-trigger:focus:not(:focus-visible),
.pvr-carousel-control:focus:not(:focus-visible),
.pvr-media-filter__input:focus:not(:focus-visible),
.pvr-load-more-block:focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

/* Mobile tap highlight */
.pvr-btn,
.pvr-filter-btn,
.pvr-sort-btn,
.pvr-vote-btn,
.pvr-widget-read-more,
.pvr-review-media-trigger,
.pvr-carousel-control,
.pvr-load-more-block,
.pvr-pagination a {
	-webkit-tap-highlight-color: transparent;
}

/* ============================================
   Product page "Show more" + pagination
   (mirrors pro/css/reviews-page.css so the
   product page works without pro styles)
   ============================================ */
.pvr-all-reviews__pagination {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--pvr-space-5);
	margin-top: 32px;
	padding-top: var(--pvr-space-6);
	border-top: 1px solid var(--pvr-border-color);
}

.pvr-load-more-block {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: var(--pvr-space-2);
	margin: 10px 0 20px;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--pvr-accent-color);
	font-size: var(--pvr-title-font-size);
	cursor: pointer;
	user-select: none;
}

.pvr-load-more-block:hover {
	color: var(--pvr-accent-color-dark);
}

.pvr-load-more-arrow {
	width: 30px;
	height: 30px;
	fill: var(--pvr-accent-color);
	transition: transform 0.4s ease, fill 0.15s ease;
	flex-shrink: 0;
}

.pvr-load-more-block:hover .pvr-load-more-arrow {
	transform: rotate(120deg);
	fill: var(--pvr-accent-color-dark);
}

.pvr-load-more-block.pvr-is-loading .pvr-load-more-arrow {
	animation: pvr-load-more-spin 0.9s linear infinite;
}

@keyframes pvr-load-more-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.pvr-load-more-btn--hidden {
	display: none;
}

.pvr-pagination {
	display: flex;
	gap: var(--pvr-space-1);
}

.pvr-pagination a,
.pvr-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--pvr-border-color);
	border-radius: var(--pvr-btn-corner, 8px);
	background: var(--pvr-card-bg);
	color: var(--pvr-text-color);
	font-size: var(--pvr-content-font-size);
	text-decoration: none;
	transition: all 0.2s ease;
}

.pvr-pagination a:hover {
	background: var(--pvr-surface-color);
	border-color: var(--pvr-muted-color);
}

.pvr-pagination .current {
	background: var(--pvr-accent-color);
	border-color: var(--pvr-accent-color);
	color: #fff;
}

/* Color scheme: dark palette overrides. The variables live on <body> so they
   override both the :root defaults above and custom user values from the
   Design tab (which are printed on :root). The dark palette applies ONLY when
   <body> carries the pvr-scheme-dark class — either pinned from the Design
   tab ("Always dark") or added by JS site-theme detection in auto mode
   (samples the effective page background; a light site stays light even when
   the visitor's OS is dark). body.pvr-scheme-light pins the light palette.
   There is deliberately no @media (prefers-color-scheme) fallback: CSS cannot
   know the site's own theme, and following the OS blindly paints dark cards
   on light pages. Custom accent/star/link colors are NOT overridden here, so
   a brand accent chosen in the Design tab stays visible in dark mode. */

body.pvr-scheme-dark {
  --pvr-card-bg: var(--pvr-dark-card-bg, #1e293b);
  --pvr-card-bg-soft: var(--pvr-dark-card-bg-soft, #223049);
  --pvr-text-color: var(--pvr-dark-text, #e5e7eb);
  --pvr-muted-color: var(--pvr-dark-muted, #94a3b8);
  --pvr-border-color: var(--pvr-dark-border, #334155);
  --pvr-surface-color: #263549;
  --pvr-success-bg: rgba(52, 211, 153, 0.12);
  --pvr-success-text: #34d399;
  --pvr-text-link: #7ab8ff;
  --pvr-gradient-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.14));
  --pvr-criteria-bg: #273549;
  --pvr-criteria-star-inactive: #475569;
  --pvr-modal-bg: #1e293b;
  --pvr-modal-text: #e5e7eb;

  /* The dark palette paints its own surfaces, so it also restores the
     structural values the Theme-adaptive / Flat presets remove. */
  --pvr-card-padding: 5px;
  --pvr-card-border: 1px solid var(--pvr-border-color);
  --pvr-card-separator: 1px solid var(--pvr-border-color);
  --pvr-surface-border: 1px solid rgba(148, 163, 184, 0.28);
  --pvr-surface-padding: 10px 6px;
  --pvr-chip-bg: rgba(255, 255, 255, 0.08);
  --pvr-info-bg: rgba(59, 130, 246, 0.16);
  --pvr-info-border: rgba(96, 165, 250, 0.45);
  --pvr-error-bg: rgba(248, 113, 113, 0.16);
  --pvr-track-bg: rgba(148, 163, 184, 0.22);
  --pvr-btn-bg: transparent;
  --pvr-btn-color: var(--pvr-text-color);
  --pvr-btn-border-color: var(--pvr-border-color);
  --pvr-btn-accent-bg: var(--pvr-gradient-accent);
  --pvr-btn-accent-color: #ffffff;
  --pvr-btn-accent-border: transparent;
}

/* Dark-palette spot fixes for elements that do not read the shared variables
   (self-contained components with fixed light backgrounds). */

body.pvr-scheme-dark .pvr-breakdown__count,
body.pvr-scheme-dark .pvr-pagination a,
body.pvr-scheme-dark .pvr-pagination span,
body.pvr-scheme-dark .pvr-avatar-crop-modal__btn--secondary,
body.pvr-scheme-dark .pvr-form-picker__input,
body.pvr-scheme-dark .pvr-form-picker__dropdown {
  background: #263549;
  color: #e5e7eb;
}

body.pvr-scheme-dark .pvr-form-picker__item:hover,
body.pvr-scheme-dark .pvr-form-picker__item.is-active {
  background: #2e3f57;
}

body.pvr-scheme-dark .pvr-form-picker__count {
  background: #223049;
}

body.pvr-scheme-dark .pvr-pagination a:hover {
  background: #2e3f57;
  border-color: #475569;
}

/* ============================================
   Style presets — Settings → Design → Style preset

   body.pvr-preset-branded   default plugin look (the :root defaults in
                              this file; the class only marks the active
                              preset for site owners and CSS hooks)
   body.pvr-preset-adaptive  the module inherits the active theme: no own
                              backgrounds, no own font sizes, theme-relative
                              spacing, neutral outlined buttons
   body.pvr-preset-flat      adaptive + zero radii, tighter spacing and
                              text-style buttons (reviews read as a list)

   The preset VALUES (colors, type scale, spacing) are printed inline by
   PVREV_Frontend_Styles on :root, so custom colors from the Design tab
   always win over the preset, and the dark palette (declared on <body>)
   still wins over both. The rules below only cover states that cannot be
   expressed as a variable.
   ============================================ */
/* The summary / form panels keep the card rhythm of the active preset. */
body.pvr-preset-adaptive .pvr-summary,
body.pvr-preset-flat .pvr-summary,
body.pvr-preset-adaptive .pvr-form-section,
body.pvr-preset-flat .pvr-form-section {
	border-radius: var(--pvr-card-radius);
	box-shadow: var(--pvr-card-shadow);
}

/* Neutral buttons need their own hover feedback (the branded hover relies
   on a gradient background that the presets remove). */
body.pvr-preset-adaptive .pvr-write-review-btn:hover,
body.pvr-preset-adaptive .pvr-reply-toggle:hover,
body.pvr-preset-flat .pvr-write-review-btn:hover,
body.pvr-preset-flat .pvr-reply-toggle:hover {
	filter: none;
	transform: none;
	opacity: .75;
}

body.pvr-preset-adaptive .pvr-vote-btn:hover,
body.pvr-preset-flat .pvr-vote-btn:hover {
	background: color-mix(in srgb, currentColor 8%, transparent);
}

body.pvr-preset-flat .pvr-write-review-btn,
body.pvr-preset-flat .pvr-reply-toggle,
body.pvr-preset-flat .pvr-btn--secondary {
	text-decoration: underline;
	text-underline-offset: .2em;
}

/* Text buttons get the preset padding. Round/icon buttons keep their own
   fixed size — they are functional controls, not themed buttons. */
body.pvr-preset-adaptive .pvr-btn--secondary,
body.pvr-preset-flat .pvr-btn--secondary,
body.pvr-preset-adaptive .pvr-avatar-crop-modal__btn,
body.pvr-preset-flat .pvr-avatar-crop-modal__btn {
	padding: var(--pvr-btn-padding-y) var(--pvr-btn-padding-x);
}

/* ============================================
   Base typography for every plugin surface

   The theme-relative presets (Theme-adaptive / Flat) size the module from
   --pvr-font-size. Every plugin root gets it, otherwise the Pro pages,
   the widgets and the modals would keep the raw theme size (some themes
   inflate the content font to ~22px).

   The branded preset keeps its own sizes, so the rule below is limited to
   the theme-relative presets — the Pro pages and the widgets must not
   change their look in the default preset.
   ============================================ */
.pvr-reviews-wrapper {
  font-family: var(--pvr-font-family);
  font-size: var(--pvr-font-size);
}

body.pvr-preset-adaptive .pvr-all-reviews,
body.pvr-preset-adaptive .pvr-widget-reviews,
body.pvr-preset-adaptive .pvr-gallery,
body.pvr-preset-adaptive .pvr-my-reviews,
body.pvr-preset-adaptive .pvr-review-form-modal,
body.pvr-preset-adaptive .pvr-reply-form-modal,
body.pvr-preset-adaptive .pvr-media-modal,
body.pvr-preset-adaptive .pvr-media-grid-modal,
body.pvr-preset-adaptive .pvr-avatar-crop-modal,
body.pvr-preset-adaptive .pvr-compress-modal,
body.pvr-preset-flat .pvr-all-reviews,
body.pvr-preset-flat .pvr-widget-reviews,
body.pvr-preset-flat .pvr-gallery,
body.pvr-preset-flat .pvr-my-reviews,
body.pvr-preset-flat .pvr-review-form-modal,
body.pvr-preset-flat .pvr-reply-form-modal,
body.pvr-preset-flat .pvr-media-modal,
body.pvr-preset-flat .pvr-media-grid-modal,
body.pvr-preset-flat .pvr-avatar-crop-modal,
body.pvr-preset-flat .pvr-compress-modal {
  font-family: var(--pvr-font-family);
  font-size: var(--pvr-font-size);
}

/* ============================================
   Theme isolation

   The plugin renders inside theme content areas, and themes often reset
   headings, lists, images and form controls globally. These rules are
   scoped to the plugin containers only and use :where() (specificity 0),
   so the plugin styles and the theme keep the final say on the look —
   only the layout-critical bits (box model, media width) are enforced.
   ============================================ */
.pvr-reviews-wrapper,
.pvr-all-reviews,
.pvr-widget-reviews,
.pvr-gallery,
.pvr-my-reviews,
.pvr-review-form-modal,
.pvr-reply-form-modal,
.pvr-media-modal,
.pvr-media-grid-modal,
.pvr-avatar-crop-modal,
.pvr-compress-modal,
.pvr-reviews-wrapper *,
.pvr-all-reviews *,
.pvr-widget-reviews *,
.pvr-gallery *,
.pvr-my-reviews *,
.pvr-review-form-modal *,
.pvr-reply-form-modal *,
.pvr-media-modal *,
.pvr-media-grid-modal *,
.pvr-avatar-crop-modal *,
.pvr-compress-modal * {
	box-sizing: border-box;
}

.pvr-reviews-wrapper :where(img, video, iframe),
.pvr-all-reviews :where(img, video, iframe),
.pvr-widget-reviews :where(img, video, iframe),
.pvr-gallery :where(img, video, iframe),
.pvr-my-reviews :where(img, video, iframe) {
	max-width: 100%;
}

.pvr-reviews-wrapper :where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, figure, blockquote, pre),
.pvr-all-reviews :where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, figure, blockquote, pre),
.pvr-widget-reviews :where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, figure, blockquote, pre),
.pvr-gallery :where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, figure, blockquote, pre),
.pvr-my-reviews :where(p, h1, h2, h3, h4, h5, h6, ul, ol, dl, figure, blockquote, pre) {
	margin-block-start: 0;
}

.pvr-reviews-wrapper :where(input, textarea, select, button),
.pvr-all-reviews :where(input, textarea, select, button),
.pvr-widget-reviews :where(input, textarea, select, button),
.pvr-gallery :where(input, textarea, select, button),
.pvr-my-reviews :where(input, textarea, select, button),
.pvr-review-form-modal :where(input, textarea, select, button),
.pvr-reply-form-modal :where(input, textarea, select, button) {
	font-family: inherit;
}

/* ============================================
   Design tab: card hover and theme buttons
   ============================================ */
body.pvr-card-hover-lift .pvr-review-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

body.pvr-card-hover-shadow .pvr-review-item:hover {
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

/* "Use theme buttons" mode: the plugin buttons carry the theme button
   classes (button / wp-block-button__link) and drop their own background,
   so a theme that styles those classes takes over. */
body.pvr-theme-buttons-on {
	--pvr-btn-accent-bg: transparent;
	--pvr-btn-accent-color: inherit;
	--pvr-btn-accent-border: currentColor;
	--pvr-btn-bg: transparent;
	--pvr-btn-color: inherit;
	--pvr-btn-border-color: currentColor;
}
