/* 
	Файл используется как зависимость в tilda-feed-1.1.css. 
	Не забывайте синхронизировать изменения в файлах-зависимостях.
*/

@import '@tilda/table-editor/style.css';

.t-redactor__tte-view > :first-child:not(.t-redactor__embedcode--preview) {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.t-redactor__tte-view h2.t-redactor__h2,
.t-redactor__tte-view h3.t-redactor__h3,
.t-redactor__tte-view h4.t-redactor__h4,
.t-redactor__tte-view .t-redactor__text,
.t-redactor__tte-view blockquote.t-redactor__preface,
.t-redactor__tte-view blockquote.t-redactor__quote,
.t-redactor__callout {
	word-break: break-word;
}

.t-redactor__tte-view ul,
.t-redactor__tte-view ol {
	margin: 0;
}

.t-redactor__tte-view h2.t-redactor__h2,
.t-redactor__tte-view h3.t-redactor__h3,
.t-redactor__tte-view h4.t-redactor__h4 {
	line-height: 1.3;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	padding: 0.25rem 0;
}

.t-redactor__tte-view blockquote.t-redactor__preface {
	font-size: 26px;
	line-height: 1.55;
	margin-top: 0;
	margin-bottom: 0.75rem;
	padding: 0.25rem 0;
}

.t-redactor__tte-view .t-redactor__text {
	line-height: 1.4;
	margin-bottom: 0.75rem;
	padding: 0.25rem 0;
}

.t-redactor__tte-view blockquote.t-redactor__quote {
	line-height: 1.5;
	margin: 1rem 0;
	padding-left: 20px;
	border-left: 3px solid rgba(0, 0, 0, 0.84);
}

.t-redactor__tte-view .t-redactor__callout {
	padding: 30px 20px 28px 55px;
	position: relative;
	margin: 2rem 0;
	color: #000000;
	background-color: rgba(0, 0, 0, 0.1);
}

@supports (color: color-mix(in srgb, currentColor 10%, transparent)) {
	.t-redactor__tte-view .t-redactor__callout {
		background-color: color-mix(in srgb, currentColor 10%, transparent);
	}
}

.t-redactor__tte-view .t-redactor__callout-icon {
	position: absolute;
	top: 27px;
	left: 20px;
	color: currentColor;
}

.t-redactor__tte-view .t-redactor__callout_fontSize_big {
	font-size: 22px;
}

.t-redactor__tte-view .t-redactor__callout_fontSize_default {
	font-size: 18px;
}

.t-redactor__tte-view .t-redactor__callout_fontSize_small {
	font-size: 16px;
}

.t-redactor__tte-view .t-redactor__highlightcode {
	background: #f8f8f8;
	border: 1px solid #ccc;
	border-radius: 5px;
	overflow: hidden;
	margin: 2rem 0;
	font-size: 14px;
	line-height: 1.55;
}

.t-redactor__tte-view .t-redactor__highlightcode code {
	white-space: pre;
	padding: 20px !important;
	width: 100%;
	box-sizing: border-box;
	font-size: 14px;
	/* Перезаписываем стили, чтобы блок с кодом всегда отображался одинаково */
	text-align: start;
	font-weight: normal;
	text-shadow: none;
	text-transform: none;
	letter-spacing: 0px;
}

.t-redactor__tte-view .t-redactor__highlightcode:empty {
	padding: 0 !important;
}

.t-redactor__tte-view .t-redactor__highlightcode::-webkit-scrollbar {
	-webkit-appearance: none;
	width: 6px;
	height: 6px;
}

.t-redactor__tte-view .t-redactor__highlightcode::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background-color: rgba(0, 0, 0, 0.5);
}

.t-redactor__tte-view .t-redactor__highlightcode::-webkit-scrollbar-corner {
	border-radius: 10px;
	background-color: transparent;
}

.t-redactor__tte-view .t-redactor__video-container video {
	object-fit: cover;
}

.t-redactor__tte-view .t-redactor__video-container video,
.t-redactor__tte-view .t-redactor__video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
}

.t-redactor__tte-view .t-redactor__video-container {
	/* Aspect Ratio 16 / 9 */
	padding-bottom: 56.25%;
	height: 0;
	position: relative;
}

.t-redactor__tte-view figure hr {
	color: #000000;
	height: 1px;
	background: currentColor;
	opacity: 1;
	width: 100%;
	margin: 40px 0 !important;
	border: none;
}

.t-redactor__tte-view figure {
	margin: 1rem 0;
	width: 100%;
}

.t-redactor__tte-view figure img {
	width: 100%;
	height: auto;
	display: block;
}

.t-redactor__tte-view figure figcaption {
	opacity: 0.5;
	font-size: 16px;
	font-style: italic;
	margin-top: 5px;
}

@media screen and (max-width: 640px) {
	.t-redactor__tte-view .t-redactor__callout_fontSize_big {
		font-size: 20px;
	}
	.t-redactor__tte-view .t-redactor__callout_fontSize_default {
		font-size: 16px;
	}
	.t-redactor__tte-view .t-redactor__callout_fontSize_small {
		font-size: 14px;
	}
}
