.cafw-dyn-field {
	position: relative;
}

.cafw-dyn-field input.wpb_vc_param_value,
.cafw-dyn-field textarea.wpb_vc_param_value {
	padding-right: 34px;
}

.cafw-dyn-btn {
	position: absolute;
	top: 6px;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 1px solid #e1ddf7;
	border-radius: 6px;
	background: #f5f2ff;
	color: #502bf8;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.cafw-dyn-btn:hover,
.cafw-dyn-btn:focus {
	background: #502bf8;
	border-color: #502bf8;
	color: #fff;
	outline: none;
}

/* Sits just to the left of WPBakery's AI icon, on the heading row. */
.cafw-dyn-btn--ai {
	top: -26px;
	right: 18px;
	width: 18px;
	height: 18px;
	border-radius: 5px;
}

.cafw-dyn-pop {
	z-index: 1000000;
	width: 260px;
	max-height: 380px;
	overflow: hidden auto;
	background: #fff;
	border: 1px solid #e2e2ea;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(17, 24, 39, 0.22);
	font-size: 13px;
	color: #1f2430;
}

.cafw-dyn-pop__head {
	padding: 12px 14px 8px;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #6b7280;
}

.cafw-dyn-pop__list {
	padding: 0 6px 8px;
}

.cafw-dyn-group__label {
	margin: 8px 8px 2px;
	font-size: 11px;
	font-weight: 600;
	color: #9aa0ac;
}

.cafw-dyn-item {
	display: block;
	width: 100%;
	padding: 8px 10px;
	margin: 1px 0;
	text-align: left;
	background: transparent;
	border: 0;
	border-radius: 8px;
	font-size: 13px;
	color: #1f2430;
	cursor: pointer;
}

.cafw-dyn-item:hover,
.cafw-dyn-item:focus {
	background: #f5f2ff;
	color: #502bf8;
	outline: none;
}

.cafw-dyn-item--pro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #9aa0ac;
}

.cafw-dyn-item--pro:hover,
.cafw-dyn-item--pro:focus {
	background: #faf8ff;
	color: #6b7280;
}

.cafw-dyn-pro {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	flex: 0 0 auto;
	margin-left: 8px;
	padding: 1px 7px 1px 5px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
	background: #502bf8;
	border-radius: 999px;
}

.cafw-dyn-arg {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 10px 12px;
	border-top: 1px solid #eef0f2;
	background: #fafafe;
}

.cafw-dyn-arg label {
	flex: 1 0 100%;
	font-size: 11px;
	font-weight: 600;
	color: #6b7280;
}

.cafw-dyn-arg input {
	flex: 1 1 auto;
	min-width: 0;
	height: 30px;
	padding: 0 8px;
	border: 1px solid #d7d7e0;
	border-radius: 7px;
	font-size: 13px;
}

.cafw-dyn-insert {
	flex: 0 0 auto;
	padding: 0 12px;
	height: 30px;
	background: #502bf8;
	color: #fff;
	border: 0;
	border-radius: 7px;
	font-weight: 600;
	cursor: pointer;
}

.cafw-dyn-insert:hover {
	background: #3f1fd6;
}
