/* Same pattern as Events Shortcode free: "(PRO only)" choices open the Pro page. */
#bricks-panel [data-control="select"] .dropdown > li.ctl-pro-only-option {
	opacity: 0.7;
	cursor: pointer;
	text-decoration: underline;
}

#bricks-panel [data-controlkey="chooseMedia"] .description,
#bricks-panel [data-controlkey="chooseMedia"] .control-description,
#bricks-panel [data-control-key="chooseMedia"] .description,
#bricks-panel [data-control-key="chooseMedia"] .control-description {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--builder-color, #9aa3ad);
	font-size: 12px;
	line-height: 1.4;
}

#bricks-panel .ctl-bricks-pro-lock-item {
	pointer-events: none;
	user-select: none;
	margin-left: 8px;
	margin-right: 8px;
	margin-top: 0;
	margin-bottom: 0;
	padding-left: 12px;
	padding-right: 12px;
	border-left: 1px solid #ffd64f;
	border-right: 1px solid #ffd64f;
	box-sizing: border-box;
}

#bricks-panel .ctl-bricks-pro-lock--first {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #ffd64f;
	border-radius: 8px 8px 0 0;
}

#bricks-panel .ctl-bricks-pro-lock--last {
	position: relative;
	overflow: visible;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #ffd64f;
	border-radius: 0 0 8px 8px;
}

#bricks-panel .ctl-bricks-pro-lock--first.ctl-bricks-pro-lock--last {
	border-radius: 8px;
}

#bricks-panel .ctl-bricks-pro-lock__cta {
	pointer-events: auto;
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform: translate(-50%, 50%);
	padding: 6px 14px;
	border-radius: 999px;
	background: #ffd64f;
	color: #1a1a1a;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
	cursor: pointer;
}

#bricks-panel .ctl-bricks-pro-lock__cta:hover,
#bricks-panel .ctl-bricks-pro-lock__cta:focus {
	background: #ffe066;
	color: #1a1a1a;
	text-decoration: none;
}

#bricks-panel .ctl-bricks-pro-lock__cta::after {
	content: "";
	display: inline-block;
	width: 0.7em;
	height: 0.7em;
	margin-left: 6px;
	background: currentColor;
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

#bricks-panel .ctl-bricks-get-pro-link {
	color: #ffd64f;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

#bricks-panel .ctl-bricks-get-pro-link:hover,
#bricks-panel .ctl-bricks-get-pro-link:focus {
	color: #ffe066;
	text-decoration: underline;
}

#bricks-panel .ctl-bricks-get-pro-link::after {
	content: "";
	display: inline-block;
	width: 0.85em;
	height: 0.85em;
	margin-left: 3px;
	vertical-align: -0.08em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}

#bricks-panel [data-controlkey="ctl_story_style_info"],
#bricks-panel [data-control-key="ctl_story_style_info"],
#bricks-panel [data-controlkey="ctl_story_style_info"] [data-control="info"],
#bricks-panel [data-control-key="ctl_story_style_info"] [data-control="info"] {
	background: transparent;
	color: #ffd64f;
	border: 0;
	box-shadow: none;
}

[data-control-key="stories"] .repeater-header .actions li.ctl-story-delete-locked,
[data-control-key="stories"] .repeater-header .actions li.ctl-story-delete-locked button {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* Story Timeline element panel icon — same asset as Cool Timeline Pro. */
i.ctl-eicon-timeline-story,
.bricks-panel i.ctl-eicon-timeline-story,
#bricks-panel-element-classes i.ctl-eicon-timeline-story,
.bricks-structure-item i.ctl-eicon-timeline-story,
[class*="bricks-panel"] i.ctl-eicon-timeline-story {
	position: relative;
	display: inline-block;
	width: 28px;
	height: 28px;
	font-size: 0;
	line-height: 0;
	color: transparent;
	vertical-align: middle;
}

i.ctl-eicon-timeline-story::before,
.bricks-panel i.ctl-eicon-timeline-story::before,
#bricks-panel-element-classes i.ctl-eicon-timeline-story::before,
.bricks-structure-item i.ctl-eicon-timeline-story::before,
[class*="bricks-panel"] i.ctl-eicon-timeline-story::before {
	content: "" !important;
	position: absolute;
	inset: 0;
	display: block;
	background: url("../images/icon-cooltimeline-for-bricks.png") no-repeat center center;
	background-size: contain;
	border-radius: 2px;
	font-family: none !important;
}

/*
 * Non-interactive heading between native Bricks Style groups
 * (Layout, CSS, Attributes, …) and Cool Timeline style groups.
 */
#bricks-panel .twpb-plugin-settings-label {
	display: block;
	margin: 8px 0 4px;
	padding: 10px 14px 8px;
	pointer-events: none;
	user-select: none;
	cursor: default;
	border-top: 1px solid rgba(255, 214, 79, 0.4);
	color: #ffd64f;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.35;
}

