/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.apf-copy-div {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
	width: 100%;
}

.apf-copy-input {
	flex: 1;
	min-width: 200px;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #f9f9f9;
	font-size: 14px;
}

.apf-copy-btn,
.af_share_button_toggle {
	background-color: #0073aa;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px;
	cursor: pointer;
	font-size: 14px;
	white-space: nowrap;
	transition: background-color 0.3s ease;
}

.af_share_button_toggle:hover,
.apf-copy-btn:hover {
	background-color: #005e8c;
}

.af_share_dropdown_container {
	position: relative;
}

.af_share_dropdown {
	display: none;
	position: absolute;
	top: 110%;
	right: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	min-width: 180px;
	padding: 10px;
	z-index: 1000;
}

.af_share_dropdown a {
	display: block;
	padding: 8px;
	margin-bottom: 6px;
	background: #f1f1f1;
	border-radius: 5px;
	text-decoration: none;
	font-size: 14px;
	color: #333;
	transition: background 0.2s ease;
}

.af_share_dropdown a:hover {
	background: #0073aa;
	color: #fff;
}

@media (max-width: 480px) {
	.apf-copy-div {
		flex-direction: column;
		align-items: stretch;
	}

	.apf-copy-btn,
	.af_share_button_toggle {
		width: 100%;
	}
}

/* end */
.af_share_section .twitter-share-button {
	background: #3399ff none repeat scroll 0 0;
	border-radius: 5px;
	color: #ffffff;
	display: inline-block;
	font-size: 15px;
	padding: 1px 12px;
	text-decoration: none;
	vertical-align: top;
}

.af_share_section .fb-share-button {
	background: #4867AA none repeat scroll 0 0;
	border-radius: 5px;
	color: #ffffff;
	font-size: 15px;
	padding: 1px 12px;
	text-decoration: none;
	vertical-align: top;
}

.af_share_section .apf_main_class {
	display: inline-block;
	margin: 0 7px;
}

.af_share_section .mail_button {
	background-color: #575757;
	border-radius: 3px;
	box-shadow: none;
	display: inline-block;
	height: 21px;
	padding: 0;
	text-align: center;
	vertical-align: top;
	width: 50px;
}

.af_share_section .mail_button img {
	box-shadow: none;
	display: inline-block;
	margin: 3px auto 0;
	vertical-align: top;
	width: 18px;
}

.af_share_section .mail_button .apf_main_class {
	margin-left: 12px;
}

.affliate_twitter_button .twitter-share-button>img {
	box-shadow: none;
	display: inline-block;
	margin-right: 4px;
	margin-top: 3px;
	vertical-align: top;
	width: 19px;
	max-height: 13px;

}

.af_share_section .whatsapp_button {
	background: #00bfa5 none repeat scroll 0 0;
	border-radius: 5px;
	color: #ffffff;
	display: inline-block;
	font-size: 15px;
	padding: 1px 12px;
	text-decoration: none;
	vertical-align: top;
}

.af_share_section .whatsapp_button>img {
	box-shadow: none;
	display: inline-block;
	margin-right: 4px;
	margin-top: 3px;
	vertical-align: top;
	width: 19px;
}


#apf_user_paypal_email {
	width: 100%;
	padding: 12px 20px;
	margin: 8px 0;
	box-sizing: border-box;
	border: 2px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	color: #333;
	background-color: #f1f1f1;
}

#apf_user_paypal_email:focus {
	border: 2px solid #4CAF50;
}

#apf_user_paypal_email::placeholder {
	color: #999;
}

#apf_user_paypal_email_submit {
	/* width: 20%; */
	padding: 12px 20px;
	margin: 8px 0;
	box-sizing: border-box;
	background-color: #007bff;
	border: none;
	border-radius: 4px;
	color: white;
	font-size: 16px;
	cursor: pointer;
}

#apf_user_paypal_email_submit:hover {
	background-color: #007BC9;
}

.apf_paypal_wrap {
	background-color: #fbfbfb;
	padding: 10px 0px;
}

