.ambar-bis-wrap {
    margin-top: 0.5rem;
    order:2;
}

/* Botón abrir */
.ambar-bis-open {
    padding: 0.5rem 1rem;
    background: #b11730;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 6px;
}

/* Dialog + backdrop */
.ambar-bis-dialog[open] {
    border: 1px solid #ccc;
    padding: 1.5rem;
    width: 100%;
    max-width: 420px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.ambar-bis-dialog::backdrop {
    background: rgba(0, 0, 0, .45);
}

/* Fallback: overlay global cuando no hay <dialog> nativo */
.ambar-bis-no-dialog::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9998;
}


/* Form */
.ambar-bis-form input[type="email"],.ambar-bis-form select {
    width: 100%;
    padding: 12px 10px;
    margin: 1rem 0;
    border-radius: .3rem;
    border: 1px solid #ddd;
}

.ambar-bis-form label {
    display: block;
    font-size: .9rem;
    margin-bottom: .5rem;
    line-height: 1.5;
}

/* Submit */
.ambar-bis-submit {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    background: #b11730;
    color: #fff;
    border: none;
    border-radius: .3rem;
}

.ambar-bis-submit[disabled] {
    opacity: .8;
}

/* Cancelar como enlace rojo */
.ambar-bis-close {
    color: #b11730;
    text-decoration: underline;
    padding: 0;
    background: transparent;
    border: none;
    margin-left: 2rem;
    cursor: pointer;
}

/* Mensaje */
.ambar-bis-msg {
    margin-top: .5rem;
    font-weight: 600;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top-color: #88218b;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}