/* BN Downloads – forside */
.bn-dl{--bn-dl-accent:#c62828;--bn-dl-radius:10px;box-sizing:border-box}
.bn-dl *,.bn-dl *::before,.bn-dl *::after{box-sizing:border-box}

/* Knapper */
.bn-dl-btn{display:inline-flex;align-items:center;gap:6px;background:var(--bn-dl-accent);color:#fff!important;border:2px solid var(--bn-dl-accent);border-radius:8px;padding:11px 20px;font-weight:600;font-size:15px;text-decoration:none!important;cursor:pointer;line-height:1.2;transition:filter .15s,transform .15s}
.bn-dl-btn:hover{filter:brightness(1.1);transform:translateY(-1px)}
.bn-dl-btn--ghost{background:transparent;color:var(--bn-dl-accent)!important}
.bn-dl-btn--small{padding:6px 12px;font-size:13px}

/* Mærker */
.bn-dl-badge{display:inline-block;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:700;line-height:1.3;background:#2e7d32;color:#fff}
.bn-dl-badge--login{background:#37474f}
.bn-dl-badge--paid{background:var(--bn-dl-accent)}

/* Liste */
.bn-dl-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:18px}
.bn-dl-search{flex:1 1 240px;padding:10px 14px;border:1px solid #ccc;border-radius:8px;font-size:15px}
.bn-dl-filters{display:flex;flex-wrap:wrap;gap:6px}
.bn-dl-filters button{border:1px solid #ccc;background:#fff;color:#333;border-radius:20px;padding:6px 14px;cursor:pointer;font-size:14px}
.bn-dl-filters button.is-active{background:var(--bn-dl-accent);border-color:var(--bn-dl-accent);color:#fff}
.bn-dl-grid{display:grid;grid-template-columns:repeat(var(--bn-dl-cols,3),minmax(0,1fr));gap:20px}
.bn-dl-card{background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:var(--bn-dl-radius);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
.bn-dl-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.12);transform:translateY(-2px)}
.bn-dl-card__img{position:relative;display:block;aspect-ratio:16/10;background:#eceff1;overflow:hidden}
.bn-dl-card__img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.bn-dl-card:hover .bn-dl-card__img img{transform:scale(1.04)}
.bn-dl-card__img .bn-dl-badge{position:absolute;top:10px;right:10px}
.bn-dl-card__noimg{display:flex;align-items:center;justify-content:center;height:100%;font-size:42px;color:#90a4ae}
.bn-dl-card__body{padding:14px 16px 16px;display:flex;flex-direction:column;flex:1}
.bn-dl-card__body h3{margin:0 0 6px;font-size:18px;line-height:1.3}
.bn-dl-card__body h3 a{color:inherit;text-decoration:none}
.bn-dl-card__body p{margin:0 0 12px;font-size:14px;opacity:.8;flex:1}
.bn-dl-card__foot{display:flex;justify-content:space-between;align-items:center;font-size:13px;opacity:.9}
.bn-dl-empty{padding:20px;text-align:center;opacity:.7}

/* Enkelt download */
.bn-dl-single{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:28px;align-items:start}
.bn-dl-single__text{grid-column:1/-1}
.bn-dl-single__box{background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:var(--bn-dl-radius);padding:20px;position:sticky;top:20px;color:#222}
.bn-dl-single__media:empty{display:none}
.bn-dl-single__media:empty+.bn-dl-single__box{grid-column:1/-1}
.bn-dl-action{margin:14px 0}
.bn-dl-action form{display:inline-block;margin:0 6px 6px 0}
.bn-dl-price{font-size:28px;font-weight:800;margin-bottom:10px}
.bn-dl-note{margin:0 0 12px;font-size:14px;opacity:.85}
.bn-dl-msg{background:#fff8e1;border-left:4px solid #f9a825;padding:10px 12px;border-radius:6px;margin-bottom:12px;font-size:14px}
.bn-dl-msg--ok{background:#e8f5e9;border-color:#2e7d32}
.bn-dl-info{list-style:none;margin:0;padding:0;border-top:1px solid #eee}
.bn-dl-info li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #eee;font-size:14px}
.bn-dl-info span{opacity:.65}

/* Galleri */
.bn-dl-main{display:block;border-radius:var(--bn-dl-radius);overflow:hidden;background:#eceff1;cursor:zoom-in}
.bn-dl-main img{width:100%;height:auto;display:block;max-height:560px;object-fit:contain;margin:0 auto}
.bn-dl-thumbs{display:grid;grid-template-columns:repeat(8,1fr);gap:8px;margin-top:10px}
.bn-dl-thumb{padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;cursor:pointer;background:none;aspect-ratio:1;opacity:.7;transition:opacity .15s,border-color .15s}
.bn-dl-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.bn-dl-thumb:hover,.bn-dl-thumb.is-active{opacity:1;border-color:var(--bn-dl-accent)}

/* Lightbox */
.bn-dl-lb{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:999999;display:flex;align-items:center;justify-content:center}
.bn-dl-lb img{max-width:92vw;max-height:88vh;object-fit:contain;box-shadow:0 10px 40px rgba(0,0,0,.5)}
.bn-dl-lb button{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:50%;width:48px;height:48px;font-size:22px;cursor:pointer}
.bn-dl-lb button:hover{background:rgba(255,255,255,.25)}
.bn-dl-lb__close{top:18px;right:18px}
.bn-dl-lb__prev{left:18px;top:50%;transform:translateY(-50%)}
.bn-dl-lb__next{right:18px;top:50%;transform:translateY(-50%)}
.bn-dl-lb__count{position:absolute;bottom:18px;left:0;right:0;text-align:center;color:#fff;font-size:14px;opacity:.8}

/* Mine køb */
.bn-dl-table{width:100%;border-collapse:collapse}
.bn-dl-table th,.bn-dl-table td{padding:10px;border-bottom:1px solid #eee;text-align:left}

@media (max-width:900px){.bn-dl-grid{grid-template-columns:repeat(min(2,var(--bn-dl-cols,3)),minmax(0,1fr))}.bn-dl-single{grid-template-columns:1fr}.bn-dl-single__box{position:static}}
@media (max-width:560px){.bn-dl-grid{grid-template-columns:1fr}.bn-dl-thumbs{grid-template-columns:repeat(4,1fr)}}
.bn-dl-back{margin:0 0 16px}
.bn-dl-back a{text-decoration:none;font-weight:600}
