:root {
  --drv-accent: #6a1b9a;
  --drv-accent-strong: #4e0078;
  --drv-accent-soft: #f3e8fb;
  --drv-accent-tint: rgba(106, 27, 154, 0.12);
  --drv-page-bg: #f7f4ef;
  --drv-surface: #ffffff;
  --drv-surface-alt: #fbf8f3;
  --drv-text: #201826;
  --drv-text-muted: #6c6573;
  --drv-border: rgba(64, 35, 89, 0.12);
  --drv-shadow: 0 22px 60px rgba(28, 21, 36, 0.1);
  --drv-shadow-soft: 0 10px 30px rgba(28, 21, 36, 0.07);
  --drv-star: #f59e0b;
  --drv-success: #047857;
  --drv-danger: #b91c1c;
}

body.drv-modal-open {
  overflow: hidden;
}
.drv-marquee-outer {
  direction: ltr;
  font-family: 'Almarai', sans-serif;
  color: var(--drv-text);
}

.drv-reviews-page {
  direction: rtl;
  font-family: 'Almarai', sans-serif;
  color: var(--drv-text);
}

.drv-marquee-outer *,
.drv-reviews-page *,
.drv-marquee-outer *::before,
.drv-marquee-outer *::after,
.drv-reviews-page *::before,
.drv-reviews-page *::after {
  box-sizing: border-box;
}

.drv-card {
  min-width: 280px;
  max-width: 360px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.3rem;
  background: linear-gradient(180deg, #ffffff, #fdfbff 100%);
  border: 1px solid var(--drv-border);
  border-radius: 1.35rem;
  box-shadow: var(--drv-shadow-soft);
}

.drv-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.drv-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 999px!important;
  object-fit: cover;
  border: 2px solid #ffffff !important;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 3px rgba(78, 0, 120, 0.45) !important,
    0 8px 22px rgba(106, 27, 154, 0.42) !important;
}

.drv-reviews-page .drv-card .drv-avatar {
  border-radius: 999px !important;
  border: 2px solid #ffffff !important;
  box-shadow:
    0 0 0 3px rgba(78, 0, 120, 0.5) !important,
    0 10px 26px rgba(106, 27, 154, 0.5) !important;
  filter: drop-shadow(0 0 8px rgba(106, 27, 154, 0.45)) !important;
}

.drv-avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
}

