/* ==========================================================================
   Craft Addons for WPBakery - Admin Dashboard
   Design language matches cafw-pricing.css (same tokens, hero, section heads,
   card polish, type scale, spacing rhythm).
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
	--cafw-brand:        #502bf8;
	--cafw-brand-mid:    #2d18c9;
	--cafw-brand-2:      #7c3aed;
	--cafw-brand-dark:   #3a1fd4;
	--cafw-brand-tint:   #f4f1ff;
	--cafw-brand-tint-2: #ece7ff;
	--cafw-brand-ring:   #ddd3fb;
	--cafw-brand-glow:   rgba(80, 43, 248, 0.55);

	--cafw-ink:          #262b33;
	--cafw-ink-2:        #4a4863;
	--cafw-ink-3:        rgba(38, 43, 51, 0.64);

	--cafw-line:         rgba(38, 43, 51, 0.08);
	--cafw-line-2:       #f0eff4;
	--cafw-bg:           #f4f1ff;
	--cafw-surface:      #ffffff;

	--cafw-green:        #177a2d;

	--cafw-amber:        #b45309;
	--cafw-amber-bg:     #fff8eb;
	--cafw-amber-line:   #fbcf86;

	--cafw-r:            18px;
	--cafw-r-sm:         10px;
	--cafw-r-hero:       28px;
	--cafw-pill:         999px;

	--cafw-sh-sm:        0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
	--cafw-sh:           0 12px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
	--cafw-sh-lg:        0 32px 70px -28px rgba(80, 43, 248, 0.6);
	--cafw-sh-brand:     0 12px 28px -12px rgba(45, 24, 201, 0.8);
	--cafw-sh-card:      0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
	--cafw-sh-card-hover:0 12px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);

	--cafw-ease:         0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Page background ------------------------------------------------------ */

body.toplevel_page_craft-addons-for-wpbakery #wpcontent {
	background: linear-gradient(180deg, #ffffff 0%, #f4f1ff 100%);
}

body.toplevel_page_craft-addons-for-wpbakery #wpbody-content {
	padding-bottom: 60px;
}

/* --- Wrap ----------------------------------------------------------------- */

.cafw-wrap {
	max-width: 1180px;
	margin: 0 20px 0 0;
	padding-bottom: 100px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
	color: var(--cafw-ink-2);
}

.cafw-wrap .wp-header-end {
	display: none;
}

/* --- Hero ----------------------------------------------------------------- */

.cafw-hero {
	position: relative;
	border-radius: var(--cafw-r-hero);
	overflow: hidden;
	background: linear-gradient(135deg, #2d18c9 0%, #502bf8 42%, #6d5bff 100%);
	color: #ffffff;
	isolation: isolate;
	box-shadow: 0 32px 70px -28px rgba(80, 43, 248, 0.6);
	margin: 22px 0 56px;
}

.cafw-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.cafw-hero__blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
}

.cafw-hero__blob--violet {
	width: 520px;
	height: 520px;
	background: #a78bfa;
	top: -160px;
	right: -120px;
	opacity: 0.45;
}

.cafw-hero__blob--indigo {
	width: 340px;
	height: 340px;
	background: #c084fc;
	bottom: -140px;
	left: 6%;
	opacity: 0.28;
}

.cafw-hero__blob--mid {
	width: 280px;
	height: 280px;
	background: #818cf8;
	top: 30%;
	left: 40%;
	opacity: 0.16;
}

.cafw-hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 75%);
}

.cafw-hero__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
	padding: 56px 48px 48px;
}

.cafw-hero__content {
	max-width: 640px;
}

.cafw-hero__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.cafw-hero__logo {
	width: 36px;
	height: 36px;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.cafw-hero__brand-name {
	font-size: 15px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.9);
	letter-spacing: -0.1px;
}

.cafw-hero__eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: #c4b5fd;
	padding: 5px 13px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--cafw-pill);
	margin-bottom: 18px;
}