.apf_paypal_wrap div {
	margin-left: 20px;
}



/* Style the form container */
.apf-affiliate-register-form-wrapper {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
	background-color: #f4f4f4;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	/* text-align: center; */
	/* border-color: red; */
}

/* Style the form header */
/* .form-header {
	text-align: center;
	font-size: 24px;
	margin-bottom: 20px;
	color: #333;
} */

/* Style form labels */
.apf-affiliate-register-form-wrapper label {
	display: block;
	font-size: 16px;
	margin-bottom: 8px;
	color: #292727;
}

/* Style input fields */
.apf-affiliate-register-form-wrapper input,
.apf-affiliate-register-form-wrapper textarea {
	width: 100%;
	padding: 10px;
	margin-bottom: 20px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
}

.apf-affiliate-register-form-wrapper span {
	color: red;
}

/* Style input focus */
.apf-affiliate-register-form-wrapper input,
.apf-affiliate-register-form-wrapper textarea {
	border-color: #007bff;
	box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

/* Style placeholders */
.apf-affiliate-register-form-wrapper input::placeholder {
	color: #c4c1c1;
}

/* Style submit button */
#apf_register_form_submit,
#apf_register_form_request_submit {
	background-color: #007bff;
	color: #fff;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	font-size: 18px;
	cursor: pointer;
	transition: background-color 0.3s ease;
	margin-top: 10px;
}

#apf_register_form_submit:hover,
#apf_register_form_request_submit:hover {
	background-color: #0056b3;
}

.entry-header {
	text-align: center;
}

.Reg_rejet {
	max-width: 400px;
	margin: 0 auto;
	padding: 20px;
	background-color: #f4f4f4;
	border-radius: 8px;
	box-shadow: 0 0 10px rgb(116, 14, 14);
	color: red;
	font-weight: bolder;
}

.Reg_accept {
	max-width: 400px;
	margin: 0 auto;
	padding: 20px;
	background-color: #f4f4f4;
	border-radius: 8px;
	box-shadow: 0 0 10px rgb(17, 214, 66);
	color: green;
	font-weight: bold;
}

.apf_paypal_notice_error {
	color: red;
	font-weight: bold;
}

.apf_paypal_notice_success {
	color: green;
	font-weight: bold;
}


#apf_refree_coupon_table {
	border-collapse: collapse;
	border: none;
}

#apf_refree_coupon_table th,
#apf_refree_coupon_table td {
	border: none;
	/* Ensure no borders for table cells */
	padding: 20px;
	/* Adjust padding as needed */
	text-align: center;
}

hr {
	height: 2px !important;
}

.apf_refferal_coupon_wrap {
	margin-top: 20px;
}

/* css code for the affilate tool  */

#apf-product-search-wrapper {
	max-width: 600px;
	margin: 0 auto;
}

#apf-search-input,
#apf-category-dropdown {
	width: 70%;
	padding: 10px;
	margin-bottom: 10px;
	font-size: 16px;
}

#apf-search-btn {
	background-color: #e74c3c;
	color: #fff;
	border: none;
	padding: 11px 20px;
	cursor: pointer;
}

#apf-search-results {
	margin-top: 20px;
}

