.a-flash-account-history { --a-flash-history-columns:4; --a-flash-history-rows:5; --a-flash-history-controls:1; min-width:0; }
.a-flash-account .a-flash-account-history > h4 { margin:0 0 14px; font:inherit; font-weight:600; }
.a-flash-history-toolbar, .a-flash-history-toolbar > div { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.a-flash-history-toolbar { justify-content:space-between; margin:0 0 var(--a-flash-account-space-large); }
.a-flash-account .a-flash-history-toolbar [data-history-all], .a-flash-account .a-flash-history-toolbar [data-history-clear] { padding:8px 0; border:0; background:transparent; color:inherit; font:inherit; text-decoration:none; box-shadow:none; cursor:pointer; }
.a-flash-account .a-flash-history-toolbar .button { font:inherit; }
.a-flash-account .a-flash-history-toolbar [data-history-delete] { border:1px solid var(--a-flash-account-border); background:transparent; color:inherit; box-shadow:none; }
.a-flash-account .a-flash-history-toolbar [data-history-delete]:hover { background:var(--a-flash-account-field); color:inherit; }
.a-flash-history-pages { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.a-flash-account .a-flash-history-pages button { border:0; padding:8px 0; background:transparent; color:inherit; font:inherit; text-decoration:none; cursor:pointer; }
.a-flash-account .a-flash-history-pages button:is(:hover,:focus,:active) { background:transparent; color:inherit; text-decoration:none; }
.a-flash-account-history [data-history-message]:empty { display:none; }
.a-flash-history-gallery { display:grid; grid-template-columns:repeat(var(--a-flash-history-columns),minmax(0,1fr)); gap:8px; position:relative; min-width:0; }
.a-flash-account .a-flash-history-item { position:relative; min-width:0; margin:0; background:#202020; }
.a-flash-history-item.is-selected { outline:2px solid var(--a-flash-account-accent,#ff9933); outline-offset:-2px; }
.a-flash-account .a-flash-history-check { position:absolute; z-index:3; top:0; left:0; display:grid; place-items:center; width:44px; height:44px; margin:0; cursor:pointer; }
.a-flash-account .a-flash-history-check input[type="checkbox"] { appearance:auto; width:20px; height:20px; min-width:20px; margin:0; padding:0; accent-color:var(--a-flash-account-accent,#ff9933); cursor:pointer; }
.a-flash-account .a-flash-history-open, .a-flash-account .a-flash-history-open:hover { display:block; width:100%; padding:0; border:0; border-radius:0; background:transparent; cursor:pointer; box-shadow:none; }
.a-flash-history-open img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; user-select:none; -webkit-user-drag:none; }
.a-flash-history-dialog svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; }
.a-flash-history-pages { justify-content:center; margin-top:var(--a-flash-account-space-large); }
.a-flash-account-history button:disabled { opacity:.4; cursor:default; }
.a-flash-history-dialog { position:fixed; inset:0; z-index:2147483000; max-width:none; max-height:none; width:100%; height:100%; height:100dvh; margin:0; padding:64px 56px 24px; border:0; border-radius:0; color:#fff; background:rgba(0,0,0,.88); overflow:hidden; }
.a-flash-history-dialog::backdrop { background:transparent; }
.a-flash-history-dialog[open] { display:grid; place-items:center; }
.a-flash-history-dialog figure { margin:0; display:flex; align-items:center; justify-content:center; width:100%; height:100%; min-width:0; min-height:0; overflow:hidden; }
.a-flash-history-dialog img { display:block; max-width:100%; max-height:calc(100dvh - 88px); width:auto; height:auto; object-fit:contain; border-radius:8px; touch-action:pan-y pinch-zoom; }
.a-flash-history-dialog button, .a-flash-history-dialog a { position:absolute; display:grid; place-items:center; width:44px; height:44px; margin:0; padding:0; border:0; background:transparent; color:#fff; box-shadow:none; font:inherit; cursor:pointer; text-decoration:none; }
.a-flash-history-dialog .a-flash-history-close { top:max(12px,env(safe-area-inset-top)); right:max(14px,env(safe-area-inset-right)); color:#d63638; font:400 44px/1 Arial,sans-serif; }
.a-flash-history-dialog .a-flash-history-lightbox-download { top:max(12px,env(safe-area-inset-top)); left:50%; transform:translateX(-50%); }
.a-flash-history-dialog .a-flash-history-lightbox-previous { left:4px; top:50%; font-size:34px; }
.a-flash-history-dialog .a-flash-history-lightbox-next { right:4px; top:50%; font-size:34px; }
.a-flash-history-dialog [data-image-message] { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); max-width:90%; }
.a-flash-history-dialog [hidden] { display:none !important; }
@media (max-width:1024px) {
  .a-flash-account .a-flash-history-toolbar,
  .a-flash-account .a-flash-history-pages { font-size:14px; line-height:22px; }
  .a-flash-account.woocommerce .a-flash-account-history .a-flash-history-toolbar .button { position:relative; min-height:32px; padding:4px 11px; }
  .a-flash-account .a-flash-history-toolbar .button::after { content:""; position:absolute; inset:-6px 0; }
  .a-flash-account .a-flash-history-toolbar :is([data-history-all], [data-history-clear]),
  .a-flash-account .a-flash-history-pages button { min-height:44px; font-size:14px; line-height:22px; }
}
.a-flash-account-history :is(button,a):focus-visible { outline:2px solid var(--a-flash-account-accent,#ff9933); outline-offset:3px; }
@media(max-width:1024px) { .a-flash-account-history { --a-flash-history-rows:6; } }
@media(max-width:767px) {
  .a-flash-account .a-flash-history-check { top:4px; left:4px; width:24px; height:24px; }
  .a-flash-history-dialog { padding-inline:44px; }
}
