@use "~admin-stylesheets/colors";

.nelio-content-social-message-vk-preview {
	background: #fff;
	border: 1px solid;
	border-color: #e5e6e9 #dfe0e4 #d0d1d5;
	border-radius: 8px;
	color: #212121;
	cursor: default;
	font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", "Fira Sans", Ubuntu, Oxygen, "Oxygen Sans",
		Cantarell, "Droid Sans", "Apple Color Emoji", "Segoe UI Emoji",
		"Segoe UI Symbol", "Lucida Grande", Helvetica, Arial, sans-serif;
	margin: 1em 1.5em;
	padding: 0;
	user-select: none;

	&__profile-and-date {
		padding: 15px;
		padding-bottom: 0;
	}

	.nelio-content-social-profile-icon {
		float: left;
		font-size: 36px;
		height: 36px;
		margin-right: 10px;
		width: 36px;
	}

	&__name-and-date {
		margin-top: 3px;
	}

	&__display-name {
		color: #222;
		font-weight: 700;
		line-height: 1.25;
	}

	&__date {
		color: #666;
	}

	&__container-item {
		position: relative;
	}

	&__actual-image {
		height: 100%;
		object-fit: cover;
		width: 100%;
	}

	&__image {
		border-radius: 2px;
		height: 220px;
		margin: 1em 0 0;
		object-fit: cover;
		width: 100%;
	}

	&__image-counter {
		position: absolute;
		top: 16px;
		right: 12px;
		z-index: 1;
		background-color: #0006;
		color: #fff;
		border-radius: 48px;
		padding: 2px 5px;
		font-size: 11px;
	}

	&__previous-image-action {
		position: absolute;
		top: 50%;
		left: 0;
		cursor: pointer;
		padding: 16px 8px;
		border: none;
		outline: none;
		transform: translateY(-50%);
		display: none;

		background: #fff;
		border-radius: 50%;
		opacity: 0.6;
		margin: 0 1em;
		min-width: 28px !important;
		width: 28px;
		height: 28px;

		&:hover {
			opacity: 1;
		}

		&.components-button:focus:not(:disabled) {
			box-shadow: none;
		}
	}

	&__next-image-action {
		position: absolute;
		top: 50%;
		right: 0;
		cursor: pointer;
		padding: 16px 8px;
		border: none;
		outline: none;
		transform: translateY(-50%);
		display: none;

		background: #fff;
		border-radius: 50%;
		opacity: 0.6;
		margin: 0 1em;
		min-width: 28px !important;
		width: 28px;
		height: 28px;

		&:hover {
			opacity: 1;
		}

		&.components-button:focus:not(:disabled) {
			box-shadow: none;
		}
	}

	&__container {
		height: 220px;
		margin-top: 1em;
		position: relative;

		&:hover {

			.nelio-content-social-message-vk-preview__previous-image-action,
			.nelio-content-social-message-vk-preview__next-image-action {
				display: flex;
			}
		}
	}
}

/* MESSAGE */

.nelio-content-social-message-vk-preview .nelio-content-computed-text-preview {
	color: #222;
	cursor: auto;
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	margin: 0;
	padding: 1.5em 15px 1em;
	user-select: auto;
	word-break: break-word;
	overflow-wrap: break-word;

	&--empty {
		opacity: 0.6;
	}

	&__mention {
		color: #222;
	}

	&__link,
	&__hash {
		color: #2a5885;
		font-weight: 400;
	}
}

/* SHARED POST */

.nelio-content-vk-shared-link {
	margin: 0;

	&__image {
		height: 220px;
		margin: 10px 0 0;
		object-fit: cover;
		overflow: hidden;
		position: relative;
		width: 100%;
	}

	&__content {
		background: #eef3f8;
		margin-top: -5px;
		padding: 10px;
	}

	&__title {
		color: #111;
		font-size: 14px;
		font-weight: 400;
		line-height: 1.2;
	}

	&__signature {
		color: #818c99;
		font-weight: 400;
	}
}
