.crf-hide {
	display: none;
}

.crf-funding-closed {
	color: #4F8A10;
}

.crf-funding-completed {
	color: #D8000C;
}

.crf-fund-form .crf-wrapper {
	width: 100%;
	display: block;
	margin: 10px 0;
	clear: both;
}

.crf-wrapper .crf-funding-price,
.crf-wrapper .crf-funding-date {
	color: #6d6d6d;
	font-size: 16px;
	font-weight: normal;
	width: 100%;
	display: block;
}

.crf-wrapper .crf-funding-price span,
.crf-wrapper .crf-funding-date span {
	font-weight: bold;
	color: #000;
}

.crf-wrapper .crf-contribution-val-container {
	float: left;
	display: block;
	margin: 10px 0;
}

.crf-wrapper .crf-contribution-val-container .crf_contribution_val {
	float: left;
	width: 200px;
}

.crf_contribution_btn_wrapper,
.crf_contribution_list_wrapper {
	float: left;
	width: 100%;
	display: block;
}

.crf_contribution_btn_wrapper .crf_contribution_btn {
	border: none;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	margin: 4px 2px;
	cursor: pointer;
	background-color: #e7e7e7;
	color: black;
}

.crf_contribution_btn_wrapper .crf_contribution_btn span {
	font-size: 16px;
	margin: 0;
	padding: 0;
}


.crf_contribution_btn_wrapper .crf_contribution_btn_active {
	background-color: #4CAF50;
}

.crf-contribution-label {
	float: left;
	margin: 10px !important;
	display: block;
}

.crf_contribution_val {
	float: left;
	width: 200px;
	display: block;
	margin: 10px 0;
}

.crf-fund-button {
	display: block !important;
	clear: both;
	margin: 10px 0;
}

.crf-contributor-table tfoot nav {
	float: right;
	border: 0;
	clear: none;
	padding: 0;
	margin-bottom: 0;
}

.crf-contributor-table tfoot nav ul {
	margin: 0;
	list-style: none;
	border: none !important;
}

.crf-contributor-table tfoot nav ul li {
	display: inline-block;
	margin-left: 3px;
}

.crf-contributor-table tfoot nav ul li span {
	margin: 0;
	padding: 0;
}

.crf-contributor-table tfoot nav ul li a {
	display: inline-block;
	padding: 10px;
	margin: 0;
	background: #fafafa;
	border: none;
	color: #43454b;
	text-decoration: none;
}

.crf-contributor-table tfoot nav ul li .current {
	background: none;
	border: none;
}

.crf-contributor-table tfoot nav ul li .current a,
.crf-contributor-table tfoot nav ul li a:hover {
	background: #ccc;
	border: none;
	color: #000;
}

/*Progress bar design*/
.crf-progressbar-wrapper {
	width: 100%;
	height: 10px;
	background-color: #f5f5f5;
	border-radius: 4px;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
	position: relative;
	float: left;
}

.crf-progressbar-wrapper span {
	height: 100%;
	display: block
}

span.crf-progress-bar span.crf-progress {
	border-radius: 4px;
	-webkit-animation: progressBar 3s ease-in-out;
	-webkit-animation-fill-mode: both;
	-moz-animation: progressBar 3s ease-in-out;
	-moz-animation-fill-mode: both;
}

.crf-progress-bar {
	float: left;
	height: 100%;
	line-height: 20px;
	border-radius: 4px;
	color: #fff;
	background-color: #337ab7;
	-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
	font-size: 12px;
	text-align: center;
	-webkit-transition: width .6s ease;
	-o-transition: width .6s ease;
	transition: width .6s ease;
}

.crf-progressbar-product-percentage {
	position: absolute;
	background: #f00;
	height: 40px;
	display: none;
	float: left;
	color: #fdfdfd;
	line-height: 38px;
	padding: 0 10px;
	top: -58px;
}

.crf-progressbar-wrapper:hover .crf-progressbar-product-percentage {
	display: block;
}

.crf-progressbar-product-percentage:after,
.crf-progressbar-product-percentage:before {
	top: 50%;
	left: 0%;
	border: solid transparent;
	content: "";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}

.crf-progressbar-product-percentage:after {
	border-left-color: #f00;
	border-width: 18px;
	margin-left: 0px;
}

.crf-badge {
	position: absolute;
	top: 0;
	right: auto;
	left: 0;
	margin-top: -5px !important;
	margin-left: 0;
	min-width: 80px;
	margin: 0;
	padding: 0;
	color: #fff;
	box-shadow: 0 0 3px #000;
	font-size: 1em;
	font-weight: 700;
	text-align: center;
	line-height: 2.236;
	font-size: 14px;
	z-index: 9;
}

.crf-badge p {
	display: block;
	margin: 0;
	padding: 0 10px;
	font-size: 14px;
	line-height: 2.236;
}

.crf-progressbar-overall-wrapper {
	width: 100%;
	/*    float: left;*/
	display: block;
	margin: 10px 0;
	clear: both;
}

/* Progress bar design 1 */

.crf-progressbar-overall-wrapper-1 .crf-progressbar-product-percentage-content,
.crf-progressbar-overall-wrapper-1 .crf-progressbar-product-amount-content {
	width: 100%;
	color: #000;
	margin-bottom: 10px;
	display: flex;
}

.crf-progressbar-overall-wrapper-1 .crf-progressbar-product-percentage-content .crf-product-percentage-amount {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 50%;
	text-align: left;
}

.crf-progressbar-overall-wrapper-1 .crf-progressbar-product-percentage-content .crf-product-amount-percent {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 50%;
	text-align: right;
}

.crf-progressbar-overall-wrapper-1 .crf-progressbar-product-amount-content .crf-product-goal {

	display: block;
	margin: 10px 0;
	padding: 0;
	width: 33.33%;
	text-align: left;
}

.crf-progressbar-overall-wrapper-1 .crf-progressbar-product-amount-content .crf-product-remaing-amount {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 33.33%;
	text-align: center;
}

.crf-progressbar-overall-wrapper-1 .crf-progressbar-product-amount-content .crf-product-funder-count {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 33.33%;
	text-align: right;
}

/* Progress bar design 2 */

.crf-progressbar-overall-wrapper-2 .crf-progressbar-product-percentage-content {
	width: 100%;
	color: #000;
	margin-bottom: 10px;
	display: block;
	float: left;
}

.crf-progressbar-overall-wrapper-2 .crf-progressbar-product-percentage-content .crf-product-percentage-amount,
.crf-progressbar-overall-wrapper-2 .crf-progressbar-product-percentage-content .crf-product-amount-percent {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 100%;
	float: left;
}

.crf-progressbar-overall-wrapper-2 .crf-progressbar-product-percentage-content .crf-product-amount-percent {
	text-align: right;
}

.crf-progressbar-overall-wrapper-2 .crf-progressbar-product-amount-content {
	width: 100%;
	color: #000;
	margin-bottom: 10px;
	display: flex;
}

.crf-progressbar-overall-wrapper-2 .crf-progressbar-product-amount-content .crf-product-goal {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 33.33%;
	text-align: left;
}

.crf-progressbar-overall-wrapper-2 .crf-progressbar-product-amount-content .crf-product-remaing-amount {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 33.33%;
	text-align: center;
}

.crf-progressbar-overall-wrapper-2 .crf-progressbar-product-amount-content .crf-product-funder-count {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 33.33%;
	text-align: right;
}


/* Progress bar design 3 */

.crf-progressbar-overall-wrapper-3 .crf-progressbar-product-percentage-content {
	width: 100%;
	color: #000;
	margin-bottom: 10px;
	display: flex;
}

.crf-progressbar-overall-wrapper-3 .crf-progressbar-product-percentage-content .crf-product-percentage-amount {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 50%;
	text-align: left;
}

.crf-progressbar-overall-wrapper-3 .crf-progressbar-product-percentage-content .crf-product-amount-percent {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 50%;
	text-align: right;
}

.crf-progressbar-overall-wrapper-3 .crf-progressbar-product-amount-content {
	width: 100%;
	color: #000;
	margin-bottom: 10px;
	display: block;
	float: left;
}

.crf-progressbar-overall-wrapper-3 .crf-progressbar-product-amount-content .crf-product-goal {
	float: left;
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 50%;
	text-align: left;
}

.crf-progressbar-overall-wrapper-3 .crf-progressbar-product-amount-content .crf-product-remaing-amount {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 100%;
	text-align: left;
	float: left;
}

.crf-progressbar-overall-wrapper-3 .crf-progressbar-product-amount-content .crf-product-funder-count {
	float: left;
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 50%;
	text-align: right;
}

/* Progress bar design 4 */

.crf-progressbar-overall-wrapper-4 .crf-progressbar-product-percentage-content {
	width: 100%;
	color: #000;
	margin-bottom: 10px;
	display: block;
	float: left;
}

.crf-progressbar-overall-wrapper-4 .crf-progressbar-product-percentage-content .crf-product-percentage-amount,
.crf-progressbar-overall-wrapper-4 .crf-progressbar-product-percentage-content .crf-product-amount-percent {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 100%;
	float: left;
}

.crf-progressbar-overall-wrapper-4 .crf-progressbar-product-percentage-content .crf-product-amount-percent {
	text-align: right;
}

.crf-progressbar-overall-wrapper-4 .crf-progressbar-product-amount-content {
	width: 100%;
	color: #000;
	margin-bottom: 10px;
	display: block;
	float: left;
}