.apf-card {
	display: flex;
	border: 1px solid #ccc;
	padding: 10px;
	margin-bottom: 15px;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.apf-card img {
	max-width: 100px;
	margin-right: 20px;
}

.apf-card-body {
	flex-grow: 1;
}

.apf-card-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.apf-card-buttons button {
	background-color: #e74c3c;
	color: #fff;
	border: none;
	padding: 8px;
	cursor: pointer;
}

.apf-copy-div {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 500px;
	padding: 10px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.apf-copy-input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}

.apf-copy-btn {
	padding: 10px 16px;
	background-color: #0073aa;
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.apf-card-box {
	background: #fff;
	padding: 20px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	text-align: center;
	margin-bottom: 20px;
}

.apf-text-left {
	text-align: left !important;
}

.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
}

/* Base styles for radio and checkbox wrappers */
.apf-affiliate-register-form-wrapper .form-check {
	/* display: flex;
	align-items: center;
	margin-bottom: 15px; */
	display: inline-flex;
	align-items: center;
	margin-right: 12px;
}

/* Hide the native radio/checkbox input if you want a custom style */
.apf-affiliate-register-form-wrapper input[type="radio"],
.apf-affiliate-register-form-wrapper input[type="checkbox"] {
	margin-right: 10px;
	transform: scale(1.2);
	cursor: pointer;
	width: fit-content;
}

/* Label for radio/checkbox */
.apf-affiliate-register-form-wrapper label.form-check-label {
	font-size: 16px;
	cursor: pointer;
}

/* Optional: Custom styled appearance (advanced) */
.apf-affiliate-register-form-wrapper input[type="radio"]:checked,
.apf-affiliate-register-form-wrapper input[type="checkbox"]:checked {
	accent-color: #0071a1;
	/* Works in modern browsers */
}

.apf-affiliate-register-form-wrapper select {
	width: 100%;
	padding: 10px;
	margin-bottom: 20px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	appearance: none;
	/* Removes default OS styling */
	-webkit-appearance: none;
	-moz-appearance: none;
}

/* Optional: on focus */
.apf-affiliate-register-form-wrapper select:focus {
	outline: none;
	border-color: #0071a1;
	box-shadow: 0 0 0 2px rgba(0, 113, 161, 0.2);
}

.responsive-table {
	width: 100%;
	overflow-x: auto;
}

.responsive-table table {
	width: 100%;
	min-width: 1000px;
	border-collapse: collapse;
}

.responsive-table th,
.responsive-table td {
	white-space: nowrap;
	padding: 8px;
}

.apfw_links_popup input[type="text"] {
	width: 100%;
}

.apfw_links_popup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	padding: 20px;
	border: 1px solid #ccc;
	max-width: 90%;
	width: 90%;
	z-index: 1001;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	border-radius: 8px;
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	display: none;
}

.af_share_dropdown_container {
	position: relative;
	display: inline-block;
}


.af_share_dropdown {
	display: none;
	position: absolute;
	background-color: #fff;
	box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 999;
	min-width: 180px;
	margin-top: 5px;
	border-radius: 4px;
	padding: 10px;
	flex-direction: column;
	transition: opacity 0.3s ease;
}

.af_share_dropdown a {
	display: block;
	background-color: #f1f1f1;
	color: #333;
	padding: 8px 12px;
	text-decoration: none;
	border-radius: 4px;
	margin-bottom: 6px;
	font-size: 13px;
	text-align: center;
}

.af_share_dropdown a:hover {
	background-color: #0073aa;
	color: #fff;
}

.tab-link.active {
	font-weight: bold;
	border-bottom: 2px solid #000;
}

/* Tab Navigation Styles */
.apf-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	padding-bottom: 5px;
	flex-wrap: wrap;
	padding: 0px;
}

.apf-tabs .tab-link {
	padding: 10px 20px;
	text-decoration: none;
	color: #333;
	font-weight: 500;
	background-color: #f5f5f5;
	border-radius: 6px 6px 0 0;
	border: 1px solid transparent;
	transition: background-color 0.3s, border 0.3s;
}

.apf-tabs .tab-link:hover {
	background-color: #e0e0e0;
}

.apf-tabs .tab-link.active {
	background-color: #fff;
	/* border-color: #ccc #ccc #fff; */
	border-bottom: 2px solid #fff;
	font-weight: 600;
	color: #0073aa;
}

/* Tab Content Panel */
.apf-tab-panel {
	/* border: 1px solid #ccc; */
	/* padding: 20px; */
	background-color: #fff;
	/* border-radius: 0 6px 6px 6px; */
	/* box-shadow: 0 1px 3px rgba(0,0,0,0.05); */
	min-height: 300px;
	font-size: 15px;
	line-height: 1.6;
	padding: 0px;
}

.dashboard-overview-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.apf-card-box {
	background-color: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	text-align: center;
	transition: transform 0.2s ease;
}