.cafw-hero__title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 14px;
	padding: 0;
	font-size: 42px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -1px;
	color: #ffffff;
}

.cafw-hero__ver {
	padding: 4px 11px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: var(--cafw-pill);
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.26);
	backdrop-filter: blur(4px);
}

.cafw-hero__subcopy {
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 22px;
}

.cafw-hero__trust {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
}

.cafw-hero__trust span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.cafw-hero__trust svg {
	color: #c4b5fd;
}

.cafw-hero__trust-sep {
	color: rgba(255, 255, 255, 0.4);
}

.cafw-hero__cta-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.cafw-hero__upgrade {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 26px;
	font-size: 15px;
	font-weight: 700;
	color: var(--cafw-brand);
	text-decoration: none;
	background: #ffffff;
	border-radius: var(--cafw-pill);
	box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35);
	transition: transform var(--cafw-ease), box-shadow var(--cafw-ease), background-color var(--cafw-ease);
	white-space: nowrap;
}

.cafw-hero__upgrade:hover,
.cafw-hero__upgrade:focus {
	color: var(--cafw-brand);
	background: var(--cafw-brand-tint);
	transform: translateY(-2px);
	box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.4);
}

.cafw-hero__upgrade svg {
	color: #f5b301;
}

.cafw-hero__upgrade-note {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
}

/* --- Notice --------------------------------------------------------------- */

.cafw-notice {
	margin: 0 0 24px;
}

/* --- Section -------------------------------------------------------------- */

.cafw-section {
	margin: 0 0 64px;
}

.cafw-section__head {
	margin: 0 0 32px;
}

.cafw-section__eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--cafw-brand);
	margin-bottom: 12px;
}

.cafw-section__title {
	margin: 0 0 10px;
	padding: 0;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--cafw-ink);
	letter-spacing: -0.7px;
}

.cafw-section__hint {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--cafw-ink-3);
}

/* --- Pro group header ----------------------------------------------------- */

.cafw-prohead {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 36px 0 18px;
}

.cafw-prohead__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #ffffff;
	border-radius: var(--cafw-pill);
	background: linear-gradient(120deg, var(--cafw-brand), var(--cafw-brand-2));
	box-shadow: 0 6px 16px -6px rgba(80, 43, 248, 0.7);
	white-space: nowrap;
}

.cafw-prohead__hint {
	font-size: 13px;
	color: var(--cafw-ink-3);
}

.cafw-prohead::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--cafw-line);
}

/* --- Grid ----------------------------------------------------------------- */

.cafw-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(242px, 1fr));
	gap: 20px;
}

/* --- Card ----------------------------------------------------------------- */

.cafw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	margin: 0;
	padding: 24px;
	text-align: left;
	background: var(--cafw-surface);
	border: 1px solid var(--cafw-line);
	border-radius: var(--cafw-r);
	box-shadow: var(--cafw-sh-card);
	transition: border-color var(--cafw-ease), box-shadow var(--cafw-ease), transform var(--cafw-ease);
}

.cafw-card:hover {
	box-shadow: var(--cafw-sh-card-hover);
	transform: translateY(-3px);
}

.cafw-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.cafw-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 13px;
	color: var(--cafw-brand);
	background: var(--cafw-brand-tint);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cafw-card__icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.cafw-card__icon img {
	display: block;
}

/* A full brand tile already carries its own rounded background, so it IS the
   icon: drop the coloured holder behind it and let the tile fill the slot -
   one box, not a tile nested inside a box. */
.cafw-card__icon.has-svg {
	background: none !important;
	box-shadow: none !important;
}

.cafw-card__icon.has-svg img {
	width: 48px;
	height: 48px;
}

.cafw-card__title {
	margin: 0;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--cafw-ink);
}

.cafw-card__desc {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--cafw-ink-3);
	flex: 1;
	/* Keep descriptions to a single line (the copy is kept short to fit). */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Enabled state */
