/**
 * Giveaway Lottery - single giveaway analytics page.
 *
 * Same look as the Analytics tab: Tailwind-style cards, Rubik font
 * (bundled in ../fonts, SIL OFL 1.1), purple #750EF4.
 */

@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");
}

body.admin_page_wxgiveaway-analytic,
body.admin_page_wxgiveaway-analytic #wpwrap,
body.admin_page_wxgiveaway-analytic #wpcontent {
	background: #f5f6fc;
}

.wxpa {
	--p-50: #faf5ff;
	--p-100: #f6eeff;
	--p-200: #e9d7fe;
	--p-500: #750ef4;
	--p-600: #6f0af2;
	--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);
	display: grid;
	gap: 20px;
	max-width: 1280px;
	margin: 20px auto 40px;
	padding-right: 20px;
	color: var(--g-900);
	font-family: "WXG Rubik", Rubik, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.wxpa *,
.wxpa *::before,
.wxpa *::after {
	box-sizing: border-box;
}

.wxpa svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.wxpa h1,
.wxpa h2,
.wxpa h3,
.wxpa p {
	margin: 0;
	padding: 0;
	font-family: inherit;
}

/* ---------- Back link ---------- */
.wxpa .wxpa-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: max-content;
	color: var(--g-600);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.wxpa .wxpa-back:hover {
	color: var(--p-500);
}

.wxpa .wp-header-end {
	margin: 0;
	border: 0;
}

.wxpa > .notice,
.wxpa > .updated,
.wxpa > .error {
	margin: 0;
}

.wxpa .wxpa-back:focus {
	box-shadow: none;
}

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

.wxpa-head__main {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.wxpa-head__img img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	background: var(--g-100);
}

.wxpa-head__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--g-500);
	font-size: 13px;
	font-weight: 500;
}

.wxpa .wxpa-title {
	margin-top: 2px;
	color: var(--g-900);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.wxpa .wxpa-sub {
	margin-top: 2px;
	color: var(--g-500);
	font-size: 13px;
}

.wxpa .wxpa-sub .woocommerce-Price-amount {
	color: var(--g-700);
	font-weight: 500;
}

.wxpa-head__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wxpa-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 1px 10px 1px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
}

.wxpa-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 999px;
	background: currentColor;
}

.wxpa-badge.is-active {
	background: #ecfdf3;
	color: #027a48;
}

.wxpa-badge.is-upcoming {
	background: #eff8ff;
	color: #175cd3;
}

.wxpa-badge.is-completed {
	background: var(--g-100);
	color: var(--g-700);
}

/* ---------- Buttons ---------- */
.wxpa .wxpa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	box-shadow: var(--shadow-xs);
	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;
}

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

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

.wxpa .wxpa-btn--ghost {
	border-color: var(--g-300);
	background: #fff;
	color: var(--g-700);
}

.wxpa .wxpa-btn--ghost:hover,
.wxpa .wxpa-btn--ghost:focus {
	background: var(--g-50);
	color: var(--g-900);
}

.wxpa .wxpa-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px var(--p-100);
}

/* ---------- KPIs ---------- */
.wxpa-kpis {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.wxpa-kpi,
.wxpa-card {
	border: 1px solid var(--g-200);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.wxpa-kpi {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
}

.wxpa-kpi__label {
	color: var(--g-600);
	font-size: 14px;
	font-weight: 500;
}

.wxpa-kpi__value {
	color: var(--g-900);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.wxpa-kpi__value span {
	color: var(--g-400);
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0;
}

.wxpa-kpi__value .woocommerce-Price-amount,
.wxpa-kpi__value bdi {
	color: inherit;
	font: inherit;
}

.wxpa-kpi__foot {
	color: var(--g-500);
	font-size: 13px;
}

.wxpa-progress {
	position: relative;
	height: 8px;
	margin: 6px 0 2px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--p-100);
}

.wxpa-progress i {
	position: absolute;
	inset: 0 auto 0 0;
	border-radius: inherit;
	background: var(--p-500);
}

/* ---------- Dates ---------- */
.wxpa-dates {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 20px 24px;
}

.wxpa-date {
	position: relative;
	display: flex;
	gap: 12px;
	padding-right: 16px;
}

.wxpa-date:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 7px;
	right: 16px;
	left: 28px;
	height: 2px;
	border-radius: 2px;
	background: var(--g-200);
}

.wxpa-date.is-done:not(:last-child)::after {
	background: var(--p-200);
}

.wxpa-date__dot {
	position: relative;
	z-index: 1;
	width: 16px;
	height: 16px;
	margin-top: 0;
	border: 2px solid var(--g-300);
	border-radius: 999px;
	background: #fff;
	flex-shrink: 0;
}

.wxpa-date.is-done .wxpa-date__dot {
	border-color: var(--p-500);
	background: var(--p-500);
	box-shadow: inset 0 0 0 3px #fff;
}

.wxpa-date > div {
	padding-top: 22px;
	margin-left: -28px;
}

.wxpa-date__label {
	color: var(--g-500);
	font-size: 13px;
}

.wxpa-date__value {
	color: var(--g-900);
	font-size: 15px;
	font-weight: 500;
}

.wxpa-date__time {
	color: var(--g-500);
	font-size: 13px;
}

/* ---------- Card + tabs ---------- */
.wxpa-card {
	min-width: 0;
	overflow: hidden;
}

.wxpa-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 24px;
	border-bottom: 1px solid var(--g-200);
}

