/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
body {
	background: $color-seashell;
}

#screen-meta-links {
	display: none;
}

.geolocation-add-container .button-primary {
	margin-top: 5px;
}

#dxptk-new-rule-type svg {
	height: 18px;
	vertical-align: sub;
	width: 18px;
}

.conditional-tabs .tab {
	border-bottom: 0;
	cursor: pointer;
	line-height: 20px;
	overflow: hidden;
	padding: 15px;
	transition: all 0.15s ease-in-out;

	&:focus,
	&:focus-visible {
		box-shadow: 0 0 0 1px $color-purple;
	}

	span[class^="icon-osdxpi-"] {
		color: $color-blue-gem;
		font-size: 20px;
		margin-right: 3px;
		position: relative;
		top: 4px;
	}
}

.deviceinstructions {
	margin-top: 0;
}

@media (min-width: 1200px) {
	.devices-container {
		margin-top: -15px;
	}
}

.rule-wrap {
	select:not([multiple]) {
		-moz-appearance: none;
		-webkit-appearance: none;
		background-image: url('data:image/svg+xml;utf8,<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="12" version="1"><path d="M4 8L0 4h8z"/></svg>');
		background-position: right 50%;
		background-repeat: no-repeat;
		border-radius: 0;
		height: auto;
		padding: .3em .4em;
		padding-right: 1.5em;
	}

	input[type="text"] {
		border-radius: 0;
		height: auto;
		padding: .3em .4em;
	}

	.right-settings {
		display: flex;
		flex-direction: column;
		padding-left: 25px;
		padding-right: 30px;
		border-left: 1px solid $color-seashell;
		@media (min-width: 991px) {
			select,
			input,
			textarea,
			.settimeinstructions,
			pre.cf-cc-dynamic-link-code {
				max-width: 350px;
			}
		}
	}
}

.left-tabs .condition-label {
	font-weight: 300;
	padding: 15px;
	font-size: 1.3em;
	line-height: 1.3em;
	margin-top: 2px;
	border-bottom: 2px solid #4a1ade;
}

.right-settings .condition-label {
	font-weight: 300;
	padding: 15px 0;
	margin: 0;
	font-style: italic;
}

.conditional-tabs {
	&.Device div[data-trigger="Device"], &.drip-addon div[data-trigger="drip-addon"], &.convertkit-addon div[data-trigger="convertkit-addon"], &.User-Behavior div[data-trigger="User-Behavior"], &.referrer div[data-trigger="referrer"], &.url div[data-trigger="url"], &.Time-Date div[data-trigger="Time-Date"], &.PageVisit div[data-trigger="PageVisit"], &.Geolocation div[data-trigger="Geolocation"], &.custom div[data-trigger="custom"], &.ganalytics div[data-trigger="ganalytics"], &.matomo div[data-trigger="matomo"], &.salesforce-contact div[data-trigger="salesforce-contact"], &.woocommerce-membership div[data-trigger="woocommerce-membership"], &.woocommerce-subscription div[data-trigger="woocommerce-subscription"], &.learndash-courses div[data-trigger="learndash-courses"], &.hubspot-addon div[data-trigger="hubspot-addon"], &.Analytics div[data-trigger="Analytics"], &.WooCommerce div[data-trigger="WooCommerce"], &.active-campaign div[data-trigger="active-campaign"], &.gravity-forms div[data-trigger="gravity-forms"] {
		background: $color-purple-dark;
		color: $color-white;
	}

	&.Device div[data-trigger="Device"] span[class^="icon-osdxpi-"], &.gravity-forms div[data-trigger="gravity-forms"] span[class^="icon-osdxpi-"] &.drip-addon div[data-trigger="drip-addon"] span[class^="icon-osdxpi-"], &.convertkit-addon div[data-trigger="convertkit-addon"] span[class^="icon-osdxpi-"], &.User-Behavior div[data-trigger="User-Behavior"] span[class^="icon-osdxpi-"], &.referrer div[data-trigger="referrer"] span[class^="icon-osdxpi-"], &.url div[data-trigger="url"] span[class^="icon-osdxpi-"], &.Time-Date div[data-trigger="Time-Date"] span[class^="icon-osdxpi-"], &.PageVisit div[data-trigger="PageVisit"] span[class^="icon-osdxpi-"], &.Geolocation div[data-trigger="Geolocation"] span[class^="icon-osdxpi-"], &.custom div[data-trigger="custom"] span[class^="icon-osdxpi-"], &.ganalytics div[data-trigger="ganalytics"] span[class^="icon-osdxpi-"], &.matomo div[data-trigger="matomo"] span[class^="icon-osdxpi-"], &.salesforce-contact div[data-trigger="salesforce-contact"] span[class^="icon-osdxpi-"], &.woocommerce-membership div[data-trigger="woocommerce-membership"] span[class^="icon-osdxpi-"], &.woocommerce-subscription div[data-trigger="woocommerce-subscription"] span[class^="icon-osdxpi-"], &.learndash-courses div[data-trigger="learndash-courses"] span[class^="icon-osdxpi-"], &.hubspot-addon div[data-trigger="hubspot-addon"] span[class^="icon-osdxpi-"], &.active-campaign div[data-trigger="active-campaign"] span[class^="icon-osdxpi-"] {
		color: $color-white;
	}

	font-weight: bold;
}

