:root {
	--affwp-creative-preview-width: 10rem;
	--affwp-card-padding: 1.5rem;
}

.fancybox__backdrop {
	--fancybox-bg: rgba(0, 0, 0, 0.5);
}

table.affwp-table {
	text-align: left;
	width: 100%;
	border: none;
	margin: 0 0 1.5rem;
	border-collapse: collapse;
}

table.affwp-table th,
table.affwp-table td {
	text-align: left;
	border: 2px solid rgba(0, 0, 0, 0.03);
	color: #666;
	padding: 0.3em 1em;
	max-width: 100%;
}

table.affwp-table th {
	background: #fafafa;
	font-weight: bold;
}

.affwp-form {
	margin-bottom: 1.5rem;
}

.affwp-form fieldset {
	border: none;
}

.affwp-form legend {
	font-size: 120%;
	margin-bottom: 1em;
}

.affwp-form textarea,
.affwp-form input[type="text"],
.affwp-form input[type="password"],
.affwp-form input[type="email"],
.affwp-form input[type="url"] {
	box-sizing: border-box;
}

.affwp-form input {
	border: 1px solid #eaeaea;
	border: 1px solid rgba(51, 51, 51, 0.1);
}

.affwp-form input[type="text"].required,
.affwp-form input[type="password"].required,
.affwp-form input[type="email"].required,
.affwp-form input[type="url"].required {
	color: inherit;
}

.affwp-form input[type="checkbox"] {
	display: inline-block;
}

.affwp-form label {
	cursor: pointer;
}

.affwp-form label + input,
.affwp-form label + textarea,
.affwp-form label + select {
	width: 100%;
}

.affwp-form .affwp-field-terms-of-use-content {
	background-color: #fff;
	border: 1px solid rgba(51, 51, 51, 0.1);
	color: #444;
	padding: 0 1rem;
	margin: 1rem 0 0.5rem 0;
	height: 8rem;
	overflow-y: auto;
	overflow-x: hidden;
	font-size: 14px;
}

.affwp-form .affwp-field-terms-of-use-content * {
	font-size: 14px;
}

.affwp-form .affwp-label-radio,
.affwp-form .affwp-label-checkbox-multiple {
	display: flex;
	align-items: center;
}

.affwp-form .affwp-label-checkbox-multiple input,
.affwp-form .affwp-label-radio input {
	margin: 0 5px 0 0;
}

.affwp-hidden {
	display: none;
}

.affwp-wrap {
	margin-bottom: 20px;
}

#affwp-custom-links-table .affwp-custom-link {
	cursor: pointer;
}

.affwp-custom-link-row {
	display: flex;
	justify-content: space-between;
	gap: 4rem;
	position: relative;
}

.affwp-custom-link-actions {
	display: flex;
	gap: 1rem;
	align-items: center;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.1s ease-out;
}

.affwp-custom-link-actions button:hover {
	background: transparent;
	border: 0;
}

.affwp-custom-link-action {
	color: #666;
	transition: color 0.1s ease-in;
	cursor: pointer;
	width: 20px;
	height: 20px;
	display: inline-block;
}

#affwp-custom-links-table
	td[data-field="link"]:hover
	.affwp-custom-link-actions {
	visibility: visible;
	opacity: 1;
}

/* Tooltip styling */
button.affwp-tooltip,
.affwp-copy-button {
	appearance: none;
	-webkit-appearance: none;
	background-color: transparent;
	border: none;
	margin: 0;
	padding: 0;
	background-color: unset !important;
	display: flex;
}

.affwp-tooltip-url-copy,
.affwp-tooltip-button-copy {
	cursor: pointer;
}

.affwp-tooltip-help {
	cursor: help;
}
/* End tooltip styling */

/* Start default styling for rows with actions (copy/download/etc) */
.affwp-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 4rem;
}

.affwp-row:hover .affwp-row-actions {
	visibility: visible;
	opacity: 1;
}

.affwp-row-header {
	font-size: 0.875rem;
}

.affwp-row-actions {
	display: flex;
	gap: 1rem;
	align-items: center;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.1s ease-out;
}