.cafw-card.is-enabled {
	border-color: var(--cafw-brand-ring);
	box-shadow: var(--cafw-sh-card), 0 0 0 1px rgba(80, 43, 248, 0.07);
}

.cafw-card.is-enabled .cafw-card__icon {
	color: #ffffff;
	background: linear-gradient(135deg, var(--cafw-brand), var(--cafw-brand-2));
	box-shadow: 0 4px 14px rgba(80, 43, 248, 0.35);
}

/* Pro / locked card */

button.cafw-card {
	font: inherit;
	cursor: pointer;
	width: 100%;
}

.cafw-card.is-locked {
	border-color: var(--cafw-brand-ring);
	background: linear-gradient(165deg, #fdfcff 0%, var(--cafw-brand-tint) 100%);
	box-shadow: 0 24px 56px -24px rgba(45, 24, 201, 0.22);
}

.cafw-card.is-locked::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--cafw-r);
	border: 1.5px solid var(--cafw-brand-ring);
	pointer-events: none;
}

.cafw-card.is-locked:hover {
	border-color: var(--cafw-brand);
	box-shadow: var(--cafw-sh-card-hover), 0 0 0 1px rgba(80, 43, 248, 0.14);
}

.cafw-card.is-locked .cafw-card__icon {
	color: var(--cafw-brand-2);
	background: var(--cafw-brand-tint-2);
}

.cafw-card__pro {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 11px 5px 9px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff;
	border-radius: var(--cafw-pill);
	background: linear-gradient(120deg, var(--cafw-brand), var(--cafw-brand-2));
	box-shadow: 0 3px 10px rgba(80, 43, 248, 0.32);
}

.cafw-card__unlock {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 16px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--cafw-brand);
	transition: gap var(--cafw-ease);
}

.cafw-card.is-locked:hover .cafw-card__unlock {
	gap: 9px;
}

/* --- Switch --------------------------------------------------------------- */

.cafw-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex: 0 0 auto;
	cursor: pointer;
}

.cafw-switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.cafw-switch__slider {
	position: absolute;
	inset: 0;
	border-radius: var(--cafw-pill);
	background: #d6d5e0;
	box-shadow: inset 0 1px 2px rgba(20, 16, 50, 0.12);
	transition: background var(--cafw-ease);
}

.cafw-switch__slider::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(20, 16, 50, 0.28);
	transition: transform var(--cafw-ease);
}

.cafw-switch input:checked + .cafw-switch__slider {
	background: linear-gradient(120deg, var(--cafw-brand), var(--cafw-brand-2));
}

.cafw-switch input:checked + .cafw-switch__slider::before {
	transform: translateX(18px);
}

.cafw-switch input:focus-visible + .cafw-switch__slider {
	outline: 2px solid var(--cafw-brand);
	outline-offset: 2px;
}

/* --- Save bar ------------------------------------------------------------- */

.cafw-savebar {
	position: sticky;
	bottom: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	margin: 16px 0 0;
	padding: 14px 20px;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--cafw-line);
	border-radius: 16px;
	box-shadow: 0 -2px 24px rgba(80, 43, 248, 0.08), var(--cafw-sh-card);
}

.cafw-savebar__hint {
	font-size: 13px;
	color: var(--cafw-ink-3);
}

.cafw-btn-save {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 28px;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	border: 0;
	border-radius: 12px;
	cursor: pointer;
	background: linear-gradient(135deg, var(--cafw-brand) 0%, var(--cafw-brand-mid) 100%);
	box-shadow: 0 12px 28px -12px rgba(45, 24, 201, 0.8);
	transition: transform var(--cafw-ease), box-shadow var(--cafw-ease);
}

.cafw-btn-save:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 32px -12px rgba(45, 24, 201, 0.9);
}

.cafw-btn-save:focus-visible {
	outline: 2px solid var(--cafw-brand);
	outline-offset: 3px;
}

/* --- Tip ------------------------------------------------------------------ */