.cf-cc-versions-sortable {
	margin: 0;

	.rule-item {
		margin: 0;
	}
}

.border-highlight {
	border-left: 2px solid $color-purple;
	padding-left: 13px !important;
}

#cf_cc_condition_metabox {
	display: block !important;

	.inside {
		display: none;
		margin: 0;
		padding: 0;
		position: relative;

		.need-help-link {
			bottom: 0;
			padding-left: 15px;
			position: absolute;
			right: 30px;
			text-align: right;
		}
	}
}

.post-type-cf_cc_condition #edit-slug-box {
	display: none;
}

.query-string-code {
	margin: 10px 0 10px;
	padding: 11px 6px;
}

.wp-editor-area {
	min-height: 270px;
}

.default-rule-wrap {
	padding: 10px 0 20px 0 !important;
}

.license-tbl {
	background: $color-white;
	border-bottom: 1px solid $color-concrete;
}

.cf-cc-settings-tbl {
	width: auto !important;
}

.cf-cc_setting_page_option_number_select {
	height: 28px;
	position: relative;
	top: 3px;
}

.license-tbl tbody {
	display: block;
	padding: 10px;
}

.license_expires_message {
	padding: 15px 10px;
}

.no_license_message {
	background: linear-gradient(135deg, $color-cornflower-blue 0%, $color-dodger-blue 100%);
	color: $color-white;
	display: block;
	font-size: 1.2em;
	margin: 10px 0;
	padding: 16px 10px;
	text-align: left;
}

.licenseTable {
	padding: 20px 10px 20px 20px !important;
	width: 130px !important;
}

.cf-cc-settings-td {
	padding: 20px 10px 20px 20px !important;
	vertical-align: baseline !important;
}

.approved_license_message {
	background-color: $color-chateau-green;
	border: 1px solid $color-mercury;
	color: $color-white;
	font-size: 14px;
	margin-top: 10px;
	padding: 7px;
}

.contact-us-mail {
	color: $color-cerulean;
	font-weight: bold;
}

.helper-metabox-container {
	font-size: 1em;
	padding: 10px 0;
}

.cf-cc-helper-metabox-doc {
	list-style: unset;
	list-style-position: inside;
	margin-top: 0;

	li {
		margin-bottom: 2px;
	}
}

.cf-cc-content-head {
	font-weight: bold;
}

#cf_cc_condition_metabox {
	border: none;
}

.get-license {
	background: $color-cornflower-blue;
	background: linear-gradient(135deg, $color-cornflower-blue 0%, $color-dodger-blue 100%);
	color: $color-white;
	display: block;
	font-size: 1.05em;
	margin-top: 20px;
	padding: 10px 10px;
	text-align: left;

	.text {
		float: left;
		padding: 7px;
		vertical-align: middle;
	}
}

.get-license-btn {
	background: $color-equator;
	background: linear-gradient(0deg, $color-equator 0%, $color-rob-roy 100%);
	border: 1px solid $color-seashell;
	color: $color-white;
	float: right;
	font-size: 0.9em;
	font-weight: bold;
	line-height: 1.2em;
	margin-left: 20px;
	padding: 8px 15px;
	text-align: center;
	text-decoration: none;
	width: 244px;
}

.analytics-reset-all-wrapper {
	color: $color-cerulean;
	cursor: pointer;
	font-size: 0.8em;
	font-weight: 400;
	margin-top: 10px;
}

.reset-all-views-count {
	cursor: pointer;
	text-decoration: none;

	&:hover {
		cursor: pointer;
		text-decoration: none;
	}
}