.wxpa .wxpa-tabs {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border: 0;
	border-radius: 10px;
	background: var(--g-100);
}

.wxpa .wxpa-tabs .tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	height: 36px;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--g-600);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.wxpa .wxpa-tabs .tab-btn:hover {
	color: var(--g-900);
}

.wxpa .wxpa-tabs .tab-btn.active {
	background: #fff;
	box-shadow: var(--shadow-sm);
	color: var(--g-900);
}

.wxpa-count {
	padding: 0 8px;
	border-radius: 999px;
	background: var(--p-100);
	color: var(--p-500);
	font-size: 12px;
	line-height: 20px;
}

.wxpa-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wxpa .tab-content {
	padding: 0;
	border: 0;
	background: #fff;
}

.wxpa .tab-panel {
	display: none;
}

.wxpa .tab-panel.active {
	display: block;
}

/* ---------- Tables ---------- */
.wxpa-table-wrap {
	overflow-x: auto;
}

.wxpa .wxpa-table,
.wxpa #wxgiveaway-tickets-table {
	width: 100%;
	min-width: 640px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: #fff;
	box-shadow: none;
}

.wxpa .wxpa-table th,
.wxpa #wxgiveaway-tickets-table th {
	padding: 12px 16px;
	border-bottom: 1px solid var(--g-200);
	background: var(--g-50);
	color: var(--g-500);
	font-size: 12px;
	font-weight: 500;
	text-align: left;
	white-space: nowrap;
}

.wxpa .wxpa-table td,
.wxpa #wxgiveaway-tickets-table td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--g-200);
	background: #fff;
	color: var(--g-600);
	font-size: 14px;
	vertical-align: middle;
}

.wxpa .wxpa-table th:first-child,
.wxpa .wxpa-table td:first-child {
	padding-left: 24px;
}

.wxpa .wxpa-table th:last-child,
.wxpa .wxpa-table td:last-child {
	padding-right: 24px;
}

.wxpa .wxpa-table tbody tr:hover td,
.wxpa #wxgiveaway-tickets-table tbody tr:hover td {
	background: var(--g-25);
}

.wxpa .wxpa-table tbody tr:last-child td {
	border-bottom: 0;
}

.wxpa .wxpa-table .is-num {
	text-align: right;
}

.wxpa .wxpa-table a,
.wxpa #wxgiveaway-tickets-table a {
	color: var(--p-500);
	font-weight: 500;
	text-decoration: none;
}

.wxpa .wxpa-table a:hover {
	color: var(--p-600);
}

.wxpa-person {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wxpa-avatar {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--p-100);
	color: var(--p-500);
	font-size: 13px;
	font-weight: 500;
	flex-shrink: 0;
}

.wxpa-person__name {
	color: var(--g-900);
	font-weight: 500;
}

.wxpa-person__email {
	color: var(--g-500);
	font-size: 13px;
}

.wxpa-pill {
	display: inline-block;
	min-width: 32px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--g-100);
	color: var(--g-700);
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

/* Pager */
.wxpa-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 24px;
	border-top: 1px solid var(--g-200);
}

.wxpa-pager__info {
	color: var(--g-600);
	font-size: 13px;
}

.wxpa-pager__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.wxpa .wxpa-pager__links .page-numbers,
.wxpa .wxgiveaway-pagination .pagination-links a,
.wxpa .wxgiveaway-pagination .pagination-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: none;
	color: var(--g-600);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.wxpa .wxpa-pager__links a.page-numbers:hover,
.wxpa .wxgiveaway-pagination .pagination-links a:hover {
	background: var(--g-50);
	color: var(--g-900);
}

.wxpa .wxpa-pager__links .page-numbers.current,
.wxpa .wxgiveaway-pagination .pagination-links .current {
	background: var(--p-100);
	color: var(--p-500);
}

/* Empty state */
.wxpa-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 48px 24px;
	text-align: center;
}

.wxpa-empty__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 8px;
	border-radius: 12px;
	background: var(--p-100);
	color: var(--p-500);
}

