/**
 * RapidUtils Syntax Highlighter frontend styles.
 */

.rapid-utils-code-wrapper {
	position: relative;
	margin: 1.5em 0;
}

.rapid-utils-code-wrapper pre.rapid-utils-code-block {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 18px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	box-shadow: none;
	overflow-x: auto;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 14px;
	line-height: 1.6;
	white-space: pre;
	tab-size: 4;
}

.rapid-utils-code-wrapper.rapid-utils-has-copy-button pre.rapid-utils-code-block {
	padding-right: 58px;
}

.rapid-utils-code-wrapper pre.rapid-utils-code-block code {
	display: block;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	font: inherit;
	line-height: inherit;
	white-space: pre;
	color: inherit;
}

.rapid-utils-code-theme-light {
	background: #ffffff;
	color: #1d2327;
}

.rapid-utils-code-theme-dark {
	background: #111827;
	color: #e5e7eb;
	border-color: #374151 !important;
}

.rapid-utils-code-copy {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #f6f7f7;
	color: #1d2327;
	box-shadow: none;
	cursor: pointer;
}

.rapid-utils-code-theme-wrapper-dark .rapid-utils-code-copy {
	border-color: #4b5563;
	background: #1f2937;
	color: #f9fafb;
}

.rapid-utils-code-copy:hover,
.rapid-utils-code-copy:focus {
	background: #fff;
	border-color: #2271b1;
	color: #2271b1;
	outline: none;
}

.rapid-utils-code-theme-wrapper-dark .rapid-utils-code-copy:hover,
.rapid-utils-code-theme-wrapper-dark .rapid-utils-code-copy:focus {
	background: #374151;
	color: #ffffff;
}

.rapid-utils-code-copy svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.rapid-utils-screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rapid-utils-code-theme-light .ru-token-comment,
.rapid-utils-code-theme-light .ru-token-prolog,
.rapid-utils-code-theme-light .ru-token-doctype,
.rapid-utils-code-theme-light .ru-token-cdata {
	color: #6a737d;
}

.rapid-utils-code-theme-light .ru-token-string,
.rapid-utils-code-theme-light .ru-token-attr-value {
	color: #0a7a30;
}

.rapid-utils-code-theme-light .ru-token-keyword,
.rapid-utils-code-theme-light .ru-token-tag {
	color: #9b1c8c;
}

.rapid-utils-code-theme-light .ru-token-number,
.rapid-utils-code-theme-light .ru-token-boolean {
	color: #0550ae;
}

.rapid-utils-code-theme-light .ru-token-function,
.rapid-utils-code-theme-light .ru-token-attr-name,
.rapid-utils-code-theme-light .ru-token-selector {
	color: #953800;
}

.rapid-utils-code-theme-dark .ru-token-comment,
.rapid-utils-code-theme-dark .ru-token-prolog,
.rapid-utils-code-theme-dark .ru-token-doctype,
.rapid-utils-code-theme-dark .ru-token-cdata {
	color: #9ca3af;
}

.rapid-utils-code-theme-dark .ru-token-string,
.rapid-utils-code-theme-dark .ru-token-attr-value {
	color: #86efac;
}

.rapid-utils-code-theme-dark .ru-token-keyword,
.rapid-utils-code-theme-dark .ru-token-tag {
	color: #c084fc;
}

.rapid-utils-code-theme-dark .ru-token-number,
.rapid-utils-code-theme-dark .ru-token-boolean {
	color: #93c5fd;
}

.rapid-utils-code-theme-dark .ru-token-function,
.rapid-utils-code-theme-dark .ru-token-attr-name,
.rapid-utils-code-theme-dark .ru-token-selector {
	color: #fdba74;
}