.crf-progressbar-overall-wrapper-4 .crf-progressbar-product-amount-content .crf-product-goal {
	float: left;
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 50%;
	text-align: left;
}

.crf-progressbar-overall-wrapper-4 .crf-progressbar-product-amount-content .crf-product-remaing-amount {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 100%;
	text-align: left;
	float: left;
}

.crf-progressbar-overall-wrapper-4 .crf-progressbar-product-amount-content .crf-product-funder-count {
	float: left;
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 50%;
	text-align: right;
}

/* Prograss bar design 5 */

.crf-progressbar-overall-wrapper-5 .crf-progressbar-product-percentage-content {
	width: 100%;
	color: #000;
	margin-bottom: 10px;
	display: block;
	float: left;
}

.crf-progressbar-overall-wrapper-5 .crf-progressbar-product-percentage-content .crf-product-percentage-amount,
.crf-progressbar-overall-wrapper-5 .crf-progressbar-product-percentage-content .crf-product-amount-Percent {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 100%;
	float: left;
}

.crf-progressbar-overall-wrapper-5 .crf-progressbar-product-percentage-content .crf-product-amount-Percent {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 100%;
	float: left;
	text-align: right;
}

.crf-progressbar-overall-wrapper-5 .crf-progressbar-product-amount-content {
	width: 100%;
	color: #000;
	margin-bottom: 10px;
	display: block;
	float: left;
}

.crf-progressbar-overall-wrapper-5 .crf-progressbar-product-amount-content .crf-product-goal {
	float: left;
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 50%;
	text-align: left;
}

.crf-progressbar-overall-wrapper-5 .crf-progressbar-product-amount-content .crf-product-remaing-amount {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 100%;
	text-align: left;
	float: left;
}

.crf-progressbar-overall-wrapper-5 .crf-progressbar-product-amount-content .crf-product-funder-count {
	float: left;
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 50%;
	text-align: right;
}

.crf-progressbar-product-percentage-content strong,
.crf-progressbar-product-amount-content strong {
	color: #000;
}

.crf-progressbar-product-percentage-content .crf-product-percentage-amount span,
.crf-progressbar-product-percentage-content .crf-product-amount-percent span,
.crf-progressbar-product-amount-content .crf-product-goal span,
.crf-progressbar-product-amount-content .crf-product-remaing-amount span,
.crf-progressbar-product-amount-content .crf-product-funder-count span {
	color: #6d6d6d;
	font-size: 16px;
}

.crf_msg,
.crf_to_msg {
	width: 100%;
	clear: both;
}

/* Shop Page*/
.crf-progressbar-overall-wrapper-shop-page {
	display: block;
	width: 100%;
	clear: both;

}

.crf-progressbar-overall-wrapper-shop-page .crf-progressbar-product-percentage-content {
	width: 100%;
	color: #000;
	margin-bottom: 10px;
	display: block;
	float: left;
	text-align: right;
}

.crf-progressbar-overall-wrapper-shop-page .crf-progressbar-product-percentage-content .crf-product-amount-percent {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 100%;
	float: left;
	text-align: right;
}

.crf-progressbar-overall-wrapper-shop-page .crf-progressbar-product-amount-content {
	width: 100%;
	color: #000;
	margin-bottom: 10px;
	display: block;
	float: left;
}

.crf-progressbar-overall-wrapper-shop-page .crf-progressbar-product-amount-content .crf-product-goal {
	display: block;
	margin: 10px 0;
	padding: 0;
	width: 100%;
	text-align: left;
}

.crf_required:after {
	content: " *";
	color: #f00;
}

@-webkit-keyframes progressBar {
	0% {
		width: 0%;
	}

	100% {
		width: 100%;
	}
}

@-moz-keyframes progressBar {
	0% {
		width: 0%;
	}

	100% {
		width: 100%;
	}
}

/* my campaign table */

.crf-my-campaigns {
	--crf-radius: 12px;
	--crf-border: #e6e8eb;
	--crf-bg: #ffffff;
	--crf-muted: #6b7280;
	--crf-heading: #1f2933;
	--crf-accent: #4f46e5;
	--crf-accent-hover: #4338ca;
	--crf-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
	color: var(--crf-heading);
	font-size: 14px;
	line-height: 1.5;
}

.crf-my-campaigns__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.crf-my-campaigns__title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--crf-heading);
	line-height: 1.3;
}

.crf-my-campaigns__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.crf-my-campaigns__toolbar-left,
.crf-my-campaigns__toolbar-right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.crf-my-campaigns__search {
	display: inline-flex;
	align-items: center;
	margin: 0;
	background: #fff;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	overflow: hidden;
}

.crf-my-campaigns__search input.crf-my-campaigns-search-input {
	margin: 0;
	padding: 8px 12px;
	min-width: 200px;
	max-width: 100%;
	border: none;
	background: transparent;
	box-shadow: none;
	color: var(--crf-heading);
	font-size: 13px;
	line-height: 1.3;
}

.crf-my-campaigns__search input.crf-my-campaigns-search-input:focus {
	outline: none;
	box-shadow: none;
}

.crf-my-campaigns__search button.crf-my-campaigns-search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	align-self: stretch;
	margin: 0;
	padding: 0;
	border: none;
	border-left: 1px solid var(--crf-border);
	border-radius: 0;
	background: #f9fafb;
	color: var(--crf-muted);
	cursor: pointer;
	box-shadow: none;
	transition: background 0.12s ease, color 0.12s ease;
}

.crf-my-campaigns__search button.crf-my-campaigns-search-btn:hover {
	background: var(--crf-accent);
	color: #fff;
}

.crf-my-campaigns__search button.crf-my-campaigns-search-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

.crf-my-campaigns__sort {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px 0 10px;
	background: #fff;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	color: var(--crf-muted);
}

.crf-my-campaigns__sort .dashicons-sort {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #98a2b3;
	pointer-events: none;
}

.crf-my-campaigns__sort select.crf-my-campaigns-sort {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	margin: 0;
	padding: 8px 4px;
	min-width: 170px;
	max-width: 100%;
	border: none;
	background: transparent;
	box-shadow: none;
	color: var(--crf-heading);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	cursor: pointer;
}

.crf-my-campaigns__sort select.crf-my-campaigns-sort:focus {
	outline: none;
	box-shadow: none;
}

.crf-my-campaigns__sort::after {
	content: "";
	width: 8px;
	height: 8px;
	margin-left: -4px;
	border-right: 2px solid #98a2b3;
	border-bottom: 2px solid #98a2b3;
	transform: rotate(45deg) translateY(-2px);
	pointer-events: none;
}

.crf-my-campaigns .new-campaign-action.button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #fff !important;
	background: var(--crf-accent);
	border: 1px solid var(--crf-accent);
	border-radius: 8px;
	box-shadow: none;
	text-decoration: none;
	transition: background 0.15s ease, transform 0.05s ease;
}

.crf-my-campaigns .new-campaign-action.button:hover {
	background: var(--crf-accent-hover);
	border-color: var(--crf-accent-hover);
	color: #fff !important;
}

.crf-my-campaigns .new-campaign-action.button:active {
	transform: translateY(1px);
}

.crf-my-campaigns .new-campaign-action.button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

/* Status views bar */
.crf-my-campaigns__views {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 4px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.crf-my-campaigns__views li {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.crf-my-campaigns__views .crf-views-sep {
	margin: 0 8px;
	color: #d0d5dd;
}

.crf-my-campaigns__views a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 8px;
	color: var(--crf-muted);
	font-weight: 500;
	text-decoration: none !important;
	transition: background 0.12s ease, color 0.12s ease;
}

.crf-my-campaigns__views a:hover {
	background: #f2f4f7;
	color: var(--crf-heading);
}

.crf-my-campaigns__views a.current {
	background: #eef2ff;
	color: var(--crf-accent);
	font-weight: 600;
}

.crf-my-campaigns__views a .count {
	color: inherit;
	opacity: 0.7;
	font-weight: 500;
}

.crf-frontend-table__wrap {
	background: var(--crf-bg);
	border: 1px solid var(--crf-border);
	border-radius: var(--crf-radius);
	box-shadow: var(--crf-shadow);
	overflow-x: auto;
}

.crf-frontend-table {
	width: 100%;
	margin: 0;
	padding: 0;
	border-collapse: collapse;
	background: transparent;
}

.crf-frontend-table thead {
	background: #f9fafb;
}

.crf-frontend-table thead th {
	padding: 14px 18px;
	color: var(--crf-muted);
	background: #f9fafb;
	border: none;
	border-bottom: 1px solid var(--crf-border);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 12px;
	font-weight: 600;
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
}

.crf-frontend-table tbody tr {
	transition: background 0.12s ease;
}

.crf-frontend-table tbody tr:not(.crf-frontend-table__empty):hover {
	background: #f9fafb;
}

.crf-frontend-table tbody td {
	padding: 16px 18px;
	color: var(--crf-heading);
	background: none;
	border: none;
	border-bottom: 1px solid var(--crf-border);
	font-size: 14px;
	text-align: left;
	vertical-align: middle;
	word-break: normal;
}

.crf-frontend-table tbody tr:last-child td {
	border-bottom: none;
}

.crf-frontend-table tbody td a,
.crf-frontend-table tbody td a.row-title {
	color: var(--crf-accent);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
}

.crf-frontend-table tbody td a:hover {
	text-decoration: underline !important;
}

.crf-frontend-table__empty td {
	text-align: center;
	padding: 48px 18px;
	color: var(--crf-muted);
	font-size: 15px;
}

.crf-frontend-table__empty .dashicons {
	display: block;
	margin: 0 auto 8px;
	font-size: 34px;
	width: 34px;
	height: 34px;
	color: #cbd2d9;
}

/* Campaign name + thumbnail (media object) */
.crf-campaign-cell {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 200px;
}

.crf-campaign-cell__thumb {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	background: #f2f4f7;
	box-shadow: inset 0 0 0 1px var(--crf-border);
}

.crf-campaign-cell__thumb img {
	display: block;
	width: 56px;
	height: 56px;
	max-width: none;
	object-fit: cover;
	border-radius: 10px;
	margin: 0;
}

.crf-campaign-cell__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	padding-top: 1px;
}

