/* Overlay */
.preview-link-overlay {
	position: fixed;
	z-index: 10;
	left: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Popup */
.preview-link-popup {
	background: #ffffff;
	border-radius: 10px;
	width: var(--width-content-carousel);
	max-height: 80dvh;
	overflow-y: auto;
	display: flex;
	flex-flow: column;
}

/* 1. Link URL */
.preview-link-url {
	padding: 12px 12px 6px 12px;
	font-family: 'Roboto', sans-serif;
	font-size: 12px;
	color: #30ccfc;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* 2. Image wrapper */
.preview-link-image-wrapper {
	display: flex;
	justify-content: center;
	padding: 6px 12px;
}

.preview-link-image {
	min-width: 188px;
	max-width: calc(80% - 12px);
	height: 170px;
	object-fit: cover;
	border-radius: 6px;
	cursor: pointer;
	background: #f0f0f0;
}

/* 3. Title */
.preview-link-title {
	padding: 8px 12px 0 12px;
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #333333;
	text-align: right;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
}

/* 4. Description */
.preview-link-description {
	padding: 6px 12px 0 12px;
	font-family: 'Roboto', sans-serif;
	font-size: 13px;
	color: #666666;
	text-align: right;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	word-break: break-word;
}

/* 5. Site name */
.preview-link-site-name {
	padding: 6px 12px 8px 12px;
	font-family: 'Roboto', sans-serif;
	font-size: 12px;
	color: #30ccfc;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Share button */
.preview-link-share-wrapper {
	display: flex;
	justify-content: center;
	padding: 8px 12px;
	padding-bottom: 16px;
}

.preview-link-share-button {
	background: white;
	color: #979797;
	border: 1px solid #dfe1e5;
	border-radius: 20px;
	width: 60%;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

/* 6. Close button — same as carousel */
.preview-link-close {
	text-align: center;
	color: #30ccfc;
	margin: 0 auto;
	padding-bottom: 0;
	font-size: 14px;
	cursor: pointer;
	height: 35px;
	line-height: 35px;
}
