/* Atlantis Contact Bar. Colors follow the surrounding text: set `color` on the
   shortcode element (or any ancestor) and the icons, phone and label take it. */

.atlcb {
	--atlcb-icon-size: 22px;
	--atlcb-gap: 24px;
	--atlcb-online: #22c55e;
	--atlcb-offline: #ef4444;
	--atlcb-idle: #9e9e9e;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px var(--atlcb-gap);
	line-height: 1.2;
}

.atlcb a {
	color: inherit;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.atlcb a:hover,
.atlcb a:focus-visible {
	opacity: 0.7;
}

/* Status */

.atlcb__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.atlcb__dot {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--atlcb-idle);
}

.atlcb__status.is-online .atlcb__dot {
	background: var(--atlcb-online);
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.atlcb__status.is-offline .atlcb__dot {
	background: var(--atlcb-offline);
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Phone */

.atlcb__phone {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
}

/* Messengers */

.atlcb__messengers {
	display: inline-flex;
	align-items: center;
	gap: 16px;
}

.atlcb__messenger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.atlcb__icon {
	display: block;
	flex: none;
	width: var(--atlcb-icon-size);
	height: var(--atlcb-icon-size);
}

/* Stacked layout for menus: one part per line, with the status note and
   messenger names. */

.atlcb--stack {
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.atlcb--stack .atlcb__status {
	display: grid;
	grid-template-columns: 8px auto;
	align-items: center;
	gap: 4px 8px;
	white-space: normal;
}

.atlcb__note {
	grid-column: 2;
	font-size: 13px;
	font-weight: 400;
	opacity: 0.75;
}

.atlcb--stack .atlcb__messengers {
	gap: 24px;
}

.atlcb__messenger-name {
	font-size: 15px;
	font-weight: 500;
}

/* Status inside the RetailCRM chat tooltip. The widget styles its own divs,
   hence the explicit display and sizes. */

.consultant-tooltip__text .atlcb-tip {
	display: block !important;
	margin-bottom: 8px;
}

.consultant-tooltip__text .atlcb-tip__row {
	display: flex !important;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.consultant-tooltip__text .atlcb-tip__dot {
	display: block !important;
	flex: 0 0 8px;
	width: 8px !important;
	height: 8px !important;
	border-radius: 50%;
	background: #9e9e9e;
}

.atlcb-tip.is-online .atlcb-tip__dot {
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.atlcb-tip.is-offline .atlcb-tip__dot {
	background: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.consultant-tooltip__text .atlcb-tip__note {
	display: block !important;
	padding-left: 16px;
	margin-top: 2px;
	font-size: 12px;
	line-height: 1.35;
	color: #555;
}