.get-license-btn {
	&:hover {
		color: $color-white;
		text-decoration: none;
	}

	&:visited {
		color: $color-white;
		text-decoration: none;
	}

	&:focus {
		text-decoration: none;
	}
}

.versioninstructions {
	margin-bottom: 2.5em;
}

.repeater-template, .reapeater-item-cloned {
	display: none;
}

.reapeater-item-cloned-loaded {
	display: block;
}

.rule-wrap .cf-cc-form-group .device-container {
	margin: 15px 0;

	label {
		font-weight: normal;
	}
}

input.form-control.deviceformcontrol {
	margin: 0 3px 3px;
	min-width: 10px;
}

#wp-trigger-default-wrap {
	margin-top: 20px;
}

.submit-btn-wrap {
	margin-left: 0.8em;

	input {
		vertical-align: middle !important;
	}
}

.rule-item {
	&:nth-child(odd) {
		background: $color-white;
	}

	&:nth-child(even) {
		background: $color-alabaster;
	}
}

.rule-item .instructions {
	background: transparent;
	border-radius: 5px;
	margin-bottom: 10px;
	padding: 0.5em 0;

	p {
		margin: 5px 2px;
	}
}

/* Schedule */

.schedule-header th {
	font-size: 11px;
	min-width: 27px;
}

.cfdatetimepicker {
	padding-left: 32px;
	padding-top: 8px;
}

.pick-date-container {
	margin-bottom: 10px;
	position: relative;
	width: 100%;

	&:before {
		color: $color-shuttle-gray;
		content: "\f508";
		font-family: dashicons;
		font-size: 20px;
		left: 9px;
		position: absolute;
		top: 6px;
	}
}

.settimeinstructions {
	background: none;
	border: 1px solid $color-pink;
	color: $color-pink;
}

.closeX {
	border-color: $color-pink;
	border-style: solid;
	border-width: 0 0 1px 1px;
	cursor: pointer;
	float: right;
	font-size: 12px;
	line-height: 10px;
	padding: 2px;
}

.settimeinstructions {
	p {
		margin: 0;
		padding: 7px 10px;
	}

	a {
		text-decoration: underline;
	}
}

.show-selection {
	display: block;
}

@media (min-width: 991px) {
	.rule-wrap {
		border: 0;
		display: flex;
		margin: 0;
		padding: 0;
	}
}

.instructionabovefield {
	margin: 1em 0 0.4em;
}

.rule-wrap {
	h3 {
		color: $color-shuttle-gray;
		font-size: 1.5em;
		font-weight: 400;
		line-height: 1.3em;

		&:before {
			margin-left: 1em;
		}
	}

	@media (min-width: 991px) {
		.left-tabs {
			padding-left: 0;
			padding-right: 0;
		}
	}
}

.version-count {
	background: $color-mercury;
	border-radius: 50%;
	color: $color-black;
	font-size: 0.9em;
	margin-right: 1em;
	padding: 0.2em 0.5em;
	white-space: nowrap;
}

.version-alpha {
	color: $color-cyprus;
	font-weight: bold;
}

.btn-delete {
	background-color: transparent;
	border: none;
	border-left: 1px solid $color-iron;
	border-radius: 0;
	color: $color-rolling-stone;
	float: right;
	padding: 1.3em 1.6em 1.1em;
	transition: all 200ms ease-in-out 0s;

	i {
		font-size: 1.5em;
	}

	&:hover {
		background: rgba(0, 0, 0, 0.05);
		color: $color-trout;
	}
}

.cf-cc-btn-drag {
	background-color: transparent;
	border: none;
	border-left: 1px solid $color-iron;
	border-radius: 0;
	color: $color-rolling-stone;
	float: right;
	padding: 1.31em 1.6em;
	transition: all 200ms ease-in-out 0s;
}

.highlighted {
	color: $color-cornflower-blue;
}

.btn-add {
	background: transparent;
	border: none;
	color: $color-cyprus;
	font-size: 1.4em;
	transition: all 200ms ease-in-out 0s;

	&:hover {
		color: $color-turquoise;
	}
}

.submit-bottom-wrap {
	padding: 2em 0;
	text-align: center;

	.reminder {
		font-size: 1.5em;
	}

	.submit {
		float: none !important;
		text-align: center;
	}
}

.rule-item {
	select, input {
		margin-bottom: 0;
	}
}

.instructions {
	pre code {
		font-size: 0.9em;
	}

	code b {
		color: $color-purple;
	}
}

.wysiwyg-not-valid {
	border: 1px solid;
	color: red;
}