.affwp-row-action {
	color: #666;
	transition: color 0.1s ease-in;
	cursor: pointer;
	width: 20px;
	height: 20px;
	display: inline-block;
}
/* End styling for rows with actions (copy/download/etc) */

/* Tooltips */
.affwp-card__tooltip {
	cursor: help;
}

.affwp-card__tooltip p {
	margin-bottom: 1rem;
}

.affwp-card__tooltip svg {
	width: 1.25rem;
	height: 1.25rem;
}

.tippy-box[data-theme~='affwp'] .tippy-content {
	padding: 1rem;
}

.tippy-box[data-theme~='affwp'] .tippy-content p {
	margin-bottom: 1rem;
}

.tippy-box[data-theme~='affwp'] .tippy-content p:last-child {
	margin-bottom: 0;
}

.affwp-card__header:has(.affwp-card__tooltip) {
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 0.5rem;
}
/* End Tooltips */

/* Affiliate Link Card */
.affwp-card.affwp-affiliate-link {
	margin-bottom: 1.5rem;
}

.affwp-affiliate-link__display {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.affwp-affiliate-link__toggle {
	margin-top: 0.5rem;
	display: inline-block;
}

.affwp-affiliate-link__input {
	cursor: pointer;
}
/* End Affiliate Link Card */

/* Affiliate Landing Pages */
.affwp-affiliate-landing-pages .affwp-affiliate-link__display:not(:last-child) {
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(17, 24, 39, 0.05);
	margin-bottom: 1rem;
}
/* End Affiliate Landing Pages */

/* Link Sharing */
.affwp-link-sharing {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.affwp-link-sharing__options {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.affwp-link-sharing__icon {
	display: flex;
	justify-content: center;
	align-items: center;
}

.affwp-link-sharing__icon svg {
	width: 2rem;
	height: 2rem;
	color: rgba(0, 0, 0, 0.75);
}

.affwp-link-sharing__x svg {
	width: 1.5rem;
	height: 1.5rem;
}

.affwp-link-sharing__qrcode {
    cursor: pointer;
}
/* End link Sharing */

.affwp-errors,
.affwp-notice {
	border-radius: 2px;
	border: 1px solid #e6db55;
	margin: 0 0 21px 0;
	background: #ffffe0;
	color: #333;
}

.affwp-error,
.affwp-notice {
	padding: 10px;
}

p.affwp-error {
	margin: 0 !important;
}

#affwp-affiliate-dashboard h4 {
	margin-bottom: 20px;
}

#affwp-graphs-filter {
	margin-bottom: 20px;
}

#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs {
	margin: 0 0 20px 0;
	padding: 0;
	border: none;
}

#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li {
	display: inline-block;
	padding: 0 10px 0 0;
	margin: 0;
}

#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li.active {
	font-weight: bold;
}

#affwp-affiliate-dashboard #affwp-affiliate-dashboard-tabs li a {
	text-decoration: none;
}

#affwp-affiliate-dashboard .affwp-graph {
	margin-bottom: 20px;
}

#affwp-affiliate-dashboard .affwp-graph table {
	width: auto;
}

#affwp-affiliate-dashboard-visits {
	table-layout: fixed;
}

#affwp-affiliate-dashboard-visits .visit-url {
	width: 30%;
}

#affwp-affiliate-dashboard-visits .referring-url {
	width: 30%;
}

#affwp-affiliate-dashboard-visits .referral-status {
	width: 15%;
}

#affwp-affiliate-dashboard-visits .visit-date {
	width: 25%;
}

#affwp-affiliate-dashboard .affwp-send-notifications-wrap label,
.affwp-form .affwp-tos,
.affwp-form .affwp-user-remember {
	width: auto;
}

#affwp-affiliate-dashboard-payouts-service {
	margin-bottom: 50px;
}

.affwp-form select#affwp-payout-service-account-type,
.affwp-form select#affwp-payout-service-country {
	width: 100%;
}

.visit-converted i {
	display: inline-block;
	position: relative;
	top: 2px;
	left: 2px;
}

.visit-converted i:before {
	font-family: "dashicons";
	font-style: normal;
}

.visit-converted.yes i:before {
	content: "\f147";
	color: #5e95ef;
}

.visit-converted.no i:before {
	content: "\f158";
	color: #ef6c5e;
}

