/* ---------- v3.12.357 Post-visit Google review + private feedback ----------
 * Neutral, non-gated review request. The card is intentionally full-width in
 * the patient dashboard before the clinical metric grid, then collapses to a
 * single clean column on phones.
 */
.mpwl-v357-review-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 238px;
  gap:0!important;
  padding:0!important;
  overflow:hidden;
  border:1px solid #dbe5ed!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 7px 22px rgba(28,65,99,.06)!important;
}
.mpwl-v357-review-copy{
  min-width:0;
  padding:24px 26px 22px;
}
.mpwl-v357-review-copy>small:first-child{
  display:block;
  margin:0 0 8px;
  color:#2f82c2;
  font-size:10px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.12em;
}
.mpwl-v357-review-copy h3{
  max-width:720px;
  margin:0 0 10px!important;
  color:#1f3447!important;
  font-size:25px!important;
  line-height:1.18!important;
  font-weight:800!important;
  letter-spacing:-.02em;
}
.mpwl-v357-review-copy p{
  max-width:760px;
  margin:0!important;
  color:#64788a!important;
  font-size:14px!important;
  line-height:1.55!important;
}
.mpwl-v357-review-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:18px;
}
.mpwl-v357-review-actions .mpwl-btn{
  width:auto!important;
  min-height:42px;
  margin:0!important;
  padding:10px 15px!important;
  border-radius:8px!important;
  line-height:1.2!important;
  text-decoration:none!important;
}
.mpwl-v357-google-review-button{
  display:inline-flex!important;
  align-items:center;
  gap:9px;
}
.mpwl-v357-google-review-button>span{
  display:inline-grid;
  width:22px;
  height:22px;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#327fc1;
  font-size:13px;
  font-weight:900;
  line-height:1;
}
.mpwl-v357-private-feedback-button{background:#fff!important}
.mpwl-v357-review-note{
  display:block;
  margin-top:13px;
  color:#8493a0!important;
  font-size:10.5px!important;
  line-height:1.45!important;
}
.mpwl-v357-review-google{
  display:flex;
  min-height:210px;
  padding:25px 22px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:#eef6fb;
  border-left:1px solid #dbe5ed;
}
.mpwl-v357-review-google>span{
  display:grid;
  width:54px;
  height:54px;
  margin-bottom:12px;
  place-items:center;
  border-radius:50%;
  background:#fff;
  color:#4285f4;
  box-shadow:0 4px 14px rgba(31,70,110,.08);
  font-size:29px;
  line-height:1;
  font-weight:900;
}
.mpwl-v357-review-google strong{
  display:block;
  color:#263c50;
  font-size:14px;
  line-height:1.3;
}
.mpwl-v357-review-google small{
  display:block;
  max-width:170px;
  margin-top:6px;
  color:#718598;
  font-size:10.5px;
  line-height:1.4;
}

.mpwl-v357-feedback-dialog{
  width:min(620px,calc(100vw - 40px));
  max-width:620px;
  padding:0;
  border:0;
  border-radius:12px;
  background:#fff;
  box-shadow:0 24px 70px rgba(20,45,68,.26);
}
.mpwl-v357-feedback-dialog::backdrop{background:rgba(18,34,48,.56)}
.mpwl-v357-feedback-dialog form{margin:0;padding:24px}
.mpwl-v357-feedback-head{
  display:flex;
  gap:18px;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom:18px;
}
.mpwl-v357-feedback-head small{
  display:block;
  margin-bottom:5px;
  color:#2f82c2;
  font-size:9.5px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:.12em;
}
.mpwl-v357-feedback-head h3{
  margin:0 0 7px!important;
  color:#1f3447!important;
  font-size:21px!important;
  line-height:1.2!important;
}
.mpwl-v357-feedback-head p{
  margin:0!important;
  color:#667a8d!important;
  font-size:13px!important;
  line-height:1.5!important;
}
.mpwl-v357-feedback-head>button{
  display:grid;
  width:34px;
  min-width:34px;
  height:34px;
  padding:0;
  place-items:center;
  border:1px solid #d9e3eb;
  border-radius:8px;
  background:#fff;
  color:#5e7285;
  cursor:pointer;
  font-size:22px;
  line-height:1;
}
.mpwl-v357-feedback-dialog label{
  display:block;
  color:#31485c;
  font-size:12px;
  line-height:1.4;
  font-weight:700;
}
.mpwl-v357-feedback-dialog textarea{
  display:block;
  width:100%;
  min-height:145px;
  margin-top:7px;
  padding:12px 13px;
  resize:vertical;
  border:1px solid #cfdbe5;
  border-radius:8px;
  background:#fff;
  color:#22384b;
  box-shadow:none;
  font:inherit;
  font-weight:400;
  line-height:1.5;
}
.mpwl-v357-feedback-dialog textarea:focus{
  border-color:#6ba8d5;
  outline:2px solid rgba(65,145,206,.14);
  outline-offset:1px;
}
.mpwl-v357-feedback-actions{
  display:flex;
  justify-content:flex-end;
  gap:9px;
  margin-top:16px;
}
.mpwl-v357-feedback-actions .mpwl-btn{
  width:auto!important;
  margin:0!important;
  border-radius:8px!important;
}
.mpwl-v357-feedback-note{
  display:block;
  margin-top:13px;
  color:#7a8996;
  font-size:10.5px;
  line-height:1.45;
}

/* Clinic patient chart: feedback queue inside Messages. */
.mpwl-v357-feedback-admin-panel{grid-column:1/-1}
.mpwl-v357-admin-feedback-list{display:grid;gap:9px}
.mpwl-v357-admin-feedback-row{
  padding:14px 15px;
  border:1px solid #dce5ec;
  border-left:3px solid #97aabc;
  border-radius:8px;
  background:#fff;
}
.mpwl-v357-admin-feedback-row.is-new{
  border-left-color:#d59630;
  background:#fffcf7;
}
.mpwl-v357-admin-feedback-row p{
  margin:10px 0!important;
  color:#263d50!important;
  font-size:13px!important;
  line-height:1.55!important;
  white-space:normal;
}
.mpwl-v357-admin-feedback-meta,
.mpwl-v357-admin-feedback-foot{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  align-items:center;
  justify-content:space-between;
}
.mpwl-v357-admin-feedback-meta time,
.mpwl-v357-admin-feedback-foot small{
  color:#74879a;
  font-size:11px;
}
.mpwl-v357-admin-feedback-foot form{margin:0}

@media(max-width:782px){
  .mpwl-v357-review-card{grid-template-columns:1fr}
  .mpwl-v357-review-copy{padding:20px 18px 18px}
  .mpwl-v357-review-copy h3{font-size:21px!important}
  .mpwl-v357-review-copy p{font-size:13px!important}
  .mpwl-v357-review-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .mpwl-v357-review-actions .mpwl-btn{display:flex!important;width:100%!important;min-height:44px;align-items:center;justify-content:center}
  .mpwl-v357-review-google{
    min-height:0;
    padding:15px 18px;
    flex-direction:row;
    gap:10px;
    justify-content:flex-start;
    text-align:left;
    border-top:1px solid #dbe5ed;
    border-left:0;
  }
  .mpwl-v357-review-google>span{width:38px;height:38px;min-width:38px;margin:0;font-size:20px}
  .mpwl-v357-review-google strong{font-size:12px}
  .mpwl-v357-review-google small{max-width:none;margin:1px 0 0 2px;font-size:9.5px}
  .mpwl-v357-feedback-dialog{width:calc(100vw - 24px);max-width:none;border-radius:10px}
  .mpwl-v357-feedback-dialog form{padding:18px 16px}
  .mpwl-v357-feedback-head h3{font-size:19px!important}
  .mpwl-v357-feedback-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .mpwl-v357-feedback-actions .mpwl-btn{width:100%!important;justify-content:center}
  .mpwl-v357-admin-feedback-meta,.mpwl-v357-admin-feedback-foot{align-items:flex-start;flex-direction:column}
}