.html-active .switch-html-cloned, .tmce-active .switch-tmce-cloned {
	background: $color-wild-sand;
	border-bottom-color: $color-wild-sand;
	color: $color-emperor;
}

.php-shortcode-toggle-wrap {
	display: none;
}

.php-shortcode-toggle-link {
	color: $color-cerulean;
	cursor: pointer;
	font-size: 0.8em;
	font-weight: 400;
}

.query-string-err-notification {
	border: 1px solid red;
	color: red;
	margin-top: 10px;
	padding: 0.2em 0.6em;
	text-align: left;
}

.cf-cc-pages-visited-settings-explain {
	font-size: 12px;

	.dashicons-edit {
		font-size: 12px;
		height: 12px;
		width: 12px;
	}
}

tr.type-cf_cc_condition .column-trigger {
	direction: ltr;
}

/* fix for polylang plugin */

th[class*=" column-language_"] {
	width: 2.2% !important;
}

.initial-instructions {
	background: $color-cyprus;
	border-bottom: 1px solid rgb(198, 198, 198);
	border-left: 2px solid #27BADD;
	border-radius: 3px;
	border-right: 1px solid rgb(198, 198, 198);
	border-top: 1px solid rgb(198, 198, 198);
	color: $color-white;
	padding: 8px 14px;

	b {
		background: #2ab7d9;
		border-radius: 50%;
		font-size: 11px;
		margin: 0 2px;
		padding: 2px 6px;
	}
}

.ab-testing-custom {
	height: 28px;
}

.default-repeater-item {
	background: $color-white !important;
	position: relative;
}

.reapeater-item {
	position: relative;
}

/* Begin Testing Mode Section CSS */

@keyframes flicker {
	from {
		opacity: 0;
	}

	25% {
		opacity: 0.5;
	}

	50% {
		opacity: 1;
	}

	75% {
		opacity: 0.5;
	}

	to {
		opacity: 0;
	}
}

.cf-cc-tm-section {
	float: right;
	margin-top: 10px;
	width: 100%;

	.circle {
		background: $color-alabaster;
		border: 1px solid #a9a9a9;
		cursor: pointer;
		float: right;
		height: 10px;
		margin-top: 5px;
		width: 10px;
	}

	.circle-active {
		background: #27cc52;
		border-radius: 50%;
	}

	.text {
		float: right;
		margin-left: 5px;
		margin-top: 2px;
	}
}

.cf-cc-tm-overlay {
	background: rgba(245, 245, 245, 0.67);
	height: 100%;
	left: 0;
	line-height: 100%;
	position: absolute;
	text-align: center;
	top: 0;
	width: 100%;
	z-index: 1000;

	.text {
		background: #fbfbfb;
		border: 2px solid #d44f2f;
		color: #d05033;
		font-size: 16px;
		font-weight: bold;
		left: 50%;
		margin: 0;
		margin-right: -50%;
		padding: 20px;
		position: absolute;
		top: 50%;
		transform: translate(-50%, -50%);
	}
}

.cf-cc-draggable-icon {
	transform: rotate(45deg);
}

.cf-cc-tm-section .tm-tip {
	background: #565e67;
	border-radius: 50%;
	color: $color-white;
	cursor: default;
	display: block;
	float: right;
	font-size: 9px;
	line-height: 14px;
	margin-left: 5px;
	margin-top: 4px;
	padding: 0 5px;
	text-decoration: none;
}

.cf-cc-tip {
	border: 1px solid #337ab7;
	border-radius: 50%;
	font-size: 0.8em;
	margin-left: 5px;
	padding: 1px 4px 0;
	text-decoration: none;

	&:hover, &:focus, &:visited, &:active {
		border: 1px solid #337ab7;
		border-radius: 50%;
		font-size: 0.8em;
		margin-left: 5px;
		padding: 1px 4px 0;
		text-decoration: none;
	}
}

.cf-cc-tipGrey {
	border: 1px solid #929292;
	border-radius: 50%;
	color: #929292;
	font-size: 0.7em;
	margin-left: 5px;
	padding: 1px 3.8px 1px;
	text-decoration: none;

	&:hover, &:focus, &:visited, &:active {
		border: 1px solid #929292;
		border-radius: 50%;
		color: #929292;
		font-size: 0.7em;
		margin-left: 5px;
		padding: 1px 3.8px 1px;
		text-decoration: none;
	}
}

.line-tooltip {
	text-decoration: underline dotted #666;
}