.crf-campaign-cell__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--crf-heading);
	text-decoration: none !important;
	word-break: break-word;
}

a.crf-campaign-cell__title {
	color: var(--crf-accent);
	transition: color 0.12s ease;
}

a.crf-campaign-cell__title:hover {
	color: var(--crf-accent-hover);
	text-decoration: underline !important;
}

.crf-campaign-cell__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-top: 2px;
}

.crf-campaign-cell__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--crf-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.crf-campaign-cell__meta .dashicons {
	font-size: 13px;
	width: 13px;
	height: 13px;
	line-height: 13px;
	color: #98a2b3;
}

/* Optimized column widths */
.crf-frontend-table .crf-col-campaign {
	width: 40%;
}

.crf-frontend-table .crf-col-target,
.crf-frontend-table .crf-col-progress {
	width: 22%;
}

.crf-frontend-table .crf-col-status {
	width: 16%;
	white-space: nowrap;
}

/* Funding progress cell */
.crf-progress-cell__amount {
	font-weight: 600;
	color: var(--crf-heading);
	margin-bottom: 4px;
}

.crf-progress-cell__meta {
	margin-top: 4px;
	color: var(--crf-muted);
	font-size: 12px;
}

/* Status badges */
.crf-frontend-table [class$="_status"],
.crf-frontend-table .crf_new_request,
.crf-frontend-table .crf_extend_request,
.crf-frontend-table .crf_extend_request_approved,
.crf-frontend-table .crf_extend_request_rejected {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	background: #eef2f7;
	color: #475467;
}

.crf-frontend-table .crf_on_going_status,
.crf-frontend-table .crf_extend_request {
	background: #eef4ff;
	color: #3538cd;
}

.crf-frontend-table .crf_completed_status,
.crf-frontend-table .crf_paid_status,
.crf-frontend-table .crf_extend_request_approved {
	background: #e7f6ec;
	color: #067647;
}

.crf-frontend-table .crf_not_started_status,
.crf-frontend-table .crf_closed_status {
	background: #f2f4f7;
	color: #475467;
}

.crf-frontend-table .crf_new_request,
.crf-frontend-table .crf_extend_status {
	background: #fef6e7;
	color: #b54708;
}

.crf-frontend-table .crf_rejected_status,
.crf-frontend-table .crf_extend_rejected_status,
.crf-frontend-table .crf_extend_request_rejected {
	background: #fdeceb;
	color: #b42318;
}

.crf-frontend-table .crf-extend-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 8px 0 0;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--crf-accent) !important;
	background: #fff;
	border: 1px solid var(--crf-accent);
	border-radius: 8px;
	box-shadow: none;
	text-shadow: none;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.crf-frontend-table .crf-extend-btn::before {
	content: "\f463";
	font-family: dashicons;
	font-size: 14px;
	line-height: 1;
	vertical-align: middle;
}

.crf-frontend-table .crf-extend-btn:hover,
.crf-frontend-table .crf-extend-btn:focus {
	background: var(--crf-accent);
	color: #fff !important;
	box-shadow: 0 1px 3px rgba(79, 70, 229, 0.35);
}

/* Funding progress bar (My Campaigns / dashboard tables) */
.crf-mc-progress {
	position: relative;
	width: 100%;
	min-width: 90px;
	max-width: 160px;
	height: 8px;
	background: #eceff3;
	border-radius: 999px;
	overflow: hidden;
}

.crf-mc-progress__bar {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #4f46e5, #6366f1);
	transition: width 0.4s ease;
}

.crf-mc-progress__label {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--crf-muted);
}

.crf-frontend-table tfoot {
	border: none;
	box-shadow: none;
}

.crf-frontend-table tfoot td {
	padding: 14px 18px;
	background: #f9fafb;
	border: none;
	border-top: 1px solid var(--crf-border);
}

.crf-frontend-table tfoot nav {
	float: right;
	border: 0;
	clear: none;
	padding: 0;
	margin-bottom: 0;
}

.crf-frontend-table tfoot nav ul {
	margin: 0;
	list-style: none;
	border: none !important;
}

.crf-frontend-table tfoot nav ul li {
	display: inline-block;
	margin-left: 3px;
}

.crf-frontend-table tfoot nav ul li span {
	margin: 0;
	padding: 0;
}

.crf-frontend-table tfoot nav ul li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	padding: 7px 10px;
	margin: 0;
	background: #fff;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	color: #475467;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.crf-frontend-table tfoot nav ul li .current {
	background: none;
	border: none;
}

.crf-frontend-table tfoot nav ul li .current a,
.crf-frontend-table tfoot nav ul li a:hover {
	background: var(--crf-accent);
	border-color: var(--crf-accent);
	color: #fff;
}

/* Responsive: stack rows as cards on small screens */
@media screen and (max-width: 768px) {
	.crf-frontend-table__wrap {
		overflow-x: visible;
		background: transparent;
		border: none;
		box-shadow: none;
	}

	.crf-frontend-table,
	.crf-frontend-table thead,
	.crf-frontend-table tbody,
	.crf-frontend-table tr,
	.crf-frontend-table td {
		display: block;
		width: 100%;
	}

	.crf-frontend-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.crf-frontend-table tbody tr:not(.crf-frontend-table__empty) {
		margin-bottom: 16px;
		background: var(--crf-bg);
		border: 1px solid var(--crf-border);
		border-radius: var(--crf-radius);
		box-shadow: var(--crf-shadow);
		overflow: hidden;
	}

	.crf-frontend-table tbody td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		text-align: right;
		padding: 12px 16px;
	}

	.crf-frontend-table tbody td::before {
		content: attr(data-title);
		flex: 0 0 auto;
		margin-right: auto;
		color: var(--crf-muted);
		font-size: 12px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.03em;
		text-align: left;
	}

	.crf-mc-progress {
		max-width: 55%;
	}

	.crf-campaign-cell {
		min-width: 0;
		justify-content: flex-end;
		text-align: right;
	}

	.crf-campaign-cell__body {
		align-items: flex-end;
		text-align: right;
	}

	.crf-frontend-table tfoot,
	.crf-frontend-table tfoot td {
		display: block;
		width: 100%;
	}

	.crf-frontend-table tfoot nav {
		float: none;
		display: flex;
		justify-content: center;
	}
}

.crf-new-campaign-btn,
.crf-extend-btn,
.crf-button {
	background: #eeeeee;
	border: 1px solid #eeeeee;
	border-radius: 5px;
	color: #333333 !important;
	cursor: pointer;
	padding: 7px 15px;
	text-decoration: none;
	font-weight: 600;
	text-shadow: none;
	display: inline-block;
	-webkit-appearance: none;
	margin: 10px 0;
}

/*campaign-form-design*/

.crf-campaign-form {
	--crf-border: #e6e8eb;
	--crf-bg: #ffffff;
	--crf-muted: #6b7280;
	--crf-heading: #1f2933;
	--crf-accent: #4f46e5;
	--crf-accent-hover: #4338ca;
	--crf-radius: 12px;
	--crf-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
	display: block;
	width: 100%;
	color: var(--crf-heading);
	font-size: 14px;
}

.crf-campaign-form .crf_campaign_form_container {
	display: block;
	float: none;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	padding: 28px;
	background: var(--crf-bg);
	border: 1px solid var(--crf-border);
	border-radius: var(--crf-radius);
	box-shadow: var(--crf-shadow);
	box-sizing: border-box;
}

.crf-campaign-form .crf_campaign_form_container .crf_campaign_form_header {
	float: none;
	display: block;
	width: 100%;
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--crf-border);
}

.crf-campaign-form .crf_campaign_form_container .crf_campaign_form_header h3 {
	margin: 0;
	color: var(--crf-heading);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
}

.crf-campaign-form .crf_campaign_form_container p.crf-form-field {
	display: block;
	width: 100%;
	float: none;
	margin: 0 0 16px 0 !important;
}

.crf-campaign-form .crf_campaign_form_container p.crf-form-field label {
	display: block;
	width: 100%;
	float: none;
	margin: 0 0 6px 0;
	color: var(--crf-muted);
	font-size: 13px;
	font-weight: 600;
}

.crf-campaign-form .crf_campaign_form_container p.crf-form-field label.crf_required::after {
	content: " *";
	color: #b42318;
}