.wxpa-empty__icon svg {
	width: 24px;
	height: 24px;
}

.wxpa-empty strong {
	color: var(--g-900);
	font-size: 15px;
	font-weight: 500;
}

.wxpa-empty p {
	color: var(--g-500);
	font-size: 13px;
}

/* ---------- Pro: charts and ticket table ---------- */
.wxpa .giveaway-products-analytic-chart-area {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 20px;
	margin: 0;
}

.wxpa .wxgiveaway-ticket-line-graph,
.wxpa .ticket-pie-chart-container {
	display: block;
	width: auto;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: 20px 24px 24px;
	border: 1px solid var(--g-200);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--shadow-sm);
}

.wxpa .wxgiveaway-analytic-chart-container {
	overflow: visible;
	border-radius: 0;
}

.wxpa-chart-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.wxpa .wxpa-chart-title {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--g-900);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}

.wxpa .wxpa-chart-sub {
	margin-top: 2px;
	color: var(--g-500);
	font-size: 13px;
}

.wxpa-legend {
	display: flex;
	gap: 16px;
	padding-top: 4px;
	color: var(--g-600);
	font-size: 13px;
	white-space: nowrap;
}

.wxpa-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.wxpa-legend i {
	width: 8px;
	height: 8px;
	border-radius: 999px;
}

.wxpa-legend i.is-violet {
	background: var(--p-500);
}

.wxpa-legend i.is-blue {
	background: #2e90fa;
}

/* Sold ring */
.wxpa .wxgiveaway-ticket-pie-chart {
	position: relative;
	width: 200px;
	height: 200px;
	margin: 8px auto 20px;
	border-radius: 999px;
	background: conic-gradient(var(--p-500) 0 var(--sold-percent, 0%), var(--p-100) var(--sold-percent, 0%) 100%);
	box-shadow: none;
	animation: none;
	transform: none;
}

.wxpa .wxgiveaway-ticket-pie-chart:hover {
	box-shadow: none;
	transform: none;
}

.wxpa .wxgiveaway-ticket-pie-chart::before {
	top: 16px;
	left: 16px;
	width: calc(100% - 32px);
	height: calc(100% - 32px);
	background: #fff;
	box-shadow: none;
}

.wxpa .wxgiveaway-ticket-pie-chart::after {
	content: attr(data-percentage) "%";
	color: var(--g-900);
	font-family: inherit;
	font-size: 30px;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.wxpa .pie-chart-legend {
	display: grid;
	gap: 6px;
}

.wxpa .pie-chart-legend .legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--g-50);
	box-shadow: none;
}

.wxpa .pie-chart-legend .legend-color {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	box-shadow: none;
}

.wxpa .pie-chart-legend .legend-sold .legend-color {
	background: var(--p-500);
}

.wxpa .pie-chart-legend .legend-remaining .legend-color {
	background: #d9c2fd;
}

.wxpa .pie-chart-legend .legend-text {
	display: flex;
	flex: 1;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	color: var(--g-700);
	font-size: 14px;
	font-weight: 400;
}

.wxpa .pie-chart-legend .legend-count {
	color: var(--g-500);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.wxpa .pie-chart-legend .legend-percentage {
	min-width: 52px;
	margin-left: 0;
	color: var(--g-900);
	font-size: 14px;
	font-weight: 500;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* Ticket table (Pro) */
.wxpa .product-all-ticket-info-with-winner {
	padding: 0;
}

.wxpa .product-all-ticket-info-with-winner > h2 {
	display: none;
}

.wxpa .wxgiveaway-search-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 16px 24px;
	border-bottom: 1px solid var(--g-200);
}

.wxpa-search {
	position: relative;
	display: flex;
	flex: 1 1 260px;
	align-items: center;
	max-width: 380px;
}

.wxpa-search svg {
	position: absolute;
	left: 12px;
	color: var(--g-400);
	pointer-events: none;
}

.wxpa .wxgiveaway-search-box input[type="text"],
.wxpa .per-page-selector select {
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--g-300);
	border-radius: 8px;
	background-color: #fff;
	box-shadow: var(--shadow-xs);
	color: var(--g-700);
	font-family: inherit;
	font-size: 14px;
	line-height: 1;
}

.wxpa .wxgiveaway-search-box input[type="text"] {
	width: 100%;
	padding-left: 38px;
}

.wxpa .wxgiveaway-search-box input[type="text"]:focus,
.wxpa .per-page-selector select:focus,
.wxpa .prize-label-input:focus {
	border-color: #d6bbfb;
	outline: none;
	box-shadow: 0 0 0 4px var(--p-100);
}