.general-tool-tip {
	border: 1px solid #a2a2a2;
	border-radius: 50%;
	bottom: 1px;
	color: #a2a2a2;
	font-size: 7px;
	line-height: 10px;
	margin: 3px 5px;
	padding: 1px 3.5px;
	position: relative;
	text-decoration: none;

	&:hover {
		color: none;
		text-decoration: none;
	}
}

.query-example {
	color: #a2a2a2;
	font-size: 12px;
}

/* End Testing Mode Section CSS */

/* Time & Date */

.cf-cc-start-at-date, .cf-cc-end-at-date {
	margin-bottom: -8px;
}

.schedule-rows td {
	background-color: #eee;
	border: 1px solid #d3d3d3;
	cursor: pointer;
	height: 10px;
	line-height: 10px;
	margin: 3px;
	padding: 5px;
	width: 80px;

	&:first-child {
		background-color: transparent;
		border: 0;
		border-top: 1px dashed #c3c3c3;
		font-size: 10px;
		padding: 0 4px 0 0;
		position: relative;
		text-align: left;
		top: -5px;
		width: 0px;
	}

	&[data-selected], &[data-selecting] {
		background-color: #27badd;
	}

	&[data-disabled] {
		opacity: 0.55;
	}
}

/* License Styles */

.locked-condition-box-container {
	float: left;
	margin-bottom: 0;
	padding: 0;
	text-align: center;
}

.locked-condition-box {
	background-color: #cdecc9;
	border: 1px solid #82ca9c;
	padding: 10px;

	.unlock-button {
		background-color: #82ca9c;
		border-radius: 15px;
		color: $color-white;
		display: inline-block;
		margin-top: 10px;
		padding: 4px 20px;
	}
}

span.description {
	color: red;
	font-size: 14px;
	font-style: italic;
	margin: 10px;
}

/* Google Places API */

.locationField, #controls {
	position: relative;
}

.autocomplete {
	left: 10px;
	position: absolute;
	top: 0;

	/* 0 */
	width: 81%;

	/* 85% */
}

.remove-autocomplete {
	background: none;
	border: none;
	color: #d25134;
	line-height: 23px;
}

.specific-location {
	color: $color-pink;
	display: inline-block;
	word-wrap: break-word;
}

.map-marker-near-input {
	color: $color-shuttle-gray;
	margin-right: 3px;
}

.geolocation-add-btn {
	background: none;
	border: none;
	color: $color-turquoise;
}

.label {
	color: #303030;
	font-weight: bold;
	text-align: right;
	width: 100px;
}

.field {
	width: 99%;
}

.slimField {
	width: 80px;
}

.wideField {
	width: 200px;
}

.locationField {
	/*height: 30px;*/
	margin-bottom: 2px;

	.autocomplete {
		font-size: 10px;
	}
}

.locations-description {
	border-bottom: 1px solid #bebebe;
	margin: 0 0 10px;
	padding-bottom: 10px;
}

.cf-cc-autocomplete-fields-container.shown {
	background: $color-mercury;
	border: 1px solid #dcdcdc;
	border-radius: 2px;
	margin-bottom: 10px;
	padding: 10px;
}

.selection-inputs-container {
	position: relative;
}

.cf-cc-form-subgroup.page-visit-url-input {
	display: none;
}

.url-input {
	.cf-cc-form-subgroup.page-visit-url-input {
		display: block !important;
	}
}

.geo-autocomplete, .cf-page-visit-autocomplete {
	width: 100%;
}

.select-city-container {
	height: 26px;
	position: relative;
	width: 100%;
}

#geo-timezone-selection {
	color: #787878;
	height: 2em;
}

.autocomplete {
	left: 0;
	width: 100%;
}

.selection-title {
	margin: 10px 0;
	margin-left: 4px;
}

.or-statement {
	font-size: 0.8em;
	margin: 0;
}

.geo-timezone-selection {
	color: #787878;
	height: 2em;
}

/* Statistics */

.statistics_wrapper {
	width: 80%;
}

.version_statistics {
	padding-top: 10px;
}

.version_statistics_title {
	border-bottom: 1px solid $color-mercury;
	height: 1.5em;
	text-align: center;

	th {
		font-weight: normal;
	}
}

.version_statistics {
	.version, .statistics {
		padding: 8px 5px;
		text-align: center;
		vertical-align: middle;
	}
}

.rese_action {
	text-align: center;
}

.reset_version_action {
	color: #d25236;
	cursor: pointer;
	font-size: 0.8em;
}

