/* MessageCard Boutique v3.8.4.2 — review writing page ONLY
   Overrides legacy Zen Cart headings without changing form action, validation or review data.
   Loaded after the v3.8.4.1 review stylesheet in Zen Cart's alphabetical CSS order. */
body.tpl_messagecard #reviewsWrite.mc-rv-page {
  --mc-rv-ink:#514039; --mc-rv-accent:#96685d;
  --mc-rv-stroke:#e8dcd3; --mc-rv-muted:#82736a;
  max-width:940px!important; margin-top:30px!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-heading { margin-bottom:29px!important; }
body.tpl_messagecard #reviewsWrite .mc-rv-heading h1 {color:#554238!important;}
/* Product card — remove inherited dark title banner and restore elegant editorial type. */
body.tpl_messagecard #reviewsWrite .mc-rv-product {
  grid-template-columns:minmax(170px,230px) minmax(0,1fr)!important;
  gap:25px!important; padding:25px!important; align-items:center!important;
  border:1px solid #eadbd0!important; border-radius:16px!important;
  background:#fbf7f3!important; box-shadow:none!important; margin-bottom:26px!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-product-img {background:#f5ede6!important; border-radius:10px!important; padding:10px!important;}
body.tpl_messagecard #reviewsWrite .mc-rv-product-img img {max-height:240px!important;}
body.tpl_messagecard #reviewsWrite .mc-rv-product-info {min-width:0!important;}
body.tpl_messagecard #reviewsWrite #reviewsWriteHeading {
  display:block!important; width:auto!important; height:auto!important;
  margin:7px 0 12px!important; padding:0!important;
  background:transparent!important; background-image:none!important;
  border:0!important; box-shadow:none!important; border-radius:0!important;
  color:#4d3d36!important; font-family:inherit!important;
  font-weight:650!important; font-size:clamp(18px,2vw,23px)!important;
  line-height:1.65!important; text-align:left!important;
  letter-spacing:.025em!important; text-shadow:none!important;
  overflow-wrap:anywhere!important;
}
body.tpl_messagecard #reviewsWrite #reviewsWriteHeading * {background:transparent!important; color:inherit!important;}
body.tpl_messagecard #reviewsWrite .mc-rv-price {
  font-size:21px!important; font-weight:700!important; line-height:1.4!important;
  padding:0 0 15px!important; margin:0 0 15px!important; text-align:left!important;
  color:#96685d!important; border-bottom:1px solid #e8dcd3!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-actions .mc-rv-btn {min-height:42px!important; font-size:12px!important;}
