/* ── Banner ─────────────────────────────────────────────────────────── */
.bew-banner-ui {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 4px;
	margin: 16px 0 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
}

.bew-banner-no-image {
	background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%);
}

.bew-banner-ui a {
	display: block;
	width: 100%;
	line-height: 0;
}

.bew-banner-image {
	width: 100%;
	max-height: 280px;
	object-fit: cover;
	display: block;
}

.bew-banner-title {
	position: absolute;
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
	padding: 0 24px;
	text-align: center;
}

/* ── Box Component ──────────────────────────────────────────────────── */
.bew-box-ui {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 30px;
	transition: box-shadow 0.15s ease;
}

.bew-box-ui:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bew-box-icon {
	font-size: 20px;
	color: #7968e4;
}

.bew-box-tag {
	display: inline-block;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 600;
	border-radius: 3px;
	background: #f0f0f1;
	color: #624fe0;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 10px;
}

.bew-box-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
}

.bew-box-description {
	font-size: 13px;
	color: #50575e;
	line-height: 1.6;
}

.bew-box-note {
	width: fit-content;
	max-width: 100%;
	margin: 0 0 16px;
	padding: 6px 10px;
	border: 1px solid #b7e2c4;
	border-radius: 4px;
	background: #e7f6ec;
	color: #14532d;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.bew-box-button {
	display: inline-block;
	margin-top: 8px;
	padding: 8px 14px;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bew-button-primary {
	background: #7968e4;
	color: #fff;
	border: 1px solid #7968e4;
	font-size: 13px;
    font-weight: 500;
    line-height: 2.92307692;
    min-height: 40px;
    margin: 0;
    padding: 0 16px;
}

.bew-button-primary:hover,
.bew-button-primary:focus {
	background: #624fe0;
	color: #fff;
	border-color: #624fe0;
}

.bew-button-secondary {
	background: #f0f0f1;
	color: #2c3338;
	border: 1px solid #c3c4c7;
	font-size: 13px;
    font-weight: 500;
    line-height: 2.92307692;
    min-height: 40px;
    margin: 0;
    padding: 0 16px;
}

.bew-button-secondary:hover,
.bew-button-secondary:focus {
	background: #dcdcde;
	color: #1d2327;
	border-color: #b4b4b4;
}

/* ── Card Component ─────────────────────────────────────────────────── */
.bew-card-ui {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: box-shadow 0.15s ease;
}

.bew-card-ui:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.bew-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bew-card-name {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #1d2327;
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
}

.bew-card-badge {
	display: inline-block;
	padding: 2px 6px;
	font-size: 10px;
	font-weight: 600;
	border-radius: 2px;
	background: #7968e4;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.bew-badge-pro {
	background: #8382f3;
}

.bew-card-pro {
	border-color: #8382f3;
}

.bew-card-demo-link {
	font-size: 11px;
	font-weight: 600;
	color: #7968e4;
	text-decoration: none;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bew-card-demo-link:hover,
.bew-card-demo-link:focus {
	color: #624fe0;
	text-decoration: underline;
}

/* ── Toggle Switch ──────────────────────────────────────────────────── */
.bew-toggle-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	flex-shrink: 0;
	cursor: pointer;
}

.bew-toggle-switch input {
	opacity: 0;
	width: 0;
	min-width: 0;
	height: 0;
	position: absolute;
	border: none;
}

.bew-toggle-slider {
	position: absolute;
	inset: 0;
	background: #c3c4c7;
	border-radius: 22px;
	transition: background 0.2s ease;
}

.bew-toggle-slider::before {
	content: '';
	position: absolute;
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.bew-toggle-switch input:checked + .bew-toggle-slider {
	background: #7968e4;
}

.bew-toggle-switch input:checked + .bew-toggle-slider::before {
	transform: translateX(18px);
}

.bew-toggle-switch input:focus-visible + .bew-toggle-slider {
	outline: 2px solid #7968e4;
	outline-offset: 2px;
}

/* ── Disabled card (e.g. WooCommerce widgets while WooCommerce is inactive) ── */
.bew-card-disabled {
	opacity: 0.6;
}

.bew-card-disabled .bew-toggle-switch,
.bew-card-disabled .bew-card-demo-link {
	cursor: not-allowed;
}

.bew-card-disabled .bew-card-demo-link {
	pointer-events: none;
}

/* A disabled toggle must always read as "off", even when its stored value is
   still true (e.g. a Woo widget left enabled from before WooCommerce was
   deactivated) — otherwise it looks active while actually being inert. */
.bew-toggle-switch input:checked:disabled + .bew-toggle-slider {
	background: #c3c4c7;
}

.bew-toggle-switch input:checked:disabled + .bew-toggle-slider::before {
	transform: translateX(0);
}

/* ── Pro Upgrade Popup ─────────────────────────────────────────────── */
.bew-pro-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	align-items: center;
	justify-content: center;
}

.bew-pro-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.bew-pro-popup-content {
	position: relative;
	background: #fff;
	padding: 32px;
	border-radius: 8px;
	max-width: 420px;
	width: 90%;
	text-align: center;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.bew-pro-popup-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #50575e;
	line-height: 1;
	padding: 4px;
}

.bew-pro-popup-close:hover {
	color: #1d2327;
}

.bew-pro-popup-content h3 {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
}

.bew-pro-popup-content p {
	margin: 0 0 20px;
	color: #50575e;
	font-size: 14px;
	line-height: 1.6;
}
