.hdrp-page-embed,
.hdrp-page-embed * {
  box-sizing: border-box;
}

body:has(.happydeers-review-page-fallback) {
  overflow-x: hidden;
}

.hdrp-page-embed {
  --hdrp-text: #1f2328;
  --hdrp-muted: #59636e;
  --hdrp-line: #d7dfe6;
  --hdrp-soft: #f6f8fa;
  --hdrp-star: #f6b400;
  --hdrp-accent: #0b6b63;
  --hdrp-link: #0068b7;
  color: var(--hdrp-text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "Yu Gothic", Meiryo, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  margin: 8px auto 28px;
  max-width: 1080px;
  width: min(100%, calc(100vw - 28px));
}

.hdrp-heading {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 14px;
}

.hdrp-status,
.hdrp-empty {
  background: var(--hdrp-soft);
  border: 1px solid var(--hdrp-line);
  border-radius: 6px;
  color: var(--hdrp-muted);
  padding: 14px;
}

.hdrp-overview {
  align-items: stretch;
  border: 1px solid var(--hdrp-line);
  border-radius: 6px;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 1.35fr);
  margin: 0 0 18px;
  overflow: hidden;
}

.hdrp-product {
  align-items: center;
  border: 0;
  border-right: 1px solid var(--hdrp-line);
  border-radius: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: 76px minmax(0, 1fr);
  margin: 0;
  padding: 12px;
}

.hdrp-product__image {
  aspect-ratio: 1;
  border: 1px solid var(--hdrp-line);
  border-radius: 6px;
  height: auto;
  object-fit: contain;
  width: 76px;
}

.hdrp-product__image--placeholder {
  align-items: center;
  background: var(--hdrp-soft);
  color: var(--hdrp-star);
  display: flex;
  font-size: 28px;
  justify-content: center;
}

.hdrp-product__title {
  font-size: 18px;
  line-height: 1.35;
  margin: 0 0 4px;
}

.hdrp-product__title a,
.hdrp-link {
  color: var(--hdrp-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hdrp-product__price,
.hdrp-product__store,
.hdrp-count,
.hdrp-review__meta,
.hdrp-review__store {
  color: var(--hdrp-muted);
  font-size: 12px;
}

.hdrp-rating {
  align-items: start;
  border: 0;
  border-radius: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(160px, 220px) minmax(260px, 1fr);
  margin: 0;
  padding: 14px;
}

.hdrp-rating__label,
.hdrp-section-title {
  font-weight: 700;
  margin: 0 0 6px;
}

.hdrp-score {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.hdrp-stars {
  color: var(--hdrp-star);
  display: inline-block;
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
}

.hdrp-bars {
  display: grid;
  gap: 7px;
}

.hdrp-bar-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 58px minmax(110px, 1fr) 52px;
}

.hdrp-bar {
  background: #e8edf2;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.hdrp-bar span {
  background: var(--hdrp-star);
  display: block;
  height: 100%;
}

.hdrp-section-title {
  font-size: 20px;
}

.hdrp-list-head {
  align-items: center;
  border-bottom: 1px solid var(--hdrp-line);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 10px;
}

.hdrp-list-count {
  color: var(--hdrp-muted);
  font-size: 13px;
}

.hdrp-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hdrp-select {
  appearance: auto;
  background: #fff;
  border: 1px solid #9aa8b5;
  border-radius: 4px;
  color: var(--hdrp-text);
  font: inherit;
  min-height: 34px;
  padding: 5px 8px;
}

.hdrp-review {
  border-bottom: 1px solid var(--hdrp-line);
  padding: 16px 0;
}

.hdrp-review-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 132px;
}

.hdrp-review__title {
  font-size: 16px;
  margin: 0 0 4px;
}

.hdrp-review__score {
  align-items: center;
  display: flex;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hdrp-review__body {
  margin: 0 0 8px;
}

.hdrp-reply {
  border-left: 3px solid var(--hdrp-accent);
  color: #26433f;
  margin-top: 8px;
  padding: 8px 10px;
  background: #f0f8f6;
}

.hdrp-review__meta {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.hdrp-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hdrp-page-btn {
  background: #fff;
  border: 1px solid #9aa8b5;
  border-radius: 4px;
  color: var(--hdrp-text);
  cursor: pointer;
  font: inherit;
  min-height: 34px;
  min-width: 38px;
  padding: 5px 10px;
  pointer-events: auto;
  position: relative;
  touch-action: manipulation;
  z-index: 1;
}

.hdrp-page-btn.is-current {
  background: var(--hdrp-accent);
  border-color: var(--hdrp-accent);
  color: #fff;
}

@media (max-width: 720px) {
  .hdrp-page-embed {
    width: min(100%, calc(100vw - 20px));
  }

  .hdrp-rating,
  .hdrp-review-grid {
    grid-template-columns: 1fr;
  }

  .hdrp-overview,
  .hdrp-product {
    grid-template-columns: 1fr;
  }

  .hdrp-product {
    align-items: start;
    border-right: 0;
    border-bottom: 1px solid var(--hdrp-line);
  }

  .hdrp-review__meta {
    justify-items: start;
    text-align: left;
  }

  .hdrp-list-head {
    align-items: stretch;
    flex-direction: column;
  }
}