.drv-card-author {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.drv-author-name {
  color: var(--drv-text);
  font-size: 1rem;
  font-weight: 800;
}

.drv-author-position {
  color: var(--drv-text-muted);
  font-size: 0.82rem;
}

.drv-card-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.drv-stars {
  display: inline-flex;
  gap: 2px;
}

.drv-star path {
  fill: #f0f2f4;
}

.drv-star-filled path {
  fill: var(--drv-star);
}

.drv-card-date {
  color: #8d8398;
  font-size: 0.8rem;
  white-space: nowrap;
}

.drv-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.drv-card-text {
  margin: 0;
  color: #423849;
  font-size: 0.93rem;
  line-height: 1.9;
}

.drv-card-product {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  color: var(--drv-text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.drv-card-product-label {
  font-weight: 700;
}

.drv-card-product-link,
.drv-card-product-name {
  color: var(--drv-accent);
}

.drv-card-product-link {
  text-decoration: none;
}

.drv-card-product-link:hover {
  text-decoration: underline;
}

.drv-read-more {
  color: var(--drv-accent);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
}

.drv-read-more:hover {
  text-decoration: underline;
}

.drv-marquee-outer {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
  width: 100%;
  min-width: 0;
}

/* LTR track = predictable transform; cards keep RTL for Arabic copy */
.drv-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  width: max-content;
  direction: ltr;
  animation: drv-marquee var(--drv-marquee-duration, 30s) linear infinite;
  animation-play-state: running;
  will-change: transform;
}

.drv-marquee-segment {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.5rem;
  flex-shrink: 0;
  direction: rtl;
  align-items: flex-start;
}

.drv-marquee-card {
  flex-shrink: 0;
  width: 420px !important;
  min-width: 420px !important;
  max-width: 420px !important;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(106, 27, 154, 0.08);
  height: 170px !important;
  min-height: 170px !important;
  max-height: 170px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Row uses flex stretch by default; .drv-card has min-height:100% → all cards match tallest */
.drv-card.drv-marquee-card {
  min-height: auto !important;
  align-self: flex-start;
  flex: 0 0 auto;
  height: auto;
}

@supports (backdrop-filter: blur(1px)) {
  .drv-marquee-card {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
  }
}

.drv-marquee-card .drv-avatar {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 8px rgba(106, 27, 154, 0.18) !important;
}

.drv-marquee-card .drv-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.drv-marquee-card .drv-card-author {
  min-width: 0;
  flex: 1;
}

.drv-marquee-card .drv-author-name {
  font-size: 0.9rem;
  font-weight: 800;
}

.drv-marquee-card .drv-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.drv-marquee-card .drv-card-date {
  font-size: 0.72rem;
  color: var(--drv-text-muted);
  line-height: 1.3;
}

.drv-marquee-card .drv-card-text {
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.drv-marquee-card .drv-card-text-inner {
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.drv-marquee-card .drv-card-body {
  display: block;
  min-height: 0;
  overflow: hidden;
}

.drv-marquee-card .drv-marquee-read-more {
  align-self: flex-start;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--drv-accent);
}

.drv-marquee-card .drv-marquee-read-more:hover {
  text-decoration: underline;
}

.drv-marquee-card .drv-marquee-product {
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(106, 27, 154, 0.1);
  font-size: 0.75rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.drv-marquee-card .drv-marquee-product .drv-card-product-label {
  font-weight: 600;
  color: var(--drv-text-muted);
}

.drv-marquee-card .drv-marquee-product .drv-card-product-link,
.drv-marquee-card .drv-marquee-product .drv-card-product-name {
  color: var(--drv-accent);
  font-weight: 600;
}

.drv-marquee-card .drv-marquee-source {
  font-size: 0.68rem !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
  opacity: 0.85;
}

.drv-marquee-card .drv-author-position {
  font-size: 0.78rem;
}

.drv-marquee-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: visible;
  width: 100%;
}

.drv-marquee-track--reverse {
  animation-direction: reverse;
}

/* Fade edges so it doesn't look like a train */
.drv-marquee-outer::before,
.drv-marquee-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.drv-marquee-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--drv-page-bg, #f7f4ef), transparent);
}

.drv-marquee-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--drv-page-bg, #f7f4ef), transparent);
}

@keyframes drv-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(var(--drv-marquee-distance, -1000px), 0, 0);
  }
}

.drv-reviews-page {
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(106, 27, 154, 0.08), transparent 24rem),
    linear-gradient(180deg, #fbf8f3 0%, #f4efe7 100%);
  border-radius: 2rem;
}

.drv-reviews-page--minimal {
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.drv-minimal-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.15rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--drv-border);
  border-radius: 1rem;
  background: #fff;
}

.drv-minimal-hero__copy {
  min-width: 0;
}

.drv-minimal-hero__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--drv-accent);
  font-size: 0.74rem;
  font-weight: 800;
}

.drv-minimal-hero__title {
  margin: 0 0 0.35rem;
  color: var(--drv-text);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.drv-minimal-hero__text {
  margin: 0;
  color: var(--drv-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.drv-minimal-hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.drv-minimal-score {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.drv-minimal-score-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--drv-text);
  line-height: 1;
}

.drv-minimal-score-stars {
  display: inline-flex;
  align-items: center;
}

.drv-minimal-score-count {
  color: var(--drv-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.drv-review-form-shell .drv-review-cta-button-compact {
  min-height: 38px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
}

.drv-review-compact-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--drv-accent-soft);
  color: var(--drv-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.drv-reviews-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.drv-reviews-hero-main,
.drv-featured-section,
.drv-reviews-feed {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--drv-border);
  border-radius: 1.75rem;
  box-shadow: var(--drv-shadow-soft);
}

.drv-reviews-hero-main {
  padding: 1.75rem 1.85rem;
}

.drv-overall-eyebrow,
.drv-section-kicker {
  margin: 0 0 0.5rem;
  color: var(--drv-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drv-overall-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.drv-overall-score {
  color: var(--drv-accent-strong);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.drv-overall-copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.drv-overall-stars .drv-stars {
  gap: 4px;
}

.drv-overall-stars .drv-star {
  width: 18px;
  height: 18px;
}

.drv-overall-count {
  color: var(--drv-text);
  font-size: 1.02rem;
  font-weight: 800;
}

.drv-overall-caption {
  margin: 0;
  color: var(--drv-text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 40rem;
}

.drv-source-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.drv-source-summary-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  background: var(--drv-surface);
  border: 1px solid rgba(64, 35, 89, 0.08);
  border-radius: 1rem;
}

.drv-source-summary-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(64, 35, 89, 0.05);
}

.drv-source-summary-label {
  color: var(--drv-text);
  font-size: 0.88rem;
  font-weight: 700;
}

.drv-source-summary-value {
  color: var(--drv-accent-strong);
  font-size: 1rem;
  font-weight: 800;
}

.drv-reviews-hero-form {
  display: flex;
}

.drv-reviews-hero-form .drv-review-form-shell {
  width: 100%;
  margin: 0;
}

.drv-review-form-shell {
  margin: 0 0 1.5rem;
}

.drv-review-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  min-height: 100%;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 252, 0.98)),
    var(--drv-surface);
  border: 1px solid var(--drv-border);
  border-radius: 1.75rem;
  box-shadow: var(--drv-shadow);
}

.drv-review-cta-login,
.drv-review-cta-status {
  justify-content: flex-start;
}

.drv-review-cta-status.is-success {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 250, 244, 0.98)),
    var(--drv-surface);
}

