:root {
    --bbm-bg: #ffffff;
    --bbm-tx: var(
    --bannerbonos-tx,#0a0a0a);
    --bbm-primary: #3490dc;
}

#bbm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    opacity: 0;
    transition: opacity .2s;
    z-index: 10000;
}

#bbm-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    z-index: 10001;
}

#bbm-modal .bbm-dialog {
    background: var(--bbm-bg);
    color: var(--bbm-tx);
    max-width: 640px;
    width: calc(100% - 32px);
    margin: auto;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,.28);
    padding: 18px;
    position: relative;
}

#bbm-overlay.show {
    display: block;
    opacity: 1;
}

#bbm-modal.show {
    display: grid;
    animation: bbm-fade .15s ease;
}

#bbm-modal .bbm-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
}

#bbm-modal .bbm-close:hover {
    opacity: 1;
}

.bbm-head h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 700
}

.bbm-body {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.bbm-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px
}

.bbm-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600
}

.bbm-actions .btn-win,.bbm-actions .btn-mac {
    background: #e7e7e7;
    color: #000
}

.bbm-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap
}

.bbm-footer .bbm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem
}

.bbm-footer .bbm-accept {
    appearance: none;
    border: 0;
    background: var(--bbm-primary);
    color: #fff;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer
}

.bbm-footer .bbm-accept[disabled] {
    opacity: .6;
    cursor: not-allowed
}

.bbm-msg {
    display: none;
    color: #b00020;
    font-size: .85rem;
    margin-top: 6px
}

.bbm-msg.show {
    display: block
}

@keyframes bbm-fade {
    from {
        transform: translateY(6px);
        opacity: .9
    }

    to {
        transform: none;
        opacity: 1
    }
}

.bbm-card {
    background: var(--bbm-bg);
    color: var(--bbm-tx);
    border-radius: 12px;
    padding: 21px 40px;
    margin: 8px 0;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.bbm-card .bbm-actions {
    justify-content: flex-start
}

@media (max-width: 768px) {
    .bbm-actions a {
        width:100%;
        justify-content: center
    }

    .bbm-footer {
        flex-direction: column;
        align-items: flex-start
    }

    .bbm-footer .bbm-accept {
        width: 100%;
        text-align: center
    }
}


/* --- Bloque "Volver a mostrar el banner" --- */
.bbm-card .bbm-restore {
  margin-top: 8px;
  text-align: center;
}

.bbm-card .bbm-restore-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #555;
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.2s;
}

.bbm-card .bbm-restore-link:hover {
  opacity: 1;
  color: var(--bbm-primary, #3490dc);
  text-decoration: underline;
}
