/* Floating contact widget (replaces the plain WhatsApp pill). Uses the theme tokens. */

.wa-float { display: none !important; }

.cw { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 95; font-family: var(--font); }

.cw__toggle { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: var(--accent); font: 500 14px/1 var(--font); color: #fff; cursor: pointer; box-shadow: 0 12px 26px -10px rgba(20, 110, 245, .65); transition: background .2s var(--ease), transform .2s var(--ease); }
.cw__toggle:hover { background: var(--accent-600); }
.cw__toggle:active { transform: scale(.97); }
.cw__toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cw__toggle svg { flex: none; }
.cw__toggle .cw__ic-close, .cw__toggle .cw__lb-close { display: none; }
.cw.is-open .cw__toggle { background: var(--black); box-shadow: 0 12px 26px -10px rgba(15, 17, 21, .55); }
.cw.is-open .cw__ic-open, .cw.is-open .cw__lb-open { display: none; }
.cw.is-open .cw__ic-close, .cw.is-open .cw__lb-close { display: inline-flex; }

.cw__panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(330px, calc(100vw - 36px)); border-radius: var(--r-card); background: #fff; box-shadow: 0 0 0 1px var(--border), 0 28px 60px -24px rgba(15, 17, 21, .4); overflow: hidden; transform-origin: bottom right; animation: cw-in .22s var(--ease); }
.cw__panel[hidden] { display: none; }
@keyframes cw-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.cw__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--black); color: #fff; }
.cw__head img { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.cw__head strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.2; }
.cw__head span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .7); }

.cw__list { margin: 0; padding: 8px; list-style: none; }
.cw__list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-panel); color: var(--ink); text-decoration: none; transition: background .15s var(--ease); }
.cw__list a:hover, .cw__list a:focus-visible { background: var(--tint); outline: 0; }
.cw__tile { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--r-panel); background: var(--tint); color: var(--accent); }
.cw__list a:hover .cw__tile, .cw__list a:focus-visible .cw__tile { background: #fff; }
.cw__text { display: grid; gap: 2px; min-width: 0; margin-right: auto; }
.cw__text strong { font-size: 15px; font-weight: 500; line-height: 1.25; }
.cw__text small { font-size: 13px; line-height: 1.3; color: var(--soft); }
.cw__go { flex: none; color: var(--soft); }
.cw__list a:hover .cw__go { color: var(--accent); }

@media (max-width: 640px) {
	.cw__toggle { width: 48px; height: 48px; padding: 0; justify-content: center; }
	.cw__toggle .cw__lb-open, .cw.is-open .cw__toggle .cw__lb-close { display: none; }
}

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