/* Creatives styling */
.affwp-creative pre {
	background-color: rgba(0, 0, 0, 0.01);
	border: 1px solid rgba(51, 51, 51, 0.1);
	line-height: 1.5;
	max-width: 100%;
	overflow: auto;
	padding: 1em;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.affwp-creative pre,
.affwp-creative code {
	hyphens: none;
}

.affwp-creative:not(.affwp-creatives-view .affwp-creative) {
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eaeaea;
	border-bottom: 1px solid rgba(51, 51, 51, 0.1);
}

.affwp-creative:last-of-type:not(
		.affwp-creatives-view .affwp-creative:last-of-type
	) {
	border-bottom: none;
	padding-bottom: 0;
}

/* End creative styling */

.affwp-table-wrap {
	overflow-x: auto;
}

table.affwp-table {
	word-wrap: break-word;
	table-layout: auto;
}

.screen-reader-text {
	position: absolute;
	margin: -1px;
	padding: 0;
	height: 1px;
	width: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	border: 0;
	word-wrap: normal !important;
}

/* Responsive table styling for mobile resolutions */
.affwp-table-responsive td:before {
	content: attr(data-th) ":\00a0";
	font-weight: bold;
}

.affwp-table-responsive td:before {
	display: none;
}

/* Spinner styling */
.affwp-spinner {
	margin: auto;
	padding: 0;
	width: 2rem;
	height: 2rem;
}

.affwp-spinner svg {
	width: 100%;
	height: 100%;
	vertical-align: top;
	animation: affwp-spinner-rotate 2s linear infinite;
}

.affwp-spinner svg * {
	stroke-width: 2.75;
	fill: none;
}

.affwp-spinner svg *:first-child {
	stroke: rgba(0, 0, 0, 0.1);
}

.affwp-spinner svg *:last-child {
	stroke: rgba(17, 24, 28, 0.8);
	animation: affwp-spinner-dash 2s ease-in-out infinite;
}

@keyframes affwp-spinner-rotate {
	100% {
		transform: rotate(360deg);
	}
}

@keyframes affwp-spinner-dash {
	0% {
		stroke-dasharray: 1, 150;
		stroke-dashoffset: 0;
	}
	50% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -35;
	}
	100% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -124;
	}
}

/* Creatives tab styling */
#affwp-affiliate-dashboard-creatives .affwp-creatives-types-menu {
	list-style: none;
	display: inline-flex;
	margin: 0 0 1.5rem;
	padding: 0.125rem;
	background-color: rgba(0, 0, 0, 0.05);
	gap: 0.125rem;
}

#affwp-affiliate-dashboard-creatives .affwp-view-switcher {
	list-style: none;
	display: flex;
	margin: 0 0 0 auto;
	padding: 0;
}

#affwp-affiliate-dashboard-creatives .affwp-creatives-types-menu a {
	text-decoration: none;
	padding: 0.25rem 0.75rem;
	font-weight: 500;
	display: inline-block;
	transition: background-color 0.1s ease-in;
}

#affwp-affiliate-dashboard-creatives .affwp-creatives-types-menu li,
#affwp-affiliate-dashboard-creatives .affwp-view-switcher li {
	margin: 0;
	padding: 0;
}

#affwp-affiliate-dashboard-creatives .affwp-creatives-types-menu .active a {
	background: rgba(255, 255, 255, 1);
	color: rgba(0, 0, 0, 0.75);
}

.affwp-view-switcher {
	justify-content: end;
}

.affwp-view-switcher li .affwp-view-switcher__button {
	padding: 0.5rem;
	color: rgba(0, 0, 0, 0.3);
	display: inline-flex;
	border: 1px solid transparent;
}

.affwp-view-switcher li {
	background-color: transparent;
	transition: background-color 0.1s linear;
}

.affwp-view-switcher li:hover:not(.active) {
	background-color: rgba(0, 0, 0, 0.05);
}

.affwp-view-switcher .active svg,
.affwp-view-switcher .affwp-view-switcher__button:hover svg {
	color: rgba(0, 0, 0, 0.75);
}

