/* Erbe Magiche — Consent Manager UI */
.em-cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: #fffdf8;
    border-top: 3px solid #2c5e2e;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    padding: 18px 20px;
}
.em-cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.em-cookie-text {
    margin: 0;
    flex: 1 1 420px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #3a3a3a;
}
.em-cookie-text a { color: #2c5e2e; }
.em-cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Pulsanti a PARI EVIDENZA: stessa dimensione e peso (Rifiuta come Accetta) */
.em-btn {
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 11px 20px;
    min-width: 130px;
    border-radius: 8px;
    border: 2px solid #2c5e2e;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.15s ease;
}
.em-btn:hover { opacity: 0.85; }
.em-btn-primary { background: #2c5e2e; color: #fff; }
.em-btn-ghost { background: #fff; color: #2c5e2e; }

/* Modal preferenze */
.em-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.em-modal-card {
    background: #fffdf8;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.em-modal-card h2 { margin: 0 0 16px; color: #2c5e2e; }
.em-modal-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #eee;
}
.em-modal-row p { margin: 4px 0 0; font-size: 0.85rem; color: #666; }
.em-modal-row input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 auto; cursor: pointer; }
.em-always { font-size: 0.85rem; color: #999; flex: 0 0 auto; }
.em-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
    flex-wrap: wrap;
}

/* Placeholder "click to load" per embed esterni (Spotify) */
.em-embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    background: rgba(44, 94, 46, 0.06);
    border: 1px dashed #2c5e2e;
    border-radius: 12px;
    padding: 28px 20px;
    color: #3a3a3a;
}
.em-embed-placeholder p { margin: 0; font-size: 0.9rem; }

@media (max-width: 640px) {
    .em-cookie-actions { width: 100%; }
    .em-btn { flex: 1 1 auto; }
}