.crf-campaign-form .crf_campaign_form_container p.crf-form-field input[type='text'],
.crf-campaign-form .crf_campaign_form_container p.crf-form-field input[type='number'],
.crf-campaign-form .crf_campaign_form_container p.crf-form-field select,
.crf-campaign-form .crf_campaign_form_container p.crf-form-field textarea {
	width: 100% !important;
	float: none;
	min-height: 42px;
	border: 1px solid var(--crf-border);
	background: #fff;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--crf-heading);
	box-shadow: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.crf-campaign-form .crf_campaign_form_container p.crf-form-field textarea {
	min-height: 96px;
}

.crf-campaign-form .crf_campaign_form_container p.crf-form-field input[type='text']:focus,
.crf-campaign-form .crf_campaign_form_container p.crf-form-field input[type='number']:focus,
.crf-campaign-form .crf_campaign_form_container p.crf-form-field select:focus,
.crf-campaign-form .crf_campaign_form_container p.crf-form-field textarea:focus {
	border-color: var(--crf-accent);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
	outline: none;
}

.crf-campaign-form .crf_campaign_form_container p.crf-form-field .select2-container {
	width: 100% !important;
}

.crf-campaign-form .crf_campaign_form_container p.crf-form-field .select2-container .select2-selection {
	min-height: 42px;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	background: #fff;
	display: flex;
	align-items: center;
}

.crf-campaign-form .crf_campaign_form_container p.crf-form-field input.crf_datetimepicker {
	width: 100% !important;
	margin: 0;
}

.crf-campaign-form .crf_campaign_form_container p.crf-form-field img {
	display: inline-block;
	margin-top: 10px;
	border-radius: 8px;
}

/* Buttons - match the dashboard */
.crf-campaign-form .crf-button.button,
.crf-campaign-form .crf-add-new-perk.button,
.crf-campaign-form input.crf_save_perk_data,
.crf-campaign-form input.crf_close_perk_data {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 4px 0;
	padding: 11px 20px;
	border-radius: 8px;
	border: 1px solid var(--crf-accent);
	background: var(--crf-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	-webkit-appearance: none;
}

.crf-campaign-form .crf-button.button:hover,
.crf-campaign-form input.crf_save_perk_data:hover {
	background: var(--crf-accent-hover);
	border-color: var(--crf-accent-hover);
	color: #fff !important;
}

/* Secondary (outline) buttons */
.crf-campaign-form .crf-add-new-perk.button,
.crf-campaign-form input.crf_close_perk_data {
	background: #fff;
	color: var(--crf-accent) !important;
}

.crf-campaign-form .crf-add-new-perk.button:hover {
	background: #eef2ff;
}

.crf-campaign-form input.crf_close_perk_data {
	border-color: var(--crf-border);
	color: var(--crf-muted) !important;
}

.crf-campaign-form input.crf_close_perk_data:hover {
	background: #f2f4f7;
}

/* Perk sub-section as a nested card */
.crf-campaign-form .crf_perk_data {
	margin: 8px 0 16px;
	padding: 18px;
	background: #f9fafb;
	border: 1px solid var(--crf-border);
	border-radius: var(--crf-radius);
}

.crf-campaign-form .woocommerce-terms-and-conditions-link {
	color: var(--crf-accent);
}

/* Saved perk cards (rendered after adding a perk) */
.crf-campaign-form .crf_perk_table {
	display: block;
	width: 100%;
}

.crf-campaign-form .crf-perk-product-data {
	margin: 0 0 16px;
	padding: 18px 20px;
	background: var(--crf-bg);
	border: 1px solid var(--crf-border);
	border-radius: var(--crf-radius);
	box-shadow: var(--crf-shadow);
}

.crf-campaign-form .crf-perk-product-data p {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--crf-heading);
}

.crf-campaign-form .crf-perk-product-data p label {
	display: inline;
	width: auto;
	float: none;
	margin: 0 4px 0 0;
	color: var(--crf-muted);
	font-size: 14px;
	font-weight: 600;
}

.crf-campaign-form .crf-perk-product-data p label b {
	font-weight: 600;
}

.crf-campaign-form .crf-perk-product-data a {
	color: var(--crf-accent);
	text-decoration: none;
}

.crf-campaign-form .crf-perk-product-data a:hover {
	text-decoration: underline;
}

.crf-campaign-form .crf-perk-product-data img {
	border-radius: 8px;
	margin-top: 8px;
}

.crf-campaign-form .crf-perk-product-data input.crf_edit_perk,
.crf-campaign-form .crf-perk-product-data input.crf_remove_perk {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 10px 8px 0 0;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	text-shadow: none;
	-webkit-appearance: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.crf-campaign-form .crf-perk-product-data input.crf_edit_perk {
	border: 1px solid var(--crf-accent);
	background: #fff;
	color: var(--crf-accent);
}

.crf-campaign-form .crf-perk-product-data input.crf_edit_perk:hover {
	background: #eef2ff;
}

.crf-campaign-form .crf-perk-product-data input.crf_remove_perk {
	border: 1px solid #f4c7c2;
	background: #fff;
	color: #b42318;
}

.crf-campaign-form .crf-perk-product-data input.crf_remove_perk:hover {
	background: #fdeceb;
	border-color: #eaa39c;
}

.crf-campaign-form .crf_campaign_err {
	color: #f00;
}

.crf_reject,
.crf_rejected_status,
.crf_extend_rejected_status,
.crf_closed_status,
.crf_extend_request_rejected,
.crf_not_started_status {
	color: #dc3232 !important;
}

.crf_on_going_status,
.crf_extend_request_approved,
a.crf_accept {
	color: #4F8A10 !important;
}

.crf_paid_status {
	color: #f208cedb !important;
}

.crf_new_status,
.crf_new_request,
.crf_extend_request,
.crf_extend_status {
	color: #00a0d2 !important;
}

.crf-wrapper table {
	width: 100%;
	border-collapse: collapse;
	border: none;
}

.crf-wrapper table tbody {
	background: #fdfdfd;
}

.crf-wrapper table tbody td,
.crf-wrapper table tbody th {
	padding: 1em 1.41575em;
	text-align: left;
	vertical-align: top;
}

.crf-wrapper table tbody tr:nth-child(2n) {
	background: #fbfbfb;
}

.crf-wrapper table tbody td img {
	width: 64px;
	height: auto;
	min-width: 64px;
}

.crf_perk_table .crf-perk-product-data {
	padding: 10px;
	border-radius: 5px;
	border: 1px solid #ccc;
	box-shadow: 0 0 3px #000 inset;
	width: 100%;
	float: left;
	display: block;
	margin-bottom: 10px;
}

.crf_perk_table .crf-perk-product-data p {
	margin: 0 0 10px 0;
}

.crf_campaign_products .crf-filter-controls-wrap select,
.crf_campaign_products .crf-filter-wrap select,
.crf_campaign_products .crf-filter-wrap input[type='text'] {
	width: 170px;
	height: 40px;
	border-radius: 5px;
	background: #fdfdfd;
	border: 1px solid #f1f1f1;
}

.crf_campaign_products .crf-filter-wrap input[type='search'] {
	padding: 0.6180469716em;
	width: 100%;
	background-color: #ededed;
	color: #43454b;
	box-sizing: border-box;
	font-weight: normal;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.125);
	border-radius: 5px;
}

.crf-product-categories-filter-container {
	width: 100%;
	float: left;
	margin: 15px 0;
}

.crf_campaign_products .crf-product-categories-filter-container input[type='search'] {
	background: none;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
}

.crf_campaign_products .crf-product-categories-filter-container label {
	width: 100%;
	float: left;
	padding: 0;
	margin: 0 0 15px 0;
	color: #333;
	font-size: 16px;
	font-weight: normal;
}

.crf_campaign_products .crf-product-categories-filter-container .select2-container {
	width: 100% !important;
}

.crf-filter-controls-wrap {
	background-color: #ffffff;
	padding: 20px;
	box-shadow: 1px 1px 20px 0px #E9E9E9;
	display: inline-block;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.crf-filter-controls-wrap .crf-product-count,
.crf-filter-controls-wrap .crf-product-sort-container {
	width: 50%;
	float: left;
}

.crf-filter-controls-wrap .crf-product-sort-container {
	text-align: right;
}

.crf-filter-controls-wrap .crf-filter-button-container {
	width: 100%;
	float: left;
}

.crf-filter-wrap,
.crf-product-table-container {
	background: #ffffff;
	margin-top: 32px;
	padding: 32px 20px 20px 20px;
	box-shadow: 1px 1px 20px 0px #E9E9E9;
	position: relative;
	float: left;
	width: 100%
}

.crf-filter-controls-wrap p {
	margin: 15px 0;
}

.crf-filter-controls-wrap .crf-filter-button,
.crf-filter-wrap .crf-apply-filter .crf-product-search-btn {
	padding: 0.3em 1.41575em;
	border-radius: 5px;
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
	text-shadow: none;
	display: inline-block;
}

.crf-filter-controls-wrap .crf-filter-button,
.crf-filter-wrap .crf-apply-filter .crf-product-search-btn {
	color: #ffffff;
	background: #000066;
	border: 1px solid #000066;
}

.crf-filter-controls-wrap .crf-filter-button:hover,
.crf-filter-wrap .crf-apply-filter .crf-product-search-btn:hover {
	box-shadow: 0 0 3px #000;
	background: #000;
	color: #fff;
	border: 1px solid #000;
}

.crf-product-search-inp {
	width: 100%;
	padding: 10px 20px;
	border-radius: 3px;
	border: 1px solid #cccccc;
}

.crf-product-time-filter-container {
	display: inline-block;
	width: 100%;
	margin-top: 10px;
}

.crf-product-time-filter-container .crf-time-filter-wrap,
.crf-product-time-filter-container .crf-start-date-wrap,
.crf-product-time-filter-container .crf-end-date-wrap {
	width: 33%;
	float: left;
}

.crf-product-time-filter-container .crf-time-filter-wrap {
	text-align: left;
}

.crf-product-time-filter-container .crf-start-date-wrap {
	text-align: center;
}

.crf-product-time-filter-container .crf-end-date-wrap {
	text-align: right;
}

.crf-apply-filter {
	width: 100%;
	display: inline-block;
	text-align: right;
	margin-top: 10px;
}

@media screen and (max-width: 768px) {

	.crf-frontend-table {
		border: 1px solid #f1f1f1;
	}

	.crf-frontend-table tbody tr {
		display: block;
	}

	.crf-frontend-table thead {
		display: none;
	}

	.crf-frontend-table tr td::before {
		float: left;
		content: attr(data-title) ": ";
		font-weight: 700;
	}

	.crf-frontend-table tfoot tr td {
		border: none;
		text-align: center !important;
	}

	.crf-frontend-table tfoot tr td nav {
		float: none;
	}

	.crf-frontend-table tfoot tr td::before {
		float: left;
		content: " ";
	}

	.crf-frontend-table tr td {
		display: block;
		border-right: 0;
		border-bottom: 1px solid #f1f1f1;
		text-align: right !important;
	}

	.crf-frontend-table tbody td button {
		float: none;
	}

	.crf-campaign-form .crf_campaign_form_container {
		display: block;
		float: left;
		width: 95%;
		margin-left: 2.5%;
		padding: 25px;
		border: 1px solid #000;
		border-radius: 10px;
		box-shadow: 0 0 3px #000 inset;
	}

	.crf-campaign-form .crf_campaign_form_container p.crf-form-field input.crf_datetimepicker {
		width: 85% !important;
		margin-right: 10px;
	}

	.crf-product-time-filter-container,
	.crf-filter-controls-wrap {
		display: inline-block;
		margin-top: 15px;
	}

	.crf-product-time-filter-container .crf-time-filter-wrap,
	.crf-product-time-filter-container .crf-start-date-wrap,
	.crf-product-time-filter-container .crf-end-date-wrap,
	.crf-filter-controls-wrap div {
		width: 100%;
		display: block;
		float: left;
		margin: 5px 0;
	}
}
/* ==========================================================================
   Campaign Creator Dashboard  ([crf_dashboard])
   ========================================================================== */
.crf-dashboard {
	--crf-radius: 12px;
	--crf-border: #e6e8eb;
	--crf-bg: #ffffff;
	--crf-muted: #6b7280;
	--crf-heading: #1f2933;
	--crf-accent: #4f46e5;
	--crf-accent-hover: #4338ca;
	--crf-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
	color: var(--crf-heading);
	font-size: 14px;
	line-height: 1.5;
}

.crf-dashboard__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 22px;
}

.crf-dashboard__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--crf-heading);
}

