$z-index-max: 2147483647;

/* Include Cleanslate */
@use "cleanslate";

body.admin-bar .cleanslate .components-modal__frame {

	@media (max-width: 599px) {
		top: 46px !important;
	}
}

.cleanslate {

	/* Modal */

	.components-modal__screen-overlay,
	.ccpa__loading-overlay {
		position: fixed !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		background-color: rgba(0, 0, 0, 0.7) !important;
		z-index: $z-index-max !important;
		animation: edit-post__fade-in-animation 0.2s ease-out 0s !important;
		animation-fill-mode: forwards !important;
	}

	.components-modal__frame {
		position: absolute !important;
		top: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		box-sizing: border-box !important;
		margin: 0 !important;
		border: 1px solid #e2e4e7 !important;
		background: #fff !important;
		box-shadow: 0 3px 30px rgba(25, 30, 35, 0.2) !important;
		overflow: auto !important;
	}

	.ccpa__loading-message {
		position: absolute !important;
		top: 50% !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		box-sizing: border-box !important;
		margin: 0 !important;
		text-align: center !important;
		color: #fff !important;
	}

	@media (min-width: 600px) {

		.components-modal__frame {
			top: 50% !important;
			right: auto !important;
			bottom: auto !important;
			left: 50% !important;
			min-width: 360px !important;
			max-width: 580px !important;
			max-height: calc(100% - 56px - 56px) !important;
			transform: translate(-50%, -50%) !important;
			animation: components-modal__appear-animation 0.1s ease-out !important;
			animation-fill-mode: forwards !important;
		}
	}

	@keyframes components-modal__appear-animation {

		from {
			margin-top: 32px;
		}

		to {
			margin-top: 0;
		}
	}

	.components-modal__header {
		box-sizing: border-box !important;
		border-bottom: 1px solid #e2e4e7 !important;
		padding: 0 16px !important;
		display: flex !important;
		flex-direction: row !important;
		justify-content: space-between !important;
		background: #fff !important;
		align-items: center !important;
		height: 56px !important;
		position: -webkit-sticky !important;
		position: sticky !important;
		top: 0 !important;
		z-index: 10 !important;
		margin: 0 -16px 16px !important;
	}

	.components-modal__header .components-modal__header-heading {
		font-size: 16px !important;
		font-weight: 600 !important;
	}

	.components-modal__header h1 {
		line-height: 1 !important;
		margin: 0 !important;
	}

	.components-modal__header-heading-container {
		align-items: center !important;
		flex-grow: 1 !important;
		display: flex !important;
		flex-direction: row !important;
		justify-content: left !important;
	}

	.components-modal__content {
		box-sizing: border-box !important;
		height: 100% !important;
		padding: 0 16px !important;
	}

	.components-modal__footer {
		box-sizing: border-box !important;
		border-top: 1px solid #e2e4e7 !important;
		padding: 0 16px !important;
		background: #fff !important;
		height: 110px !important;
		position: -webkit-sticky !important;
		position: sticky !important;
		bottom: 0 !important;
		z-index: 10 !important;
		margin: 0 -16px !important;
	}

	.components-modal__footer-bottom {
		display: flex !important;
		flex-direction: row-reverse !important;
		justify-content: space-between !important;
		align-items: center !important;
	}

	.components-icon-button {
		display: flex !important;
		align-items: center !important;
		padding: 8px !important;
		margin: 0 !important;
		border: none !important;
		background: none !important;
		color: #50575e !important;
		position: relative !important;
		overflow: hidden !important;
		border-radius: 4px !important;

		/* Override Cleanslate */
		box-shadow: none !important;
		outline: none !important;
	}

	.components-icon-button:active {
		background: none !important;
	}

	.components-icon-button .dashicon {
		display: inline-block !important;
		flex: 0 0 auto !important;
	}

	.components-icon-button svg {
		fill: currentColor !important;
		outline: none !important;
		cursor: pointer !important;
	}

	.components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default) {

		&:hover,
		&:focus {
			background-color: #fff !important;
			color: #1d2327 !important;
			box-shadow: inset 0 0 0 1px #e2e4e7, inset 0 0 0 2px #fff, 0 1px 1px rgba(25, 30, 35, 0.2) !important;
		}
	}

	.components-icon-button:not(:disabled):not([aria-disabled="true"]):not(.is-default):active {
		outline: none !important;
		background-color: #fff !important;
		color: #1d2327 !important;
		box-shadow: inset 0 0 0 1px #c3c4c7, inset 0 0 0 2px #fff !important;
	}

	.components-icon-button[aria-disabled="true"]:focus,
	.components-icon-button:disabled:focus {
		box-shadow: none !important;
	}

	/* Form Toggle */
	.components-form-toggle {
		position: relative !important;
		display: inline-block !important;
	}

	.components-form-toggle.disabled {
		opacity: 0.5 !important;
	}

	.components-form-toggle .components-form-toggle__on,
	.components-form-toggle .components-form-toggle__off {
		position: absolute !important;
		top: 6px !important;
		box-sizing: border-box !important;
		width: 2px !important;
		height: 6px !important;
		overflow: hidden !important;
	}

	.components-form-toggle.is-checked .components-form-toggle__on {
		display: block !important;
	}

	.components-form-toggle.is-checked .components-form-toggle__off {
		display: none !important;
	}

	.components-form-toggle .components-form-toggle__off {
		color: #787c82 !important;
		fill: currentColor !important;
		right: 6px !important;
		width: 6px !important;
	}

	.components-form-toggle .components-form-toggle__on {
		left: 8px !important;
		display: none !important;
		outline: 1px solid transparent !important;
		outline-offset: -1px !important;
		border: 1px solid #000 !important;
		filter: invert(100%) contrast(500%) !important;
	}

	.components-form-toggle .components-form-toggle__track {
		content: "" !important;
		display: inline-block !important;
		box-sizing: border-box !important;
		vertical-align: top !important;
		background-color: #fff !important;
		border: 2px solid #787c82 !important;
		width: 36px !important;
		height: 18px !important;
		border-radius: 9px !important;
		transition: 0.2s background ease !important;
	}

	@media (prefers-reduced-motion: reduce) {

		.components-form-toggle .components-form-toggle__track {
			transition-duration: 0s !important;
		}
	}

	.components-form-toggle .components-form-toggle__thumb {
		display: block !important;
		position: absolute !important;
		box-sizing: border-box !important;
		top: 4px !important;
		left: 4px !important;
		width: 10px !important;
		height: 10px !important;
		border-radius: 50% !important;
		transition: 0.1s transform ease !important;
		background-color: #787c82 !important;
		border: 5px solid #787c82 !important;
	}

	@media (prefers-reduced-motion: reduce) {

		.components-form-toggle .components-form-toggle__thumb {
			transition-duration: 0s !important;
		}
	}

	.components-form-toggle:hover .components-form-toggle__track {
		border: 2px solid #50575e !important;
	}

	.components-form-toggle:hover .components-form-toggle__thumb {
		background-color: #50575e !important;
		border: 5px solid #787c82 !important;
	}

	.components-form-toggle:hover .components-form-toggle__off {
		color: #50575e !important;
	}

	.components-form-toggle.is-checked .components-form-toggle__track {
		background-color: #11a0d2 !important;
		border: 2px solid #11a0d2 !important;
		border: 9px solid transparent !important;
	}

	.components-form-toggle__input:focus + .components-form-toggle__track {
		box-shadow: 0 0 0 2px #fff, 0 0 0 3px #787c82 !important;
		outline: 2px solid transparent !important;
		outline-offset: 2px !important;
	}

	.components-form-toggle.is-checked .components-form-toggle__thumb {
		background-color: #fff !important;
		border-width: 0 !important;
		transform: translateX(18px) !important;
	}

	.components-form-toggle.is-checked::before {
		background-color: #11a0d2 !important;
		border: 2px solid #11a0d2 !important;
	}

	.components-disabled .components-form-toggle {
		opacity: 0.3 !important;
	}

	.components-form-toggle input.components-form-toggle__input[type="checkbox"] {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		opacity: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		z-index: 1 !important;
		border: none !important;
	}

	.components-form-toggle.disabled input.components-form-toggle__input[type="checkbox"] {
		cursor: default !important;
	}

	.components-form-toggle input.components-form-toggle__input[type="checkbox"]:checked {
		background: none !important;
	}

	.components-form-toggle input.components-form-toggle__input[type="checkbox"]::before {
		content: "" !important;
	}

	.components-button {
		display: inline-flex !important;
		text-decoration: none !important;
		font-size: 13px !important;
		margin: 0 !important;
		border: 0 !important;
		cursor: pointer !important;
		-webkit-appearance: none !important;
		background: none !important;

		/* Buttons that look like links for a cross of good semantics and visuals. */

		/* Link buttons that are red to indicate destructive behavior. */
	}

	.components-button.is-button {
		padding: 0 10px 1px !important;
		line-height: 26px !important;
		height: 28px !important;
		border-radius: 3px !important;
		white-space: nowrap !important;
		border-width: 1px !important;
		border-style: solid !important;
	}

	.components-button.is-primary {
		background: rgb(0, 133, 186) !important;
		border-color: rgb(0, 106, 149) rgb(0, 100, 140) rgb(0, 100, 140) !important;
		box-shadow: inset 0 -1px 0 rgb(0, 100, 140) !important;
		color: #fff !important;
		text-decoration: none !important;
		text-shadow: 0 -1px 1px rgb(0, 93, 130), 1px 0 1px rgb(0, 93, 130), 0 1px 1px rgb(0, 93, 130), -1px 0 1px rgb(0, 93, 130) !important;
	}

	.components-button.is-primary:hover,
	.components-button.is-primary:focus:enabled {
		background: rgb(0, 126, 177) !important;
		border-color: rgb(0, 67, 93) !important;
		color: #fff !important;
	}

	.components-button.is-primary:hover {
		box-shadow: inset 0 -1px 0 rgb(0, 67, 93) !important;
	}

	.components-button.is-primary:active:enabled {
		background: rgb(0, 106, 149) !important;
		border-color: rgb(0, 67, 93) !important;
		box-shadow: inset 0 1px 0 rgb(0, 67, 93) !important;
		vertical-align: top !important;
	}

	.components-button.is-primary:disabled,
	.components-button.is-primary:disabled:active:enabled,
	.components-button.is-primary[aria-disabled="true"],
	.components-button.is-primary[aria-disabled="true"]:active:enabled {
		color: rgb(102, 182, 214) !important;
		background: rgb(0, 133, 186) !important;
		border-color: rgb(0, 124, 173) !important;
		box-shadow: none !important;
		text-shadow: none !important;
		opacity: 1 !important;
	}

	.components-button.is-primary:disabled.is-button,
	.components-button.is-primary:disabled.is-button:hover,
	.components-button.is-primary:disabled:active:enabled,
	.components-button.is-primary:disabled:active:enabled.is-button,
	.components-button.is-primary:disabled:active:enabled.is-button:hover,
	.components-button.is-primary:disabled:active:enabled:active:enabled,
	.components-button.is-primary[aria-disabled="true"].is-button,
	.components-button.is-primary[aria-disabled="true"].is-button:hover,
	.components-button.is-primary[aria-disabled="true"]:active:enabled,
	.components-button.is-primary[aria-disabled="true"]:active:enabled.is-button,
	.components-button.is-primary[aria-disabled="true"]:active:enabled.is-button:hover,
	.components-button.is-primary[aria-disabled="true"]:active:enabled:active:enabled {
		box-shadow: none !important;
		text-shadow: none !important;
	}

	.components-button.is-primary:disabled:focus:enabled,
	.components-button.is-primary:disabled:active:enabled:focus:enabled,
	.components-button.is-primary[aria-disabled="true"]:focus:enabled,
	.components-button.is-primary[aria-disabled="true"]:active:enabled:focus:enabled {
		color: rgb(102, 182, 214) !important;
		border-color: rgb(0, 124, 173) !important;
		box-shadow: 0 0 0 1px #fff, 0 0 0 3px #007cba !important;
	}

	.ccpa-settings {
		font-size: 13px !important;
		line-height: 20px !important;
		color: #1a1a1a !important;
		border-bottom: 1px solid #e2e4e7 !important;
	}

	.ccpa-setting {
		margin: 0 -16px 10px -16px !important;
		padding: 16px !important;
		border-bottom: 1px solid #e2e4e7 !important;
	}

	.ccpa-setting__header {
		font-weight: 700 !important;
	}

	.ccpa-setting__text {
		padding-right: 50px !important;
	}

	.ccpa-setting__toggle {
		float: right !important;
	}

	.ccpa-setting__toggle-text {
		float: right !important;
		margin-right: 8px !important;
		margin-top: -2px !important;
		display: none !important;
	}

	.ccpa-setting__toggle-text-off {
		display: inline-block !important;
	}

	.is-checked > .ccpa-setting__toggle-text-off {
		display: none !important;
	}

	.is-checked > .ccpa-setting__toggle-text-on {
		display: inline-block !important;
	}

	.ccpa-privacy,
	.ccpa-privacy:visited {
		color: rgb(0, 133, 186) !important;
		text-decoration: none !important;
	}

}