/*
 * Plugin control groups vs native Bricks Style groups.
 * Native groups keep Bricks icons; ours get a gold edge + unique icons.
 */
#bricks-panel .control-group[data-twpb-group] > .control-group-title {
	box-shadow: inset 3px 0 0 #ffd64f;
}

#bricks-panel .control-group[data-twpb-group] > .control-group-title .icon {
	position: relative;
	width: 16px;
	height: 16px;
	min-width: 16px;
	transform: none;
}

#bricks-panel .control-group[data-twpb-group] > .control-group-title .icon svg,
#bricks-panel .control-group[data-twpb-group] > .control-group-title .icon i {
	opacity: 0;
}

#bricks-panel .control-group[data-twpb-group] > .control-group-title .icon::before {
	content: "";
	display: block;
	width: 16px;
	height: 16px;
	background-color: currentColor;
	-webkit-mask: var(--twpb-group-icon) center / contain no-repeat;
	mask: var(--twpb-group-icon) center / contain no-repeat;
}

#bricks-panel .control-group[data-twpb-group="stories"] {
	--twpb-group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01'/%3E%3C/svg%3E");
}
#bricks-panel .control-group[data-twpb-group="layout"] {
	--twpb-group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='18' rx='1'/%3E%3Crect x='14' y='3' width='7' height='18' rx='1'/%3E%3C/svg%3E");
}
#bricks-panel .control-group[data-twpb-group="line"] {
	--twpb-group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M12 3v18'/%3E%3Ccircle cx='12' cy='7' r='2' fill='%23000'/%3E%3Ccircle cx='12' cy='17' r='2' fill='%23000'/%3E%3C/svg%3E");
}
#bricks-panel .control-group[data-twpb-group="iconBox"] {
	--twpb-group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23000'/%3E%3C/svg%3E");
}
#bricks-panel .control-group[data-twpb-group="labels"] {
	--twpb-group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M4 10h16'/%3E%3C/svg%3E");
}
#bricks-panel .control-group[data-twpb-group="contentBox"] {
	--twpb-group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
}
#bricks-panel .control-group[data-twpb-group="storyContent"] {
	--twpb-group-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 7h14M5 12h10M5 17h8'/%3E%3C/svg%3E");
}

/* Style-tab pairing: labeled rules inside plugin groups.
 * Bricks already draws a :before line — keep that one only. */
#bricks-panel .control-group[data-twpb-group] [data-control="separator"],
#bricks-panel .control-group[data-twpb-group] .control[data-control="separator"] {
	margin: 14px 0 8px;
	padding: 8px 0 0;
	border: 0;
	background: none;
}

#bricks-panel .control-group[data-twpb-group] [data-control="separator"]::before,
#bricks-panel .control-group[data-twpb-group] .control[data-control="separator"]::before {
	border-top: 1px solid var(--builder-border-color, #3d4752);
}

#bricks-panel .control-group[data-twpb-group] [data-control="separator"] label,
#bricks-panel .control-group[data-twpb-group] [data-control="separator"] .control-label,
#bricks-panel .control-group[data-twpb-group] [data-control="separator"] .title {
	display: block;
	margin: 0;
	color: #ffd64f;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.3;
}

/* Keep injected Pro controls inside the story's accordion state. */
#bricks-panel .repeater-item:not(.open):not(.always-open) .ctl-bricks-pro-lock-item,
#bricks-panel .repeater-item:not(.open):not(.always-open) .ctl-bricks-pro-lock__cta {
    display: none !important;
}