.crf-dashboard__subtitle {
	margin: 4px 0 0;
	color: var(--crf-muted);
	font-size: 13px;
}

.crf-dashboard__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.crf-dashboard .crf-dashboard__btn.button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: var(--crf-heading);
	background: #fff;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	box-shadow: none;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.crf-dashboard .crf-dashboard__btn.button:hover {
	background: #f2f4f7;
}

.crf-dashboard .crf-dashboard__btn--primary.button {
	color: #fff;
	background: var(--crf-accent);
	border-color: var(--crf-accent);
}

.crf-dashboard .crf-dashboard__btn--primary.button:hover {
	background: var(--crf-accent-hover);
	border-color: var(--crf-accent-hover);
	color: #fff;
}

.crf-dashboard__btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

/* Stat cards */
.crf-dashboard__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.crf-stat-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: var(--crf-bg);
	border: 1px solid var(--crf-border);
	border-radius: var(--crf-radius);
	box-shadow: var(--crf-shadow);
}

.crf-stat-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	font-size: 20px;
	border-radius: 10px;
	background: #eef2ff;
	color: var(--crf-accent);
}

.crf-stat-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.crf-stat-card__value {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--crf-heading);
}

.crf-stat-card__label {
	margin-top: 2px;
	font-size: 12px;
	font-weight: 500;
	color: var(--crf-muted);
}

.crf-stat-card__meta {
	margin-top: 2px;
	font-size: 11px;
	color: var(--crf-muted);
	opacity: 0.85;
}

.crf-stat-card--total_raised .crf-stat-card__icon { background: #e7f6ec; color: #067647; }
.crf-stat-card--paid_amount .crf-stat-card__icon { background: #e6f4f6; color: #0e7490; }
.crf-stat-card--total_backers .crf-stat-card__icon { background: #fff4e5; color: #b54708; }
.crf-stat-card--completed_campaigns .crf-stat-card__icon { background: #e7f6ec; color: #067647; }
.crf-stat-card--contributed_amount .crf-stat-card__icon { background: #fdeceb; color: #b42318; }

/* Panels */
.crf-dashboard__panel {
	margin-bottom: 22px;
	padding: 18px;
	background: var(--crf-bg);
	border: 1px solid var(--crf-border);
	border-radius: var(--crf-radius);
	box-shadow: var(--crf-shadow);
}

.crf-dashboard__panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

/* Search box (dashboard tables) */
.crf-dashboard__search {
	display: inline-flex;
	align-items: center;
	margin: 0;
	background: #fff;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	overflow: hidden;
}

.crf-dashboard__search-input {
	margin: 0;
	padding: 7px 12px;
	min-width: 200px;
	max-width: 100%;
	border: none;
	background: transparent;
	box-shadow: none;
	color: var(--crf-heading);
	font-size: 13px;
	line-height: 1.3;
}

.crf-dashboard__search-input:focus {
	outline: none;
	box-shadow: none;
}

.crf-dashboard__search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	align-self: stretch;
	margin: 0;
	padding: 0;
	border: none;
	border-left: 1px solid var(--crf-border);
	border-radius: 0;
	background: #f9fafb;
	color: var(--crf-muted);
	cursor: pointer;
	box-shadow: none;
	transition: background 0.12s ease, color 0.12s ease;
}

.crf-dashboard__search-btn:hover {
	background: var(--crf-accent);
	color: #fff;
}

.crf-dashboard__search-btn .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	line-height: 15px;
}

.crf-dashboard__state {
	display: none;
}

/* Sortable column headers */
.crf-dashboard__table th a.crf-dashboard__sort {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
}

.crf-dashboard__table th a.crf-dashboard__sort:hover {
	color: var(--crf-accent);
}

.crf-dashboard__sort-arrow {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	opacity: 0;
	transition: opacity 0.12s ease;
}

.crf-dashboard__sort.is-sorted .crf-dashboard__sort-arrow {
	opacity: 1;
}

.crf-dashboard__sort.is-asc .crf-dashboard__sort-arrow {
	border-bottom: 5px solid currentColor;
}

.crf-dashboard__sort.is-desc .crf-dashboard__sort-arrow {
	border-top: 5px solid currentColor;
}

.crf-dashboard__table th a.crf-dashboard__sort:hover .crf-dashboard__sort-arrow {
	opacity: 0.6;
}

.crf-dashboard__panel-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--crf-heading);
}

.crf-dashboard__panel-head .crf-dashboard__panel-title { margin: 0; }

.crf-dashboard__panel-link {
	font-size: 13px;
	font-weight: 600;
	color: var(--crf-accent);
	text-decoration: none;
}

.crf-dashboard__panel-link:hover { text-decoration: underline; }

/* Status breakdown */
.crf-dashboard__breakdown {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.crf-dashboard__breakdown li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 12px;
	background: #f9fafb;
	border: 1px solid var(--crf-border);
	border-radius: 999px;
	list-style: none;
}

.crf-dashboard__breakdown-count {
	font-weight: 700;
	color: var(--crf-heading);
}

/* Status badges (shared look with the My Campaigns table) */
.crf-dashboard [class$="_status"] {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	background: #eef2f7;
	color: #475467;
}

.crf-dashboard .crf_on_going_status { background: #eef4ff; color: #3538cd; }
.crf-dashboard .crf_completed_status,
.crf-dashboard .crf_paid_status { background: #e7f6ec; color: #067647; }
.crf-dashboard .crf_not_started_status,
.crf-dashboard .crf_closed_status { background: #f2f4f7; color: #475467; }
.crf-dashboard .crf_new_status,
.crf-dashboard .crf_extend_status { background: #fef6e7; color: #b54708; }
.crf-dashboard .crf_rejected_status,
.crf-dashboard .crf_extend_rejected_status { background: #fdeceb; color: #b42318; }

/* Recent campaigns table */
.crf-dashboard__table-wrap { overflow-x: auto; }

.crf-dashboard__table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.crf-dashboard__table thead th {
	padding: 10px 12px;
	border-bottom: 1px solid var(--crf-border);
	color: var(--crf-muted);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-align: left;
	white-space: nowrap;
}

.crf-dashboard__table tbody td {
	padding: 12px;
	border-bottom: 1px solid #f0f2f5;
	font-size: 14px;
	vertical-align: middle;
}

.crf-dashboard__table tbody tr:last-child td { border-bottom: none; }

.crf-dashboard__table tbody td a {
	color: var(--crf-accent);
	font-weight: 600;
	text-decoration: none;
}

.crf-dashboard__table tbody td a:hover { text-decoration: underline; }

/* Empty state */
.crf-dashboard__empty {
	padding: 32px 16px;
	text-align: center;
	color: var(--crf-muted);
}

.crf-dashboard__empty .dashicons {
	font-size: 34px;
	width: 34px;
	height: 34px;
	color: #cbd2d9;
}

.crf-dashboard__empty p { margin: 8px 0 14px; }

@media screen and (max-width: 768px) {
	.crf-dashboard__table,
	.crf-dashboard__table thead,
	.crf-dashboard__table tbody,
	.crf-dashboard__table tr,
	.crf-dashboard__table td {
		display: block;
		width: 100%;
	}

	.crf-dashboard__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.crf-dashboard__table tbody tr {
		margin-bottom: 12px;
		border: 1px solid var(--crf-border);
		border-radius: var(--crf-radius);
		overflow: hidden;
	}

	.crf-dashboard__table tbody td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		text-align: right;
	}

	.crf-dashboard__table tbody td::before {
		content: attr(data-title);
		color: var(--crf-muted);
		font-size: 12px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.03em;
		text-align: left;
	}
}

/* Embedded My Campaigns table inside the dashboard */
.crf-dashboard__panel--campaigns {
	padding: 0;
	background: none;
	border: none;
	box-shadow: none;
}

.crf-dashboard__panel--campaigns .crf-my-campaigns__header {
	display: none;
}

.crf-dashboard__view-all.button {
	padding: 7px 14px;
	font-size: 13px;
}

.crf-dashboard__view-all .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	line-height: 15px;
}

/* ==========================================================================
   Campaign Follow button
   ========================================================================== */
.crf-follow {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 14px 0;
}

.crf-follow .crf-follow__btn.button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 9px 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #4f46e5;
	background: #fff;
	border: 1px solid #4f46e5;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.crf-follow .crf-follow__btn.button:hover {
	background: #eef2ff;
}

.crf-follow .crf-follow__btn.button .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

.crf-follow .crf-follow__btn.is-following {
	color: #fff;
	background: #4f46e5;
	border-color: #4f46e5;
}

.crf-follow .crf-follow__btn.is-following:hover {
	background: #b42318;
	border-color: #b42318;
}

/* Swap the label to "Unfollow" on hover when already following. */
.crf-follow .crf-follow__btn.is-following:hover .crf-follow__label {
	visibility: hidden;
	position: relative;
}

.crf-follow .crf-follow__btn.is-following:hover .crf-follow__label::after {
	content: attr(data-unfollow);
	visibility: visible;
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
}

.crf-follow .crf-follow__btn.crf-follow--loading {
	opacity: 0.6;
	pointer-events: none;
}

.crf-follow__count {
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
}

/* ==========================================================================
   Dashboard - horizontal nav + AJAX tabs
   ========================================================================== */
.crf-dashboard__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.crf-dashboard .crf-dashboard__create.button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: var(--crf-accent);
	border: 1px solid var(--crf-accent);
	border-radius: 8px;
	box-shadow: none;
	text-decoration: none;
	transition: background 0.15s ease;
}

.crf-dashboard .crf-dashboard__create.button:hover {
	background: var(--crf-accent-hover);
	border-color: var(--crf-accent-hover);
	color: #fff;
}

.crf-dashboard__create .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

.crf-dashboard__nav {
	display: flex;
	/* Wrap instead of scroll: an overflow container would clip the submenus. */
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--crf-border);
	overflow: visible;
}

.crf-dashboard__nav-item {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	flex: 0 0 auto;
	padding: 11px 16px;
	margin-bottom: -1px;
	border: none;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--crf-muted);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none !important;
	cursor: pointer;
	transition: color 0.12s ease, border-color 0.12s ease;
}

