/* Clion Social Login – pulsanti frontend.
   Variabili sovrascrivibili dal tema: --csl-radius, --csl-height, --csl-gap, --csl-font */
.csl-buttons { --csl-radius: 6px; --csl-height: 44px; --csl-gap: 10px; margin: 0 0 20px; font-family: var(--csl-font, inherit); }
.csl-buttons__list { display: flex; flex-direction: column; gap: var(--csl-gap); }
.csl-buttons--horizontal .csl-buttons__list { flex-direction: row; flex-wrap: wrap; }
.csl-buttons--horizontal .csl-btn { flex: 1 1 200px; }

.csl-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: var(--csl-height); padding: 10px 18px; box-sizing: border-box; width: 100%;
    border: 1px solid #dadce0; border-radius: var(--csl-radius);
    background: #fff; color: #1f1f1f; font-size: 15px; font-weight: 500; line-height: 1.2;
    text-decoration: none !important; cursor: pointer; transition: box-shadow .15s, background-color .15s, border-color .15s;
}
.csl-btn:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.csl-btn:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.csl-btn__icon { display: inline-flex; flex: 0 0 auto; }
.csl-btn__icon svg { width: 20px; height: 20px; display: block; }

/* Forme */
.csl-shape--pill { --csl-radius: 999px; }
.csl-shape--square { --csl-radius: 0; }

/* Colori ufficiali (linee guida Google/Facebook) */
.csl-style--brand .csl-btn--google { background: #fff; color: #1f1f1f; border-color: #747775; }
.csl-style--brand .csl-btn--facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.csl-style--brand .csl-btn--facebook:hover { background: #166fe5; }
.csl-style--brand .csl-btn--facebook .csl-btn__icon path:first-child { fill: #fff; }
.csl-style--brand .csl-btn--facebook .csl-btn__icon path:last-child { fill: #1877f2; }

/* Apple (linee guida: pulsante nero con logo bianco, oppure bianco con logo nero) */
.csl-style--brand .csl-btn--apple { background: #000; color: #fff; border-color: #000; }
.csl-style--brand .csl-btn--apple:hover { background: #1a1a1a; }
.csl-style--light .csl-btn--apple { color: #000; }
.csl-btn--apple .csl-btn__icon svg { width: 18px; height: 18px; margin-top: -2px; }

/* Scuro */
.csl-style--dark .csl-btn { background: #131314; color: #e3e3e3; border-color: #8e918f; }
.csl-style--dark .csl-btn:hover { background: #1f1f20; }

/* Chiaro */
.csl-style--light .csl-btn { background: #fff; color: #1f1f1f; border-color: #dadce0; }

/* Messaggi */
.csl-buttons__error { margin: 0 0 12px; padding: 10px 14px; border-left: 4px solid #d63638; background: #fcf0f1; color: #8a1f22; font-size: 14px; }
.csl-buttons__consent { margin: 10px 0 0; font-size: 12px; opacity: .75; text-align: center; }
.csl-buttons__consent a { color: inherit; text-decoration: underline; }
.csl-buttons__or { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; font-size: 13px; opacity: .7; text-transform: lowercase; }
.csl-buttons__or::before, .csl-buttons__or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }

/* wp-login.php */
.login .csl-context--wp_login { margin-bottom: 16px; }

/* Account collegati */
.csl-linked { margin: 24px 0; }
.csl-linked__list { list-style: none; margin: 0 0 16px; padding: 0; }
.csl-linked__item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.csl-linked__item .csl-btn__icon svg { width: 22px; height: 22px; }
.csl-linked__name { flex: 1; }
.csl-linked__unlink { font-size: 13px; }
