/* ============================
NPC GOOGLE REVIEWS CSS
Standalone plugin stylesheet
============================ */

.npc-google-reviews,
.npc-google-reviews *,
.npc-google-reviews-track {
  box-sizing: border-box;
}

.npc-review-author,
.npc-review-text,
.npc-review-text-short,
.npc-review-text-full,
.npc-review-readmore {
  font-family: "Times New Roman", helvetica, sans-serif, Arial !important;
}

.npc-google-reviews {
  --npc-review-gap: 70px;
  --npc-arrow-gap: 50px;

  position: relative;
  display: flex;
  align-items: center;
  gap: var(--npc-arrow-gap);

  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 0 6px;
}

.npc-google-reviews-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.npc-google-reviews-track {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--npc-review-gap);
  will-change: transform;
}

.npc-review-item {
  flex: 0 0 calc((100% - (2 * var(--npc-review-gap))) / 3);
  max-width: calc((100% - (2 * var(--npc-review-gap))) / 3);

  padding: 18px 22px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);

  font-size: 16px;
  line-height: 1.6;

  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 1024px) {
  .npc-google-reviews {
    --npc-review-gap: 40px;
    --npc-arrow-gap: 20px;
  }

  .npc-review-item {
    flex: 0 0 calc((100% - var(--npc-review-gap)) / 2);
    max-width: calc((100% - var(--npc-review-gap)) / 2);
  }
}

@media (max-width: 767px) {
  .npc-google-reviews {
    --npc-review-gap: 12px;
    --npc-arrow-gap: 8px;
  }

  .npc-review-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 14px 14px 16px;
  }

  .npc-review-header {
    margin-bottom: 6px;
  }

  .npc-g-avatar-img {
    width: 36px;
    height: 36px;
    padding: 3px;
  }

  .npc-review-avatar .npc-review-rating {
    margin-top: 3px;
    font-size: 20px;
  }

 .npc-review-author {
  margin-top: 2px;
  margin-left: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

  .npc-review-text {
    font-size: 14px;
    line-height: 1.5;
  }

  .npc-review-readmore,
  .npc-review-readmore:focus,
  .npc-review-readmore:active {
    font-size: 14px;
    margin-top: 3px;
  }

  .npc-review-google-logo {
    padding-top: 18px;
  }

  .npc-reviews-arrow {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    font-size: 18px;
  }
}

.npc-review-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 8px;
}

.npc-review-avatar {
  flex: 0 0 42px;
  width: 42px;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.npc-g-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 5px;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 2px rgba(60,64,67,0.3);
  object-fit: contain;
  padding: 4px;
  background: #fff;
}

.npc-review-avatar .npc-review-rating {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  color: #fbbc04;
}

.npc-review-author {
  flex: 1 1 auto;
  min-width: 0;
  margin-top: 7px;
  margin-left: 0;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0;
}

.npc-review-text {
  font-size: 18px;
  flex: 1 1 auto;
}

.npc-review-readmore,
.npc-review-readmore:focus,
.npc-review-readmore:active {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #1a73e8 !important;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
  display: block;
  margin-top: 4px;
  margin-left: 0;
  text-decoration: none;
  outline: none;
}

.npc-review-readmore:hover {
  text-decoration: underline;
}

.npc-review-item::after {
  content: "";
  display: block;
  width: 94px;
  height: 32px;
  margin-top: 18px;
  margin-right: auto;
  margin-left: 0;
  background: url('/wp-content/uploads/2026/03/google-logo.webp') no-repeat left center / contain;
}

.npc-reviews-arrow {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #222222;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.npc-reviews-arrow:hover,
.npc-reviews-arrow:focus:hover,
.npc-reviews-arrow:focus-visible:hover,
.npc-reviews-arrow:active:hover {
  background: #ffffff;
  border-color: #E30613;
  color: #E30613;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.npc-reviews-arrow:focus,
.npc-reviews-arrow:focus-visible,
.npc-reviews-arrow:active {
  outline: none;
  background: #ffffff;
  border-color: #dddddd;
  color: #222222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: none;
}

.npc-reviews-arrow span,
.npc-reviews-arrow i,
.npc-reviews-arrow svg {
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}

.npc-reviews-arrow::-moz-focus-inner {
  border: 0;
}

.npc-google-reviews,
.npc-google-reviews * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.npc-google-reviews {
  touch-action: manipulation;
  cursor: default;
}

/* Keep the full review hidden until the external JS toggles it open. */
.npc-review-text-full[hidden] {
  display: none !important;
}