#analytics-refresh-views {
	cursor: pointer;
}

.analytics-loading-container {
	background: rgba(220, 220, 220, 0.5);
	height: 100%;
	position: absolute;
	width: 100%;
}

.refreshIcon {
	background: $color-alabaster;
	border: 1px solid #d8d8d8;
	border-radius: 50%;
	color: $color-cerulean;
	font-size: 1em;
	margin-left: 5px;
	padding: 3px;
}

/* Spinner CSS + Animations */

.loading-spinner {
	animation: sk-scaleout 1.0s infinite ease-in-out;
	background-color: #333;
	border-radius: 100%;
	height: 40px;
	margin: 100px auto;
	width: 40px;
}


@keyframes sk-scaleout {
	0% {
		transform: scale(0);
	}

	100% {
		transform: scale(1);
		opacity: 0;
	}
}

/* General css corresponds geolocation */

.hide-field {
	display: none;
}

.ifcf-ccso-input-autocomplete {
	width: 100%;
}

.cf-cc-autocomplete-container {
	display: none;
	float: left;
	width: 100%;

	input, select {
		width: 92%;
	}
}

.cf-cc-autocomplete-wrapper {
	line-height: 1.7;
}

.cf-cc-geo-selected {
	display: block !important;
	margin: 6px 0;
}

input.cf-cc-autocomplete-opener {
	margin-top: 0;
}


/* Settings Page related CSS - Begin */

.cf-cc-info-title {
	padding: 15px 0 20px !important;
}

.cf-cc-info-tab-wrapper {
	.cf-cc-general-info-wrapper, .geolocation-info-wrapper {
		font-size: 14px;
		line-height: 1.7;
		max-width: 1020px;
	}
}

/*View Trigger page */

.version-symbol {
	border-bottom: 1px solid #e1e1e1;
	border-top: 1px solid #e1e1e1;
	text-align: left;
}

.version-content {
	margin: 30px 0;
}

.cf-cc-primary-lang-checkbox {
	float: left;
	margin: 0 5px 0 0 !important;
}

.cf-cc-primary-lang-container {
	float: left;
	font-size: 12px;
	font-weight: normal;
	margin-left: 0;
	margin-top: 10px;
}

/* Settings Page related CSS - End */

#cf-cc-modal-first-use {
	display: none;
}

.cf-cc-form-group,
.cf-cc-form-subgroup {
	margin-bottom: 15px;

	&:empty {
		display: none;
	}

	&.hide-group {
		height: 0;
		margin: 0;
		overflow: hidden;
		padding: 0;
		width: 0;
	}
}

/* Notice style */
.notice-optin {
	border-left-color: $color-pink;
	padding-bottom: 20px;
	padding-top: 20px;

	p {
		margin: 0 0 0.5em 0;
	}

	.button-primary, .button-primary:hover, .button-primary:active, .button-primary:focus {
		background: $color-purple;
		border-color: $color-purple;

		&.pink {
			background: $color-pink;
			border-color: $color-pink;
		}
	}

	.optin {
		box-shadow: var(--shadow-elevation-low);
		transition: all 0.2s ease-in-out;

		&:hover {
			box-shadow: var(--shadow-elevation-medium);
			transition: all 0.2s ease-in-out;
		}
	}

	.optin-actions {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 30px;
	}

	.button-primary:focus {
		box-shadow: 0 0 0 1px #fff, 0 0 0 3px $color-purple;
	}
}

:root {
	--shadow-color: 0deg 0% 0%;
	--shadow-elevation-high: -0.8px 0.8px 1.1px hsl(var(--shadow-color) / 0.14),
	-2.8px 2.9px 3.8px -0.5px hsl(var(--shadow-color) / 0.13),
	-5.2px 5.5px 7.2px -0.9px hsl(var(--shadow-color) / 0.12),
	-9px 9.5px 12.5px -1.4px hsl(var(--shadow-color) / 0.11),
	-15.2px 16.1px 21.1px -1.8px hsl(var(--shadow-color) / 0.1),
	-24.7px 26.1px 34.2px -2.3px hsl(var(--shadow-color) / 0.09),
	-38.4px 40.7px 53.3px -2.7px hsl(var(--shadow-color) / 0.08),
	-57.4px 60.9px 79.7px -3.2px hsl(var(--shadow-color) / 0.07),
	-82.6px 87.6px 114.7px -3.6px hsl(var(--shadow-color) / 0.06);
	--shadow-elevation-low: -0.8px 0.8px 1.1px hsl(var(--shadow-color) / 0.16),
	-1.2px 1.3px 1.7px -1.8px hsl(var(--shadow-color) / 0.12),
	-3.2px 3.4px 4.4px -3.6px hsl(var(--shadow-color) / 0.09);
	--shadow-elevation-medium: -0.8px 0.8px 1.1px hsl(var(--shadow-color) / 0.13),
	-1.6px 1.7px 2.2px -0.9px hsl(var(--shadow-color) / 0.12),
	-3.5px 3.7px 4.9px -1.8px hsl(var(--shadow-color) / 0.1),
	-7.9px 8.4px 11px -2.7px hsl(var(--shadow-color) / 0.08),
	-16.2px 17.2px 22.5px -3.6px hsl(var(--shadow-color) / 0.07);
}