.drv-review-cta-status.is-pending {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 244, 252, 0.98)),
    var(--drv-surface);
}

.drv-review-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.drv-review-cta-title {
  margin: 0;
  color: var(--drv-text);
  font-size: 1.1rem;
  font-weight: 800;
}

.drv-review-cta-text {
  margin: 0;
  color: var(--drv-text-muted);
  font-size: 0.93rem;
  line-height: 1.8;
}

.drv-review-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 48px;
  padding: 0.8rem 1.3rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #781baf, #9b2dd4);
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 14px 28px rgba(120, 27, 175, 0.24);
}

.drv-review-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(120, 27, 175, 0.3);
}

.drv-review-cta-button:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.drv-review-cta-button-secondary {
  background: transparent;
  color: #781baf;
  border: 1px solid rgba(120, 27, 175, 0.28);
  box-shadow: none;
}

.drv-review-modal .drv-review-cta-button-secondary:hover {
  transform: translateY(-1px);
  background: rgba(120, 27, 175, 0.08);
  color: #5a1280;
  box-shadow: none;
}

/* Login links — text style, not pill buttons (Cancel in modals stays a button). */
a.drv-review-cta-button.drv-review-cta-button-secondary,
.drv-review-form-shell a.drv-review-cta-button-secondary {
  display: inline;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--drv-accent-strong);
  box-shadow: none;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

a.drv-review-cta-button.drv-review-cta-button-secondary:hover,
.drv-review-form-shell a.drv-review-cta-button-secondary:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
  color: var(--drv-accent);
  text-decoration: underline;
}

.drv-review-form-shell a.drv-review-cta-button-secondary.drv-review-cta-button-compact {
  min-height: 0;
  padding: 0;
  border-radius: 0;
}

.drv-review-cta-login a.drv-review-cta-button-secondary {
  align-self: flex-start;
}

.drv-featured-section,
.drv-reviews-feed {
  padding: 1.55rem;
}

.drv-featured-section {
  margin-bottom: 1.5rem;
}

.drv-section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.drv-section-title {
  margin: 0;
  color: var(--drv-text);
  font-size: 1.28rem;
  font-weight: 800;
}

.drv-cards-grid {
  display: grid;
  gap: 1.25rem;
}

.drv-cards-grid .drv-card {
  min-width: 0;
  max-width: none;
}

.drv-cards-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drv-cards-grid--featured .drv-card {
  background: linear-gradient(180deg, #ffffff, #f8f3fd 100%);
}

.drv-cards-grid--feed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.drv-cards-grid--minimal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.drv-card-item.is-hidden {
  display: none;
}

.drv-load-more-wrap {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
}

.drv-load-more-btn {
  min-width: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--drv-accent);
  gap: 0.35rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-family: "Almarai", sans-serif !important;
}

.drv-load-more-btn:hover {
  transform: none;
  box-shadow: none;
  color: var(--drv-accent-strong);
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;


}

.drv-load-more-icon {
  font-size: 0.95em;
  line-height: 1;
}

.drv-load-more-btn[disabled] {
  opacity: 0.7;
  cursor: progress;
}