.apf-card-box:hover {
	transform: translateY(-2px);
}

.apf-card-title {
	font-size: 14px;
	color: #448a85;
	font-weight: 700;
	margin-bottom: 10px;
	margin-top: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.apf-card-value {
	font-size: 26px;
	color: #333;
	font-weight: 600;
}

.apf-pending-box {
	display: flex;
	justify-content: center;
}

.apf-card-box.full-width {
	max-width: 400px;
	width: 100%;
}

.apf-tabs a {
	text-decoration: none !important;
}

.apf-heading {
	font-weight: 700;
	font-size: 20px;
}

.apf-button {
	padding: 10px 20px;
	color: white;
	border-radius: 8px;
	text-decoration: none;
	margin-right: 10px;
	display: inline-block;
	font-weight: bold;
	text-decoration: none !important;
}

.apf-button.twitter {
	background-color: #1DA1F2;
}

.apf-button.facebook {
	background-color: #3b5998;
}

.apf-button.mail {
	background-color: #6c757d;
}

.apf-button.whatsapp {
	background-color: #25D366;
}


.apf-copy-input {
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	width: 100%;
	background-color: #f9f9f9;
	transition: all 0.3s ease;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.apf-copy-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
	background-color: #fff;
}

.button.apf-copy-btn,
.button.apf-share-toggle {
	background-color: #0073aa;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.button.apf-copy-btn:hover,
.button.apf-share-toggle:hover {
	background-color: #005e8c;
	transform: translateY(-1px);
}

.apf-share-dropdown-wrapper {
	position: relative;
	display: inline-block;
}

.apf-share-dropdown {
	display: none;
	position: absolute;
	top: 110%;
	left: 0;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	min-width: 180px;
	padding: 10px 12px;
}

.apf-share-dropdown a {
	display: block;
	margin-bottom: 8px;
	padding: 8px 12px;
	border-radius: 6px;
	color: #fff;
	text-decoration: none !important;
	font-size: 14px;
	transition: background-color 0.2s ease;
}

.apf-share-dropdown a.twitter {
	background-color: #1DA1F2;
}

.apf-share-dropdown a.facebook {
	background-color: #3b5998;
}

.apf-share-dropdown a.whatsapp {
	background-color: #25D366;
}

.apf-share-dropdown a.mail {
	background-color: #6c757d;
}

.apf-share-dropdown a:hover {
	opacity: 0.9;
}

.apf-share-dropdown a:last-child {
	margin-bottom: 0;
}

.apf-share-dropdown-wrapper .button {
	margin: 5px !important;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
	.apf-copy-div {
		flex-direction: column;
	}

	.apf-copy-input {
		width: 100%;
	}
}

.custom-select {
	appearance: none;
	/* Remove default styling (works for most modern browsers) */
	-webkit-appearance: none;
	-moz-appearance: none;

	background-color: #fff;
	border: 1px solid #ccc;
	padding: 10px 40px 10px 15px;
	font-size: 16px;
	border-radius: 5px;
	width: 100%;
	max-width: 300px;
	color: #333;
	cursor: pointer;
	position: relative;
	background-image: url('data:image/svg+xml;utf8,<svg fill="gray" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 20px;
}

.custom-select:focus {
	border-color: #007bff;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.affiliate-cards-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.affiliate-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.affiliate-card img,
.affiliate-card video {
	max-width: 100%;
	height: 150px;
	margin-bottom: 10px;
}

@media (max-width: 768px) {
	.affiliate-card {
		width: calc(50% - 20px);
	}
}

@media (max-width: 480px) {
	.affiliate-card {
		width: 100%;
	}
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	z-index: 999;
}

.apfw_links_popup {
	position: fixed;
	top: 10%;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	max-width: 80%;
	background: white;
	padding: 20px;
	z-index: 1000;
	display: none;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.apfw_links_popup table {
	width: 100%;
	border-collapse: collapse;
}

.apfw_links_popup th,
.apfw_links_popup td {
	border: 1px solid #ddd;
	padding: 8px;
}

.apfw_close_popup {
	margin-top: 15px;
}

.badge {
	display: inline-block;
	background: #4a6ea9;
	color: white;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 6px;
	float: right;
}

.creative-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 20px;
}

.creative-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 20px;
	width: calc(33.333% - 20px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.creative-title {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 10px;
}

.creative-card .button-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
}

.creative-card .button-row .button {
	flex: 1;
}

.badge {
	display: inline-block;
	background: #4a6ea9;
	color: white;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 6px;
	float: right;
}

.creative-img {
	width: 100%;
	max-height: 150px;
	object-fit: cover;
	border-radius: 8px;
	margin: 10px 0;
}

.apf-creative-button {
	background-color: #4a6ea9 !important;
	color: white !important;
	border: none !important;
	padding: 8px 14px !important;
	border-radius: 6px !important;
	margin-top: 8px !important;
	cursor: pointer !important;
	font-size: 14px !important;
	width: 48% !important;
	text-align: center !important;
}

.apf-creative-button:hover {
	background-color: #3a5a87;
}

.input-link {
	margin-top: 10px;
	padding: 6px 10px;
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.creative-p {
	margin-bottom: 5px;
}

.creative-bold {
	font-weight: 900;
}

@media screen and (max-width: 768px) {
	.creative-card {
		width: 100%;
	}
}

.apf-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 20px;
}

.apf-input,
.apf-select {
	padding: 8px 12px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	min-width: 150px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.apf-input:focus,
.apf-select:focus {
	border-color: #0073aa;
	box-shadow: 0 0 3px rgba(0, 115, 170, 0.3);
	outline: none;
}

.apf-button {
	padding: 8px 16px;
	background-color: #0073aa;
	border: none;
	border-radius: 6px;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.apf-button:hover {
	background-color: #005e8a;
}

.apf-checkbox-group,
.apf-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 10px 0;
}

.apf-form-check {
	display: flex;
	align-items: center;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.apf-form-check:hover {
	background-color: #eaf4ff;
	border-color: #0073aa;
}

.apf-form-check input[type="checkbox"],
.apf-form-check input[type="radio"] {
	margin-right: 8px;
	cursor: pointer;
}

.form-check-label {
	font-size: 14px;
	color: #333;
}

#apf-copy-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #333;
	color: #fff;
	padding: 10px 15px;
	border-radius: 5px;
	display: none;
	z-index: 9999;
	font-size: 14px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#apf-copy-toast.error {
	background: #e74c3c;
}

.affiliate-cards-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.affiliate-card {
	border: 1px solid #ddd;
	padding: 15px;
	border-radius: 10px;
	background: #fff;
}

.apf-pagination {
	margin-top: 20px;
	text-align: center;
}

.apf-pagination a {
	margin: 0 5px;
	padding: 5px 10px;
	background: #f1f1f1;
	text-decoration: none;
	border-radius: 5px;
	color: #333;
}

.apf-pagination .current-page {
	background: #0073aa;
	color: white;
}

/* Container */
.apf-visits {
	background: #fff;
	border-radius: 10px;
	padding: 16px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.apf-heading {
	margin: 0 0 12px;
}

/* Filters */
.apf-visits-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 14px;
	background: #f8fafb;
	border: 1px solid #eef1f4;
	padding: 12px;
	border-radius: 8px;
}

.apf-field {
	display: flex;
	flex-direction: column;
	min-width: 160px;
}

.apf-label {
	font-size: 12px;
	color: #556;
	margin-bottom: 6px;
}

.apf-input {
	height: 36px;
	padding: 6px 10px;
	border: 1px solid #d6dbe1;
	border-radius: 6px;
	background: #fff;
}

.apf-actions {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.apf-reset {
	background: #eef2f7;
	border-color: #eef2f7;
	color: #334;
}

/* Table wrapper for horizontal scroll on smaller screens */
.apf-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.apf-table {
	width: 100%;
}

/* URL & origin cells: ellipsis */
.apf-ellipsis {
	display: inline-block;
	max-width: 520px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
}

.apf-cell-url .apf-ellipsis {
	max-width: 540px;
}

.apf-cell-origin .apf-ellipsis {
	max-width: 260px;
}

/* Pills */
.apf-pill {
	display: inline-block;
	padding: 10px 15px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1
}

.apf-pill--success {
	background: #e6f5ea;
	color: #166534
}

.apf-pill--warn {
	background: #fff1e6;
	color: #9a3412
}

/* Pagination */
.apf-pagination {
	margin-top: 12px;
}

/* Empty state */
.apf-empty {
	margin: 10px 0 0;
	color: #667085;
}

/* Responsive: stack into cards on narrow screens */
@media (max-width: 768px) {

	/* Filters: full width fields */
	.apf-field {
		min-width: calc(50% - 6px);
		flex: 1 1 calc(50% - 6px);
	}

	.apf-actions {
		width: 100%;
		margin-left: 0;
	}

	/* Table -> card layout */
	.apf-table thead {
		display: none;
	}

	.apf-table tbody tr {
		display: block;
		background: #fff;
		border: 1px solid #eef1f4;
		border-radius: 10px;
		padding: 10px 12px;
		margin-bottom: 12px;
		box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
	}

	.apf-table tbody td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 0;
		border: none !important;
	}

	.apf-table tbody td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #475569;
	}

	.apf-col-status {
		text-align: right;
	}

	.apf-cell-url .apf-ellipsis {
		max-width: 60vw;
	}

	.apf-cell-origin .apf-ellipsis {
		max-width: 40vw;
	}
}

/* Even tighter phones */
@media (max-width: 420px) {
	.apf-field {
		min-width: 100%;
	}

	.apf-cell-url .apf-ellipsis {
		max-width: 66vw;
	}

	.apf-cell-origin .apf-ellipsis {
		max-width: 50vw;
	}
}

/* Container */
.apf-visits {
	background: #fff;
	border-radius: 10px;
	padding: 16px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.apf-heading {
	margin: 0 0 12px;
}

/* Filters */
.apf-visits-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 14px;
	background: #f8fafb;
	border: 1px solid #eef1f4;
	padding: 12px;
	border-radius: 8px;
}

.apf-field {
	display: flex;
	flex-direction: column;
	min-width: 160px;
}

.apf-label {
	font-size: 12px;
	color: #556;
	margin-bottom: 6px;
}

.apf-input {
	height: 36px;
	padding: 6px 10px;
	border: 1px solid #d6dbe1;
	border-radius: 6px;
	background: #fff;
}

.apf-actions {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.apf-reset {
	background: #eef2f7;
	border-color: #eef2f7;
	color: #334;
}

/* Table wrapper for horizontal scroll on smaller screens */
.apf-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.apf-table {
	width: 100%;
}

/* URL & origin cells: ellipsis */
.apf-ellipsis {
	display: inline-block;
	max-width: 520px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
}

.apf-cell-url .apf-ellipsis {
	max-width: 540px;
}

.apf-cell-origin .apf-ellipsis {
	max-width: 260px;
}

/* Pills */
.apf-pill {
	display: inline-block;
	padding: .25em .6em;
	border-radius: 999px;
	font-weight: 600;
	font-size: 12px;
	line-height: 1
}

.apf-pill--success {
	background: #e6f5ea;
	color: #166534
}

.apf-pill--warn {
	background: #fff1e6;
	color: #9a3412
}

/* Pagination */
.apf-pagination {
	margin-top: 12px;
}

/* Empty state */
.apf-empty {
	margin: 10px 0 0;
	color: #667085;
}

/* Responsive: stack into cards on narrow screens */
@media (max-width: 768px) {

	/* Filters: full width fields */
	.apf-field {
		min-width: calc(50% - 6px);
		flex: 1 1 calc(50% - 6px);
	}

	.apf-actions {
		width: 100%;
		margin-left: 0;
	}

	/* Table -> card layout */
	.apf-table thead {
		display: none;
	}

	.apf-table tbody tr {
		display: block;
		background: #fff;
		border: 1px solid #eef1f4;
		border-radius: 10px;
		padding: 10px 12px;
		margin-bottom: 12px;
		box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
	}

	.apf-table tbody td {
		display: flex;
		justify-content: space-between;
		gap: 12px;
		padding: 8px 0;
		border: none !important;
	}

	.apf-table tbody td::before {
		content: attr(data-label);
		font-weight: 600;
		color: #475569;
	}

	.apf-col-status {
		text-align: right;
	}

	.apf-cell-url .apf-ellipsis {
		max-width: 60vw;
	}

	.apf-cell-origin .apf-ellipsis {
		max-width: 40vw;
	}
}

/* Even tighter phones */
@media (max-width: 420px) {
	.apf-field {
		min-width: 100%;
	}

	.apf-cell-url .apf-ellipsis {
		max-width: 66vw;
	}

	.apf-cell-origin .apf-ellipsis {
		max-width: 50vw;
	}
}

.apf-creative-box {
	width: 100%;
	max-width: 400px;
	margin: 0 auto
}

.apf-creative-media {
	width: 100%;
	height: 100px;
	object-fit: cover;
	border: 1px solid #ddd;
	border-radius: 4px;
	display: block
}

.apf-creative-media[readonly] {
	resize: none;
	padding: 10px;
	font-size: 14px;
	line-height: 1.4
}

.apf-billing-card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
	background: #fff;
	margin-top: 16px
}

.apf-billing-title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 600
}

.apf-billing-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px
}

.apf-billing-grid .full {
	grid-column: 1/-1
}

.apf-field label {
	display: block;
	font-weight: 500;
	margin: 0 0 6px
}

.apf-field .required {
	color: #e11d48;
	margin-left: 4px
}

.apf-field input[type="text"],
.apf-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px
}

.apf-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 10px 12px
}

