.fcolor-image-wrap,
.woocommerce-product-gallery__image.fcolor-ready {
	position: relative;
}

.fcolor-image-wrap {
	display: block;
}

.fcolor-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 12;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	max-width: calc(100% - 20px);
	padding: 5px 10px;
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 999px;
	background: rgba(224, 224, 207, .88);
	color: #555;
	font: inherit;
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.fcolor-badge-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fcolor-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.3em;
	height: 1.3em;
	border: 2px solid currentColor;
	border-radius: 50%;
	font-family: Georgia, serif;
	font-size: .85em;
	font-weight: 700;
	font-style: normal;
}

.fcolor-panel {
	position: absolute;
	top: 10px;
	left: 10px;
	right: auto;
	z-index: 13;
	display: none;
	width: min(76%, 390px);
	max-height: calc(100% - 20px);
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 18px;
	background: rgba(224, 224, 207, .94);
	color: #505050;
	overflow: auto;
	box-sizing: border-box;
	backdrop-filter: blur(7px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, .18);
}

.fcolor-panel.is-open {
	display: block;
}

.fcolor-title {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-right: 28px;
	font-size: 15px;
	line-height: 1.3;
}

.fcolor-body {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.35;
}

.fcolor-body p {
	margin: 0 0 .7em;
}

.fcolor-body p:last-child {
	margin-bottom: 0;
}

.fcolor-body a {
	color: inherit;
	text-decoration: underline;
}

.fcolor-close {
	position: absolute;
	top: 10px;
	right: 14px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 520px) {
	.fcolor-badge {
		top: 9px;
		left: 9px;
		max-width: calc(100% - 18px);
		padding: 6px 10px;
		font-size: 12px;
	}

	.fcolor-panel {
		top: 8px;
		left: 8px;
		right: auto;
		width: calc(100% - 16px);
		max-height: calc(100% - 16px);
		padding: 28px 13px 13px;
		border-radius: 14px;
	}

	.fcolor-title {
		font-size: 15px;
	}

	.fcolor-body {
		font-size: 13px;
	}
}