.crf-dashboard__nav-item:hover {
	color: var(--crf-heading);
}

.crf-dashboard__nav-item.is-active {
	color: var(--crf-accent);
	border-bottom-color: var(--crf-accent);
}

.crf-dashboard__nav-item .dashicons {
	font-size: 17px;
	width: 17px;
	height: 17px;
	line-height: 17px;
}

/* Dashboard nav group (parent item + dropdown submenu) */
/* The group owns the active underline so it spans the label and the caret as
   one continuous line instead of each child drawing its own segment. */
.crf-dashboard__nav-group {
	position: relative;
	display: inline-flex;
	align-items: stretch;
	flex: 0 0 auto;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
}

.crf-dashboard__nav-group.has-active {
	border-bottom-color: var(--crf-accent);
}

.crf-dashboard__nav-group .crf-dashboard__nav-item--parent {
	padding-right: 4px;
	margin-bottom: 0;
	border-bottom: none;
}

/* Parent stays highlighted while one of its submenu items is active. */
.crf-dashboard__nav-item--parent.has-active-child {
	color: var(--crf-accent);
}

.crf-dashboard__nav-toggle {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 10px 0 2px;
	margin: 0;
	border: none;
	background: none;
	color: var(--crf-muted);
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.crf-dashboard__nav-toggle:hover,
.crf-dashboard__nav-group.has-active .crf-dashboard__nav-toggle {
	background: none;
	color: var(--crf-accent);
}

.crf-dashboard__nav-toggle .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	line-height: 15px;
	transition: transform 0.12s ease;
}

.crf-dashboard__nav-group.is-open .crf-dashboard__nav-toggle .dashicons {
	transform: rotate(180deg);
}

.crf-dashboard__submenu {
	position: absolute;
	z-index: 20;
	top: 100%;
	left: 0;
	display: none;
	flex-direction: column;
	min-width: 200px;
	padding: 6px;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
}

.crf-dashboard__nav-group:hover .crf-dashboard__submenu,
.crf-dashboard__nav-group:focus-within .crf-dashboard__submenu,
.crf-dashboard__nav-group.is-open .crf-dashboard__submenu {
	display: flex;
}

.crf-dashboard__submenu-item {
	width: 100%;
	padding: 9px 12px;
	margin-bottom: 0;
	border-bottom: none;
	border-radius: 6px;
	font-weight: 500;
}

.crf-dashboard__submenu-item:hover {
	background: #f2f4f7;
}

.crf-dashboard__submenu-item.is-active {
	border-bottom: none;
	background: #f2f4f7;
	color: var(--crf-accent);
}

.crf-dashboard__content {
	min-height: 120px;
}

/* Hide the embedded My Campaigns table's own header (dashboard bar covers it) */
.crf-dashboard__content .crf-my-campaigns__header {
	display: none;
}

/* Payment-status pill in dashboard tables */
.crf-dashboard__pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: #f2f4f7;
	color: #475467;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

@media screen and (max-width: 600px) {
	.crf-dashboard__nav-item {
		padding: 10px 12px;
		font-size: 13px;
	}

	.crf-dashboard__nav-item .dashicons {
		display: none;
	}
}

/* Followers table - identity cell + pagination */
.crf-follower {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 220px;
}

.crf-follower__avatar {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	line-height: 0;
}

.crf-follower__avatar img {
	width: 44px;
	height: 44px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin: 0;
}

.crf-follower__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 1px;
}

.crf-follower__name {
	font-weight: 600;
	color: var(--crf-heading);
	line-height: 1.3;
}

.crf-follower__email {
	font-size: 12px;
	color: var(--crf-muted);
	text-decoration: none;
	word-break: break-word;
}

.crf-follower__email:hover {
	color: var(--crf-accent);
	text-decoration: underline;
}

.crf-dashboard__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin-top: 18px;
	justify-content: flex-end;
}

.crf-dashboard__page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	background: #fff;
	color: #475467;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.crf-dashboard__page-btn:hover {
	background: #f2f4f7;
	color: var(--crf-heading);
}

.crf-dashboard__page-btn.is-active {
	background: var(--crf-accent);
	border-color: var(--crf-accent);
	color: #fff;
	cursor: default;
}

.crf-dashboard__page-btn.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.crf-dashboard__page-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

/* Square avatar variant (campaign thumbnail in My Contributions) */
.crf-follower__avatar--square,
.crf-follower__avatar--square img {
	border-radius: 8px;
}

/* ==========================================================================
   Single product - Contributors tab
   ========================================================================== */
.crf-contributors {
	--crf-border: #e6e8eb;
	--crf-muted: #6b7280;
	--crf-heading: #1f2933;
	--crf-accent: #4f46e5;
}

/* Toolbar: search + sort */
.crf-contributors__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.crf-contributors__search {
	display: inline-flex;
	align-items: center;
	margin: 0;
	background: #fff;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	overflow: hidden;
}

.crf-contributors__search-input {
	margin: 0;
	padding: 8px 12px;
	min-width: 200px;
	max-width: 100%;
	border: none;
	background: transparent;
	box-shadow: none;
	color: var(--crf-heading);
	font-size: 14px;
	line-height: 1.3;
}

.crf-contributors__search-input:focus {
	outline: none;
	box-shadow: none;
}

.crf-contributors__search-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	align-self: stretch;
	margin: 0;
	padding: 0;
	border: none;
	border-left: 1px solid var(--crf-border);
	border-radius: 0;
	background: #f9fafb;
	color: var(--crf-muted);
	cursor: pointer;
	box-shadow: none;
	transition: background 0.12s ease, color 0.12s ease;
}

