/**
 * Frontend Image Replace — Frontend Styles.
 */

/* Toolbar notification */
.bm1fir-toolbar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #1d2327;
	color: #f0f0f1;
	padding: 10px 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 999999;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.bm1fir-toolbar__text {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bm1fir-toolbar__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.bm1fir-toolbar__count {
	opacity: 0.7;
}

.bm1fir-toolbar__limit {
	margin-left: 16px;
	padding-left: 16px;
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	opacity: 0.85;
	font-size: 12px;
}

.bm1fir-toolbar__close {
	background: none;
	border: none;
	color: #f0f0f1;
	font-size: 20px;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
	opacity: 0.7;
	transition: opacity 0.15s;
}

.bm1fir-toolbar__close:hover {
	opacity: 1;
}

/* Overlay */
.bm1fir-overlay {
	position: fixed;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
	z-index: 999998;
	border: 2px dashed rgba(255, 255, 255, 0.5);
	box-sizing: border-box;
	transition: background-color 0.2s ease;
}

.bm1fir-overlay--visible {
	display: flex;
}

.bm1fir-overlay__content {
	text-align: center;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	pointer-events: none;
	max-width: 90%;
}

.bm1fir-overlay__icon {
	width: 36px;
	height: 36px;
	margin: 0 auto 8px;
	color: #fff;
}

.bm1fir-overlay__icon svg {
	width: 100%;
	height: 100%;
}

.bm1fir-overlay__label {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.bm1fir-overlay__status {
	font-size: 12px;
	margin-top: 6px;
	opacity: 0.9;
	max-width: 220px;
	margin-left: auto;
	margin-right: auto;
	word-break: break-word;
	pointer-events: auto;
}

/* Uploading state */
.bm1fir-overlay--uploading {
	cursor: default;
	border-style: solid;
	border-color: rgba(255, 255, 255, 0.3);
}

/* Progress bar */
.bm1fir-progress {
	width: 80%;
	max-width: 180px;
	height: 4px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 2px;
	margin: 10px auto 0;
	overflow: hidden;
}

.bm1fir-progress__bar {
	height: 100%;
	background: #fff;
	border-radius: 2px;
	transition: width 0.15s ease;
	width: 0%;
}

/* Success state */
.bm1fir-overlay--success {
	background: rgba(0, 128, 0, 0.6);
	border-color: rgba(255, 255, 255, 0.5);
	border-style: solid;
}

/* Error state */
.bm1fir-overlay--error {
	background: rgba(200, 0, 0, 0.6);
	border-color: rgba(255, 255, 255, 0.5);
	border-style: solid;
}