.affwp-creatives-table {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.affwp-creatives-table-row {
	display: flex;
	position: relative;
}

.affwp-creatives-table-cell {
	flex: 1;
	min-width: 0;
	align-items: center;
}

.affwp-creatives-table-cell[data-column="type"] {
	flex-direction: column;
	align-items: start;
	justify-content: center;
}

.affwp-creatives-table-cell[data-column="date_updated"] {
	justify-content: end;
}

.affwp-creatives-table-row {
	padding: 1.5rem 0;
}

.affwp-creatives-view--as-list .affwp-creative {
	border-top: 1px solid rgba(0, 0, 0, 0.03);
	gap: 1.5rem;
	position: relative;
	flex-direction: column;
}

.affwp-creatives-list-header {
	display: none;
}

.affwp-creatives-list-header
	> div[data-sorted="true"][data-order="asc"]
	> a::after {
	content: " \2191";
}

.affwp-creatives-list-header
	> div[data-sorted="true"][data-order="desc"]
	> a::after {
	content: " \2193";
}

.affwp-creative-name-wrap {
	display: flex;
	gap: 1.5rem;
	flex-direction: column;
}

.affwp-creatives-view--as-grid .affwp-creative-name {
	white-space: nowrap;
}

.affwp-creatives-view--as-grid .affwp-creative-name {
	overflow: hidden;
	text-overflow: ellipsis;
}

.affwp-creatives-view--as-grid .affwp-creative-name,
#affwp-creatives-modal .affwp-creative-name {
	font-weight: 600;
}

#affwp-creatives-modal .affwp-creative-name {
	margin-bottom: 0.25rem;
	margin-top: 0;
	font-size: 2rem;
	line-height: 1.1;
}

.affwp-creatives-item-actions {
	align-items: center;
}

.affwp-creatives-item-actions form {
	margin: 0;
	padding: 0;
}

.affwp-creatives-list-column-label {
	display: block;
	font-weight: 600;
	line-height: 1;
	margin-bottom: 0.25rem;
}

.affwp-creative-preview {
	border: 2px solid rgba(0, 0, 0, 0.03);
	padding: 0.25rem;
	display: flex;
	justify-content: center;
	overflow: hidden;
	transition: border 0.1s linear;
}

.affwp-creative:hover .affwp-creative-preview {
	border: 2px solid rgba(0, 0, 0, 0.08);
}

.affwp-creatives-view--as-grid .affwp-creative-preview {
	height: 100%;
	aspect-ratio: 1;
	margin-bottom: 0.5rem;
}

.affwp-creative-preview img {
	max-width: 100%;
}

.affwp-creatives-view--as-grid .affwp-creative:hover {
	cursor: pointer;
}

.affwp-creative img {
	object-fit: contain;
	height: 100%;
}

.affwp-creatives-view--as-list img {
	max-height: var(--affwp-creative-preview-width);
}

/* Modals */
.affwp-modal * {
	margin: 0;
}

.affwp-modal__header {
	margin-bottom: 1.5rem;
}

.affwp-modal__header h2 {
	margin-bottom: 0.5rem;
}

.affwp-modal__actions {
	margin-top: 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 4rem;
}

.affwp-modal__button {
	align-self: start;
}

/* End Modal */

/* QR Code Modals */
.affwp-modal__qr-code {
	display: flex;
	justify-content: center;
}

.affwp-modal__body:has(.affwp-modal__qr-code) {
	border: 2px solid rgba(0, 0, 0, 0.03);
    padding: 2rem;
}
/* End QR Code Modals */

/* Creatives Modal */

#affwp-creatives-modal {
	width: 100%;
	max-width: 960px;
	padding: 4rem;
	gap: 2rem;
}

.affwp-copy-textarea-content {
	min-height: 8rem;
	resize: none;
	width: 100%;
}

#affwp-creatives-modal .affwp-creative-section-preview {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

#affwp-creatives-modal .affwp-creative-preview {
	padding: 2rem;
}

#affwp-creatives-modal .affwp-creative-preview img {
	height: auto;
}

#affwp-creatives-modal .affwp-creative-preview + form.affwp-creative-copy-form {
	margin-top: 2rem;
}

.affwp-print-button {
	margin-left: auto;
}

#affwp-printable-area {
	display: none;
}

