@import url( "https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap" );
@import "../../global/tailwind.scss";

@layer utilities {
	hr {
		@apply border-t border-b-0 border-x-0 border-solid border-border-subtle;
	}

	h3 {
		@apply p-0 m-0;
	}

	input[type="checkbox"] {
		@apply before:border-0;
	}

	::file-selector-button {
		@apply font-sans text-text-primary;
	}
}

// Fix rem value for Bricks editor.
html:has( #surerank-root ):has( #bricks-panel ) {
	font-size: 100%;
	font-size: 16px;
	body {
		min-height: 100dvh;
	}
	input[type="checkbox"] {
		@apply p-0;
	}
}

html:has( #surerank-root ) {
	font-size: 16px;
}

#surerank-root {
	* {
		box-sizing: border-box;
		font-family: Figtree, sans-serif;
	}
	input[type="checkbox"]:checked,
	input[type="checkbox"]::before {
		background-image: none;
		border: none;
	}
}

// Flex style fix for Breakdance editor, to prevent the popup from inheriting unwanted styles.
html.is-breakdance #surerank-root {
	.flex.flex-col .flex.flex-col:not( .flex-1, .flex-auto, .flex-none, .flex-initial ),
	.flex .flex.flex-row:not( .flex-1, .flex-auto, .flex-none, .flex-initial, .flex-col ),
	.flex .flex:not( .flex-1, .flex-auto, .flex-none, .flex-initial, .flex-row ) {
		flex: initial;
	}
	.flex .flex.flex-col:not( .flex-1, .flex-auto, .flex-none, .flex-initial ),
	.flex.flex-row .flex.flex-col:not( .flex-1, .flex-auto, .flex-none, .flex-initial ) {
		flex: 1 1 0%;
	}
}

#seo-popup {
	vertical-align: middle;
}

.surerank-classic-sidebar-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-right: 6px;
	position: relative;
}

.surerank-classic-sidebar-box-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
}

.surerank-classic-sidebar-trigger-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.surerank-classic-sidebar-trigger-wrap .button {
	margin: 0;
}
