/* Review form, one markup on the product page and on the page from the review email (mu-plugin bm-reviews.php, bm_reviews_fields).
   Also the pros, cons and photos under a published review. Loaded after site.css. */

.bm-rev-fields { display: grid; gap: 20px; }
.bm-rev-field { margin: 0; min-width: 0; }
.bm-rev-rating { min-width: 0; margin: 0; padding: 0; border: 0; }
.bm-rev-label { display: block; float: none; width: auto; margin: 0 0 8px; padding: 0; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 16px; line-height: 22px; letter-spacing: -0.01em; color: var(--ink); }
.bm-rev-label span { font-family: 'Funnel Sans', 'Funnel Sans Fallback', system-ui, sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--ink-soft); }
.bm-rev-label .required { font-style: normal; color: var(--red); }

/* Stars: plain radios, no script. Order is reversed in the markup so that the stars before the chosen one light up too. */
.bm-rev-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin-left: -6px; }
.bm-rev-stars input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.bm-rev-stars label { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 32px; line-height: 1; color: var(--rule); cursor: pointer; transition: color .1s; }
.bm-rev-stars input:checked ~ label, .bm-rev-stars label:hover, .bm-rev-stars label:hover ~ label { color: #F5B400; }
.bm-rev-stars input:focus-visible + label { outline: 2px solid var(--red); outline-offset: -4px; }

.bm-rev-input { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 0; background: #fff; color: var(--ink); font-family: 'Funnel Sans', 'Funnel Sans Fallback', system-ui, sans-serif; font-size: 16px; line-height: 1.4; transition: border-color .15s; }
textarea.bm-rev-input { min-height: 132px; resize: vertical; }
.bm-rev-input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bm-rev-photos { padding: 16px; border: 1px dashed var(--ink-faint); background: var(--cream); }
.bm-rev-photos input { display: block; max-width: 100%; font-size: 14px; }
.bm-rev-photos p { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-soft); }
.bm-rev-files { margin: 8px 0 0; font-size: 13px; line-height: 18px; color: var(--ink); }
.bm-rev-need { margin: 0 0 8px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--red-dark); }
.bm-rev-miss .bm-rev-input, .bm-rev-miss .bm-rev-photos { border-color: var(--red); }
.bm-rev-miss .bm-rev-stars label { color: #E8B4B4; }
.bm-rev-submit, input.bm-rev-submit, .button.alt.bm-rev-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin: 0; padding: 12px 28px; border: 1px solid var(--red); border-radius: 0; background: var(--red); color: #fff; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 16px; line-height: 20px; letter-spacing: -0.01em; text-transform: none; cursor: pointer; transition: background-color .2s, border-color .2s; }
.bm-rev-submit:hover, input.bm-rev-submit:hover, .button.alt.bm-rev-submit:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

/* Product page: the form under the reviews */
#review_form_wrapper { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--rule); }
#review_form #respond { display: grid; gap: 16px; }
#review_form .comment-reply-title { display: block; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
#review_form .comment-reply-title small { display: block; margin-top: 6px; font-family: 'Funnel Sans', 'Funnel Sans Fallback', system-ui, sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 0; }
#review_form .comment-form { margin: 0; }
#review_form .comment-form > p { margin: 0; }
#review_form .form-submit { margin-top: 24px !important; }
.must-log-in { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
.must-log-in a { text-decoration: underline; text-underline-offset: 2px; }

/* Under a published review */
.bm-rev-pros-cons { margin-top: 8px !important; font-size: 14px !important; line-height: 20px; }
.bm-rev-pc { margin: 0 0 4px; }
.bm-rev-pc:last-child { margin-bottom: 0; }
.bm-rev-photos-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bm-rev-photos-list a { display: block; }
.comment-text .bm-rev-photos-list img { display: block; width: 72px; height: 72px; margin: 0; object-fit: cover; border: 1px solid var(--rule); }
.bm-rev-photos-list a:hover img { border-color: var(--ink); }

/* ===== Page from the review email ===== */
.bm-review-wrap { padding-top: 24px; padding-bottom: 56px; }
.bm-review-card h1 { margin: 0 0 10px; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 700; font-size: 32px; line-height: 1.02; letter-spacing: -0.035em; color: var(--ink); }
.bm-review-card > p, .bm-rev-lead { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.bm-review-card a:not(.button) { text-decoration: underline; text-underline-offset: 2px; }
.bm-rev-eyebrow { margin: 0 0 10px; font-family: 'JetBrains Mono', 'JetBrains Mono Fallback', monospace; font-size: 11px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.bm-rev-product { display: flex; align-items: center; gap: 14px; margin: 20px 0 0; padding: 12px; border: 1px solid var(--rule); background: #fff; }
.bm-rev-product img { flex: none; width: 72px; height: 72px; object-fit: contain; background: var(--cream); mix-blend-mode: multiply; }
.bm-rev-product strong { display: block; font-family: 'Funnel Display', 'Funnel Display Fallback', sans-serif; font-weight: 600; font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.bm-rev-switch a { display: inline-flex; align-items: center; min-height: 32px; margin-right: 12px; font-size: 13px; color: var(--ink-soft); }
.bm-rev-switch a:hover, .bm-rev-more:hover { color: var(--red); }
.bm-review-card--form .bm-rev-form { margin: 24px 0 0; padding: 20px 16px; border: 1px solid var(--rule); background: #fff; }
.bm-review-card--form .button.alt.bm-rev-submit { margin-top: 24px; }
.bm-rev-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.bm-rev-hp { position: absolute; left: -9999px; }

@media (min-width: 768px) {
  .bm-review-card--form .bm-rev-form { padding: 24px; }
}
@media (min-width: 1024px) {
  #review_form #respond { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; align-items: start; }
  #review_form .comment-reply-title { grid-column: 1; font-size: 32px; }
  #review_form .comment-form { grid-column: 2; }
  .bm-review-wrap { padding-top: 40px; padding-bottom: 72px; }
  .bm-review-card h1 { font-size: clamp(38px, 3.7vw, 56px); line-height: .98; }
  .bm-review-card--form { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; align-items: start; }
  .bm-review-card--form .bm-rev-intro { position: sticky; top: calc(100px + var(--bm-adminbar, 0px)); }
  .bm-review-card--form .bm-rev-form { margin-top: 0; }
}

/* ===== Short pages after an action: thank you, unsubscribed, expired link (bm_reviews_page) ===== */
.bm-rev-status { display: grid; gap: 20px; }
.bm-review-card--status { padding: 24px 18px; background: #fff; border: 1px solid var(--rule); }
.bm-review-card--status > p:not(.bm-rev-eyebrow) { color: var(--ink-soft); }
.bm-rev-status .bm-rev-eyebrow { color: var(--red); }
.bm-rev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bm-review-card .bm-rev-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; text-decoration: none; }
.bm-rev-actions .cta-ghost { border-color: var(--ink); }
.bm-rev-status-help .bm-help { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--rule); font-size: 14px; line-height: 20px; }
.bm-rev-status-help .bm-help > .bm-ic { flex: none; margin-top: 1px; opacity: .6; }
.bm-rev-status-help .bm-help-title { font-weight: 500; margin-bottom: 2px; }
.bm-rev-status-help .bm-help-line, .bm-rev-status-help .bm-help-hours { color: var(--ink-soft); }
.bm-rev-status-help .bm-help-line a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.bm-rev-status-help .bm-help-hours { font-size: 12px; line-height: 16px; }
@media (max-width: 599px) { .bm-review-card .bm-rev-actions a { flex: 1 1 100%; } }
@media (min-width: 1024px) {
  .bm-rev-status { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
  .bm-review-card--status { padding: 36px; }
}
