/* ============================================================
   Reviews — pizzadelhorno.com (ver js/reviews.js)
   Usa las variables y .pdh-btn / .pdh-field de css/pedido.css
   ============================================================ */
#rv-page {
  max-width: 820px;
}
@media only screen and (max-width: 767px) {
  #rv-page {
    width: auto !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
  }
}

.rv-card {
  margin: 0 0 40px;
  padding: 30px;
  background: var(--pdh-cream);
  border-top: 3px solid var(--pdh-red);
}
@media only screen and (max-width: 480px) {
  .rv-card { padding: 22px 18px; }
}
.rv-card h3 { margin: 0 0 8px; color: var(--pdh-ink); line-height: 1.25; }
.rv-lead { margin: 0 0 22px; color: var(--pdh-muted); line-height: 1.6; }
.rv-aviso .rv-lead { margin: 0; }

/* ---------- formulario ---------- */
#rv-page .pdh-field input,
#rv-page .pdh-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #ddd5c9;
  border-radius: 0;
  background: #fff;
  color: var(--pdh-ink);
  font-size: 15px;
  text-indent: 0;
  line-height: 44px;
  height: 46px;
}
#rv-page .pdh-field textarea {
  height: 130px;
  padding: 10px 12px;
  line-height: 22px;
  resize: vertical;
}
#rv-page .pdh-field input:focus,
#rv-page .pdh-field textarea:focus {
  outline: 0;
  border-color: var(--pdh-brown);
  box-shadow: 0 0 0 2px rgba(94, 71, 43, .15);
}
.rv-count { margin-top: 4px; color: var(--pdh-muted); font-size: 12px; text-align: right; }
.rv-count.is-max { color: var(--pdh-red); }
.rv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.rv-stars-input { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.rv-stars-input button {
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: none;
  color: #d6cdbf;
  font-size: 38px;
  line-height: 44px;
  cursor: pointer;
  transition: color .12s, transform .12s;
}
.rv-stars-input button.is-on { color: #f2a900; }
.rv-stars-input button:hover { transform: scale(1.12); }
.rv-stars-input button:focus-visible { outline: 2px solid var(--pdh-brown); outline-offset: 2px; }
.rv-stars-txt { margin-left: 10px; color: var(--pdh-brown); font-size: 14px; }

/* ---------- promedio ---------- */
.rv-resumen {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--pdh-line);
}
.rv-prom {
  color: var(--pdh-ink);
  font-family: Montserrat, sans-serif;
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
}
.rv-prom-txt { margin-top: 4px; color: var(--pdh-muted); font-size: 14px; }

/* ---------- lista ---------- */
.rv-stars { color: #f2a900; font-size: 17px; letter-spacing: 2px; line-height: 1; }
.rv-stars .off { color: #d6cdbf; }
.rv-stars-big { font-size: 26px; }

.rv-item {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--pdh-line);
}
.rv-item:last-child { border-bottom: 0; }
.rv-av {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--pdh-red);
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 46px;
  text-align: center;
  text-transform: uppercase;
}
.rv-main { flex: 1; min-width: 0; }
.rv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.rv-name { color: var(--pdh-ink); font-family: Montserrat, sans-serif; font-size: 15px; font-weight: 700; }
.rv-date { color: var(--pdh-muted); font-size: 13px; }
.rv-text { margin: 10px 0 0; color: #555; line-height: 1.65; white-space: pre-line; word-wrap: break-word; overflow-wrap: anywhere; }
.rv-resp {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--pdh-cream);
  border-left: 3px solid var(--pdh-red);
}
.rv-resp-title { margin-bottom: 4px; color: var(--pdh-brown); font-family: Montserrat, sans-serif; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.rv-resp p { margin: 0; color: #555; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; }
.rv-vacio { padding: 20px 0; color: var(--pdh-muted); text-align: center; }

/* ---------- teléfono ---------- */
@media only screen and (max-width: 767px) {
  .rv-card { margin-bottom: 30px; }
  .rv-card h3 { font-size: 24px; }
  .rv-lead { font-size: 15px; margin-bottom: 18px; }
  .pdh-field label { font-size: 14px; }
  /* 16 px: con menos, el iPhone hace zoom al tocar el campo */
  #rv-page .pdh-field input,
  #rv-page .pdh-field textarea { font-size: 16px; }
  .rv-stars-input { gap: 0; }
  .rv-stars-input button { min-width: 50px; padding: 0; font-size: 42px; line-height: 50px; }
  .rv-stars-input button:hover { transform: none; }
  .rv-stars-txt { flex-basis: 100%; margin: 2px 0 0 4px; }
  #rv-submit { display: block; width: 100%; padding: 17px 20px; font-size: 13px; }
  .rv-count { font-size: 13px; }
  /* El botón "subir" del template tapa el contador y el botón mientras se llena el formulario */
  body.rv-con-form #back-to-top { display: none !important; }
  .rv-prom { font-size: 44px; }
  .rv-item { gap: 12px; padding: 20px 0; }
  .rv-av { flex-basis: 40px; width: 40px; height: 40px; line-height: 40px; font-size: 16px; }
  .rv-resp { padding: 10px 12px; }
}