/* Settings Page Related Rules */
.cf-cc_settings_page_option {
	width: 30px;
}

.rule-wrap .datetimepickercustom-.cfdatetimepicker {
	padding-left: 30px;
}

#wpcontent .cf-cc-admin-toolbar {
	align-items: center;
	background: $color-white;
	border-bottom: 1px solid #ccd0d4;
	display: flex;
	justify-content: space-between;
	margin-left: -20px;
	padding: 15px 20px;

	& .cf-cc-admin-toolbar-breadcrumbs {
		align-items: center;
		display: flex;
		justify-content: flex-start;
	}
}

.cf-cc-admin-toolbar .dxptk-pro-variant {
	font-weight: 400;
	font-size: 19px;
}

.cf-cc-admin-toolbar h2 {
	font-size: 19px;
	margin-top: 18px;
	padding-left: 7px;

	span.delimiter {
		color: $color-pink;
		font-size: 24px;
		font-weight: 400;
	}
}

.cf-cc-admin-toolbar-copy {
	display: block;
	font-size: 10px;
	font-weight: bold;
	margin-top: -15px;
	text-transform: uppercase;

	@media screen and (min-width: 426px) {
		display: inline-block;
		margin-top: auto;
	}
}

.license-status {

	align-items: center;
	display: flex;
	font-size: 15px;
	font-weight: 500;

	& .invalid {
		.license-status-dot {
			background-color: $color-pink;
			line-height: 13px;

			&:after {
				color: $color-white;
				content: 'x';
			}
		}
	}

	&.missing {
		.license-status-dot {
			background-color: $color-equator;

			&:after {
				color: $color-white;
				content: '?';
			}
		}
	}
}

.license-status-dot {
	background-color: #00C206;
	border-radius: 50%;
	display: inline-block;
	height: 15px;
	line-height: 15px;
	margin-right: 5px;
	text-align: center;
	width: 15px;
	padding: 3px;

	&:after {
		color: $color-white;
		content: '✓';
	}
}

body .wrap .cftitle {
	margin: 15px 0;
	padding: 0;
}

.cf-cc-body {
	border: 1px solid #DDDDDD;
	margin-top: 0;

	> p,
	> ul,
	> dl {
		margin-left: 3em;
	}

	p,
	li,
	dt,
	dd {
		font-size: 1.04em;
		line-height: 150%;
		max-width: 42em;
	}

	select {
		vertical-align: initial;
	}

	form,
	.form-table {
		&:not(.persona-rules-form) {
			font-size: 14px;
			max-width: 52em;
		}

		textarea {
			width: 100%;
		}

		p,
		li,
		dt,
		dd {
			font-size: 1.0em;
		}

		.accordion-container {
			th {
				display: none;
			}

			td {
				padding: 0;
			}
		}
	}

	h2 {
		margin-top: 1.5em;
	}

	dt {
		font-weight: 700;
	}

	dd {
		font-style: italic;
		margin-bottom: 1.25em;
	}

	main {
		background-color: $color-white;
		padding: 20px;

		h2 {
			&:first-of-type {
				margin-top: 0;
			}
		}
	}
}

.hubspot-addon-field-value {
	margin-top: 10px;
	width: 100%;
}

.total-spent-container {
	display: flex;
	align-items: center
}

.total-spent-currency-symbol {
	border: 1px solid;
	display: flex;
	align-items: center;
	border-right: none;
	color: gray;
	padding: 9px 10px;
	font-weight: bold;
}

.dxp-toolkit-inline-fields {
	align-items: center;
	display: flex;
	gap: 1rem;
}

.dxp-toolkit-inline-fields > * {
	flex-grow: 1;
}