.crf-contributors__search-btn:hover {
	background: var(--crf-accent);
	color: #fff;
}

.crf-contributors__search-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

.crf-contributors__sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.crf-contributors__sort-label {
	color: var(--crf-muted);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.crf-contributors__sort-select {
	margin: 0;
	padding: 8px 30px 8px 12px;
	min-width: 200px;
	max-width: 100%;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	background-color: #fff;
	color: var(--crf-heading);
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
}

.crf-contributors__table-wrap {
	overflow-x: auto;
	border: 1px solid var(--crf-border);
	border-radius: 12px;
}

.crf-contributors-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	background: transparent;
	font-size: 15px;
}

.crf-contributors-table thead th {
	padding: 14px 18px;
	background: #f9fafb;
	border: none;
	border-bottom: 1px solid var(--crf-border);
	color: var(--crf-muted);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-align: left;
	white-space: nowrap;
}

.crf-contributors-table tbody td {
	padding: 14px 18px;
	border: none;
	border-bottom: 1px solid #f0f2f5;
	color: var(--crf-heading);
	vertical-align: middle;
	text-align: left;
}

.crf-contributors-table tbody tr:last-child td {
	border-bottom: none;
}

.crf-contributors-table tbody tr:hover {
	background: #f9fafb;
}

.crf-contributors-table .crf-col-crf_contr_amount {
	font-weight: 600;
	white-space: nowrap;
}

.crf-contributor {
	display: flex;
	align-items: center;
	gap: 10px;
}

.crf-contributor__avatar {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	line-height: 0;
}

.crf-contributor__avatar img {
	width: 40px;
	height: 40px;
	max-width: none;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	margin: 0;
}

.crf-contributor__name {
	font-weight: 600;
	color: var(--crf-heading);
	word-break: break-word;
}

.crf-contributors__empty {
	padding: 36px 16px;
	text-align: center;
	color: var(--crf-muted);
}

.crf-contributors__empty .dashicons {
	font-size: 34px;
	width: 34px;
	height: 34px;
	color: #cbd2d9;
}

.crf-contributors__empty p {
	margin: 8px 0 0;
}

.crf-contributors__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	margin-top: 16px;
}

.crf-contributors__page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	background: #fff;
	color: #475467;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.crf-contributors__page-btn:hover {
	background: #f2f4f7;
	color: var(--crf-heading);
}

.crf-contributors__page-btn.is-active {
	background: var(--crf-accent);
	border-color: var(--crf-accent);
	color: #fff;
	cursor: default;
}

.crf-contributors__page-btn.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.crf-contributors__page-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

@media screen and (max-width: 600px) {
	.crf-contributors-table,
	.crf-contributors-table thead,
	.crf-contributors-table tbody,
	.crf-contributors-table tr,
	.crf-contributors-table td {
		display: block;
		width: 100%;
	}

	.crf-contributors-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	.crf-contributors-table tbody tr {
		border-bottom: 1px solid var(--crf-border);
	}

	.crf-contributors-table tbody td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		border-bottom: none;
	}

	.crf-contributors-table tbody td::before {
		content: attr(data-title);
		color: var(--crf-muted);
		font-size: 12px;
		font-weight: 600;
		text-transform: uppercase;
	}
}

/* ==========================================================================
   Dashboard user (avatar + greeting) & logout
   ========================================================================== */
.crf-dashboard__bar-left,
.crf-dashboard__bar-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.crf-dashboard__user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.crf-dashboard__avatar img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: block;
	object-fit: cover;
}

.crf-dashboard__user-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.crf-dashboard__greeting {
	font-size: 12px;
	color: var(--crf-muted);
}

.crf-dashboard__user-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--crf-heading);
}

.crf-dashboard .crf-dashboard__logout.button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: var(--crf-muted);
	background: #fff;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	box-shadow: none;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.crf-dashboard .crf-dashboard__logout.button:hover {
	background: #fdeceb;
	border-color: #f4c7c2;
	color: #b42318;
}

.crf-dashboard__logout .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

/* ==========================================================================
   My Campaigns - quick view (eye) icon
   ========================================================================== */
.crf-campaign-cell__titlewrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.crf-campaign-preview-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 6px;
	color: #64748b;
	text-decoration: none !important;
	transition: background 0.12s ease, color 0.12s ease;
}

.crf-campaign-preview-btn:hover {
	background: #eef2ff;
	color: #4f46e5;
}

.crf-campaign-preview-btn .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 16px;
}

/* ==========================================================================
   Generic modal (campaign quick view)
   ========================================================================== */
body.crf-modal-open {
	overflow: hidden;
}

.crf-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.crf-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(16, 24, 40, 0.55);
}

.crf-modal__panel {
	position: relative;
	z-index: 1;
	display: block;
	width: 520px;
	max-width: calc(100% - 40px);
	max-height: 88vh;
	margin: 0 auto;
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
}

.crf-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: #f2f4f7;
	color: #475467;
	cursor: pointer;
	z-index: 2;
}

.crf-modal__close:hover {
	background: #e4e7ec;
}

.crf-modal__body {
	display: block;
	width: 100%;
	padding: 24px;
	box-sizing: border-box;
}

/* Layout resets so the theme cannot reflow the preview into columns */
.crf-campaign-preview,
.crf-campaign-preview * {
	box-sizing: border-box;
}

.crf-campaign-preview {
	display: block;
	width: 100%;
}

.crf-campaign-preview__section {
	display: block;
	width: 100%;
	float: none;
	clear: both;
	columns: auto;
}

.crf-campaign-preview__table {
	display: table !important;
	width: 100% !important;
	table-layout: fixed;
	border-collapse: collapse;
	margin: 0;
	float: none;
}

.crf-campaign-preview__table tbody {
	display: table-row-group;
	width: 100%;
	background: none;
}

.crf-campaign-preview__table tr {
	display: table-row;
}

.crf-campaign-preview__table th,
.crf-campaign-preview__table td {
	display: table-cell;
	float: none;
	vertical-align: top;
	word-break: normal;
	overflow-wrap: anywhere;
}

.crf-campaign-preview__table th {
	width: 46%;
	white-space: normal;
}

.crf-modal__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 160px;
}

.crf-modal__spinner {
	width: 28px;
	height: 28px;
	border: 3px solid rgba(79, 70, 229, 0.25);
	border-top-color: #4f46e5;
	border-radius: 50%;
	animation: crf-modal-spin 0.7s linear infinite;
}

@keyframes crf-modal-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Campaign preview content */
.crf-campaign-preview__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 16px;
	padding-right: 32px;
}

.crf-campaign-preview__thumb img {
	width: 72px;
	height: 72px;
	border-radius: 10px;
	object-fit: cover;
	display: block;
}

.crf-campaign-preview__title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #1f2933;
	line-height: 1.3;
}

.crf-campaign-preview__progress {
	margin-bottom: 16px;
}

.crf-campaign-preview__progress .crf-mc-progress {
	max-width: none;
}

.crf-campaign-preview__progress .crf-mc-progress__label {
	color: #6b7280;
}

.crf-campaign-preview__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.crf-campaign-preview__table th,
.crf-campaign-preview__table td {
	padding: 10px 0;
	border-bottom: 1px solid #f0f2f5;
	font-size: 14px;
	text-align: left;
	vertical-align: top;
}

.crf-campaign-preview__table th {
	width: 42%;
	color: #6b7280;
	font-weight: 600;
}

.crf-campaign-preview__table td {
	color: #1f2933;
	font-weight: 500;
}

.crf-campaign-preview__table tr:last-child th,
.crf-campaign-preview__table tr:last-child td {
	border-bottom: none;
}

.crf-campaign-preview__footer {
	margin-top: 18px;
}

.crf-campaign-preview .button.crf-campaign-preview__view {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 11px 18px;
	border-radius: 8px;
	background: #4f46e5;
	border: 1px solid #4f46e5;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: none;
}

.crf-campaign-preview .button.crf-campaign-preview__view:hover {
	background: #4338ca;
	border-color: #4338ca;
}

/* ==========================================================================
   Dashboard Overview - charts & extra fields
   ========================================================================== */