.affwp-creative-details {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.affwp-creative-details > div {
	line-height: 1.3;
}

.affwp-creative-file-extension {
	font-weight: 600;
}

.affwp-creative-section-title {
	font-weight: 600;
	font-size: 1.3rem;
	line-height: 1;
}

#affwp-creatives-modal .affwp-creative-subtitle,
.affwp-creative-file-details {
	color: rgba(0, 0, 0, 0.6);
	display: inline-flex;
	align-items: center;
}

#affwp-creatives-modal form,
#affwp-creatives-modal p {
	margin: 0;
}

.affwp-creative-section-code {
	margin-top: 2rem;
}

.affwp-creative-copy-form {
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 1rem;
}

.affwp-creative-separator {
	margin: 0 0.5rem;
}

.affwp-creatives-view--as-grid {
	--gap: 2rem;
	--max-columns: 5;
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(
		auto-fill,
		minmax(
			max(
				var(--affwp-creative-preview-width),
				100% / var(--max-columns) - var(--gap)
			),
			1fr
		)
	);
}

.affwp-creatives-view--as-grid .affwp-creative-type,
.affwp-creatives-view--as-grid .affwp-creative-size {
	color: rgba(0, 0, 0, 0.6);
}

.is-draggable .fancybox__content {
	cursor: default;
}

.affwp-infinite-scroll-trigger[data-state="loading"] {
	text-align: center;
}

.affwp-infinite-scroll-trigger .affwp-spinner {
	display: none;
}

.affwp-infinite-scroll-trigger[data-state="loading"] .affwp-spinner {
	display: inline-block;
}

.affwp-creative[data-type="text_link"] .affwp-creative-preview {
	padding: 1rem;
}

.affwp-creatives-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1rem;
}

#affwp-affiliate-dashboard-creatives .affwp-creatives-filters form,
#affwp-affiliate-dashboard-creatives
	.affwp-creatives-filters
	.affwp-category-dropdown,
#affwp-affiliate-dashboard-creatives
	.affwp-creatives-filters
	.affwp-category-dropdown
	select,
#affwp-affiliate-dashboard-creatives
	.affwp-creatives-filters
	input[type="submit"] {
	margin-bottom: 0;
}

