.sws-widget,
.sws-widget * {
	box-sizing: border-box;
}

.sws-widget {
	--sws-bottom: 24px;
	--sws-button-bg: #25d366;
	--sws-button-hover-bg: #20bd5a;
	--sws-button-active-bg: #1eaa51;
	--sws-button-icon: #fff;
	--sws-header-bg: #25d366;
	--sws-header-text: #fff;
	--sws-panel-bg: #fff;
	--sws-panel-border: #e2e8f0;
	--sws-clinic-name: #1e293b;
	--sws-clinic-subtitle: #64748b;
	--sws-clinic-hover-bg: #f1f5f9;
	--sws-clinic-active-bg: #e2e8f0;
	--sws-clinic-icon-bg: #25d366;
	--sws-clinic-icon: #fff;
	--sws-clinic-arrow: #94a3b8;
	--sws-close-bg: #49d980;
	--sws-close-icon: #fff;
	--sws-focus: #155dfc;
	--sws-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--sws-title-size: 17px;
	--sws-title-weight: 700;
	--sws-name-size: 15px;
	--sws-name-weight: 700;
	--sws-subtitle-size: 13px;
	--sws-subtitle-weight: 400;
	--sws-tablet-font-size: 15px;
	--sws-mobile-bar-height: 60px;
	--sws-mobile-font-size: 15px;
	--sws-call-bg: #1e293b;
	--sws-call-hover-bg: #0f172a;
	--sws-call-active-bg: #020617;
	--sws-call-text: #fff;
	--sws-mobile-wa-bg: #25d366;
	--sws-mobile-wa-hover-bg: #20bd5a;
	--sws-mobile-wa-active-bg: #1eaa51;
	--sws-mobile-wa-text: #fff;
	position: fixed;
	bottom: calc(var(--sws-bottom) + env(safe-area-inset-bottom, 0px));
	z-index: 999999;
	font-family: var(--sws-font-family);
	font-style: normal;
	letter-spacing: normal;
	text-transform: none;
}

.sws-widget--right {
	right: max(24px, env(safe-area-inset-right, 0px));
}

.sws-widget--left {
	left: max(24px, env(safe-area-inset-left, 0px));
}

.sws-widget .sws-trigger,
.sws-widget .sws-panel__close,
.sws-widget .sws-mobile-bar__action {
	margin: 0;
	border: 0;
	background-image: none;
	box-shadow: none;
	font-family: inherit;
	font-style: normal;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-indent: 0;
	text-shadow: none;
	text-transform: none;
	-webkit-appearance: none;
	appearance: none;
}

.sws-widget .sws-trigger {
	display: grid;
	width: 62px;
	height: 62px;
	padding: 0;
	place-items: center;
	border-radius: 50%;
	background-color: var(--sws-button-bg);
	color: var(--sws-button-icon);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
	line-height: 1;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .15s ease;
}

.sws-widget .sws-trigger:hover {
	border: 0;
	background-color: var(--sws-button-hover-bg);
	color: var(--sws-button-icon);
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 11px 28px rgba(0, 0, 0, .28);
}

.sws-widget .sws-trigger:active,
.sws-widget .sws-trigger[aria-expanded="true"] {
	border: 0;
	background-color: var(--sws-button-active-bg);
	color: var(--sws-button-icon);
}

.sws-widget .sws-trigger:focus-visible,
.sws-widget .sws-panel__close:focus-visible,
.sws-widget .sws-clinic:focus-visible,
.sws-widget .sws-mobile-bar__action:focus-visible {
	outline: 3px solid var(--sws-focus);
	outline-offset: 3px;
}

.sws-widget .sws-trigger svg {
	display: block;
	width: 34px;
	height: 34px;
	fill: currentColor;
}

.sws-trigger__label,
.sws-mobile-bar {
	display: none;
}

.sws-widget .sws-panel {
	position: absolute;
	bottom: 76px;
	width: min(340px, calc(100vw - 32px));
	overflow: hidden;
	border: 1px solid var(--sws-panel-border);
	border-radius: 16px;
	background: var(--sws-panel-bg);
	color: var(--sws-clinic-name);
	box-shadow: 0 16px 44px rgba(15, 23, 42, .22);
	animation: sws-panel-in .18s ease-out;
}