.drv-empty {
  margin: 0;
  color: var(--drv-text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

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

.drv-review-modal,
.drv-review-modal *,
.drv-review-modal *::before,
.drv-review-modal *::after {
  box-sizing: border-box;
}

.drv-review-modal {
  position: fixed;
  inset: 0;
  z-index: 100200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.drv-review-modal-dialog {
  width: min(100%, 34rem);
  max-width: 100%;
  max-height: calc(100vh - 2.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  border-radius: 1.5rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.drv-review-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem 0.75rem;
}

.drv-review-modal-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--drv-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

.drv-review-modal-title {
  margin: 0;
  color: var(--drv-text);
  font-size: 1.35rem;
  font-weight: 800;
}

.drv-review-modal-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--drv-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.drv-review-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.25rem 1.25rem;
  min-width: 0;
}

.drv-review-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: var(--drv-accent-soft);
  border-radius: 1rem;
}

.drv-review-user-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.drv-review-user-name {
  color: var(--drv-text);
  font-size: 0.95rem;
  font-weight: 800;
}

.drv-review-user-label {
  color: var(--drv-text-muted);
  font-size: 0.8rem;
}

.drv-review-field-label {
  color: var(--drv-text);
  font-size: 0.88rem;
  font-weight: 800;
}

.drv-review-stars-input {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row-reverse;
  gap: 0.25rem;
  max-width: 100%;
  direction: ltr;
  align-self: flex-start;
}

.drv-review-rating-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.drv-review-rating-label {
  display: inline-flex;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.drv-review-rating-label svg {
  width: 2rem;
  height: 2rem;
  display: block;
}

.drv-review-rating-label path {
  fill: #f0f2f4;
  transition: fill 0.15s ease;
}

.drv-review-rating-label:hover path,
.drv-review-rating-label:hover ~ .drv-review-rating-label path,
.drv-review-rating-input:checked ~ .drv-review-rating-label path {
  fill: var(--drv-star);
}

.drv-review-rating-label:hover {
  transform: translateY(-1px);
}

.drv-review-textarea {
  width: 100%;
  max-width: 100%;
  min-height: 140px;
  padding: 0.95rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 1rem;
  color: var(--drv-text);
  font: inherit;
  line-height: 1.8;
  resize: vertical;
  background: #ffffff;
  display: block;
}

.drv-review-textarea:focus {
  outline: none;
  border-color: rgba(78, 0, 120, 0.45);
  box-shadow: 0 0 0 4px rgba(78, 0, 120, 0.12);
}

.drv-review-form-feedback {
  min-height: 1.4rem;
  color: var(--drv-text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.drv-review-form-feedback.is-error {
  color: var(--drv-danger);
}

.drv-review-form-feedback.is-success {
  color: var(--drv-success);
}

.drv-review-form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-width: 0;
}

.drv-review-modal .drv-review-form-actions .drv-review-cta-button {
  flex: 1 1 calc(50% - 0.375rem);
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1100px) {
  .drv-reviews-hero {
    grid-template-columns: 1fr;
  }

  .drv-cards-grid--feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .drv-cards-grid--minimal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .drv-reviews-page {
    padding: 1rem;
    border-radius: 1.5rem;
  }

  .drv-reviews-page--minimal {
    padding: 0;
    border-radius: 0;
  }

  .drv-minimal-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.85rem 0.9rem;
  }

  .drv-minimal-hero__title {
    font-size: 1.05rem;
  }

  .drv-minimal-hero__text {
    font-size: 0.85rem;
  }

  .drv-reviews-hero-main,
  .drv-featured-section,
  .drv-reviews-feed,
  .drv-review-cta {
    padding: 1.25rem;
    border-radius: 1.4rem;
  }

  .drv-overall-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .drv-cards-grid--featured,
  .drv-cards-grid--feed,
  .drv-cards-grid--minimal {
    grid-template-columns: 1fr;
  }

  .drv-review-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .drv-review-cta-button {
    width: 100%;
  }

  a.drv-review-cta-button.drv-review-cta-button-secondary {
    width: auto;
  }
}

@media (max-width: 640px) {
  .drv-source-summary {
    grid-template-columns: 1fr;
  }

  .drv-review-modal {
    padding: 0.75rem;
  }

  .drv-review-modal-dialog {
    width: 100%;
    border-radius: 1.25rem;
  }
}
