.noura-cqh-actions,
.noura-cqh-actions * {
	box-sizing: border-box;
}

.noura-cqh-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	direction: rtl;
	font-family: inherit;
	overflow: visible;
}

/* Keep the original v1.0.1 geometry and visual treatment. */
.noura-cqh-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 5px 8px;
	border-radius: 13px;
	color: #0b2442 !important;
	text-decoration: none !important;
	overflow: visible;
	outline: none;
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.noura-cqh-action:hover,
.noura-cqh-action:focus-visible {
	transform: translateY(-2px);
	background: rgba(22, 169, 234, .08);
	box-shadow: 0 8px 24px rgba(7, 31, 63, .08);
}

.noura-cqh-icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 11px;
	color: #fff;
	background: var(--noura-cqh-primary, #16a9ea);
	box-shadow: 0 8px 20px rgba(22, 169, 234, .23);
}

.noura-cqh-action--quote .noura-cqh-icon {
	background: var(--noura-cqh-quote, #0d345f);
	box-shadow: 0 8px 20px rgba(13, 52, 95, .22);
}

.noura-cqh-icon svg {
	display: block;
	width: 20px;
	height: 20px;
	color: currentColor;
}

/* Labels are intentionally hidden. Their text is used only in the tooltip. */
.noura-cqh-label {
	display: none !important;
}

.noura-cqh-badge {
	position: absolute;
	top: -3px;
	left: -2px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding-inline: 5px;
	border: 2px solid #fff;
	border-radius: 999px;
	color: #fff;
	background: #e74c3c;
	font-family: Arial, sans-serif;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 4px 10px rgba(7, 31, 63, .14);
}

.noura-cqh-badge.is-zero {
	display: none;
}

/* Small hover/focus name dropdown without changing the original icon layout. */
.noura-cqh-action::after {
	content: attr(data-tooltip);
	position: absolute;
	top: calc(100% + 9px);
	left: 50%;
	z-index: 99999;
	width: max-content;
	max-width: 170px;
	padding: 7px 10px;
	border: 1px solid rgba(255, 255, 255, .10);
	border-radius: 8px;
	color: #fff;
	background: rgba(7, 31, 63, .96);
	box-shadow: 0 10px 24px rgba(7, 31, 63, .18);
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.5;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -4px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.noura-cqh-action::before {
	content: "";
	position: absolute;
	top: calc(100% + 4px);
	left: 50%;
	z-index: 100000;
	width: 9px;
	height: 9px;
	border-radius: 2px;
	background: rgba(7, 31, 63, .96);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateX(-50%) rotate(45deg);
	transition: opacity .16s ease, visibility .16s ease;
}

.noura-cqh-action:hover::after,
.noura-cqh-action:focus-visible::after,
.noura-cqh-action:hover::before,
.noura-cqh-action:focus-visible::before {
	opacity: 1;
	visibility: visible;
}

.noura-cqh-action:hover::after,
.noura-cqh-action:focus-visible::after {
	transform: translate(-50%, 0);
}

@media (max-width: 640px) {
	.noura-cqh-actions {
		gap: 3px;
	}

	.noura-cqh-action {
		padding-inline: 5px;
	}

	/* Touch devices still have aria-label; hover tooltip stays out of the way. */
	.noura-cqh-action::before,
	.noura-cqh-action::after {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.noura-cqh-action,
	.noura-cqh-action::before,
	.noura-cqh-action::after {
		transition: none !important;
	}
}