// Override default wordpress colors of ui elements
.wp-core-ui {
	#wpbody-content {
		.button:not(.button-primary), .button-secondary, .button-link {
			border-color: $color-purple;
			color: $color-purple;

			&:focus, &:focus-visible {
				box-shadow: 0 0 0 1px $color-purple;
			}
		}

		a:not(.button-primary, .submitdelete) {
			color: $color-purple;

			&:focus, &:focus-visible {
				box-shadow: 0 0 0 1px $color-purple;
				outline: none;
			}

			&.page-title-action {
				border-color: $color-purple;
				color: $color-purple;
			}
		}

		.trash {
			a.submitdelete {
				color: $color-pink;

				&:focus,
				&:focus-visible {
					box-shadow: 0 0 0 1px $color-pink;
				}
			}
		}

		.button-primary:not(.optin) {
			background: $color-purple;

			border-color: $color-purple;

			&:hover {
				background: $color-purple-dark;
				border-color: $color-purple-dark;
			}
		}

		select:hover:not([disabled]) {
			color: $color-purple;
		}

		table th {
			color: $color-purple-darkest;
		}

		select:focus,
		select:focus-visible {
			border-color: $color-purple;
			box-shadow: 0 0 0 1px $color-purple;
			color: $color-purple;
			outline: none;
		}

		input[type=checkbox]:checked::before {
			content: url(data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%234B1CDD%27%2F%3E%3C%2Fsvg%3E) !important;
		}

		.postbox .handle-order-higher,
		.postbox .handle-order-lower,
		.postbox .handlediv {
			&:focus,
			&:focus-visible {
				box-shadow: 0 0 0 1px $color-purple;
			}
		}

		.submitbox {
			.submitdelete {
				color: $color-pink;
			}
		}
	}
}

/* Tooltip styles */
.tooltip-wrapper {
	display: inline-block;

	a {
		color: #fff !important;
		text-decoration: none !important;
		box-shadow: none !important;;

		&:hover {
			text-decoration: none !important;
		}
	}

	.tooltip:hover + .popup-wrapper .popup {
		opacity: 1;
		filter: alpha(opacity=100);
		transform: translateX(-1em);
		z-index: 99;
		transition: transform 125ms cubic-bezier(.32, .1, .41, .89), opacity 125ms cubic-bezier(.32, .1, .41, .89);
		transition-delay: 0ms;
	}

	.tooltip-icon {
	}

	.tooltip + .popup-wrapper .popup {
		display: block;
		width: max-content;
		background: linear-gradient(
				-35deg,
				rgba(#4a1ade, 0.55) 0%,
				rgba(#290c81, 0.55) 100%
		);
		box-shadow: 0 0 30px rgba(#160842, 0.3);
		backdrop-filter: blur(10px);
		padding: 15px 13px;
		color: white;
		border-radius: 3px;
		margin: 1em;
		bottom: -2.8em;
		left: 2.5em;
		opacity: 0;
		filter: alpha(opacity=0);
		position: absolute;
		text-align: center;
		z-index: 2;
		text-transform: none;
		transition: transform 250ms cubic-bezier(.32, .1, .41, .89), opacity 250ms cubic-bezier(.32, .1, .41, .89);
		will-change: transform;
		transition-delay: 200ms;
	}

	.tooltip + .popup-wrapper .popup:before {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 98.5%;
		height: 98.5%;
		border: 2px solid rgba(#160842, 0.05);
		border-left: 0;
		border-radius: 1.5px;
		content: "";
	}

	.tooltip + .popup-wrapper .popup:after {
		border-color: rgba(#4a1ade, 0.55) rgba(0, 0, 0, 0);
		border-style: solid;
		border-width: 12px 10px 0;
		left: -16px;
		content: "";
		display: block;
		top: 10px;
		position: absolute;
		width: 0;
		transform: rotate(90deg);
	}

	.popup-wrapper {
		position: relative;
		width: 0;
		height: 0;
	}

	.tooltip {
		display: inline-block;
		background-color: #4a1ade;
		color: #fff;
		width: 13px;
		height: 13px;
		padding: 2px;
		border-radius: 50%;
		font-size: 15px;
		line-height: 11.5px;
		font-weight: 500;
		text-align: center;
		cursor: pointer;
		transition: background-color 250ms cubic-bezier(.32, .1, .41, .89);
		transition-delay: 300ms;

		&:hover {
			background-color: #E6186B;
			transition: background-color 125ms cubic-bezier(.32, .1, .41, .89);
		}
	}

}
