/* Watermark — Assets panel section */

.fi-watermark {
	margin: 0 0 14px;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
}

.fi-watermark.is-pro-locked .fi-watermark__preview-stage {
	opacity: 0.85;
}

.fi-watermark__head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.fi-watermark__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: rgba(244, 244, 245, 0.72);
}

.fi-watermark__icon svg {
	width: 16px;
	height: 16px;
}

.fi-watermark__title {
	flex: 1;
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(244, 244, 245, 0.88);
}

.fi-watermark__pro-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 8px;
	border: 1px solid rgba(47, 111, 237, 0.45);
	border-radius: 999px;
	background: rgba(47, 111, 237, 0.1);
	color: #8eb4ff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.fi-watermark__pro-badge svg {
	width: 11px;
	height: 11px;
}

.fi-watermark__upload {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.fi-watermark__upload-btn {
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(244, 244, 245, 0.88);
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.fi-watermark__upload-btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.16);
}

.fi-watermark__upload-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.fi-watermark__filename {
	font-size: 11px;
	color: rgba(244, 244, 245, 0.55);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.fi-watermark__color {
	display: grid;
	grid-template-columns: auto 36px 1fr;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.fi-watermark__color-label {
	font-size: 11px;
	font-weight: 600;
	color: rgba(244, 244, 245, 0.62);
}

.fi-watermark__color-input {
	width: 36px;
	height: 28px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

.fi-watermark__color-hex {
	padding: 6px 8px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.2);
	color: rgba(244, 244, 245, 0.88);
	font: inherit;
	font-size: 11px;
}

.fi-watermark__preview {
	position: relative;
	overflow: visible;
}

.fi-watermark__delete {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.55);
	color: rgba(244, 244, 245, 0.88);
	cursor: pointer;
	flex-shrink: 0;
}

.fi-watermark__delete:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.2);
}

.fi-watermark__delete.is-pro-locked {
	border-color: rgba(47, 111, 237, 0.35);
}

.fi-watermark__delete svg {
	width: 15px;
	height: 15px;
	display: block;
}

.fi-watermark__preview-stage {
	position: relative;
	min-height: 92px;
	padding: 18px 14px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	background:
		linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.04) 75%, rgba(255, 255, 255, 0.04)),
		linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.04) 75%, rgba(255, 255, 255, 0.04));
	background-size: 14px 14px;
	background-position: 0 0, 7px 7px;
	background-color: rgba(0, 0, 0, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	overflow: visible;
	box-sizing: border-box;
}

.fi-watermark__preview-stage.is-active {
	border-color: rgba(47, 111, 237, 0.28);
	cursor: default;
}

.fi-watermark__preview-img {
	max-width: 100%;
	max-height: 56px;
	object-fit: contain;
}

.fi-watermark__preview-img[hidden] {
	display: none;
}

.fi-watermark__preview-stage:not(.is-active) .fi-watermark__preview-img {
	display: none;
}
