/* ---------------------------------------------------------------------------
   OneClick WP Hello — Agent Selection Popup Styles
   Version: 1.0.0
   --------------------------------------------------------------------------- */

/* Popup container — hidden by default */
.ocwahello-agents-popup {
	position: fixed;
	bottom: 90px;
	width: 280px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	z-index: 9999998;
	overflow: hidden;
	opacity: 0;
	transform: translateY(12px) scale(0.97);
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.ocwahello-agents-popup.ocwahello-popup--left  { left: 20px; }
.ocwahello-agents-popup.ocwahello-popup--right { right: 20px; }

/* Open state */
.ocwahello-agents-popup.is-open {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

/* Popup header */
.ocwahello-popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #25d366;
	color: #ffffff;
	padding: 12px 16px;
	font-weight: 600;
	font-size: 14px;
}

/* Close button */
.ocwahello-popup-close {
	-webkit-appearance: none;
	appearance: none;
	background: none;
	border: none;
	box-shadow: none;
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 4px;
	margin: 0;
	opacity: 0.85;
	transition: opacity 0.15s;
	border-radius: 4px;
}
.ocwahello-popup-close:hover,
.ocwahello-popup-close:focus {
	opacity: 1;
	outline: 2px solid rgba(255,255,255,0.6);
	outline-offset: 2px;
	background: transparent!important;
}
.ocwahello-popup-close:focus:not(:focus-visible) {
	outline: none;
}

/* Agent list */
.ocwahello-agents-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Agent item */
.ocwahello-agent-item {
	border-bottom: 1px solid #f0f0f0;
}
.ocwahello-agent-item:last-child {
	border-bottom: none;
}

/* Agent link */
.ocwahello-agent-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	text-decoration: none;
	color: #1a1a1a;
	transition: background 0.15s;
}
.ocwahello-agent-link:hover,
.ocwahello-agent-link:focus {
	background: #f7fdf9;
	outline: none;
}
.ocwahello-agent-link:focus-visible {
	outline: 2px solid #25d366;
	outline-offset: -2px;
}

/* Agent avatar */
.ocwahello-agent-avatar {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #25d366;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
}

.ocwahello-agent-avatar-icon svg {
	width: 22px !important;
	height: 22px !important;
	fill: #ffffff !important;
}

/* Agent info */
.ocwahello-agent-info {
	flex: 1;
	min-width: 0;
}
.ocwahello-agent-name {
	display: block;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ocwahello-agent-role {
	display: block;
	font-size: 12px;
	color: #666666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 2px;
}

/* Arrow chevron */
.ocwahello-agent-arrow {
	flex-shrink: 0;
	color: #25d366;
	font-size: 20px;
	font-weight: bold;
}

/* Trigger button — override floating_button to use <button> element */
button.floating_button.ocwahello-agents-trigger {
	cursor: pointer;
	border: none;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

/* Mobile adjustments */
@media only screen and (max-width: 768px) {
	.ocwahello-agents-popup {
		width: calc(100vw - 40px);
		bottom: 80px;
	}
	.ocwahello-agents-popup.ocwahello-popup--left  { left: 10px; }
	.ocwahello-agents-popup.ocwahello-popup--right { right: 10px; }
}

/* ---------------------------------------------------------------------------
   Popup style: Minimal
   Borderless card — no coloured header, neutral tones, hairline dividers.
   Distinct from Classic: smaller label, grey avatars, near-invisible shadow.
   --------------------------------------------------------------------------- */

.ocwahello-popup--style-minimal {
	border: 1px solid #e8e8e8;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
	border-radius: 8px;
}
.ocwahello-popup--style-minimal .ocwahello-popup-header {
	background: #f9f9f9 !important;
	color: #555555 !important;
	border-bottom: 1px solid #eeeeee;
	padding: 9px 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.ocwahello-popup--style-minimal .ocwahello-popup-close {
	color: #aaaaaa;
	font-size: 18px;
}
.ocwahello-popup--style-minimal .ocwahello-popup-close:hover,
.ocwahello-popup--style-minimal .ocwahello-popup-close:focus {
	color: #555555;
	outline-color: rgba(0, 0, 0, 0.15);
}
.ocwahello-popup--style-minimal .ocwahello-agent-item {
	border-bottom-color: #f3f3f3;
}
.ocwahello-popup--style-minimal .ocwahello-agent-link:hover,
.ocwahello-popup--style-minimal .ocwahello-agent-link:focus {
	background: #fafafa;
}
.ocwahello-popup--style-minimal .ocwahello-agent-avatar {
	background: #eeeeee !important;
}
.ocwahello-popup--style-minimal .ocwahello-agent-avatar-icon svg {
	fill: #aaaaaa !important;
}
.ocwahello-popup--style-minimal .ocwahello-agent-name {
	color: #1a1a1a;
}
.ocwahello-popup--style-minimal .ocwahello-agent-arrow {
	color: #cccccc;
	font-size: 18px;
}

/* ---------------------------------------------------------------------------
   Popup style: Dark
   Dark background with green accents.
   --------------------------------------------------------------------------- */

.ocwahello-popup--style-dark {
	background: #1e1e2e;
}
.ocwahello-popup--style-dark .ocwahello-popup-header {
	background: #16213e;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ocwahello-popup--style-dark .ocwahello-agent-item {
	border-bottom-color: rgba(255,255,255,0.08);
}
.ocwahello-popup--style-dark .ocwahello-agent-link {
	color: #e8e8e8;
}
.ocwahello-popup--style-dark .ocwahello-agent-link:hover,
.ocwahello-popup--style-dark .ocwahello-agent-link:focus {
	background: rgba(255,255,255,0.06);
}
.ocwahello-popup--style-dark .ocwahello-agent-link:focus-visible {
	outline-color: #25d366;
}
.ocwahello-popup--style-dark .ocwahello-agent-role {
	color: #888888;
}
.ocwahello-popup--style-dark .ocwahello-agent-arrow {
	color: #25d366;
}
