/* Miayaa verified reviews: shared card, form, OTP step, lightbox and wall tabs.
   Used by sections/miayaa-product-reviews.liquid and sections/miayaa-reviews-wall.liquid. */
.mxv-root {
  --mxv-accent: #A63D5B;
  --mxv-text: #3D1422;
  --mxv-muted: #6E4D58;
  --mxv-soft: #FBF1F2;
  --mxv-line: #F1DDE2;
  --mxv-gold: #C9A15A;
  --mxv-shadow: 0 12px 30px -20px rgba(61, 20, 34, .35);
  color: var(--mxv-text);
  font-family: var(--font-body-family);
}
.mxv-root *, .mxv-root *::before, .mxv-root *::after { box-sizing: border-box; }
.mxv-root [hidden] { display: none !important; }
.mxv-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* stars */
.mxv-stars { display: inline-flex; gap: 2px; color: var(--mxv-gold); line-height: 1; }
.mxv-stars svg { width: 16px; height: 16px; }
.mxv-stars .is-off { color: var(--mxv-line); }

/* buttons */
.mxv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border: 0; border-radius: 999px;
  background: var(--mxv-accent); color: #fff;
  font: inherit; font-size: 15px; font-weight: 500; letter-spacing: .02em;
  cursor: pointer; text-decoration: none;
  transition: background-color .25s ease, opacity .25s ease;
}
.mxv-btn:hover { background: var(--mxv-text); }
.mxv-btn[disabled] { opacity: .55; cursor: not-allowed; }
.mxv-btn--outline { background: #fff; color: var(--mxv-accent); border: 1.5px solid var(--mxv-accent); }
.mxv-btn--outline:hover { background: var(--mxv-accent); color: #fff; }
.mxv-link { padding: 0; border: 0; background: none; color: var(--mxv-accent); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mxv-link[disabled] { color: var(--mxv-muted); text-decoration: none; cursor: default; }

/* verified badge */
.mxv-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 7px; border-radius: 999px;
  background: #EEF7EF; color: #1E5B2A;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.mxv-badge svg { width: 14px; height: 14px; }
.mxv-badge--buyer { background: linear-gradient(90deg, #F6D3DE, #F9E6D2); color: var(--mxv-accent); box-shadow: inset 0 0 0 1px rgba(201, 161, 90, .55); }

/* ---------- review card ---------- */
.mxv-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 22px; border: 1px solid var(--mxv-line); border-radius: 22px; background: #fff;
  transition: box-shadow .25s ease;
}
.mxv-card:hover { box-shadow: var(--mxv-shadow); }
.mxv-card__head { display: flex; align-items: center; gap: 12px; }
.mxv-card__avatar {
  flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #F6D3DE, #F9E6D2); color: var(--mxv-accent);
  font-family: var(--font-heading-family); font-size: 19px; box-shadow: inset 0 0 0 1px rgba(201, 161, 90, .5);
}
.mxv-card__who { min-width: 0; display: grid; gap: 1px; }
.mxv-card__name { font-size: 15px; font-weight: 600; color: var(--mxv-text); }
.mxv-card__meta { font-size: 12.5px; color: var(--mxv-muted); }
.mxv-card__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mxv-card__body { margin: 0; font-size: 15px; line-height: 1.7; color: var(--mxv-text); white-space: pre-line; overflow-wrap: anywhere; }
.mxv-card__body.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.mxv-card__media { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mxv-thumb {
  position: relative; display: block; width: 76px; height: 76px; padding: 0; overflow: hidden;
  border: 1px solid var(--mxv-line); border-radius: 14px; background: var(--mxv-soft); cursor: zoom-in;
}
.mxv-thumb img, .mxv-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mxv-thumb__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(61, 20, 34, .28); color: #fff; }
.mxv-thumb__play svg { width: 26px; height: 26px; }
.mxv-card__product { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--mxv-line); font-size: 13px; color: var(--mxv-muted); text-decoration: none; }
.mxv-card__product img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.mxv-card__product span { color: var(--mxv-accent); font-weight: 500; }
.mxv-card--new { animation: mxv-pop .6s ease; border-color: var(--mxv-gold); }
@keyframes mxv-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- product reviews section ---------- */
.mxr { padding: 64px 0 72px; border-top: 1px solid var(--mxv-line); background: linear-gradient(180deg, #fff, var(--mxv-soft) 100%); }
.mxr__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mxr__head { text-align: center; margin-bottom: 32px; }
.mxr__eyebrow { margin: 0 0 4px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--mxv-accent); }
.mxr__title { margin: 0; font-family: var(--font-heading-family); font-size: clamp(32px, 4vw, 48px); font-weight: 500; line-height: 1.1; color: var(--mxv-text); }
.mxr__rule { display: block; width: 64px; height: 1px; margin: 18px auto 0; background: var(--mxv-gold); }

.mxr__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.mxr-summary { display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: center; padding: 28px; border: 1px solid var(--mxv-line); border-radius: 24px; background: #fff; }
.mxr-summary__score { text-align: center; }
.mxr-summary__avg { display: block; font-family: var(--font-heading-family); font-size: 56px; line-height: 1; color: var(--mxv-text); }
.mxr-summary__score .mxv-stars svg { width: 18px; height: 18px; }
.mxr-summary__count { display: block; margin-top: 6px; font-size: 13px; color: var(--mxv-muted); }
.mxr-bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.mxr-bars li { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 10px; font-size: 13px; color: var(--mxv-muted); }
.mxr-bars__track { height: 8px; border-radius: 999px; background: var(--mxv-soft); overflow: hidden; }
.mxr-bars__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mxv-gold), #E0B25A); }
.mxr-summary__cta { grid-column: 1 / -1; display: flex; justify-content: center; }
.mxr-summary__cta .mxv-btn { width: 100%; }
.mxr-summary--empty { grid-template-columns: 1fr; text-align: center; }
.mxr-summary--empty p { margin: 0; color: var(--mxv-muted); }

/* how we verify */
.mxr-trust { position: relative; padding: 26px 28px; border-radius: 24px; background: linear-gradient(90deg, #F6D3DE, #F9E6D2); }
.mxr-trust::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(201, 161, 90, .55); border-radius: 18px; pointer-events: none; }
.mxr-trust__title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--font-heading-family); font-size: 24px; font-weight: 500; color: var(--mxv-text); }
.mxr-trust__title svg { width: 26px; height: 26px; color: var(--mxv-accent); }
.mxr-trust ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mxr-trust li { position: relative; z-index: 1; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .85); }
.mxr-trust__num { display: block; font-family: var(--font-heading-family); font-size: 26px; line-height: 1; color: var(--mxv-gold); }
.mxr-trust strong { display: block; margin: 8px 0 4px; font-size: 14.5px; color: var(--mxv-text); }
.mxr-trust li p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--mxv-muted); }
.mxr-trust__note { position: relative; z-index: 1; margin: 14px 0 0; font-size: 13px; color: var(--mxv-text); }

/* form */
.mxr-panel { margin-top: 24px; padding: 30px; border: 1px solid var(--mxv-line); border-radius: 24px; background: #fff; box-shadow: var(--mxv-shadow); }
.mxr-panel__title { margin: 0 0 4px; font-family: var(--font-heading-family); font-size: 28px; font-weight: 500; color: var(--mxv-text); }
.mxr-panel__lead { margin: 0 0 22px; font-size: 14.5px; color: var(--mxv-muted); }
.mxr-form { display: grid; gap: 18px; }
.mxr-form__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mxr-field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--mxv-text); }
.mxr-field abbr { text-decoration: none; color: var(--mxv-accent); }
.mxr-field input, .mxr-field textarea {
  width: 100%; padding: 13px 16px; border: 1px solid var(--mxv-line); border-radius: 14px; background: #fff;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--mxv-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.mxr-field textarea { min-height: 130px; resize: vertical; }
.mxr-field input:focus, .mxr-field textarea:focus { outline: none; border-color: var(--mxv-accent); box-shadow: 0 0 0 3px rgba(166, 61, 91, .15); }
.mxr-field [aria-invalid='true'] { border-color: #B3261E; }
.mxr-field__hint { font-size: 12.5px; font-weight: 400; color: var(--mxv-muted); }
.mxr-field__error { font-size: 13px; font-weight: 400; color: #B3261E; }
.mxr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mxr-rate { border: 0; margin: 0; padding: 0; }
.mxr-rate legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.mxr-rate__stars { display: inline-flex; align-items: center; gap: 4px; }
.mxr-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mxr-rate__stars label { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--mxv-line); cursor: pointer; transition: color .15s ease, transform .15s ease, background-color .15s ease; }
.mxr-rate__stars label svg { width: 32px; height: 32px; }
.mxr-rate__stars label.is-on { color: var(--mxv-gold); }
.mxr-rate__stars label:hover { transform: scale(1.08); }
.mxr-rate__stars input:focus-visible + label { outline: 2px solid var(--mxv-accent); outline-offset: 2px; }
.mxr-rate__word { margin-left: 10px; font-size: 14px; color: var(--mxv-muted); min-width: 80px; }

.mxr-drop {
  display: grid; place-items: center; gap: 6px; padding: 22px; text-align: center;
  border: 1.5px dashed rgba(201, 161, 90, .8); border-radius: 18px; background: var(--mxv-soft);
  font-size: 14px; color: var(--mxv-muted); cursor: pointer; transition: background-color .2s ease, border-color .2s ease;
}
.mxr-drop:hover, .mxr-drop.is-over { background: #fff; border-color: var(--mxv-accent); }
.mxr-drop svg { width: 28px; height: 28px; color: var(--mxv-accent); }
.mxr-drop strong { color: var(--mxv-text); font-weight: 600; }
.mxr-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mxr-previews { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mxr-previews li { position: relative; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; border: 1px solid var(--mxv-line); background: var(--mxv-soft); }
.mxr-previews img, .mxr-previews video { width: 100%; height: 100%; object-fit: cover; }
.mxr-previews button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(61, 20, 34, .75); color: #fff; cursor: pointer; }
.mxr-previews button svg { width: 12px; height: 12px; }

.mxr-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: var(--mxv-muted); }
.mxr-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mxv-accent); }
.mxr-consent a { color: var(--mxv-accent); }
.mxr-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.mxr-progress { flex: 1 1 200px; height: 6px; border-radius: 999px; background: var(--mxv-soft); overflow: hidden; }
.mxr-progress span { display: block; height: 100%; width: 0; background: var(--mxv-accent); transition: width .2s ease; }
.mxr-alert { margin: 0; padding: 12px 16px; border-radius: 14px; background: #FDECEC; color: #8A1C1C; font-size: 14px; }

/* otp */
.mxr-otp { text-align: center; }
.mxr-otp__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 50%; background: var(--mxv-soft); color: var(--mxv-accent); box-shadow: inset 0 0 0 1px rgba(201, 161, 90, .5); }
.mxr-otp__icon svg { width: 26px; height: 26px; }
.mxr-otp__boxes { display: flex; justify-content: center; gap: 10px; margin: 22px 0 14px; }
.mxr-otp__boxes input {
  width: 52px; height: 62px; padding: 0; text-align: center;
  border: 1px solid var(--mxv-gold); border-radius: 14px; background: var(--mxv-soft);
  font-family: var(--font-heading-family); font-size: 28px; color: var(--mxv-text);
}
.mxr-otp__boxes input:focus { outline: none; background: #fff; border-color: var(--mxv-accent); box-shadow: 0 0 0 3px rgba(166, 61, 91, .15); }
.mxr-otp__timer { margin: 0 0 18px; font-size: 14px; color: var(--mxv-muted); }
.mxr-otp__timer strong { color: var(--mxv-text); font-variant-numeric: tabular-nums; }
.mxr-otp__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mxr-done { text-align: center; }
.mxr-done .mxr-otp__icon { background: #EEF7EF; color: #1E5B2A; }

/* list */
.mxr__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 32px; }
.mxr__more { display: flex; justify-content: center; margin-top: 24px; }

/* lightbox */
.mxv-lightbox { width: min(92vw, 900px); max-height: 92vh; padding: 0; border: 0; border-radius: 22px; background: #140a0e; overflow: hidden; }
.mxv-lightbox::backdrop { background: rgba(20, 8, 12, .8); }
.mxv-lightbox img, .mxv-lightbox video { display: block; width: 100%; max-height: 88vh; object-fit: contain; background: #140a0e; }
.mxv-lightbox__close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #3D1422; cursor: pointer; }
.mxv-lightbox__close svg { width: 18px; height: 18px; }

/* ---------- reviews wall ---------- */
.mxw { padding: 12px 0 56px; }
.mxw__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mxw__stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-bottom: 26px; font-size: 15px; color: var(--mxv-muted); }
.mxw__stats strong { font-family: var(--font-heading-family); font-size: 34px; font-weight: 500; color: var(--mxv-text); }
.mxw__stats .mxv-stars svg { width: 20px; height: 20px; }
.mxw-tabs { display: flex; gap: 10px; margin: 0 -24px 26px; padding: 4px 24px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.mxw-tabs::-webkit-scrollbar { display: none; }
.mxw-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border: 1.5px solid var(--mxv-line); border-radius: 999px; background: #fff;
  font: inherit; font-size: 14.5px; color: var(--mxv-text); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.mxw-tab:hover { border-color: var(--mxv-accent); color: var(--mxv-accent); }
.mxw-tab[aria-selected='true'] { background: var(--mxv-accent); border-color: var(--mxv-accent); color: #fff; }
.mxw-tab__count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--mxv-soft); color: var(--mxv-accent); font-size: 12px; text-align: center; }
.mxw-tab[aria-selected='true'] .mxw-tab__count { background: rgba(255, 255, 255, .22); color: #fff; }
.mxw__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.mxw__empty { padding: 36px 24px; border: 1px dashed var(--mxv-line); border-radius: 22px; text-align: center; color: var(--mxv-muted); background: #fff; }
.mxw__empty p { margin: 0 0 14px; }

.mxv-root a:focus-visible, .mxv-root button:focus-visible, .mxv-root input:focus-visible { outline: 2px solid var(--mxv-accent); outline-offset: 3px; }

@media screen and (max-width: 989px) {
  .mxr__top { grid-template-columns: 1fr; }
}
@media screen and (max-width: 749px) {
  .mxr { padding: 44px 0 52px; }
  .mxr__inner, .mxw__inner { padding: 0 16px; }
  .mxr-summary { grid-template-columns: 1fr; padding: 22px; text-align: center; }
  .mxr-trust { padding: 22px 18px; }
  .mxr-trust ol { grid-template-columns: 1fr; }
  .mxr-panel { padding: 22px 16px; border-radius: 20px; }
  .mxr-form__row { grid-template-columns: 1fr; }
  .mxr-rate__stars label { width: 40px; height: 40px; }
  .mxr-otp__boxes { gap: 6px; }
  .mxr-otp__boxes input { width: 44px; height: 54px; font-size: 24px; }
  .mxr-form__actions .mxv-btn { width: 100%; }
  .mxr__list, .mxw__grid { grid-template-columns: 1fr; }
  .mxw-tabs { justify-content: flex-start; margin: 0 -16px 22px; padding: 4px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .mxv-root *, .mxv-card--new { transition: none !important; animation: none !important; }
}
