@import 'partials/common';
@import 'partials/campaign-congrats-wizard';

$color_orange: #df7739;
$color_blue: #3178a0;
$color_green: #74AE5E;

@keyframes campaign-dot-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba($color_orange, 0.6);
	}
	100% {
		box-shadow: 0 0 0 10px rgba($color_orange, 0);
	}
}

span.charitable-admin-campaign-congrats-wizard-dot {
	display: inline-block;
	width: 12px;
	height: 12px !important;
	padding: 0 !important;
	border: 0!important;
	border-radius: 50%;
	background-color: $color_orange;
	animation: campaign-dot-pulse 1.5s infinite !important;
	margin: 3px 10px;
}

.wp-editor-tools {
	span.charitable-admin-campaign-congrats-wizard-dot {
		margin-top: 9px;
	}
}

.charitable-admin-campaign-congrats-wizard-tooltip {
	display: none;
}

.charitable-admin-campaign-congrats-wizard.tooltipster-sidetip {

	z-index: 100100 !important;

	&.tooltipster-top {
		.tooltipster-box {
			margin-bottom: 18px;
		}
		.tooltipster-arrow {
			bottom: 8px;
		}
		.tooltipster-arrow-background {
			top: 0;
		}
	}

	&.tooltipster-right {
		.tooltipster-box {
			margin-left: 18px;
		}
		.tooltipster-arrow {
			left: 8px;
		}
	}

	.tooltipster-box {
		max-width: 260px;
		background: white;
		border: none;
		border-radius: 4px;
		box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.25);
		-webkit-box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.25);
		-moz-box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.25);

		.tooltipster-content {
			color: #444444;
			padding: 16px 20px 18px;
			text-align: center;

			div *:first-child {
				margin-top: 0 !important;
			}

			h3 {
				font-size: 16px;
				letter-spacing: 0px;
				line-height: 18px;
				margin: 0;
				color: #23282C;
			}

			p {
				font-size: 14px;
				letter-spacing: 0px;
				line-height: 18px;
				margin: 10px 0 0;
				color: #444444
			}

			a {
				color: #1D7BAC;
			}
		}

		.charitable-admin-campaign-congrats-wizard-done-btn {
			border-radius: 3px;
			cursor: pointer;
			text-decoration: none;
			text-align: center;
			vertical-align: middle;
			white-space: nowrap;
			box-shadow: none;
			font-size: 14px;
			font-weight: 600;
			letter-spacing: 0px;
			padding: 7px 18px;
			border: none;
			background-color: $color_orange;
			color: #ffffff;
			display: block;
			margin: 15px auto 0;

			&:hover {
				background-color: $color_orange;
			}

			&:disabled {
				cursor: default;
				opacity: 0.5;

				&:hover {
					background-color: $color_orange;
				}
			}
		}
	}

	.tooltipster-arrow-border {
		border: none;
	}

	&.tooltipster-top {
		.tooltipster-arrow-background {
			border-top-color: white;
		}
	}

	&.tooltipster-right {
		.tooltipster-arrow-background {
			border-right-color: white;
		}
	}

	&.tooltipster-bottom {
		.tooltipster-arrow-background {
			border-bottom-color: white;
		}
	}
}

.block-editor-page {
	.edit-post-layout {
		.components-notice-list > div {
			padding-left: 50px;
		}
	}

	.charitable-admin-campaign-congrats-wizard-dot {
		position: absolute;
		top: 75px;
		left: 20px;
		z-index: 9999;
	}

	.charitable-admin-campaign-congrats-wizard {
		width: 260px !important;
		z-index: 99980 !important;
		margin-top: 5px;

		.tooltipster-box {
			margin-top: 10px;
		}

		.charitable-admin-campaign-congrats-wizard-tooltips-red-arrow {
			position: absolute;
			display: block;
			width: 15px;
			height: 42px;
			top: -65px;
			left: 145px;
			background-size: 15px 42px;
			background-repeat: no-repeat;
		}
	}
	&.is-fullscreen-mode {
		.edit-post-layout {
			.components-notice-list > div {
				padding-left: 125px;
			}
		}

		.charitable-admin-campaign-congrats-wizard-dot {
			left: 75px;
		}

		.charitable-admin-campaign-congrats-wizard {
			.charitable-admin-campaign-congrats-wizard-tooltips-red-arrow {
				left: 105px;
			}
		}
	}
}
