/**
 * Giveaway Lottery settings dashboard.
 *
 * Layout and look follow the Essential Addons dashboard: white top bar,
 * card sidebar with a solid purple active item, white content cards on a
 * light page, Rubik font (bundled in ../fonts, SIL OFL 1.1).
 * Loaded after wxgiveaway_backend_style.css and scoped to .wxgd.
 */

@font-face {
	font-family: "WXG Rubik";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/rubik-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/rubik-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Page ---------- */
body.wxgd-screen,
body.wxgd-screen #wpwrap,
body.wxgd-screen #wpcontent {
	background: #f5f6fc;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd {
	/* Re-point the existing settings variables to the new palette. */
	--wxg-accent: #750ef4;
	--wxg-accent-hover: #6f0af2;
	--wxg-accent-light: #f6eeff;
	--wxg-accent-border: #e1c9ff;
	--wxg-border-focus: #750ef4;
	--wxg-border: #eaecf0;
	--wxg-text: #1d2939;
	--wxg-text-secondary: #344054;
	--wxg-text-muted: #667085;
	--wxg-radius: 12px;

	--p-50: #faf5ff;
	--p-100: #f6eeff;
	--p-200: #e1c9ff;
	--p-500: #750ef4;
	--p-600: #6f0af2;
	--o-500: #ff9437;
	--o-600: #ed7206;
	--o-50: #fff4eb;
	--g-25: #fcfcfd;
	--g-50: #f9fafb;
	--g-100: #f2f4f7;
	--g-200: #eaecf0;
	--g-300: #d0d5dd;
	--g-400: #98a2b3;
	--g-500: #667085;
	--g-600: #475467;
	--g-700: #344054;
	--g-900: #1d2939;
	--shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
	--shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);

	max-width: 1320px;
	margin: 20px auto 40px !important;
	padding-right: 20px;
	color: var(--g-900);
	font-family: "WXG Rubik", Rubik, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

body.wxgd-screen .wxgd *,
body.wxgd-screen .wxgd *::before,
body.wxgd-screen .wxgd *::after {
	box-sizing: border-box;
}

.wxgd .wxgd-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Hide the page until the menu is built (avoids a flash of the old menu). */
body.wxgd-screen .wxgd:not(.is-ready) .wx-tab-wrapper {
	visibility: hidden;
}

/* ---------- Top bar ---------- */
.wxgd-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 20px;
	padding: 14px 20px;
	border: 1px solid var(--g-200);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.wxgd-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.wxgd-brand__mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--p-500);
	color: #fff;
}

.wxgd-brand__mark .wxgd-icon {
	width: 22px;
	height: 22px;
}

