/* CDB Marketing Popup — mkt-popup.css */
#cdb-mkt-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99990;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#cdb-mkt-overlay.cdb-mkt-visible {
    display: flex;
}
#cdb-mkt-popup {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
#cdb-mkt-header {
    background: #e6765f;
    padding: 18px 16px 14px;
    text-align: center;
    position: relative;
}
#cdb-mkt-close {
    position: absolute;
    top: 10px; right: 12px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
#cdb-mkt-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}
#cdb-mkt-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    margin: 0;
}
#cdb-mkt-body {
    padding: 16px;
}
#cdb-mkt-body p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px;
    text-align: center;
}
#cdb-mkt-benefits {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}
#cdb-mkt-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #333;
    padding: 5px 0;
    border-bottom: 0.5px solid #eee;
}
#cdb-mkt-benefits li:last-child { border-bottom: none; }
#cdb-mkt-benefits li .cdb-mkt-ico {
    font-size: 14px;
    color: #e6765f;
    flex-shrink: 0;
}
#cdb-mkt-unsub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: #888;
    margin-bottom: 14px;
}
#cdb-mkt-unsub .cdb-mkt-check { font-size: 13px; color: #43a047; }
#cdb-mkt-btn-yes {
    display: block;
    width: 100%;
    padding: 12px;
    background: #e6765f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    text-align: center;
}
#cdb-mkt-btn-yes:hover { background: #d4604a; }
#cdb-mkt-btn-no {
    display: block;
    width: 100%;
    padding: 10px;
    background: #fff;
    color: #888;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 10px;
    text-align: center;
}
#cdb-mkt-btn-no:hover { background: #f9f9f9; }
#cdb-mkt-consent {
    font-size: 10px;
    color: #aaa;
    text-align: center;
    line-height: 1.5;
    padding: 0 4px;
}
#cdb-mkt-consent a { color: #aaa; text-decoration: underline; }

/* Stato successo */
#cdb-mkt-success {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px;
    text-align: center;
    background: #fff;
}
#cdb-mkt-success-icon {
    width: 56px; height: 56px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #43a047;
    margin-bottom: 14px;
}
#cdb-mkt-success h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px;
}
#cdb-mkt-success p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 400px) {
    #cdb-mkt-popup { border-radius: 12px; }
    #cdb-mkt-title { font-size: 14px; }
    #cdb-mkt-body p { font-size: 12px; }
}

/* ============================================================ */
/* Popup newsletter anonimo — stili aggiuntivi                  */
/* ============================================================ */
#cdb-anon-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99990;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#cdb-anon-overlay.cdb-mkt-visible { display: flex; }
#cdb-anon-popup {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
#cdb-anon-header {
    background: #e6765f;
    padding: 18px 16px 14px;
    text-align: center;
    position: relative;
}
#cdb-anon-close {
    position: absolute;
    top: 10px; right: 12px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none; color: #fff;
    font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
#cdb-anon-icon {
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
}
#cdb-anon-title {
    font-size: 15px; font-weight: 600;
    color: #fff; line-height: 1.35; margin: 0;
}
#cdb-anon-body { padding: 16px; }
#cdb-anon-body > p {
    font-size: 13px; color: #555;
    line-height: 1.6; margin: 0 0 14px;
    text-align: center;
}
.cdb-anon-field { margin-bottom: 10px; }
.cdb-anon-field input {
    width: 100%; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 8px;
    font-size: 13px; color: #333;
    box-sizing: border-box;
    outline: none;
}
.cdb-anon-field input:focus { border-color: #e6765f; }
#cdb-anon-error {
    display: none;
    font-size: 11px; color: #c0392b;
    margin-bottom: 8px; text-align: center;
}
#cdb-anon-unsub {
    display: flex; align-items: center;
    justify-content: center; gap: 5px;
    font-size: 11px; color: #888;
    margin-bottom: 12px;
}
#cdb-anon-btn-yes {
    display: block; width: 100%;
    padding: 12px; background: #e6765f;
    color: #fff; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; margin-bottom: 8px;
}
#cdb-anon-btn-yes:hover { background: #d4604a; }
#cdb-anon-btn-yes:disabled { opacity: 0.6; cursor: not-allowed; }
#cdb-anon-btn-no {
    display: block; width: 100%;
    padding: 10px; background: #fff;
    color: #888; border: 1px solid #ccc;
    border-radius: 8px; font-size: 12px;
    cursor: pointer; margin-bottom: 10px;
}
#cdb-anon-consent {
    font-size: 10px; color: #aaa;
    text-align: center; line-height: 1.5; padding: 0 4px;
}
#cdb-anon-consent a { color: #aaa; text-decoration: underline; }
#cdb-anon-success {
    display: none; flex-direction: column;
    align-items: center; padding: 32px 20px;
    text-align: center; background: #fff;
}
#cdb-anon-success-icon {
    width: 56px; height: 56px;
    background: #e8f5e9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #43a047; margin-bottom: 14px;
}
#cdb-anon-success h3 {
    font-size: 16px; font-weight: 600;
    color: #222; margin: 0 0 8px;
}
#cdb-anon-success p {
    font-size: 13px; color: #555; line-height: 1.6; margin: 0;
}
