#expert-review { overflow-anchor: none; }
#expert-review > details { display:block; position:relative; height:auto; isolation:isolate; }
#expert-review > details > summary {
  position:relative; inset:auto; transform:none; margin:0; box-sizing:border-box;
}
#expert-review > details::details-content {
  block-size:auto; height:auto; overflow:visible; transition:none;
}
#expert-review > details:not([open]) > article { display:none; }
#expert-review > details[open] > article {
  display:flow-root; position:relative; inset:auto; transform:none; box-sizing:border-box;
  width:100%; margin:0 auto; padding-block-start:clamp(30px,5vw,60px);
  animation:heevad-review-enter .2s ease-out both;
}
#expert-review > details > article > h2 {
  display:block; position:static; inset:auto; transform:none; float:none; clear:both;
  white-space:normal; overflow-wrap:anywhere; letter-spacing:normal;
  line-height:1.55; margin:0 0 .85em;
}
@keyframes heevad-review-enter { from { opacity:0; } to { opacity:1; } }
#story .hero-media:has(.heevad-product-actions) { padding-right:clamp(53px,6vw,80px); }
.heevad-product-actions {
  position:absolute; right:8px; top:50%; transform:translateY(-50%); z-index:3;
  display:grid; gap:5px; justify-items:center; padding:6px;
  background:#fff; color:#202936; border:1px solid #dce3ec; border-radius:24px;
}
.heevad-product-actions button, .heevad-action-dialog button {
  display:grid; place-items:center; font:inherit; color:inherit; cursor:pointer;
  border:0; background:transparent; border-radius:50%; min-width:40px; min-height:40px;
}
.heevad-product-actions button:hover, .heevad-product-actions button[aria-pressed=true] { color:#8e2843; background:#f7e9ef; }
.heevad-product-actions button:focus-visible,.heevad-action-dialog button:focus-visible { outline:2px solid #304868; }
.heevad-product-actions svg { width:21px; height:21px; stroke:currentColor; stroke-width:1.65; fill:none; }
.heevad-action-dialog {
  direction:rtl; width:min(680px,calc(100% - 28px)); max-height:85vh; padding:24px;
  margin:auto; border:1px solid #dce3ec; border-radius:20px; background:#fff; color:#202936;
  font-family:inherit; overflow:auto;
}
.heevad-action-dialog::backdrop { background:#141c2c99; }
.heevad-action-dialog header { position:static; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.heevad-action-dialog h2 { margin:0; font-size:1.25rem; line-height:1.55; letter-spacing:normal; }
.heevad-action-dialog p { margin:1em 0; }
.heevad-action-dialog input { width:100%; margin-block:10px; padding:8px; font:inherit; }
.heevad-action-dialog [data-action-control] { display:inline-flex; padding:6px 12px; border:1px solid #dce3ec; border-radius:10px; }
.heevad-action-dialog a { color:#334b70; text-decoration:underline; }
.heevad-action-dialog table { width:100%; border-collapse:collapse; font-size:.9rem; }
.heevad-action-dialog th,.heevad-action-dialog td { text-align:start; vertical-align:top; padding:8px; border-bottom:1px solid #dce3ec; overflow-wrap:anywhere; }
.heevad-action-dialog .price-chart { width:100%; height:auto; color:#394e69; background:#edf2f8; border-radius:10px; }
@media (max-width:760px) {
  #story .hero-media:has(.heevad-product-actions) { padding-right:56px; min-height:290px; }
  .heevad-product-actions { right:4px; padding:3px; gap:2px; }
  .heevad-product-actions button { min-width:36px; min-height:36px; }
}
@media (prefers-reduced-motion:reduce) {
  #expert-review > details[open] > article { animation:none; }
}
.heevad-action-status:empty { display:none; }
.heevad-action-status { position:absolute; inset:auto 10px 5px; z-index:4; padding:6px; text-align:center; direction:rtl; color:#202936; background:#fff; border-radius:8px; }

/* Product spec accordions rotate every direct summary span. Keep review text and its icon upright. */
#expert-review > details > summary > .expert-label,
#expert-review > details > summary > .expert-mark {
  transform:none; rotate:none; transition:none; font:inherit;
}
#expert-review > details > summary > .expert-label { line-height:1.55; overflow-wrap:anywhere; }
#expert-review > details > summary > .expert-chevron { transform:rotate(45deg); }
#expert-review > details[open] > summary > .expert-chevron { transform:rotate(225deg); }

/* One-month server-backed price chart */
.heevad-chart-wrap { overflow-x:auto; margin:16px -8px 8px; direction:ltr; }
.heevad-history-svg { display:block; width:100%; min-width:510px; height:auto; background:#fafbfd; border-radius:14px; font-family:inherit; }
.heevad-chart-axis { fill:#586473; font:12px inherit; font-size:12px; }
.heevad-history-svg circle { cursor:pointer; outline:none; }
.heevad-history-svg circle:focus { stroke:#111; stroke-width:3px; }
.heevad-chart-legend { display:flex; flex-wrap:wrap; gap:14px; font-size:.85rem; }
.heevad-chart-legend span { display:inline-flex; align-items:center; gap:6px; }
.heevad-chart-legend i { width:10px; height:10px; border-radius:50%; }
.heevad-action-dialog .heevad-chart-range { color:#647080; font-size:.85rem; }
.heevad-chart-detail { padding:12px; background:#f2f4f7; border-radius:10px; font-size:.9rem; line-height:1.9; }
.heevad-chart-events { padding-inline-start:20px; font-size:.85rem; line-height:2; }
.heevad-chart-badge { display:inline-block; margin-inline-end:6px; padding:1px 7px; border-radius:6px; font-size:.75rem; color:#fff; background:#b45b14; }
.heevad-chart-badge.amazing { background:#b32654; }
.heevad-action-dialog details > summary { cursor:pointer; font-weight:600; padding-block:10px; }

.heevad-action-dialog { box-sizing:border-box; }