.wxgd-brand__name {
	color: var(--g-900);
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.wxgd-brand__name b {
	color: var(--p-500);
	font-weight: 500;
}

.wxgd-pill {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border: 1px solid var(--g-200);
	border-radius: 999px;
	background: #fff;
	color: var(--g-600);
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
}

.wxgd-pill.is-pro {
	border-color: var(--p-500);
	background: var(--p-500);
	color: #fff;
}

.wxgd-pill.is-green {
	border-color: #abefc6;
	background: #ecfdf3;
	color: #067647;
}

.wxgd-pill.is-outline {
	border-color: var(--p-200);
	background: #fff;
	color: var(--p-500);
}

.wxgd-top__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.wxgd .wxgd-top__links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 12px;
	border-radius: 8px;
	color: var(--g-700);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.wxgd .wxgd-top__links a:hover {
	background: var(--g-50);
	color: var(--g-900);
}

.wxgd .wxgd-top__links a.wxgd-top__pro {
	background: var(--o-500);
	color: #fff;
}

.wxgd .wxgd-top__links a.wxgd-top__pro:hover {
	background: var(--o-600);
}

.wxgd a:focus,
.wxgd button:focus {
	box-shadow: none;
	outline: none;
}

.wxgd a:focus-visible,
.wxgd button:focus-visible,
.wxgd [role="button"]:focus-visible {
	outline: 2px solid var(--p-500);
	outline-offset: 2px;
}

/* ---------- Two column shell ---------- */
body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tab-wrapper {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	align-items: start;
	gap: 20px;
	min-height: 0;
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tab {
	display: none !important;
}

/* Sidebar */
.wxgd-side {
	position: sticky;
	top: 52px;
	padding: 20px 16px;
	border: 1px solid var(--g-200);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.wxgd-nav {
	display: grid;
	gap: 4px;
}

.wxgd .wxgd-nav__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--g-700);
	font-family: inherit;
	font-size: 15px;
	font-weight: 450;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.wxgd .wxgd-nav__item .wxgd-icon {
	width: 18px;
	height: 18px;
	color: var(--g-500);
}

.wxgd .wxgd-nav__item:hover {
	background: var(--g-50);
	color: var(--g-900);
}

.wxgd .wxgd-nav__item.is-active {
	background: var(--p-500);
	color: #fff;
	box-shadow: 0 1px 2px rgba(117, 14, 244, 0.3);
}

.wxgd .wxgd-nav__item.is-active .wxgd-icon {
	color: #fff;
}

.wxgd-nav__pro {
	margin-left: auto;
	padding: 0 6px;
	border-radius: 4px;
	background: var(--o-50);
	color: var(--o-600);
	font-size: 10px;
	font-style: normal;
	font-weight: 600;
	line-height: 18px;
	letter-spacing: 0.04em;
}

.wxgd .wxgd-nav__item.is-active .wxgd-nav__pro {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.wxgd .wxgd-nav__item.is-premium:not(.is-active) {
	margin-top: 8px;
	background: var(--o-50);
	color: var(--o-600);
}

.wxgd .wxgd-nav__item.is-premium:not(.is-active) .wxgd-icon {
	color: var(--o-600);
}

/* Main column */
.wxgd-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	min-width: 0;
}

.wxgd-panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	border: 1px solid var(--g-200);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.wxgd .wxgd-panel-head__title {
	margin: 0;
	padding: 0;
	color: var(--g-900);
	font-size: 20px;
	font-weight: 500;
	line-height: 40px;
}

.wxgd-subnav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border-radius: 10px;
	background: var(--g-100);
}

.wxgd .wxgd-subnav__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--g-600);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 450;
	white-space: nowrap;
	cursor: pointer;
}

.wxgd .wxgd-subnav__item .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	color: var(--g-400);
}

.wxgd .wxgd-subnav__item:hover {
	color: var(--g-900);
}

.wxgd .wxgd-subnav__item.is-active {
	background: #fff;
	box-shadow: var(--shadow-sm);
	color: var(--g-900);
}

.wxgd .wxgd-subnav__item.is-active .dashicons {
	color: var(--p-500);
}

.wxgd .wxgd-subnav__lock {
	width: 13px !important;
	height: 13px !important;
	font-size: 13px !important;
	color: var(--o-500) !important;
}