.sws-widget--right .sws-panel {
	right: 0;
}

.sws-widget--left .sws-panel {
	left: 0;
}

.sws-widget .sws-panel[hidden] {
	display: none;
}

.sws-widget .sws-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding: 14px 14px 14px 18px;
	background: var(--sws-header-bg);
	color: var(--sws-header-text);
}

.sws-widget .sws-panel__title {
	margin: 0;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: var(--sws-title-size);
	font-style: normal;
	font-weight: var(--sws-title-weight);
	letter-spacing: normal;
	line-height: 1.3;
	text-transform: none;
}

.sws-widget .sws-panel__close {
	display: grid;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	margin-left: 10px;
	padding: 0;
	place-items: center;
	border-radius: 50%;
	background-color: var(--sws-close-bg);
	color: var(--sws-close-icon);
	font: 400 25px/1 Arial, sans-serif;
	cursor: pointer;
}

.sws-widget .sws-panel__close:hover,
.sws-widget .sws-panel__close:focus,
.sws-widget .sws-panel__close:active {
	border: 0;
	background-color: var(--sws-close-bg);
	color: var(--sws-close-icon);
}

.sws-widget .sws-panel__options {
	padding: 8px;
}

.sws-widget .sws-panel .sws-clinic,
.sws-widget .sws-panel .sws-clinic:visited {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 68px;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	box-shadow: none;
	color: var(--sws-clinic-name);
	font-family: inherit;
	letter-spacing: normal;
	text-decoration: none;
	text-transform: none;
	transition: background-color .15s ease;
}

.sws-widget .sws-panel .sws-clinic:hover {
	border: 0;
	background: var(--sws-clinic-hover-bg);
	box-shadow: none;
	color: var(--sws-clinic-name);
	text-decoration: none;
}

.sws-widget .sws-panel .sws-clinic:active {
	border: 0;
	background: var(--sws-clinic-active-bg);
	box-shadow: none;
	color: var(--sws-clinic-name);
	text-decoration: none;
}

.sws-widget .sws-clinic__icon {
	display: grid;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: var(--sws-clinic-icon-bg);
	color: var(--sws-clinic-icon);
}