.apf-actions {
	margin-top: 12px
}

.apf-actions .button {
	padding: .6rem 1rem;
	border-radius: 8px
}

#apf_bank_notice {
	display: inline-block;
	margin-top: 8px
}

@media (max-width: 768px) {
	.apf-billing-grid {
		grid-template-columns: 1fr
	}
}

.apf-toggle-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px
}

.apf-toggle {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none
}

.apf-toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none
}

.apf-toggle-slider {
	width: 44px;
	height: 24px;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	background: #e5e7eb;
	display: inline-block;
	position: relative;
	transition: background .2s, border-color .2s
}

.apf-toggle-slider:after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
	transition: left .2s
}

.apf-toggle input:checked+.apf-toggle-slider {
	background: #007bff;
	border-color: #007bff;
}

.apf-toggle input:checked+.apf-toggle-slider:after {
	left: 22px
}

.apf-toggle-label {
	font-weight: 600;
	color: black;
}

#apf_notifications_notice {
	display: inline-block;
	margin-top: 6px
}

.apf-notifications {
	margin-top: 10px;
}

/* Minimal styles to match the screenshot look */
.apf-affiliate-banner {
	background: #c6e6e6;
	/* soft teal like screenshot */
	border-radius: 14px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.apf-affiliate-banner__avatar img {
	border-radius: 50%;
	display: block;
}

.apf-affiliate-banner__meta h3 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
}

