
/* Stili isolati: non cambiano lo Shop o il tema Astra. */
#btbf2026-overlay[hidden] { display: none !important; }
#btbf2026-overlay.btbf2026-overlay {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .2s ease-out;
}
#btbf2026-overlay.btbf2026-visible { opacity: 1; }
#btbf2026-overlay *, #btbf2026-overlay *::before, #btbf2026-overlay *::after { box-sizing: border-box; }
#btbf2026-overlay .btbf2026-dialog {
    position: relative;
    width: min(87vw, 480px);
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 16px;
    background: #100506;
    box-shadow: 0 20px 75px rgba(0,0,0,.65), 0 0 0 2px rgba(255,255,255,.85);
}
#btbf2026-overlay .btbf2026-link { display: block; border-radius: 15px; overflow: hidden; line-height: 0; outline-offset: 5px; }
#btbf2026-overlay .btbf2026-image {
    display: block;
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
}
#btbf2026-overlay .btbf2026-close {
    appearance: none;
    position: absolute;
    top: -15px;
    right: -15px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #111;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-family: Arial, sans-serif;
    font-size: 35px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,.32);
}
#btbf2026-overlay .btbf2026-close:hover,
#btbf2026-overlay .btbf2026-close:focus-visible { color: #a90000; outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 540px) {
  #btbf2026-overlay.btbf2026-overlay { padding: 14px; }
  #btbf2026-overlay .btbf2026-dialog { width: min(88vw, 425px); }
  #btbf2026-overlay .btbf2026-close { top: -12px; right: -12px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  #btbf2026-overlay.btbf2026-overlay { transition: none; }
}