.cafw-tip {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 28px 0 0;
	padding: 16px 20px;
	background: var(--cafw-amber-bg);
	border: 1px solid var(--cafw-amber-line);
	border-left: 3px solid #f59e0b;
	border-radius: var(--cafw-r-sm);
}

.cafw-tip__icon {
	color: #d97706;
	flex: 0 0 auto;
}

.cafw-tip p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #7c4a09;
}

/* --- Toast ---------------------------------------------------------------- */

.cafw-toast {
	position: fixed;
	right: 28px;
	bottom: 30px;
	z-index: 100000;
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 18px 11px 12px;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	background: var(--cafw-ink);
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(20, 16, 50, 0.16);
	animation: cafw-toast-in 0.35s cubic-bezier(0.16, 1, 0.3, 1), cafw-toast-out 0.4s ease 3.4s forwards;
}

.cafw-toast__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	background: #16a34a;
	border-radius: 50%;
}

@keyframes cafw-toast-in {
	from { opacity: 0; transform: translateY(12px) scale(0.96); }
	to   { opacity: 1; transform: none; }
}

@keyframes cafw-toast-out {
	to { opacity: 0; transform: translateY(12px); visibility: hidden; }
}

/* --- Pro modal ------------------------------------------------------------ */

.cafw-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cafw-modal[hidden] {
	display: none;
}

.cafw-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 50, 0.55);
	backdrop-filter: blur(4px);
}

.cafw-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	padding: 36px 32px 32px;
	text-align: center;
	background: #ffffff;
	border-radius: 22px;
	box-shadow: 0 32px 80px rgba(20, 16, 50, 0.22);
	animation: cafw-modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cafw-modal-in {
	from { opacity: 0; transform: translateY(14px) scale(0.97); }
	to   { opacity: 1; transform: none; }
}

.cafw-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	padding: 6px;
	color: var(--cafw-ink-3);
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background var(--cafw-ease), color var(--cafw-ease);
}

.cafw-modal__close:hover {
	background: var(--cafw-line-2);
	color: var(--cafw-ink);
}

.cafw-modal__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	color: #ffffff;
	border-radius: 18px;
	background: linear-gradient(135deg, var(--cafw-brand), var(--cafw-brand-2));
	box-shadow: 0 12px 28px -12px rgba(45, 24, 201, 0.8);
}

.cafw-modal__title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 22px;
	font-weight: 800;
	color: var(--cafw-ink);
	letter-spacing: -0.4px;
}

.cafw-modal__lead {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--cafw-ink-3);
}

.cafw-modal__list {
	margin: 0 0 24px;
	padding: 6px 4px;
	text-align: left;
	list-style: none;
	background: var(--cafw-brand-tint);
	border-radius: 14px;
}

.cafw-modal__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 14px;
	font-size: 13.5px;
	color: var(--cafw-ink-2);
}

.cafw-modal__list li + li {
	border-top: 1px solid rgba(80, 43, 248, 0.1);
}

.cafw-modal__check {
	flex: 0 0 auto;
	margin-top: 1px;
	color: var(--cafw-brand);
}

.cafw-modal__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	font-size: 15px;
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--cafw-brand) 0%, var(--cafw-brand-mid) 100%);
	box-shadow: 0 12px 28px -12px rgba(45, 24, 201, 0.8);
	transition: transform var(--cafw-ease), box-shadow var(--cafw-ease);
}

.cafw-modal__cta:hover,
.cafw-modal__cta:focus-visible,
.cafw-modal__cta:active {
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 16px 32px -12px rgba(45, 24, 201, 0.9);
	outline: none;
}

.cafw-modal__learn {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--cafw-muted, #6b7280);
	text-decoration: none;
}

.cafw-modal__learn:hover,
.cafw-modal__learn:focus-visible {
	color: var(--cafw-brand);
	text-decoration: underline;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 960px) {
	.cafw-hero__title {
		font-size: 32px;
	}

	.cafw-hero__inner {
		padding: 40px 30px 36px;
	}

	.cafw-section__title {
		font-size: 26px;
	}
}

