/* siimple Kontakt-Widget
   Every rule is prefixed with #scw-widget: themes routinely style bare
   button / a / img / p globally (min-widths, padding, underline borders,
   colored hovers), and an ID in the selector outranks all of that. The
   reset block below neutralises whatever a theme might set first.

   Fonts are inherited from the site. Themes can override via
   --scw-font, --scw-font-bold and --scw-bold-weight on #scw-widget. */

#scw-widget {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99990;
	font-family: var(--scw-font, inherit);
	font-size: 16px;
	line-height: 1.4;
	color: #111;
	text-align: left;
}

#scw-widget.scw-left {
	right: auto;
	left: 20px;
}

#scw-widget *,
#scw-widget *::before,
#scw-widget *::after {
	box-sizing: border-box;
}

#scw-widget,
#scw-widget * {
	letter-spacing: normal;
	word-spacing: normal;
	text-transform: none;
	text-shadow: none;
}

#scw-widget button,
#scw-widget a,
#scw-widget p,
#scw-widget img {
	margin: 0;
	padding: 0;
	min-width: 0;
	max-width: none;
	min-height: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	text-decoration: none;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	position: static;
	z-index: auto;
	float: none;
	transform: none;
	transition: none;
}

#scw-widget button {
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

#scw-widget button::before,
#scw-widget button::after,
#scw-widget a::before,
#scw-widget a::after {
	content: none;
}

#scw-widget .scw-icon {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* closed state */
#scw-widget .scw-toggle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 2px solid #111;
	background: #fff;
	color: #111;
	font-size: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
	transition: transform .15s ease, box-shadow .15s ease;
}

#scw-widget .scw-toggle:hover {
	background: #fff;
	color: #111;
	transform: scale(1.06);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

#scw-widget.is-open .scw-toggle {
	display: none;
}

/* panel */
#scw-widget .scw-panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: min(320px, calc(100vw - 40px));
	background: #fff;
	border: 2px solid #111;
	border-radius: 28px;
	padding: 32px 24px 24px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}

#scw-widget.scw-left .scw-panel {
	right: auto;
	left: 0;
}

#scw-widget:not(.is-open) .scw-panel {
	display: none;
}

#scw-widget .scw-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid #111;
	background: #fff;
	color: #111;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#scw-widget .scw-close:hover {
	background: #111;
	color: #fff;
}

#scw-widget .scw-avatars {
	display: flex;
	flex-wrap: wrap;
	row-gap: 10px;
	margin: 0 40px 18px 0;
}

#scw-widget .scw-avatars img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #fff;
	box-shadow: 0 0 0 1.5px #111;
	margin-left: -12px;
}

#scw-widget .scw-avatars img:first-child {
	margin-left: 0;
}

#scw-widget .scw-intro {
	margin: 0 40px 22px 0;
	font-family: var(--scw-font-bold, inherit);
	font-weight: var(--scw-bold-weight, 700);
	font-size: 17px;
	line-height: 1.4;
	color: #111;
}

/* the close button sits in the top-right corner; only the first block
   needs to keep clear of it */
#scw-widget .scw-avatars + .scw-intro {
	margin-right: 0;
}

/* channel buttons */
#scw-widget .scw-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 16px;
	margin: 0 0 12px;
	border: 2px solid #111;
	border-radius: 16px;
	background: #fff;
	color: #111;
	font-size: 15px;
	line-height: 1.3;
	word-break: break-word;
	transition: background-color .15s ease, color .15s ease;
}

#scw-widget .scw-btn:last-child {
	margin-bottom: 0;
}

#scw-widget .scw-btn-icon {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #fff;
	transition: background-color .15s ease, color .15s ease;
}

#scw-widget .scw-btn-whatsapp .scw-btn-icon {
	background: #25D366;
}

#scw-widget .scw-btn-mail .scw-btn-icon,
#scw-widget .scw-btn-phone .scw-btn-icon {
	background: #6b6b6b;
}

#scw-widget .scw-btn-whatsapp:hover,
#scw-widget .scw-btn-whatsapp:focus-visible {
	background: #25D366;
	color: #fff;
}

#scw-widget .scw-btn-whatsapp:hover .scw-btn-icon,
#scw-widget .scw-btn-whatsapp:focus-visible .scw-btn-icon {
	background: #fff;
	color: #25D366;
}

#scw-widget .scw-btn-mail:hover,
#scw-widget .scw-btn-mail:focus-visible,
#scw-widget .scw-btn-phone:hover,
#scw-widget .scw-btn-phone:focus-visible {
	background: #111;
	color: #fff;
}

#scw-widget .scw-btn-mail:hover .scw-btn-icon,
#scw-widget .scw-btn-mail:focus-visible .scw-btn-icon,
#scw-widget .scw-btn-phone:hover .scw-btn-icon,
#scw-widget .scw-btn-phone:focus-visible .scw-btn-icon {
	background: #fff;
	color: #111;
}

#scw-widget button:focus-visible,
#scw-widget a:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	#scw-widget {
		right: 14px;
		bottom: 14px;
	}

	#scw-widget.scw-left {
		left: 14px;
	}

	#scw-widget .scw-panel {
		bottom: 72px;
		width: calc(100vw - 28px);
		padding: 28px 20px 20px;
	}
}

@media print {
	#scw-widget {
		display: none;
	}
}