/* Tab panels become cards */
body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent {
	width: auto !important;
	max-width: none !important;
	padding: 28px 32px !important;
	border: 1px solid var(--g-200);
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: var(--shadow-sm);
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent.wxgd-home,
body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent.wxgd-premium {
	padding: 0 !important;
	border: 0;
	background: transparent !important;
	box-shadow: none;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd #analytic.wx-tabcontent {
	padding: 0 !important;
	border: 0;
	background: transparent !important;
	box-shadow: none;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd #analytic .wxga {
	padding: 0;
	background: transparent;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wp-header-end {
	margin: 0;
	border: 0;
	visibility: hidden;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent h3 {
	color: var(--g-900) !important;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	border-bottom-color: var(--g-200);
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table th {
	color: var(--g-700);
	font-size: 14px;
	font-weight: 450;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table td,
body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table p.description {
	font-family: inherit;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table tbody tr:not(:last-child) th,
body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table tbody tr:not(:last-child) td {
	border-bottom-color: var(--g-100);
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table input[type="text"]:focus,
body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table input[type="email"]:focus,
body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table input[type="number"]:focus,
body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table input[type="url"]:focus,
body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table textarea:focus,
body.wxgd-screen .gift-card-setting-wrap.wxgd select:not([multiple]):focus {
	border-color: #d6bbfb !important;
	box-shadow: 0 0 0 4px var(--p-100) !important;
}

/* Checkboxes become on/off switches (like Essential Addons). */
body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	width: 40px;
	min-width: 40px;
	height: 22px;
	margin: 0 8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--g-300);
	box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.08);
	vertical-align: middle;
	cursor: pointer;
	transition: background 0.2s ease;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent input[type="checkbox"]::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	float: none;
	width: 16px;
	height: 16px;
	margin: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.2);
	filter: none;
	transition: transform 0.2s ease;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent input[type="checkbox"]:checked {
	background: var(--p-500);
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent input[type="checkbox"]:checked::before {
	content: "";
	background: #fff;
	transform: translateX(18px);
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent input[type="checkbox"]:hover:not(:checked):not(:disabled) {
	background: var(--g-400);
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent input[type="checkbox"]:focus {
	outline: none;
	box-shadow: none;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent input[type="checkbox"]:focus-visible {
	box-shadow: 0 0 0 4px var(--p-100);
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent input[type="checkbox"]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Switch + label text on one line. */
body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent label > input[type="checkbox"] {
	margin-top: -2px;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd input[type="radio"]:checked::before {
	background-color: var(--p-500);
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .button-primary:not(.gx-save-button) {
	border-color: var(--p-500);
	background: var(--p-500);
}

/* Save button: a bar at the bottom of the content column */
body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-dashboard-save-button {
	position: sticky;
	right: auto;
	bottom: 12px;
	z-index: 50;
	justify-content: flex-end;
	padding: 12px 16px;
	border: 1px solid var(--g-200);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
	backdrop-filter: blur(6px);
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-dashboard-save-button .gx-save-button.button-primary {
	min-height: 42px;
	padding: 0 22px;
	border: 1px solid var(--p-500) !important;
	border-radius: 8px !important;
	background: var(--p-500) !important;
	box-shadow: var(--shadow-xs) !important;
	font-family: inherit;
	font-size: 14px !important;
	font-weight: 500 !important;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-dashboard-save-button .gx-save-button.button-primary:hover,
body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-dashboard-save-button .gx-save-button.button-primary:focus {
	border-color: var(--p-600) !important;
	background: var(--p-600) !important;
	box-shadow: var(--shadow-xs) !important;
	transform: none;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wxgd-home h3,
body.wxgd-screen .gift-card-setting-wrap.wxgd .wxgd-premium h3,
body.wxgd-screen .gift-card-setting-wrap.wxgd .wxgd-features h3 {
	margin: 0 0 8px !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.35;
}

body.wxgd-screen .gift-card-setting-wrap.wxgd .wxgd-features h3 {
	margin: 0 !important;
	font-size: 15px;
}

/* ---------- Generic pieces ---------- */
.wxgd-card {
	position: relative;
	overflow: hidden;
	padding: 24px;
	border: 1px solid var(--g-200);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.wxgd .wxgd-h2 {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	color: var(--g-900);
	font-family: inherit;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.wxgd .wxgd-h2--lg {
	font-size: 26px;
	line-height: 1.2;
}

.wxgd .wxgd-h3 {
	margin: 0 0 8px !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--g-900) !important;
	font-family: inherit;
	font-size: 17px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
}

.wxgd .wxgd-card p {
	margin: 0 0 16px;
	color: var(--g-600);
	font-size: 14px;
	line-height: 1.6;
}

.wxgd .wxgd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wxgd .wxgd-btn .wxgd-icon {
	width: 16px;
	height: 16px;
}

.wxgd .wxgd-btn--block {
	width: 100%;
}

.wxgd .wxgd-btn--primary {
	border-color: var(--p-500);
	background: var(--p-500);
	color: #fff;
}

.wxgd .wxgd-btn--primary:hover {
	border-color: var(--p-600);
	background: var(--p-600);
	color: #fff;
}

.wxgd .wxgd-btn--orange {
	border-color: var(--o-500);
	border-bottom-color: var(--o-600);
	background: var(--o-500);
	color: #fff;
}

.wxgd .wxgd-btn--orange:hover {
	background: var(--o-600);
	color: #fff;
}

.wxgd .wxgd-btn--outline {
	border-color: var(--g-600);
	background: #fff;
	color: var(--g-700);
}

.wxgd .wxgd-btn--outline:hover {
	border-color: var(--p-500);
	background: var(--p-500);
	color: #fff;
}

.wxgd .wxgd-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: var(--p-500);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.wxgd .wxgd-link .wxgd-icon {
	width: 15px;
	height: 15px;
}

.wxgd-tile {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 10px;
	background: var(--p-100);
	color: var(--p-500);
}

.wxgd-tile.is-green {
	background: #ecfdf3;
	color: #079455;
}

.wxgd-tile.is-orange {
	background: var(--o-50);
	color: var(--o-600);
}

.wxgd-checks {
	display: grid;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.wxgd-checks li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	color: var(--g-700);
	font-size: 14px;
	line-height: 1.5;
}

.wxgd-checks .wxgd-icon {
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--p-500);
}

/* ---------- Dashboard home ---------- */
.wxgd-home__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 20px;
	align-items: start;
}

.wxgd-home__main,
.wxgd-home__side {
	display: grid;
	gap: 20px;
	min-width: 0;
}

.wxgd-news__list {
	display: grid;
	gap: 12px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.wxgd-news__list li {
	display: flex;
	gap: 10px;
	margin: 0;
	color: var(--g-700);
	font-size: 15px;
	line-height: 1.5;
}

.wxgd-news__list .wxgd-icon {
	width: 16px;
	height: 16px;
	margin-top: 3px;
	color: var(--p-500);
}

.wxgd-news__list b {
	color: var(--g-500);
	font-weight: 500;
}

.wxgd-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 24px;
	align-items: center;
	padding: 24px;
	border-color: #e9d7fe;
	background: linear-gradient(120deg, #fff 0%, #fbf7ff 55%, #f3e8ff 100%);
}

.wxgd-hero__art {
	overflow: hidden;
	border-radius: 12px;
	background: #f6eeff;
}

.wxgd-hero__art svg {
	display: block;
	width: 100%;
	height: auto;
}

.wxgd-help {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.wxgd .wxgd-help__item {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s;
}

.wxgd .wxgd-help__item:hover {
	border-color: var(--p-200);
	transform: translateY(-2px);
}

.wxgd .wxgd-help__item h3 {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	color: var(--g-900);
	font-size: 17px;
	font-weight: 500;
}

/* Side cards */
.wxgd-upsell {
	padding-top: 32px;
}

.wxgd-upsell__glow {
	position: absolute;
	top: -60px;
	right: -40px;
	width: 200px;
	height: 160px;
	border-radius: 999px;
	background: radial-gradient(closest-side, rgba(255, 148, 55, 0.35), rgba(247, 112, 168, 0.18), transparent);
	pointer-events: none;
}

.wxgd-upsell.is-pro .wxgd-upsell__glow {
	background: radial-gradient(closest-side, rgba(117, 14, 244, 0.25), transparent);
}

.wxgd-upsell > * {
	position: relative;
}

.wxgd-stats {
	display: grid;
	gap: 8px;
	padding: 16px;
}

.wxgd-stat {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 8px;
	color: var(--g-600);
	font-size: 14px;
}

.wxgd-stat b {
	color: var(--g-900);
	font-size: 16px;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.wxgd-stat .wxgd-icon {
	width: 16px;
	height: 16px;
}

.wxgd-stat.is-violet {
	background: var(--p-50);
}

.wxgd-stat.is-violet .wxgd-icon {
	color: var(--p-500);
}

.wxgd-stat.is-green {
	background: #ecfdf3;
}

.wxgd-stat.is-green .wxgd-icon {
	color: #079455;
}

.wxgd-stat.is-blue {
	background: #eff8ff;
}

.wxgd-stat.is-blue .wxgd-icon {
	color: #1570ef;
}

.wxgd-setup,
.wxgd-love {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.wxgd-setup .wxgd-pill {
	margin: -4px 0 14px;
}

/* ---------- Features overview (like Elements) ---------- */
.wxgd-features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.wxgd-feature {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	border: 1px solid var(--g-200);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--shadow-sm);
	cursor: pointer;
	transition: border-color 0.15s, transform 0.15s;
}

.wxgd-feature:hover {
	border-color: var(--p-200);
	transform: translateY(-2px);
}

.wxgd-feature__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.wxgd-feature__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--p-100);
	color: var(--p-500);
}

.wxgd-feature.is-locked .wxgd-feature__icon {
	background: var(--g-100);
	color: var(--g-500);
}

.wxgd .wxgd-feature h3 {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--g-900);
	font-size: 15px;
	font-weight: 500;
}

.wxgd .wxgd-feature p {
	flex: 1;
	margin: 0;
	color: var(--g-500);
	font-size: 13px;
	line-height: 1.5;
}

.wxgd-feature__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
}

.wxgd-feature__open {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--p-500);
	font-size: 13px;
	font-weight: 500;
}

.wxgd-feature__open .wxgd-icon {
	width: 14px;
	height: 14px;
}

.wxgd-badge {
	padding: 0 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wxgd-badge.is-pro {
	background: var(--o-500);
	color: #fff;
}

.wxgd-badge.is-off {
	background: var(--g-100);
	color: var(--g-600);
}

.wxgd-switch[role="switch"] {
	cursor: pointer;
}

.wxgd-badge.is-on {
	background: #ecfdf3;
	color: #067647;
}

/* EA style switch */
.wxgd-switch {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 22px;
	border-radius: 999px;
	background: var(--g-200);
}

.wxgd-switch.is-on {
	background: var(--p-500);
}

.wxgd-switch i {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .2);
	transition: transform .15s ease;
}

.wxgd-switch.is-on i {
	transform: translateX(16px);
}

.wxgd-switch[role="switch"] {
	cursor: pointer;
	transition: background .15s ease;
}

.wxgd-switch[role="switch"]:not(.is-on) {
	background: var(--g-300, #d0d5dd);
}

.wxgd-switch.is-locked {
	cursor: pointer;
	color: var(--g-600);
}

.wxgd-switch.is-locked .wxgd-icon {
	width: 13px;
	height: 13px;
	margin-left: -10px;
}

.wxgd-switch.is-locked::after {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #fff;
}

/* ---------- Go Premium ---------- */
.wxgd-premium {
	display: none;
}

.wxgd-premium > section + section {
	margin-top: 20px;
}

.wxgd-gp-hero {
	padding: 40px 48px;
	background: linear-gradient(110deg, #fff 0%, #fff 55%, #fff4eb 100%);
}

.wxgd-gp-hero .wxgd-upsell__glow {
	top: -40px;
	right: -20px;
	width: 260px;
	height: 220px;
}

.wxgd .wxgd-gp-hero__title {
	max-width: 640px;
	margin: 14px 0 32px;
	padding: 0;
	color: var(--g-900);
	font-family: inherit;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.wxgd .wxgd-gp-hero__title b {
	display: block;
	font-weight: 600;
}

.wxgd .wxgd-gp-hero__title b span {
	color: var(--o-500);
}

.wxgd-gp-hero__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.wxgd-gp-hero__note {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--g-700);
	font-size: 15px;
}

.wxgd-gp-hero__note .wxgd-icon {
	color: var(--o-500);
	fill: var(--o-500);
}

.wxgd-gp-features {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	background: linear-gradient(110deg, #fff 0%, #fff 50%, #faf5ff 100%);
}

.wxgd-gp-features__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.wxgd-gp-chip {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border: 1px solid var(--g-100);
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--shadow-xs);
	color: var(--p-500);
}

.wxgd-gp-chip .dashicons {
	width: 24px;
	height: 24px;
	font-size: 24px;
}

.wxgd-gp-chip em {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.wxgd-gp-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.wxgd-gp-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.wxgd-home__grid {
		grid-template-columns: 1fr;
	}

	.wxgd-home__side {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wxgd-gp-features {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 960px) {
	body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tab-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}

	body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent {
		overflow-x: auto;
	}

	.wxgd-side {
		position: static;
		padding: 8px;
	}

	.wxgd-nav {
		display: flex;
		gap: 4px;
		overflow-x: auto;
	}

	.wxgd .wxgd-nav__item {
		width: auto;
		white-space: nowrap;
	}

	.wxgd .wxgd-nav__item.is-premium:not(.is-active) {
		margin-top: 0;
	}

	.wxgd-hero,
	.wxgd-help,
	.wxgd-gp-cards {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	body.wxgd-screen .gift-card-setting-wrap.wxgd {
		padding-right: 10px;
	}

	body.wxgd-screen .gift-card-setting-wrap.wxgd .wx-tabcontent {
		padding: 20px 16px !important;
	}

	.wxgd-home__side {
		grid-template-columns: 1fr;
	}

	.wxgd-gp-hero {
		padding: 28px 20px;
	}

	.wxgd .wxgd-gp-hero__title {
		font-size: 24px;
	}

	.wxgd-gp-features__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.wxgd-top__links span {
		display: none;
	}

	.wxgd-subnav {
		flex-wrap: nowrap;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
	}

	.wxgd-panel-head {
		padding: 12px;
	}

	body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table th,
	body.wxgd-screen .gift-card-setting-wrap.wxgd .form-table td {
		display: block;
		width: 100%;
		padding-right: 0;
	}
}
