/*
 * Editor-only styles for custom ACF blocks.
 * Scoped to .editor-styles-wrapper to avoid breaking Gutenberg UI and Yoast SEO.
 */

/* CSS Variables */
.editor-styles-wrapper {
	--green: #8dc550;
	--orange: #f7941c;
	--red: #f7361c;
	--gray: #f2f2f2;
	--blue: #2f80ed;
	--darkBlue: #2161b4;
}

/* Block: table-info, table-info-traders */
.editor-styles-wrapper .postTraderInfo {
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	overflow: hidden;
}
.editor-styles-wrapper .postTraderInfo--h1 {
	font-size: 26px;
}
.editor-styles-wrapper .postTraderInfo__body {
	background-color: var(--gray);
	padding: 20px;
	display: flex;
	gap: 20px;
	border-bottom: 1px solid #e3e3e3;
}
.editor-styles-wrapper .postTraderInfo__img {
	width: 224px;
	height: 185px;
	display: block;
	border-radius: 6px;
}
.editor-styles-wrapper .postTraderInfo__wrap {
	display: flex;
}
.editor-styles-wrapper .postTraderInfo__data {
	min-width: 250px;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--gray);
}
.editor-styles-wrapper .postTraderInfo__footer {
	display: flex;
	justify-content: space-between;
	padding: 20px;
}
.editor-styles-wrapper .postTraderInfo__telegram {
	color: var(--blue);
}
.editor-styles-wrapper .postTraderInfo__footerLink {
	padding-left: 20px;
	padding-right: 20px;
}
.editor-styles-wrapper .postTraderInfo__mobile {
	display: none;
}
.editor-styles-wrapper .postTraderInfo--tt {
	margin: 10px 0 20px;
}

/* Entity info (inside table-info blocks) */
.editor-styles-wrapper .entityInfo {
	font-size: 12px;
	font-weight: 500;
}
.editor-styles-wrapper .entityInfo__item {
	display: flex;
	align-items: center;
}
.editor-styles-wrapper .entityInfo__item:not(:last-child) {
	margin-bottom: 15px;
}
.editor-styles-wrapper .entityInfo__icon {
	width: 20px;
	height: 20px;
	margin-right: 8px;
}
.editor-styles-wrapper .entityInfo__icon.green,
.editor-styles-wrapper .entityInfo__icon.ok {
	color: var(--green);
}
.editor-styles-wrapper .entityInfo__icon.red,
.editor-styles-wrapper .entityInfo__icon.not {
	color: var(--red);
}
.editor-styles-wrapper .entityInfo__icon.orange,
.editor-styles-wrapper .entityInfo__icon.norm {
	color: var(--orange);
}

/* Block: info (message block) */
.editor-styles-wrapper .content-info {
	border-radius: 0px 0px 10px 0px;
	border-left: 5px solid var(--green);
	background: rgba(141, 197, 80, 0.2);
	padding: 15px;
	line-height: 1.4;
	font-weight: 400;
	margin-bottom: 12px;
}
.editor-styles-wrapper .content-info.orange {
	border-color: var(--orange);
	background: rgba(247, 148, 28, 0.2);
}
.editor-styles-wrapper .content-info.red {
	border-color: var(--red);
	background: rgba(247, 54, 28, 0.2);
}
.editor-styles-wrapper .content-info p {
	padding: 0;
	margin: 0;
}

/* Buttons used in blocks */
.editor-styles-wrapper .btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
}
.editor-styles-wrapper .btn--default {
	background-color: var(--gray);
	color: #000;
}
.editor-styles-wrapper .btn--orange {
	background-color: var(--orange);
	color: #fff;
}
