/* Private purchase library; uses the store's existing dark/light tokens. */
.ofm-purchases{overflow-wrap:anywhere}
.ofm-purchases .ofm-beat-store__hero h1{font-size:clamp(2.5rem,5vw,4.5rem)}
.ofm-purchases .ofm-beat-store__library-link{min-height:44px}
.ofm-purchases__filters{display:flex;flex-wrap:wrap;align-items:end;gap:16px;margin:0 0 24px;padding:24px;border:1px solid var(--ofm-beat-line);border-radius:18px;background:var(--ofm-beat-surface)}
.ofm-purchases__filters>div{display:grid;gap:8px;min-width:0}
.ofm-purchases__search{flex:1 1 300px}
.ofm-purchases__filters label{color:var(--ofm-beat-muted);font-size:.85rem;font-weight:750}
.ofm-purchases__filters input,.ofm-purchases__filters select{width:100%;min-height:46px;margin:0;padding:10px 12px;border:1px solid var(--ofm-beat-line);border-radius:10px;background:var(--ofm-beat-bg);color:var(--ofm-beat-ink);font:inherit;font-size:1rem;color-scheme:dark}
.ofm-purchases__filters input::placeholder{color:var(--ofm-beat-muted);opacity:1}
.ofm-purchases__filters button,.ofm-purchases__actions button,.ofm-purchases__actions a,.ofm-purchases__pagination a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:10px 16px;border:1px solid var(--ofm-beat-line);border-radius:10px;background:var(--ofm-beat-surface-raised);color:var(--ofm-beat-ink);font:inherit;font-size:.86rem;font-weight:750;line-height:1.3;text-align:center;text-decoration:none;cursor:pointer}
.ofm-purchases__filters button{min-height:46px;border-color:var(--ofm-beat-accent);background:var(--ofm-beat-accent);color:#1c1604}
.ofm-purchases__link{display:inline-flex;align-items:center;min-height:44px;color:var(--ofm-beat-ink);font-size:.9rem;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.ofm-purchases__results{margin:0 0 16px;color:var(--ofm-beat-muted);font-size:.9rem}
.ofm-purchases__list{display:grid;gap:16px}
.ofm-purchases__card{min-width:0;padding:24px;border:1px solid var(--ofm-beat-line);border-radius:18px;background:var(--ofm-beat-surface)}
.ofm-purchases__card-heading{display:flex;align-items:start;justify-content:space-between;gap:20px}
.ofm-purchases__card-heading>div{min-width:0}
.ofm-purchases__card h2{font-size:clamp(1.3rem,2.3vw,1.75rem);line-height:1.2;letter-spacing:-.025em}
.ofm-purchases__reference{margin:0 0 10px;color:var(--ofm-beat-muted);font-size:.78rem;line-height:1.5}
.ofm-purchases__producer{margin:8px 0 0;color:var(--ofm-beat-muted);font-size:.95rem}
.ofm-purchases__badge{flex:0 0 auto;max-width:100%;padding:7px 11px;border:1px solid var(--ofm-beat-line);border-radius:999px;color:var(--ofm-beat-muted);font-size:.76rem;font-weight:800;line-height:1.3}
.ofm-purchases__badge.is-paid{border-color:#3f9c6a;background:rgb(63 156 106 / .12);color:#9ce5b9}
.ofm-purchases__badge.is-pending{border-color:var(--ofm-beat-accent);color:var(--ofm-beat-accent)}
.ofm-purchases__meta{display:flex;flex-wrap:wrap;gap:10px 18px;margin:18px 0;color:var(--ofm-beat-muted);font-size:.87rem}
.ofm-purchases__meta strong{color:var(--ofm-beat-ink)}
.ofm-purchases__note{margin:14px 0;color:var(--ofm-beat-muted);font-size:.87rem;line-height:1.6}
.ofm-purchases__actions{display:flex;flex-wrap:wrap;gap:9px}
.ofm-purchases__actions form{max-width:100%;margin:0}
.ofm-purchases__actions button[data-ofm-beat-download]{border-color:var(--ofm-beat-accent);color:var(--ofm-beat-accent)}
.ofm-purchases__actions button:hover,.ofm-purchases__actions a:hover,.ofm-purchases__pagination a:hover{border-color:var(--ofm-beat-accent);background:rgb(244 196 48 / .1)}
.ofm-purchases__terms{margin-top:16px;border-top:1px solid var(--ofm-beat-line);color:var(--ofm-beat-muted);font-size:.85rem;line-height:1.6}
.ofm-purchases__terms summary{width:fit-content;max-width:100%;min-height:44px;padding-top:13px;color:var(--ofm-beat-ink);cursor:pointer;font-weight:700}
.ofm-purchases__terms p{margin:4px 0 0}
.ofm-purchases__pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:18px;margin-top:28px}
.ofm-purchases__pagination span{color:var(--ofm-beat-muted);font-size:.9rem}
.ofm-purchases :is(a,button,input,select,summary):focus-visible{outline:2px solid var(--ofm-beat-accent);outline-offset:4px}
html[data-ofm-color-scheme="light"] .ofm-purchases__badge.is-paid{color:#176136}
html[data-ofm-color-scheme="light"] .ofm-purchases__badge.is-pending,html[data-ofm-color-scheme="light"] .ofm-purchases__actions button[data-ofm-beat-download]{color:var(--ofm-beat-accent-ink)}
html[data-ofm-color-scheme="light"] .ofm-purchases__filters input,html[data-ofm-color-scheme="light"] .ofm-purchases__filters select{color-scheme:light}
@media(max-width:690px){.ofm-purchases__filters,.ofm-purchases__card{padding:18px}.ofm-purchases__filters>div{flex:1 1 100%}.ofm-purchases__card-heading{flex-direction:column;gap:12px}.ofm-purchases__reference span{display:block}.ofm-purchases__filters button{flex:1 1 auto}.ofm-purchases__actions{gap:8px}.ofm-purchases__actions button,.ofm-purchases__actions a{padding-inline:12px}.ofm-purchases__pagination{gap:12px}}