.wxpa .wxgiveaway-search-box .button {
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--g-300);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--shadow-xs);
	color: var(--g-700);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 38px;
}

.wxpa .wxgiveaway-search-box .button:hover {
	background: var(--g-50);
	color: var(--g-900);
}

.wxpa .wxgiveaway-search-box #wxgiveaway-search-btn {
	border-color: var(--p-500);
	background: var(--p-500);
	color: #fff;
}

.wxpa .wxgiveaway-search-box #wxgiveaway-search-btn:hover {
	border-color: var(--p-600);
	background: var(--p-600);
}

.wxpa .per-page-selector {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	color: var(--g-600);
	font-size: 14px;
}

.wxpa .per-page-selector select {
	min-width: 76px;
	padding-right: 30px;
}

.wxpa #wxgiveaway-tickets-table td {
	white-space: normal;
}

.wxpa #wxgiveaway-tickets-table tr.is-winner td {
	background: var(--p-50);
}

.wxpa .wxpa-nowrap {
	white-space: nowrap !important;
}

.wxpa .wxpa-center {
	text-align: center;
}

.wxpa #wxgiveaway-tickets-table td:nth-child(7) {
	text-align: center;
}

.wxpa-ticket {
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid var(--g-200);
	border-radius: 6px;
	background: var(--g-50);
	color: var(--g-900);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

.wxpa #wxgiveaway-tickets-table tr.is-winner .wxpa-ticket {
	border-color: var(--p-200);
	background: #fff;
	color: var(--p-500);
}

.wxpa .not-winner {
	color: var(--g-300);
}

.wxpa .prize-label-input {
	width: 100%;
	min-width: 120px;
	height: 34px;
	min-height: 34px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--g-300);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--shadow-xs);
	color: var(--g-900);
	font-family: inherit;
	font-size: 13px;
}

.wxpa .prize-label-status {
	display: block;
	color: var(--g-500);
	font-size: 12px;
}

.wxpa input.winner-checkbox[type="checkbox"] {
	display: inline-grid;
	place-content: center;
	width: 20px;
	height: 20px;
	min-width: 20px;
	margin: 0;
	padding: 0;
	vertical-align: middle;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid var(--g-300);
	border-radius: 6px;
	box-shadow: none;
}

.wxpa input.winner-checkbox[type="checkbox"]:checked {
	border-color: var(--p-500);
	background: var(--p-500);
}

.wxpa input.winner-checkbox[type="checkbox"]:checked::before {
	content: "";
	float: none;
	display: block;
	width: 5px;
	height: 10px;
	margin: 0 0 2px;
	background: none;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.wxpa #wxgiveaway-tickets-table td:nth-child(7) input.winner-checkbox {
	margin: 0 auto;
}

.wxpa input.winner-checkbox[type="checkbox"]:focus {
	outline: none;
	box-shadow: 0 0 0 4px var(--p-100);
}

.wxpa .send-email-btn {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 12px;
	border: 1px solid var(--p-500);
	border-radius: 8px;
	background: var(--p-500);
	box-shadow: var(--shadow-xs);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
}

.wxpa .send-email-btn:hover {
	border-color: var(--p-600);
	background: var(--p-600);
}

.wxpa .send-email-btn:disabled,
.wxpa .send-email-btn:disabled:hover {
	border-color: var(--g-200);
	background: var(--g-50);
	box-shadow: none;
	color: var(--g-400);
	cursor: not-allowed;
}

.wxpa .email-status {
	margin: 4px 0 0;
	color: var(--g-500);
	font-size: 12px;
}

.wxpa .email-status:empty {
	display: none;
}

.wxpa .wxgiveaway-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 14px 24px;
	border-top: 1px solid var(--g-200);
	color: var(--g-600);
	font-size: 13px;
}

.wxpa .wxgiveaway-pagination .displaying-num {
	color: var(--g-600);
	font-size: 13px;
}

.wxpa .wxgiveaway-pagination .pagination-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}


/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.wxpa-kpis {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wxpa .giveaway-products-analytic-chart-area {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 782px) {
	.wxpa {
		margin-top: 12px;
		padding-right: 10px;
		gap: 14px;
	}

	.wxpa-head,
	.wxpa-dates {
		padding: 16px;
	}

	.wxpa-card__head {
		padding: 14px 16px;
	}

	.wxpa-dates {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.wxpa-date:not(:last-child)::after {
		display: none;
	}

	.wxpa-chart-head {
		flex-wrap: wrap;
	}

	.wxpa .per-page-selector {
		margin-left: 0;
	}

	.wxpa-date > div {
		padding-top: 0;
		margin-left: 0;
	}

	.wxpa-head__actions,
	.wxpa-actions {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.wxpa-kpis {
		grid-template-columns: 1fr;
	}
}