/* Form card: careful field hierarchy, no unwanted inherited gray title bars. */
body.tpl_messagecard #reviewsWrite .mc-rv-form-card {
  padding:29px 32px 31px!important; background:#fff!important;
  border:1px solid #e8dcd3!important; border-radius:16px!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-form-card > h2 {
  display:block!important; width:auto!important; padding:0!important;
  background:transparent!important; color:#55443d!important;
  border:0!important; margin:0 0 7px!important;
  font-size:20px!important; line-height:1.6!important; text-align:left!important;
  font-weight:650!important; box-shadow:none!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-reviewer {
  padding:0 0 16px!important; margin:0!important;
  color:#84746c!important; text-align:left!important; border-bottom:1px solid #efe5dd!important;
  font-size:13px!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-rating-fieldset {
  border:0!important; border-bottom:1px solid #efe5dd!important;
  padding:22px 0 25px!important; margin:0 0 23px!important;
  box-shadow:none!important; background:transparent!important;
}
body.tpl_messagecard #reviewsWrite #reviewsWriteReviewsRate {
  display:block!important; float:none!important;
  width:auto!important; max-width:100%!important; height:auto!important;
  background:transparent!important; background-image:none!important;
  color:#55443d!important; border:0!important; box-shadow:none!important;
  padding:0!important; margin:0!important;
  text-align:left!important; font-size:15px!important; font-weight:700!important;
  letter-spacing:0!important; line-height:1.6!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-rating-fieldset > p {
  color:#83746c!important; margin:10px 0 12px!important; font-size:12px!important;
  text-align:left!important; line-height:1.7!important;
}
/* 5-star picker: DOM and visual order 1..5. CSS :has fills earlier stars. */
body.tpl_messagecard #reviewsWrite .mc-rv-rating-options {
  display:flex!important; flex-direction:row!important;
  justify-content:flex-end!important; align-items:center!important;
  flex-wrap:nowrap!important; width:100%!important;
  gap:6px!important; margin:13px 0 0!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-rating-option {width:auto!important; flex:0 0 auto!important;}
body.tpl_messagecard #reviewsWrite .mc-rv-rating-option input[type=radio] {
  position:absolute!important; opacity:0!important; width:1px!important; height:1px!important;
  margin:0!important; padding:0!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-rating-option label {
  width:57px!important; min-width:0!important; height:62px!important; min-height:62px!important;
  display:flex!important; align-items:center!important; justify-content:center!important;
  padding:0!important; border:1px solid #e8d8cf!important;
  border-radius:12px!important; background:#fff!important; box-shadow:none!important;
  transform:none!important; cursor:pointer; transition:.16s background-color,.16s border-color!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-rating-option .mc-rv-rating-stars {
  font-family:Georgia,serif!important; font-size:36px!important; line-height:1!important;
  color:#d8cec4!important; transition:color .15s!important;
}
/* Checked star and all lower-ranked stars fill; CSS-only, no custom JS. */
body.tpl_messagecard #reviewsWrite .mc-rv-rating-option input:checked + label,
body.tpl_messagecard #reviewsWrite .mc-rv-rating-option:has(~ .mc-rv-rating-option input:checked) label {
  background:#fcf5ef!important; border-color:#d4b5a4!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-rating-option input:checked + label .mc-rv-rating-stars,
body.tpl_messagecard #reviewsWrite .mc-rv-rating-option:has(~ .mc-rv-rating-option input:checked) .mc-rv-rating-stars {
  color:#ad7c51!important;
}
@media(hover:hover){
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-option:hover label,
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-option:has(~ .mc-rv-rating-option:hover) label {background:#f7ede5!important; border-color:#c7a795!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-option:hover label .mc-rv-rating-stars,
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-option:has(~ .mc-rv-rating-option:hover) .mc-rv-rating-stars {color:#a97950!important;}
}
body.tpl_messagecard #reviewsWrite .mc-rv-rating-option input:focus-visible + label {
  outline:3px solid #98685c!important; outline-offset:3px!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-star-assist {position:absolute!important; width:1px!important; height:1px!important; clip-path:inset(50%)!important; white-space:nowrap!important; overflow:hidden!important;}
body.tpl_messagecard #reviewsWrite #textAreaReviews {
  display:block!important; text-align:left!important; padding:0!important; margin:0!important;
  background:transparent!important; border:0!important; box-shadow:none!important;
  color:#55443d!important; font-size:15px!important; font-weight:700!important; line-height:1.7!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-text-field > p {text-align:left!important; font-size:12px!important; color:#84736a!important;}
body.tpl_messagecard #reviewsWrite #review-text {
  min-height:180px!important; background:#fffdfb!important; border:1px solid #dbc9bd!important;
  border-radius:11px!important; padding:16px!important; box-shadow:none!important;
  font-size:15px!important; line-height:1.85!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-notice {
  padding:15px 17px!important; border-radius:10px!important; background:#f7f1ec!important;
  font-size:12px!important; color:#786b62!important; line-height:1.9!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-submit-row {margin-top:22px!important;}
body.tpl_messagecard #reviewsWrite .mc-rv-submit {
  min-height:50px!important; padding:13px 28px!important;
  background:#96685d!important; border:1px solid #96685d!important;
  color:white!important; border-radius:999px!important; font-size:14px!important;
  box-shadow:none!important;
}
body.tpl_messagecard #reviewsWrite .mc-rv-submit:hover {background:#80544a!important; border-color:#80544a!important;}
@media(max-width:720px){
 body.tpl_messagecard #reviewsWrite.mc-rv-page {margin-top:8px!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-product {grid-template-columns:120px minmax(0,1fr)!important; gap:15px!important; padding:17px!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-form-card {padding:20px 17px 23px!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-option label {width:51px!important; height:56px!important; min-height:56px!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-option .mc-rv-rating-stars {font-size:32px!important;}
}
@media(max-width:480px){
 body.tpl_messagecard #reviewsWrite .mc-rv-product {grid-template-columns:1fr!important; gap:15px!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-product-img {max-width:190px!important; margin:auto!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-options {gap:5px!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-option label {width:49px!important; height:54px!important; min-height:54px!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-option .mc-rv-rating-stars {font-size:29px!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-submit-row {display:block!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-submit {width:100%!important;}
}
@media(max-width:360px){
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-options {gap:4px!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-option label {width:43px!important; height:51px!important; min-height:51px!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-rating-option .mc-rv-rating-stars {font-size:27px!important;}
 body.tpl_messagecard #reviewsWrite .mc-rv-form-card {padding:18px 14px 22px!important;}
}