.sws-widget .sws-clinic__icon svg {
	display: block;
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.sws-widget .sws-clinic__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.sws-widget .sws-clinic__content strong {
	color: var(--sws-clinic-name);
	font-family: inherit;
	font-size: var(--sws-name-size);
	font-style: normal;
	font-weight: var(--sws-name-weight);
	letter-spacing: normal;
	line-height: 1.35;
	text-transform: none;
}

.sws-widget .sws-clinic__content small {
	margin-top: 2px;
	color: var(--sws-clinic-subtitle);
	font-family: inherit;
	font-size: var(--sws-subtitle-size);
	font-style: normal;
	font-weight: var(--sws-subtitle-weight);
	letter-spacing: normal;
	line-height: 1.35;
	text-transform: none;
}

.sws-widget .sws-clinic__arrow {
	color: var(--sws-clinic-arrow);
	font-size: 28px;
	line-height: 1;
}

@keyframes sws-panel-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (min-width: 1025px) {
	.sws-widget.sws-hide-desktop {
		display: none;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.sws-widget.sws-hide-tablet {
		display: none;
	}

	.sws-widget .sws-trigger {
		display: flex;
		width: auto;
		min-width: 150px;
		height: 58px;
		gap: 10px;
		padding: 0 22px;
		border-radius: 999px;
		font-size: var(--sws-tablet-font-size);
		font-weight: 700;
		line-height: 1;
	}

	.sws-widget .sws-trigger svg {
		width: 30px;
		height: 30px;
	}

	.sws-widget .sws-trigger__label {
		display: inline;
		color: inherit;
		font: inherit;
		line-height: inherit;
	}
}

@media (max-width: 767px) {
	.sws-widget.sws-hide-mobile {
		display: none;
	}

	.sws-widget,
	.sws-widget.sws-widget--right,
	.sws-widget.sws-widget--left {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
	}

	.sws-widget .sws-trigger {
		display: none;
	}

	.sws-widget .sws-mobile-bar {
		display: flex;
		width: 100%;
		height: calc(var(--sws-mobile-bar-height) + env(safe-area-inset-bottom, 0px));
		padding: 0 0 env(safe-area-inset-bottom, 0px);
		box-shadow: 0 -4px 18px rgba(15, 23, 42, .16);
	}

	.sws-widget .sws-mobile-bar__action,
	.sws-widget .sws-mobile-bar__action:visited {
		display: flex;
		flex: 1 1 50%;
		align-items: center;
		justify-content: center;
		gap: 9px;
		height: var(--sws-mobile-bar-height);
		padding: 0 12px;
		border-radius: 0;
		font-size: var(--sws-mobile-font-size);
		font-weight: 700;
		line-height: 1;
		cursor: pointer;
		transition: background-color .15s ease;
	}

	.sws-widget .sws-mobile-bar__action:only-child {
		flex-basis: 100%;
	}

	.sws-widget .sws-mobile-bar__action svg {
		display: block;
		width: 24px;
		height: 24px;
		fill: currentColor;
	}

	.sws-widget .sws-mobile-bar__call,
	.sws-widget .sws-mobile-bar__call:visited {
		background-color: var(--sws-call-bg);
		color: var(--sws-call-text);
	}

	.sws-widget .sws-mobile-bar__call:hover {
		background-color: var(--sws-call-hover-bg);
		color: var(--sws-call-text);
	}

	.sws-widget .sws-mobile-bar__call:active {
		background-color: var(--sws-call-active-bg);
		color: var(--sws-call-text);
	}

	.sws-widget .sws-mobile-bar__whatsapp {
		background-color: var(--sws-mobile-wa-bg);
		color: var(--sws-mobile-wa-text);
	}

	.sws-widget .sws-mobile-bar__whatsapp:hover {
		background-color: var(--sws-mobile-wa-hover-bg);
		color: var(--sws-mobile-wa-text);
	}

	.sws-widget .sws-mobile-bar__whatsapp:active,
	.sws-widget .sws-mobile-bar__whatsapp[aria-expanded="true"] {
		background-color: var(--sws-mobile-wa-active-bg);
		color: var(--sws-mobile-wa-text);
	}

	.sws-widget .sws-panel,
	.sws-widget--right .sws-panel,
	.sws-widget--left .sws-panel {
		left: 16px;
		right: 16px;
		bottom: calc(var(--sws-mobile-bar-height) + env(safe-area-inset-bottom, 0px) + 12px);
		width: auto;
		max-height: calc(100vh - var(--sws-mobile-bar-height) - 44px);
		overflow-x: hidden;
		overflow-y: auto;
	}
}

/* Prevents persistent hover colors after tapping on touch devices. */
@media (hover: none) {
	.sws-widget .sws-trigger:hover:not(:active):not([aria-expanded="true"]) {
		background-color: var(--sws-button-bg);
		color: var(--sws-button-icon);
		transform: none;
		box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
	}

	.sws-widget .sws-panel .sws-clinic:hover:not(:active) {
		background: transparent;
		color: var(--sws-clinic-name);
	}

	.sws-widget .sws-mobile-bar__call:hover:not(:active) {
		background-color: var(--sws-call-bg);
		color: var(--sws-call-text);
	}

	.sws-widget .sws-mobile-bar__whatsapp:hover:not(:active):not([aria-expanded="true"]) {
		background-color: var(--sws-mobile-wa-bg);
		color: var(--sws-mobile-wa-text);
	}
}

@media (prefers-reduced-motion: reduce) {
	.sws-widget .sws-panel {
		animation: none;
	}

	.sws-widget .sws-trigger,
	.sws-widget .sws-clinic,
	.sws-widget .sws-mobile-bar__action {
		transition: none;
	}
}