.apf-affiliate-banner__meta p {
	margin: 4px 0;
	font-size: 14px;
}

.apf-affiliate-banner__meta strong {
	font-weight: 700;
}

.apf-affiliate-banner__link {
	word-break: break-all;
	/* keep long URLs from overflowing */
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.apf-cell-url .apf-ellipsis {
	max-width: 280px;
}

/* was 540px */
.apf-tabs {
	display: flex;
	gap: 10px;
	margin: 16px 0;
	flex-wrap: wrap
}

.apf-tabs .apf-tab-link {
	padding: 8px 12px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	text-decoration: none
}

.apf-tabs .apf-tab-link.active {
	background: #f1f5f9;
	border-color: #cbd5e1;
	font-weight: 600
}

.apf-tab-panel {
	margin-top: 12px
}

.apf-affiliate-banner {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #fff
}

.apf-affiliate-banner__avatar {
	flex: 0 0 auto
}

.apf-affiliate-banner__meta h3 {
	margin: 0 0 4px
}

.apf-affiliate-banner__link a {
	word-break: break-all
}

.apf-share-dropdown {
	display: none;
	position: absolute;
	z-index: 9999;
}

.af_share_dropdown_container {
	position: relative;
}

.dashboard-overview-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	/* exactly 3 equal columns */
	gap: 20px;
	margin: 20px 0;
}