@media (max-width: 782px) {
	.cafw-wrap {
		margin-right: 10px;
	}

	.cafw-hero {
		margin-top: 14px;
	}

	.cafw-hero__inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 32px 24px 28px;
	}

	.cafw-hero__cta-wrap {
		align-self: stretch;
	}

	.cafw-hero__upgrade {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 600px) {
	.cafw-grid {
		grid-template-columns: 1fr;
	}

	.cafw-savebar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.cafw-btn-save {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cafw-card,
	.cafw-hero__upgrade,
	.cafw-btn-save,
	.cafw-switch__slider,
	.cafw-switch__slider::before,
	.cafw-modal__cta {
		transition: none;
	}

	.cafw-card:hover,
	.cafw-hero__upgrade:hover,
	.cafw-btn-save:hover,
	.cafw-modal__cta:hover {
		transform: none;
	}

	.cafw-toast,
	.cafw-modal__dialog {
		animation: none;
	}
}

/* --- Responsive Visibility settings page ---------------------------------- */

.cafw-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	overflow: hidden;
	margin: 22px 0 40px;
	padding: 30px 36px;
	border-radius: var(--cafw-r-hero);
	background: linear-gradient(135deg, #2d18c9 0%, #502bf8 42%, #6d5bff 100%);
	color: #ffffff;
	box-shadow: 0 32px 70px -28px rgba(80, 43, 248, 0.6);
}

.cafw-header__brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.cafw-header__logo {
	width: 44px;
	height: 44px;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.28));
}

.cafw-header h1 {
	margin: 0;
	padding: 0;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.5px;
	color: #ffffff;
}

.cafw-header__tagline {
	margin: 4px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

.cafw-version {
	flex-shrink: 0;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: var(--cafw-pill);
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.26);
}

.cafw-toolbar {
	margin: 0 0 20px;
}

.cafw-toolbar h2 {
	margin: 0 0 6px;
	padding: 0;
	font-size: 20px;
	font-weight: 800;
	color: var(--cafw-ink);
	letter-spacing: -0.4px;
}

.cafw-toolbar__hint {
	margin: 0;
	max-width: 720px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--cafw-ink-3);
}

.cafw-bp-editor {
	background: var(--cafw-surface);
	border: 1px solid var(--cafw-line);
	border-radius: var(--cafw-r);
	box-shadow: var(--cafw-sh-sm);
	overflow: hidden;
}

.cafw-bp-row {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 16px;
	align-items: center;
	padding: 14px 22px;
	border-top: 1px solid var(--cafw-line-2);
}

.cafw-bp-row--head {
	border-top: 0;
	background: var(--cafw-brand-tint);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--cafw-ink-2);
}

.cafw-bp-cell {
	font-size: 14px;
	color: var(--cafw-ink);
}

.cafw-bp-row--readonly .cafw-bp-cell[data-col="label"] {
	font-weight: 600;
}

.cafw-bp-row--readonly .cafw-bp-cell[data-col="min"],
.cafw-bp-row--readonly .cafw-bp-cell[data-col="max"] {
	color: var(--cafw-ink-2);
}

.cafw-bp-upsell {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 18px 22px;
	border-top: 1px solid var(--cafw-line-2);
	background: var(--cafw-brand-tint);
}

.cafw-bp-upsell > .dashicons {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	font-size: 22px;
	color: var(--cafw-brand);
}

.cafw-bp-upsell__text {
	display: flex;
	flex: 1;
	min-width: 220px;
	flex-direction: column;
	gap: 2px;
}

.cafw-bp-upsell__text strong {
	font-size: 14px;
	color: var(--cafw-ink);
}

.cafw-bp-upsell__text span {
	font-size: 13px;
	line-height: 1.5;
	color: var(--cafw-ink-2);
}
