#review-product-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(18, 126, 91, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbf9 0%, #ffffff 78%);
  box-shadow: 0 10px 28px rgba(28, 65, 53, 0.07);
  color: #17241f;
}

#review-product-panel .xrp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

#review-product-panel .xrp-kicker,
.xrp-modal .xrp-kicker {
  margin: 0 0 4px;
  color: #168766;
  font-size: 13px;
  font-weight: 750;
}

#review-product-panel h2,
.xrp-modal h2 {
  margin: 0;
  color: #17241f;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 760;
}

.xrp-modal-source {
  margin: 8px 0 0;
  color: #51665c;
  font-size: 13px;
  line-height: 1.6;
}

#review-product-panel p {
  margin: 7px 0 0;
  color: #6d7a74;
  font-size: 13px;
  line-height: 1.6;
}

#review-product-panel .xrp-refresh,
#review-product-panel .xrp-primary,
.xrp-close {
  min-height: 34px;
  border: 1px solid rgba(18, 126, 91, 0.28);
  border-radius: 6px;
  background: #fff;
  color: #116f55;
  font-weight: 750;
  cursor: pointer;
}

#review-product-panel .xrp-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

#review-product-panel .xrp-tabs button {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #d9e8e1;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

#review-product-panel .xrp-tabs strong {
  display: block;
  color: #17241f;
  font-size: 22px;
  line-height: 1.1;
}

#review-product-panel .xrp-tabs span {
  display: block;
  margin-top: 4px;
  color: #60726b;
  font-size: 13px;
  font-weight: 700;
}

#review-product-panel .xrp-tabs .is-active {
  border-color: #168766;
  background: #edf8f3;
  box-shadow: inset 0 0 0 1px rgba(22, 135, 102, 0.16);
}

#review-product-panel .xrp-sync-message {
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid rgba(22, 135, 102, 0.18);
  border-radius: 6px;
  background: #f3fbf7;
  color: #176c55;
  font-size: 13px;
  font-weight: 700;
}

#review-product-panel .xrp-list {
  display: grid;
  gap: 10px;
}

#review-product-panel .xrp-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 104px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #edf1ef;
  border-radius: 8px;
  background: #fff;
}

#review-product-panel .xrp-card.is-active {
  border-color: #168766;
  background: #f7fcfa;
  box-shadow: inset 3px 0 0 #168766;
}

#review-product-panel .xrp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

#review-product-panel .xrp-meta span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef4f1;
  color: #4d6258;
  font-size: 12px;
  font-weight: 750;
}

#review-product-panel .xrp-card h3 {
  margin: 0;
  color: #17241f;
  font-size: 15px;
  line-height: 1.4;
}

#review-product-panel .xrp-evidence {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 3px solid #d1b66c;
  color: #60726b;
  font-size: 12px;
  line-height: 1.5;
}

#review-product-panel .xrp-score {
  display: grid;
  gap: 3px;
  justify-items: start;
}

#review-product-panel .xrp-score span,
#review-product-panel .xrp-score small {
  color: #80918a;
  font-size: 12px;
}

#review-product-panel .xrp-score strong {
  color: #17241f;
  font-size: 24px;
  line-height: 1;
}

#review-product-panel .xrp-primary {
  background: #168766;
  color: #fff;
}

#review-product-panel .xrp-loading,
#review-product-panel .xrp-error,
#review-product-panel .xrp-empty {
  padding: 10px 2px;
  color: #60726b;
  font-size: 14px;
}

.xrp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 32, 26, 0.44);
}

.xrp-modal {
  position: relative;
  width: min(1080px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(10, 20, 14, 0.28);
}

.xrp-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.xrp-modal-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(240px, 0.55fr);
  gap: 14px;
  margin-top: 16px;
}

.xrp-video {
  min-height: 320px;
  border-radius: 8px;
  overflow: hidden;
  background: #111c17;
}

.xrp-video video {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  background: #111c17;
}

.xrp-video > div {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  color: #dbe8e1;
  text-align: center;
}

.xrp-video span {
  color: #aebeb6;
  font-size: 13px;
}

.xrp-side {
  display: grid;
  align-content: start;
  gap: 10px;
}

.xrp-side > div,
.xrp-section article {
  padding: 12px;
  border: 1px solid #edf1ef;
  border-radius: 8px;
  background: #fbfdfc;
}

.xrp-side span {
  color: #80918a;
  font-size: 12px;
}

.xrp-side strong {
  display: block;
  margin-top: 4px;
  color: #17241f;
  font-size: 18px;
}

.xrp-side p,
.xrp-section p {
  margin: 6px 0 0;
  color: #41554c;
  line-height: 1.7;
}

.xrp-links {
  display: grid;
  gap: 8px;
}

.xrp-links a {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 126, 91, 0.28);
  border-radius: 6px;
  color: #116f55;
  text-decoration: none;
  font-weight: 750;
}

.xrp-section {
  margin-top: 16px;
}

.xrp-section h3 {
  margin: 0 0 10px;
  color: #17241f;
  font-size: 16px;
}

.xrp-section article + article {
  margin-top: 8px;
}

.xrp-section strong {
  color: #168766;
}

.xrp-section p {
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
}

@media (max-width: 820px) {
  #review-product-panel {
    padding: 14px;
  }

  #review-product-panel .xrp-head,
  #review-product-panel .xrp-card {
    grid-template-columns: 1fr;
  }

  #review-product-panel .xrp-head {
    flex-direction: column;
  }

  #review-product-panel .xrp-tabs,
  .xrp-modal-grid {
    grid-template-columns: 1fr;
  }
}