.apf-card-box {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.apf-card-header {
	font-size: 14px;
	font-weight: 600;
	color: #117a75;
	/* teal like screenshot */
	margin-bottom: 5px;
}

.apf-card-main-value {
	font-size: 28px;
	font-weight: 700;
	color: #333;
	margin: 8px 0 12px;
}

.apf-card-footer p {
	display: flex;
	justify-content: space-between;
	margin: 4px 0;
	font-size: 14px;
	color: #444;
}

.apf-withdraw-btn {
	background: #008060;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease-in-out;
}

.apf-withdraw-btn:hover {
	background: #00664d;
}

@media (max-width: 991px) {
	.dashboard-overview-cards {
		grid-template-columns: repeat(2, 1fr);
		/* 2 columns on tablets */
	}
}

@media (max-width: 600px) {
	.dashboard-overview-cards {
		grid-template-columns: 1fr;
		/* 1 column on small screens */
	}
}

.apf-alert {
	border-radius: 6px;
	padding: 10px 12px;
	margin-bottom: 12px;
	font-size: 14px;
	line-height: 1.45;
	border: 1px solid transparent;
}

.apf-alert--error {
	background: #fde8e8;
	border-color: #f5c2c7;
	color: #842029;
}

.apf-alert--success {
	background: #eaf6ea;
	border-color: #b7e1b7;
	color: #0f5132;
}

.apf-field-error {
	color: #b32d2e;
	font-size: 12px;
	margin-top: 6px;
	display: none;
}

.apf-field--invalid input,
.apf-field--invalid textarea,
.apf-field--invalid select {
	border-color: #b32d2e !important;
	outline: none;
	box-shadow: 0 0 0 1px rgba(179, 45, 46, .12);
}

.apf-alert ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

.apf-alert li {
	margin: 2px 0;
}

.apf-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .6);
	align-items: center;
	justify-content: center
}

