/* Sizes are in px and selectors are doubled up because themes often restyle
   links, or change the root font size. */

.erfcp-icon {
	flex: none;
	display: block;
	width: 20px;
	height: 20px;
}

.erfcp-direct {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.erfcp-direct--inline {
	max-width: 360px;
}

.erfcp-direct a.erfcp-direct-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 48px;
	margin: 0;
	padding: 10px 18px;
	border: 2px solid transparent;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
}

.erfcp-direct a.erfcp-direct-btn:hover {
	filter: brightness(0.92);
	text-decoration: none;
}

.erfcp-direct a.erfcp-direct-btn:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.erfcp-direct a.erfcp-direct-btn--whatsapp-call,
.erfcp-direct a.erfcp-direct-btn--whatsapp-call:hover {
	background: #25d366;
	color: #000;
}

.erfcp-direct a.erfcp-direct-btn--whatsapp,
.erfcp-direct a.erfcp-direct-btn--whatsapp:hover {
	border-color: #25d366;
	background: #111;
	color: #25d366;
}

.erfcp-direct a.erfcp-direct-btn--call,
.erfcp-direct a.erfcp-direct-btn--call:hover {
	border-color: #111;
	background: #fff;
	color: #000;
}

.erfcp-direct[hidden] {
	display: none;
}

.erfcp-widget {
	position: fixed;
	bottom: calc(16px + env(safe-area-inset-bottom));
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.erfcp-widget--right {
	right: 16px;
	align-items: flex-end;
}

.erfcp-widget--left {
	left: 16px;
	align-items: flex-start;
}

.erfcp-widget__menu {
	width: 230px;
	max-width: calc(100vw - 32px);
}

.erfcp-widget button.erfcp-widget__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 60px;
	height: 60px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #25d366;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
	color: #fff;
	cursor: pointer;
}

.erfcp-widget button.erfcp-widget__toggle:hover {
	background: #20bd5a;
	color: #fff;
}

.erfcp-widget button.erfcp-widget__toggle:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.erfcp-widget__toggle .erfcp-icon {
	width: 32px;
	height: 32px;
}

.erfcp-widget__close-icon,
.erfcp-widget__toggle[aria-expanded="true"] .erfcp-widget__open-icon {
	display: none;
}

.erfcp-widget__toggle[aria-expanded="true"] .erfcp-widget__close-icon {
	display: block;
}
