/*
 * MamaWillow Dermatest seal 10/2026 (study ST-ET-2026-00190).
 * Shared by the blog.mamawillow.com sales pages that sell ONLY Laundry Sheets Linen
 * and Dishwasher Sheets Lemon (or bundles made only of these two).
 * Rules: MAMAWILLOW_COMPLIANCE.md v3.0, section "Dermatological Testing".
 * The seal PNGs in /images/brand/dermatest/ are the untouched originals. The crop boxes
 * below only hide their transparent margin; the seal itself is never cut, scaled
 * unevenly or recoloured.
 * Minimum visible seal height: DE 120 px desktop / 88 px mobile, IT 96 px / 72 px.
 */

/* ---- crop box: shows the seal without its transparent margin ---- */
.mw-derm-crop { display: block; flex: none; overflow: hidden; height: var(--mw-v, 124px); }
.mw-derm-crop img { display: block; max-width: none; min-width: 0; width: auto; border: 0; border-radius: 0; box-shadow: none; }
/* DE horizontal, source 1440x985, seal box x122-1317 / y122-861 */
.mw-derm-crop--de { width: calc(var(--mw-v, 124px) * 1.61622); }
.mw-derm-crop--de img { height: calc(var(--mw-v, 124px) * 1.33108); margin: calc(var(--mw-v, 124px) * -0.16486) 0 0 calc(var(--mw-v, 124px) * -0.16486); }
/* EN horizontal, source 1440x985, seal box x112-1356 / y122-861 */
.mw-derm-crop--en { width: calc(var(--mw-v, 124px) * 1.68243); }
.mw-derm-crop--en img { height: calc(var(--mw-v, 124px) * 1.33108); margin: calc(var(--mw-v, 124px) * -0.16486) 0 0 calc(var(--mw-v, 124px) * -0.15135); }
/* DE + EN vertical, source 1440x1939, seal box x157-1282 / y157-1635 */
.mw-derm-crop--v { width: calc(var(--mw-v, 124px) * 0.76133); }
.mw-derm-crop--v img { height: calc(var(--mw-v, 124px) * 1.31102); margin: calc(var(--mw-v, 124px) * -0.10615) 0 0 calc(var(--mw-v, 124px) * -0.10615); }

/* ---- seal block (hero / buy box / offer) ---- */
.mw-derm {
  --mw-v: 124px;
  display: flex; align-items: center; gap: 16px;
  margin: 16px 0 0; padding: 12px 18px 12px 12px;
  background: #fff; border: 1px solid #e3d9c2; border-radius: 16px;
  box-shadow: 0 12px 26px -20px rgba(40, 30, 10, .45);
  text-align: left; line-height: 1.3; color: #2c2620;
}
.mw-derm--it { --mw-v: 100px; }
.mw-derm-txt { min-width: 0; }
.mw-derm .mw-derm-h { margin: 0; padding: 0; font-size: 18px; font-weight: 700; line-height: 1.25; color: #234627; }
.mw-derm .mw-derm-s { margin: 4px 0 0; padding: 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: #2c2620; }
.mw-derm .mw-derm-p { margin: 7px 0 0; padding: 0; font-size: 12.5px; font-weight: 400; line-height: 1.4; color: #6c624e; }
.mw-derm--story { margin: 22px 0; }

/* ---- footnote marker: superscript, small, muted ---- */
.mw-derm-mark {
  font-size: .6em; font-weight: 400; line-height: 0; letter-spacing: 0;
  vertical-align: super; position: static; margin-left: 1px; color: #8b826f;
}
/* keeps the marker tight to the chip text (chip rows are inline-flex with a gap) */
.mw-derm-chiptxt, .offer-chips span.mw-derm-chiptxt { display: inline; }

/* ---- overlay on gallery slides (toggled by /js/mw-dermatest.js) ---- */
.mw-derm-ov {
  --mw-v: 124px;
  position: absolute; right: 14px; bottom: 14px; z-index: 4;
  display: block; padding: 7px 9px 7px 7px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .35);
  pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
}
.mw-derm-ov.is-on { opacity: 1; visibility: visible; }
.mw-derm-ov .mw-derm-mark { position: absolute; top: 9px; right: 4px; font-size: 11px; line-height: 1; vertical-align: baseline; margin: 0; }

/* ---- footer footnote ---- */
.mw-derm-fn a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mw-derm-fn--light { color: #8a8a8a; }
.mw-derm-fn--light strong { color: #6f6f6f; }
.mw-derm-cert a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 640px) {
  .mw-derm { --mw-v: 92px; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px; }
  .mw-derm--it { --mw-v: 76px; }
  .mw-derm .mw-derm-h { font-size: 15.5px; }
  .mw-derm .mw-derm-s { font-size: 13.5px; }
  .mw-derm .mw-derm-p { font-size: 11.5px; margin-top: 5px; }
  .mw-derm-ov { --mw-v: 92px; right: 10px; bottom: 10px; padding: 5px 8px 5px 5px; border-radius: 10px; }
  .mw-derm-ov .mw-derm-mark { top: 6px; right: 3px; font-size: 10px; }
}
