@use "~admin-stylesheets/colors";

.nelio-content-social-message-pinterest-preview {
	background: #fff;
	border: 1px solid;
	border-color: #dfe0e4;
	border-radius: 8px;
	cursor: default;
	display: flex;
	font-family: Helvetica, Arial, sans-serif;
	height: 250px;
	margin: 1em 3em;
	padding: 0;
	user-select: none;

	&__content {
		font-size: 14px;
		flex-shrink: 0;
		overflow-y: auto;
		padding: 1rem;
		position: relative;
		width: 50%;
	}

	.nelio-content-social-profile-icon {
		margin-right: 10px;
		font-size: 20px;
	}

	&__profile {
		align-items: center;
		display: flex;
		line-height: 15px;
		margin: 10px 0;
		padding: 3px 0;
	}

	&__image {
		overflow: hidden;
		flex-grow: 1;
		position: relative;
	}

	&__actual-image {
		border-top-left-radius: 8px;
		border-bottom-left-radius: 8px;
		height: 100%;
		object-fit: cover;
		width: 100%;
	}

	&__image-placeholder {
		align-items: center;
		background: colors.$layout-colors__background--is-emphasized;
		border-top-left-radius: 8px;
		border-bottom-left-radius: 8px;
		display: flex;
		flex-direction: column;
		height: 100%;
		justify-content: center;
		text-align: center;
	}

	&__image-icon {
		font-size: 80px;
		height: 80px;
		opacity: 0.4;
		width: 80px;
	}

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

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

		&.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%);

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

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

/* MESSAGE */

.nelio-content-social-message-pinterest-preview
	.nelio-content-computed-text-preview {
	color: #222;
	cursor: auto;
	line-height: 15px;
	user-select: auto;
	overflow-wrap: break-word;

	&--empty {
		opacity: 0.6;
	}
}

/* SHARED POST */

.nelio-content-pinterest-shared-link {

	&__action {
		background: #e9e9e9;
		border-radius: 100px;
		font-weight: 700;
		margin-bottom: 1rem;
		text-align: center;
		padding: 8px;
	}

	&__title {
		font-family:
			-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
			Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
			Helvetica, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro",
			"メイリオ", Meiryo, "ＭＳ Ｐゴシック", Arial, sans-serif,
			"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
		font-size: 24px;
		font-weight: 700;
		line-height: 1.4;
		padding: 0;
	}
}
