.msr{--msr-accent:#de6a00;--msr-accent-dark:#c25c00;--msr-star:#f5a623;text-align:center;margin:12px 0}
.msr *{box-sizing:border-box}
.msr-dlg{width:min(94vw,460px);max-height:92vh;max-height:92dvh;padding:0;border:0;border-radius:18px;background:#fff;color:#14282a;overflow:auto;text-align:left}
.msr-dlg::backdrop{background:rgba(10,25,26,.6)}
body:has(.msr-dlg[open]){overflow:hidden}
.msr-dlg :is(h2,p,fieldset,legend,label,input,textarea){margin:0}
.msr-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 10px 10px 20px;border-bottom:1px solid #eee3d8;position:sticky;top:0;background:#fff;z-index:1}
.msr-head h2{font-size:1.15rem;line-height:1.3}
.msr-dlg button{font:inherit}
.msr-x{border:0;background:none;font-size:30px;line-height:1;min-width:44px;min-height:44px;cursor:pointer;color:inherit}
.msr-dlg :focus-visible,.msr-open:focus-visible{outline:3px solid var(--msr-accent);outline-offset:2px}
.msr-form{display:grid;gap:16px;padding:18px 20px 22px}
.msr-stars{border:0;padding:0;min-width:0}
.msr-stars legend{padding:0;margin-bottom:6px;font-weight:600}
.msr-starrow{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:2px}
.msr-starrow input{position:absolute;opacity:0;width:1px;height:1px}
.msr-starrow label{font-size:40px;line-height:1;padding:2px 4px;color:#d9d2ca;cursor:pointer}
.msr-starrow input:checked~label,.msr-starrow label:hover,.msr-starrow label:hover~label{color:var(--msr-star)}
.msr-starrow input:focus-visible+label{outline:3px solid var(--msr-accent);border-radius:6px}
.msr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.msr-field{display:grid;gap:6px;font-weight:600}
.msr-field input,.msr-field textarea{font:inherit;font-size:16px;font-weight:400;width:100%;padding:11px 12px;border:1px solid #d9cfc4;border-radius:10px;background:#fff;color:inherit}
.msr-field textarea{min-height:110px;resize:vertical}
.msr-hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.msr-status{min-height:1.3em;font-size:14px}
.msr-status.is-ok{color:#1d6b3a}.msr-status.is-err{color:#b3261e}
@media(max-width:480px){.msr-dlg{width:100vw;max-width:100vw;margin-bottom:0;border-radius:18px 18px 0 0}.msr-form{padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}}

/* Buttons match the shop's "Add to cart" style: orange, pill, uppercase */
.msr .msr-open,.msr .msr-submit,.msr .msr-open2,.msr .msr-more{font-family:inherit!important;font-size:13px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.03em;line-height:1.2!important;color:#fff!important;background:var(--msr-accent)!important;border:0!important;border-radius:999px!important;padding:10px 20px!important;min-height:42px;box-shadow:none!important;cursor:pointer;transition:background .15s}
.msr .msr-open:hover,.msr .msr-submit:hover,.msr .msr-open2:hover,.msr .msr-more:hover{background:var(--msr-accent-dark)!important}
.msr .msr-submit{width:100%}
.msr .msr-submit[disabled]{opacity:.6;cursor:wait}
/* Compact pill inside the ticker box */
.msr.msr--inline{margin:0 0 0 12px!important;flex:0 0 auto;align-self:center;white-space:nowrap}
.msr .msr-submit{font-size:15px!important;padding:14px 24px!important;min-height:50px}

/* ---------- all-reviews popup ---------- */
.msr-clickable{cursor:pointer}
.msr-all{width:min(94vw,640px);display:none;flex-direction:column;overflow:hidden}
.msr-all[open]{display:flex}
.msr-all .msr-body{flex:1 1 auto;overflow:auto;padding:16px 20px;-webkit-overflow-scrolling:touch}
.msr-all .msr-foot{flex:0 0 auto;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid #eee3d8;background:#fff;text-align:center}
.msr-summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding-bottom:14px;margin-bottom:6px;border-bottom:1px solid #eee3d8}
.msr-summary:empty{display:none}
.msr-avg{font-size:2rem;font-weight:700;line-height:1}
.msr-count{color:#5b6b6c;font-size:14px}
.msr-rate{color:var(--msr-star);letter-spacing:2px;font-size:18px;line-height:1}
.msr-list{list-style:none;margin:0;padding:0}
.msr-item{padding:14px 0;border-bottom:1px solid #f1e8de}
.msr-item:last-child{border-bottom:0}
.msr-item-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:4px}
.msr-date{margin-left:auto;color:#6b7a7b;font-size:13px}
.msr-badge{font-size:12px;color:#1d6b3a;background:#e6f4ea;border-radius:999px;padding:1px 8px}
.msr-text{margin:6px 0 0!important;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.msr-prod{display:inline-block;margin-top:6px;font-size:13px;color:var(--msr-accent-dark)}
.msr-allstatus{min-height:1.3em;font-size:14px;color:#5b6b6c;text-align:center}
.msr .msr-more[hidden]{display:none!important}
.msr .msr-more{display:block;margin:12px auto 4px}
/* "Read all customer reviews": invisible until keyboard-focused, so it adds no clutter */
.msr .msr-readall:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.msr .msr-readall{font:inherit;font-size:13px;background:#fff;color:var(--msr-accent-dark);border:2px solid var(--msr-accent);border-radius:999px;padding:6px 14px;margin-left:8px;cursor:pointer}
@media(max-width:480px){.msr-all{height:92dvh}}

/* ---------- compact sizing ---------- */
.msr .msr-dlg{font-size:15px;line-height:1.4}
.msr .msr-dlg .msr-head{padding:4px 4px 4px 16px}
.msr .msr-dlg .msr-head h2{font-size:1.05rem!important;line-height:1.3!important;margin:0!important}
.msr .msr-x{font-size:26px;min-width:40px;min-height:40px}
.msr .msr-form{gap:12px;padding:14px 16px 16px}
.msr .msr-stars legend{font-size:14px}
.msr .msr-starrow label{font-size:30px;padding:1px 3px}
.msr .msr-field{font-size:14px;gap:4px}
.msr .msr-field input,.msr .msr-field textarea{font-size:15px;padding:8px 10px}
.msr .msr-field textarea{min-height:80px}
.msr .msr-submit{font-size:13px!important;padding:11px 20px!important;min-height:44px}
.msr .msr-all .msr-body{padding:12px 16px}
.msr .msr-all .msr-foot{padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px))}
@media(min-width:481px){
  .msr .msr-dlg:not(.msr-all){width:min(92vw,400px)}
  .msr .msr-all{width:min(94vw,560px)}
}

/* ---------- slimmer review panel: home page, desktop/laptop browsers only ---------- */
/* Tune the size with --msr-host-zoom (1 = original size, .85 = default, .8 = smaller). */
@media(min-width:700px){
  .home .msr-host{padding-top:8px!important;padding-bottom:8px!important;min-height:0!important;zoom:var(--msr-host-zoom,.85)}
}
