/* Octo Sticky Contact v1.1.0 */

/* ---------- Layout "bar": barra fissa in basso, stesso look di My Sticky Elements ---------- */
body.osc-has-bar { padding-bottom: 64px; }
.osc-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999; display: flex; height: 64px; margin: 0; font-family: inherit; box-shadow: 0 -2px 10px rgba(0,0,0,.15); }
.osc-bar__item { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; text-decoration: none; line-height: 1; }
.osc-bar__item:hover, .osc-bar__item:focus-visible { color: #fff; filter: brightness(1.08); outline: none; }
.osc-bar__item--wa    { background: var(--osc-wa, #4cd36a); }
.osc-bar__item--call  { background: var(--osc-call, #3c3e47); }
.osc-bar__item--email { background: #555a66; }
.osc-bar__ico svg { width: 28px; height: 28px; display: block; }
.osc-bar__num { font-size: 12px; letter-spacing: .02em; white-space: nowrap; }
@media (min-width: 768px) {
	.osc-bar { left: auto; right: 24px; bottom: 24px; height: 60px; border-radius: 30px; overflow: hidden; }
	.osc-bar__item { flex: 0 0 auto; flex-direction: row; gap: 10px; padding: 0 22px; }
	.osc-bar__num { font-size: 15px; font-weight: 600; }
}

/* ---------- Layout "bubble" ---------- */
.osc { position: fixed; bottom: var(--osc-bottom, 20px); z-index: 99999; font-family: inherit; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.osc--right { right: 20px; }
.osc--left  { left: 20px; align-items: flex-start; }

.osc__toggle { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--osc-color, #0a7cff); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s ease; }
.osc__toggle:hover, .osc__toggle:focus-visible { transform: scale(1.06); outline: 3px solid rgba(0,0,0,.25); outline-offset: 2px; }
.osc__toggle svg { width: 28px; height: 28px; }
.osc__icon--close { display: none; }
.osc--open .osc__icon--open { display: none; }
.osc--open .osc__icon--close { display: block; }

.osc__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; align-items: inherit; }
.osc__menu[hidden] { display: none; }
.osc__item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: #fff; color: #111; text-decoration: none; font-size: 15px; line-height: 1.2; box-shadow: 0 4px 16px rgba(0,0,0,.18); white-space: nowrap; }
.osc__item:hover, .osc__item:focus-visible { background: #f3f3f3; color: #111; outline: 3px solid rgba(0,0,0,.2); outline-offset: 2px; }
.osc__item svg { width: 22px; height: 22px; flex: 0 0 auto; }
.osc__item--call .osc__ico  { color: var(--osc-color, #0a7cff); }
.osc__item--wa .osc__ico    { color: #25d366; }
.osc__item--email .osc__ico { color: #555; }
.osc__num { font-weight: 700; margin-left: 4px; }

/* single channel: the item itself is the floating button */
.osc--single .osc__item { background: var(--osc-color, #0a7cff); color: #fff; padding: 14px 20px; }
.osc--single .osc__item--wa { background: #25d366; }
.osc--single .osc__item svg { color: #fff; }
.osc--single .osc__item:hover { color: #fff; opacity: .92; }

@media (max-width: 600px) {
	.osc--right { right: 12px; }
	.osc--left  { left: 12px; }
	.osc__label { display: none; }
	.osc__item { padding: 12px 16px; font-size: 16px; }
	.osc--single .osc__label { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
	.osc__toggle { transition: none; }
}

/* no-swap wrapper around the WhatsApp link: no box of its own, so the bar's flex layout is unchanged. */
.osc-noswap { display: contents; }