.affwp-category-dropdown > div {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Keep the button inactive until have a proper href */
.affwp-button[download][href=""] {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
}

@media (min-width: 768px) {
	.affwp-creatives-view--as-list .affwp-creative {
		flex-direction: row;
	}

	.affwp-creatives-table-cell {
		display: flex;
	}

	.affwp-creative-name-wrap {
		flex-direction: row;
		align-items: center;
	}
	.affwp-creatives-list-column-label {
		display: none;
	}

	.affwp-creatives-view--as-list .affwp-creative img {
		object-fit: contain;
	}

	.affwp-creatives-view--as-list .affwp-creative-preview {
		align-items: center;
		height: var(--affwp-creative-preview-width);
		width: var(--affwp-creative-preview-width);
		flex-shrink: 0;
		box-sizing: border-box;
	}

	.affwp-creative[data-type="text_link"] .affwp-creative-preview {
		font-size: 0.875rem;
	}

	.affwp-creatives-view--as-list .affwp-creative-name {
		font-weight: 600;
	}

	.affwp-creative-id,
	.affwp-creative-size {
		font-size: 0.875rem;
	}

	.affwp-creatives-list-header {
		display: flex;
		gap: 1.5rem;
	}

	.affwp-creatives-list-header,
	.affwp-creatives-view--as-list .affwp-creative {
		position: relative;
	}

	.affwp-creatives-view--as-list
		.affwp-creatives-list-header
		> div:first-child,
	.affwp-creatives-view--as-list .affwp-creative > div:first-child {
		flex-grow: 3;
	}

	.affwp-creatives-list-header > div:first-child,
	.affwp-creative > div:first-child {
		padding-left: 0;
	}

	.affwp-creatives-view--as-list
		.affwp-creative
		> .affwp-creatives-item-actions {
		position: relative;
	}

	.affwp-creatives-view--as-list
		.affwp-creative
		> .affwp-creatives-item-actions {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100%;
		display: flex;
		justify-content: end;
		padding: 0;
	}

	.affwp-creatives-item-actions button,
	.affwp-creative-last-updated {
		transition: opacity 0.1s ease-in;
	}

	.affwp-creatives-item-actions button {
		visibility: hidden;
		opacity: 0;
	}

	.affwp-creatives-item-actions:hover {
		cursor: pointer;
	}

	.affwp-creatives-table-row:hover .affwp-creatives-item-actions button {
		visibility: visible;
		position: relative;
		right: 0;
		opacity: 1;
	}

	.affwp-creative-last-updated {
		opacity: 1;
	}

	.affwp-creatives-table-row:hover .affwp-creative-last-updated {
		opacity: 0;
	}

}
@media (min-width: 480px) {

	#affwp-affiliate-dashboard-url-generator  .affwp-affiliate-link,
	.affwp-affiliate-link__display {
		flex-direction: row;
	}

	.affwp-affiliate-link__input {
		flex-grow: 1;
	}

	.affwp-link-sharing {
		flex-direction: row;
		align-items: center;
	}

}
/* Card styling */
.affwp-card {
	border: 1px solid rgba(17, 24, 39, 0.05);
	/* border-radius: 0.75rem; */
	box-shadow:
		rgba(0, 0, 0, 0) 0px 0px 0px 0px,
		rgba(0, 0, 0, 0) 0px 0px 0px 0px,
		rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
		rgba(0, 0, 0, 0.1) 0px 1px 2px -1px;
}

.affwp-card .affwp-card__header:not(.affwp-affiliate-link__tooltip) * {
	margin: 0;
}

.affwp-card__header,
.affwp-card__actions {
	padding: 1.5rem;
}

.affwp-card__header + .affwp-card__actions {
	padding-top: 0;
}

.affwp-card__content--form {
	display: grid;
	gap: 1rem;
}

.affwp-card__content,
.affwp-card__footer {
	padding: var(--affwp-card-padding);
	padding-top: 0;
}

/* Compact card styling */
.affwp-card--compact {
	border-radius: 0.25rem;
}

.affwp-card--compact .affwp-card__header,
.affwp-card--compact .affwp-card__content,
.affwp-card--compact .affwp-card__footer {
	padding: 1rem;
}

@media (max-width: 767px) {
	#affwp-affiliate-dashboard-campaign-stats
		.affwp-table-responsive
		td.affwp-table-no-data {
		display: block;
	}

	#affwp-affiliate-dashboard-visits
		.affwp-table-responsive
		td.affwp-table-no-data:before,
	#affwp-affiliate-dashboard-payouts
		.affwp-table-responsive
		td.affwp-table-no-data:before,
	#affwp-affiliate-dashboard-referrals
		.affwp-table-responsive
		td.affwp-table-no-data:before {
		display: none;
	}

	.affwp-table-responsive td:last-child {
		margin-bottom: 20px;
	}

	.affwp-table-responsive td:first-child {
		background-color: #fafafa;
	}

	.affwp-table-responsive td:before {
		display: inline-block;
	}

	.affwp-table-responsive th {
		display: none;
	}

	.affwp-table-responsive td {
		display: flex;
		justify-content: space-between;
	}

	.affwp-custom-link-row {
		flex-direction: column;
		gap: 0;
	}

	.affwp-custom-link-actions {
		visibility: visible;
		opacity: 1;
		padding: 10px 0;
	}
}

@media print {
	body.affwp-affiliate-area-creatives * {
		display: none;
	}

	#affwp-printable-area {
		display: flex;
		justify-content: center;
		align-items: center;
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
	}

	#affwp-printable-area img {
		display: inline-block;
	}
}
/* Affiliate Area Coupons tab: Coupon URL styling */
.affwp-coupon-url-section {
	margin-top: 1rem;
	max-width: 500px;
}

.affwp-coupon-url-section:hover .affwp-row-actions {
	visibility: visible;
	opacity: 1;
}

#affwp-affiliate-dashboard-coupons .affwp-tooltip-url-copy {
	cursor: pointer;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.affwp-copy-coupon-url {
	display: flex;
	align-items: center;
}
/* End coupons url styling */

.affwp-registration-submitted form fieldset {
	display: none;
}
