/* ── Avísame plugin styles ── */

body.avisame-no-scroll { overflow: hidden; }

/* Botón disparador */
.avisame-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #f5b800;
    color: #222;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.avisame-btn:hover { background: #e0a900; }

/* Overlay */
.avisame-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.6);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.avisame-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.avisame-modal {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 28px 28px;
    animation: avisame-in 0.25s ease;
}
@keyframes avisame-in {
    from { transform: translateY(-18px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* Cerrar */
.avisame-close {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #777;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.avisame-close:hover { color: #222; background: #f0f0f0; }

/* Producto */
.avisame-product {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}
#avisame-img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
#avisame-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}

/* Intro */
.avisame-intro {
    font-size: 14px;
    color: #555;
    margin: 0 0 20px;
}

/* Form */
#avisame-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
#avisame-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}
#avisame-form input[type="email"]:focus {
    outline: none;
    border-color: #4ab200;
    box-shadow: 0 0 0 3px rgba(74,178,0,0.15);
}

/* Privacidad */
.avisame-privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
}
.avisame-privacy input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px; height: 16px;
    cursor: pointer;
    accent-color: #4ab200;
}
.avisame-privacy label {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #444;
    cursor: pointer;
    margin: 0 !important;
}
.avisame-privacy label a { color: #4ab200; text-decoration: underline; }

/* Mensaje */
.avisame-message {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.avisame-message:empty { display: none; }
.avisame-message.success { background: #e8f7e0; color: #2a7a00; border: 1px solid #b3e690; }
.avisame-message.error   { background: #fff0f0; color: #c00;    border: 1px solid #ffb3b3; }

/* Submit */
.avisame-submit {
    width: 100%;
    padding: 12px;
    background: #4ab200;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.avisame-submit:hover:not(:disabled) { background: #3a9200; }
.avisame-submit:disabled { background: #aaa; cursor: default; }

/* ── Mobile: sheet desde abajo ── */
@media (max-width: 480px) {
    .avisame-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .avisame-modal {
        border-radius: 14px 14px 0 0;
        max-height: 95vh;
        padding: 24px 18px 20px;
    }
    @keyframes avisame-in {
        from { transform: translateY(30px); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }
    #avisame-img  { width: 56px; height: 56px; }
    #avisame-title { font-size: 14px; }
}