.crf-stat-card--avg_contribution .crf-stat-card__icon { background: #eef2ff; color: #4f46e5; }
.crf-stat-card--pending_payout .crf-stat-card__icon { background: #fff4e5; color: #b54708; }

.crf-dashboard__progress-figure,
.crf-dashboard__spark-total {
	font-size: 14px;
	font-weight: 700;
	color: var(--crf-heading);
}

.crf-dashboard__overall.crf-mc-progress {
	max-width: none;
	min-width: 0;
	width: 100%;
	height: 10px;
}

.crf-dashboard__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 16px;
}

@media screen and (max-width: 782px) {
	.crf-dashboard__grid {
		grid-template-columns: 1fr;
	}
}

/* Sparkline */
.crf-dashboard__spark {
	margin: 6px 0 10px;
}

.crf-spark {
	width: 100%;
	height: 60px;
	display: block;
	overflow: visible;
}

.crf-spark__area {
	fill: rgba(79, 70, 229, 0.12);
}

.crf-spark__line {
	fill: none;
	stroke: #4f46e5;
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.crf-dashboard__spark-meta {
	font-size: 13px;
	color: var(--crf-muted);
}

/* Donut */
.crf-dashboard__donutwrap {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.crf-dashboard__donut-chart {
	position: relative;
	flex: 0 0 auto;
	width: 120px;
	height: 120px;
}

.crf-donut {
	width: 120px;
	height: 120px;
	display: block;
}

.crf-dashboard__donut-total {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	color: var(--crf-muted);
	line-height: 1.1;
}

.crf-dashboard__donut-total strong {
	font-size: 22px;
	font-weight: 700;
	color: var(--crf-heading);
}

.crf-dashboard__legend {
	flex: 1 1 140px;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 140px;
}

.crf-dashboard__legend li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	list-style: none;
	font-size: 13px;
}

.crf-dashboard__legend li:last-child {
	margin-bottom: 0;
}

.crf-dashboard__legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.crf-dashboard__legend-label {
	flex: 1 1 auto;
	color: var(--crf-muted);
}

.crf-dashboard__legend-count {
	font-weight: 700;
	color: var(--crf-heading);
}

/* Campaign preview - config sections */
.crf-campaign-preview__section {
	margin-top: 18px;
}

.crf-campaign-preview__section:first-of-type {
	margin-top: 0;
}

.crf-campaign-preview__section-title {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

/* Perk product thumbnails (single product perk selection) */
.crf-perk-thumb {
	width: 40px !important;
	height: 40px !important;
	max-width: 40px;
	object-fit: cover;
	border-radius: 6px;
	display: inline-block;
	vertical-align: middle;
}

/* ==========================================================================
   Single product - Campaign data section (modernised)
   ========================================================================== */
.crf-wrapper {
	--crf-border: #e6e8eb;
	--crf-muted: #6b7280;
	--crf-heading: #1f2933;
	--crf-accent: #4f46e5;
	--crf-accent-hover: #4338ca;
	display: block;
	width: 100%;
	margin: 18px 0;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--crf-border);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
	box-sizing: border-box;
	color: var(--crf-heading);
}

/* Amount / date rows */
.crf-wrapper .crf-additional-data {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	float: none;
	width: auto;
}

.crf-wrapper .crf-fields {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 !important;
	padding: 6px 12px;
	width: auto !important;
	float: none !important;
	background: #f9fafb;
	border: 1px solid var(--crf-border);
	border-radius: 999px;
	color: var(--crf-muted);
	font-size: 13px;
	line-height: 1.4;
}

.crf-wrapper .crf-fields span,
.crf-wrapper .crf-funding-price span,
.crf-wrapper .crf-funding-date span {
	color: var(--crf-heading);
	font-weight: 700;
}

.crf-wrapper .crf-funding-closed,
.crf-wrapper .crf-funding-completed {
	display: block;
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	background: #f2f4f7;
	font-weight: 600;
	text-align: center;
}

/* Progress summary + bar */
.crf-wrapper .crf-progressbar-overall-wrapper {
	margin: 4px 0 18px;
	float: none;
}

.crf-wrapper .crf-progressbar-product-percentage-content,
.crf-wrapper .crf-progressbar-product-amount-content {
	color: var(--crf-heading);
	font-size: 14px;
}

.crf-wrapper .crf-progressbar-product-percentage-content strong,
.crf-wrapper .crf-progressbar-product-amount-content strong,
.crf-wrapper .crf-progressbar-product-amount-content b {
	color: var(--crf-accent);
	font-weight: 700;
}

.crf-wrapper .crf-progressbar-wrapper {
	height: 12px;
	background: #eceff3;
	border-radius: 999px;
	box-shadow: none;
	overflow: hidden;
}

.crf-wrapper .crf-progress-bar,
.crf-wrapper .crf-progressbar-wrapper .crf-progress {
	background: linear-gradient(90deg, #4f46e5, #6366f1);
	box-shadow: none;
	border-radius: 999px;
}

/* Contribution input */
.crf-wrapper .crf-contribution-label {
	display: block;
	float: none;
	width: 100%;
	margin: 4px 0 8px !important;
	color: var(--crf-muted);
	font-size: 13px;
	font-weight: 600;
}

.crf-wrapper .crf-contribution-val-container,
.crf-wrapper .crf_contribution_list_wrapper,
.crf-wrapper .crf_contribution_btn_wrapper {
	float: none;
	width: 100%;
}

.crf-wrapper .crf_input_price,
.crf-wrapper .crf_contribution_val,
.crf-wrapper select.crf_contribution_list {
	width: 100% !important;
	max-width: 320px;
	float: none;
	margin: 0 0 10px;
	padding: 11px 14px;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	color: var(--crf-heading);
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.crf-wrapper .crf_input_price:focus,
.crf-wrapper .crf_contribution_val:focus,
.crf-wrapper select.crf_contribution_list:focus {
	border-color: var(--crf-accent);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
	outline: none;
}

/* Predefined amount buttons */
.crf-wrapper .crf_contribution_btn_wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 12px;
}

.crf-wrapper .crf_contribution_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 9px 16px;
	background: #fff;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	color: var(--crf-heading);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.crf-wrapper .crf_contribution_btn:hover {
	border-color: var(--crf-accent);
	color: var(--crf-accent);
}

.crf-wrapper .crf_contribution_btn.crf_contribution_btn_active {
	background: var(--crf-accent);
	border-color: var(--crf-accent);
	color: #fff;
}

/* OR divider between contribution amount and perk selection */
.crf-or-divider {
	display: flex;
	align-items: center;
	text-align: center;
	gap: 12px;
	margin: 18px 0;
	color: #98a2b3;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.crf-or-divider::before,
.crf-or-divider::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #e6e8eb;
}

.crf-or-divider__text {
	flex: 0 0 auto;
}

/* Overview - sparkline range toggle, dots, export button */
.crf-dashboard__range {
	display: inline-flex;
	gap: 2px;
	padding: 2px;
	background: #f2f4f7;
	border-radius: 8px;
}

.crf-dashboard__range-btn {
	margin: 0;
	padding: 4px 10px;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--crf-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}

.crf-dashboard__range-btn:hover {
	color: var(--crf-heading);
}

.crf-dashboard__range-btn.is-active {
	background: #fff;
	color: var(--crf-accent);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}

.crf-dashboard__spark-total {
	margin-bottom: 4px;
	font-size: 20px;
	font-weight: 700;
	color: var(--crf-heading);
}

.crf-spark__hit {
	cursor: pointer;
}

/* Visible dot: size comes from the non-scaling stroke, so it stays perfectly
   round and fixed-size regardless of how the SVG is stretched. */
.crf-spark__dot {
	fill: none;
	stroke: #4f46e5;
	stroke-width: 8;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s ease;
}

.crf-spark__hit:hover + .crf-spark__dot {
	opacity: 1;
}

/* Export CSV button in table toolbars */
.crf-dashboard__export {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--crf-border);
	border-radius: 8px;
	background: #fff;
	color: var(--crf-heading);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.crf-dashboard__export:hover {
	background: #eef2ff;
	border-color: var(--crf-accent);
	color: var(--crf-accent);
}

.crf-dashboard__export .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
	line-height: 15px;
}

/* Clickable (deep-link) stat cards */
.crf-stat-card--link {
	cursor: pointer;
	transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.05s ease;
}

.crf-stat-card--link:hover {
	border-color: var(--crf-accent);
	box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.crf-stat-card--link:active {
	transform: translateY(1px);
}

.crf-stat-card--link:focus-visible {
	outline: 2px solid var(--crf-accent);
	outline-offset: 2px;
}

/* Onboarding / empty state */
.crf-dashboard__onboard {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	max-width: 560px;
	margin: 12px auto;
	padding: 48px 28px;
	background: var(--crf-bg);
	border: 1px dashed var(--crf-border);
	border-radius: var(--crf-radius);
}

.crf-dashboard__onboard-icon {
	font-size: 44px;
	width: 44px;
	height: 44px;
	color: var(--crf-accent);
	margin-bottom: 4px;
}

.crf-dashboard__onboard-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--crf-heading);
}

.crf-dashboard__onboard-text {
	margin: 0;
	max-width: 420px;
	color: var(--crf-muted);
	font-size: 14px;
	line-height: 1.5;
}

.crf-dashboard .crf-dashboard__onboard-btn.button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 11px 22px;
	border-radius: 8px;
	background: var(--crf-accent);
	border: 1px solid var(--crf-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: none;
}

.crf-dashboard .crf-dashboard__onboard-btn.button:hover {
	background: var(--crf-accent-hover);
	border-color: var(--crf-accent-hover);
	color: #fff;
}

.crf-dashboard__onboard-note {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--crf-muted);
}

/* Overview - full-width performance chart + even status/extension grid */
.crf-dashboard__panel--chart {
	margin-bottom: 16px;
}

.crf-spark--lg {
	height: 120px;
}

.crf-dashboard__grid--even {
	grid-template-columns: 1fr 1fr;
}

@media screen and (max-width: 782px) {
	.crf-dashboard__grid--even {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Campaign story (create form editor + preview modal)
   ========================================================================== */
.crf-campaign-story-field .wp-editor-wrap {
	margin-top: 6px;
}

.crf-campaign-preview__section--story .crf-campaign-preview__story {
	font-size: 14px;
	line-height: 1.65;
	color: #3c434a;
	max-height: 260px;
	overflow-y: auto;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.crf-campaign-preview__story p {
	margin: 0 0 0.9em;
}

.crf-campaign-preview__story p:last-child {
	margin-bottom: 0;
}

.crf-campaign-preview__story img {
	max-width: 100%;
	height: auto;
}