.apf-modal.show {
	display: flex
}

.apf-modal-content {
	background: #fff;
	padding: 20px;
	width: 500px;
	max-width: 95%;
	max-height: 80vh;
	overflow-y: auto;
	border-radius: 8px;
	position: relative;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
	margin: auto
}

.apf-close {
	position: absolute;
	right: 15px;
	top: 10px;
	font-size: 24px;
	cursor: pointer;
	background: transparent;
	border: 0
}

.apf-help--warning {
	color: #b32d2e;
	font-size: 14px;
	margin-top: 8px
}

.apf-field {
	margin-bottom: 12px
}

.apf-radio,
.apf-checkbox {
	display: inline-flex;
	gap: 6px;
	align-items: center
}

.apf-company-details {
	background: #f9f9f9;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-top: 10px;
	font-size: 13px
}
.apf-dashboard-notice {
  background-color: #f0f8ff;     /* Light blue background */
  border: 1px solid #0073aa;     /* WordPress-like blue border */
  color: #333;                   /* Text color */
  padding: 12px 16px;            /* Space inside */
  margin: 15px 0;                /* Space outside */
  border-radius: 4px;            /* Rounded corners */
  font-size: 14px;               /* Readable size */
  line-height: 1.5;
  font-family: Arial, sans-serif;
  position: relative;
}

.apf-dashboard-notice a {
  color: #0073aa;                /* Link in WP blue */
  text-decoration: underline;
  font-weight: 600;
}

.apf-dashboard-notice a:hover {
  color: #005177;                /* Darker on hover */
}