/* Reviews widget box on the AGENT'S own site, redesigned 2026-10-28 (Dave approved the
   mockup in wip/widget-redesign-mockup-2026-10-28): one white rounded box instead of a
   shadow box with a framed card inside, at most 880px wide and centred instead of always
   80% of the page, and the Verify line as the box's footer.
   This CSS runs on the agent's site, so every rule is pinned to our ids and the
   properties a site theme commonly overrides (height, border, radius, img sizing)
   carry !important. The legacy embed's own inline <style>
   (_reviews_widget_code_legacy.html.erb: height 724px, width 80%) sits in the page after
   this stylesheet; div#id + !important outranks it (code review 2026-10-28). */
div#rma-widget-embed {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 880px !important;
  /* height: auto, was a fixed 724px (2026-10-28): the reviews frame plus the Verify line
     was taller than 724px, so the Verify line poked past the box's bottom edge
     (Dave's leannedesouza.com screenshot). */
  height: auto !important;
  margin: 24px auto !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid #e3e3e3 !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.08) !important;
  /* overflow: hidden clips the iframe to the rounded corners, and keeps the box whole
     beside a site's floated column: without it the reviews frame dropped below the
     float and left a blank band inside the box (127 px on leannedesouza.com's phone
     layout, 2026-10-28). */
  overflow: hidden !important;
  /* No clear: both (code review 2026-10-28): on a theme whose sidebar floats beside the
     content it pushed the whole box below the sidebar, leaving a big gap on desktop.
     overflow: hidden above already keeps the box from sliding under a float. */
  text-align: left;
}
/* Site editors save a stray &nbsp; in this container (leannedesouza.com, 2026-10-28);
   the script empties it, and a zero font size stops any leftover from adding a blank
   line above the reviews. */
div#rma-widget-embed #rma-widget-iframe-container {
  font-size: 0 !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
iframe#rma-reviews-widget-frame {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 640px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
@media screen and (max-width: 600px) {
  div#rma-widget-embed { margin: 16px auto !important; border-radius: 12px !important; }
}
/* The Verify line wraps to two lines in a narrow column (long name, small phone):
   height auto + min-height, never a fixed height, or overflow: hidden above would cut
   the second line off (code review 2026-10-28). */
div#rma-widget-embed #rma-verification {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  background: #fafafa !important;
  border-top: 1px solid #ececec !important;
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-align: center !important;
}
div#rma-widget-embed #rma-verification-icon {
  width: 20px !important;
  height: auto !important;
  display: inline-block !important;
  vertical-align: -4px !important;
  margin: 0 6px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
div#rma-widget-embed #rma-verification-text {
  font: inherit !important;
  color: #333 !important;
}
div#rma-widget-embed #rma-verification a {
  color: #C62828 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
div#rma-widget-embed #rma-verification a:hover,
div#rma-widget-embed #rma-verification a:focus-visible {
  text-decoration: underline !important;
}
