.qrcapture {
	position: relative;
	z-index: 1050;
}

.qrcapture--bottom_right .qrcapture__button {
	right: 18px;
	bottom: 18px;
}

.qrcapture--bottom_left .qrcapture__button {
	left: 18px;
	bottom: 18px;
}

.qrcapture--top_right .qrcapture__button {
	top: 18px;
	right: 18px;
}

.qrcapture--top_left .qrcapture__button {
	top: 18px;
	left: 18px;
}

.qrcapture__button {
	position: fixed;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 3px;
	color: #fff;

	background: var(--qrcapture-button-bg, #1f4e79);
	background: linear-gradient(135deg, var(--qrcapture-button-bg-glow, #4f86b6), var(--qrcapture-button-bg, #1f4e79));

	font-weight: 600;
	line-height: 1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	cursor: pointer;
}

.qrcapture .qrcapture__button:hover,
.qrcapture .qrcapture__button:focus {
	background: var(--qrcapture-button-bg, #1f4e79);
	background: linear-gradient(135deg, var(--qrcapture-button-bg-glow, #4f86b6), var(--qrcapture-button-bg, #1f4e79));

	color: #fff;
	filter: brightness(1.2);
}

.qrcapture__icon {
	width: 25px;
	height: 25px;
	background-image: url('../img/qr-scan.svg');
	background-size: contain; /* O 'cover' para rellenar */
	background-repeat: no-repeat;
	box-shadow:
		inset 5px 0 0 transparent,
		inset 0 5px 0 transparent;
}

.qrcapture__icon svg {
	width: 100%;
	height: auto; /* Mantiene la proporción */
	display: block; /* Elimina espacio inferior extra */
}

.qrcapture__panel {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(0, 0, 0, 0.64);
}

.qrcapture__dialog {
	width: min(100%, 420px);
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.qrcapture__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #e5e5e5;
}

.qrcapture__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.qrcapture__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #333;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.qrcapture__close:hover,
.qrcapture__close:focus {
	background: #f2f2f2;
}

.qrcapture__camera {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #111;
}

.qrcapture__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.qrcapture__status {
	min-height: 38px;
	margin: 0;
	padding: 10px 16px;
	color: #333;
	font-size: 14px;
	line-height: 1.3;
}

@media (max-width: 767px) {
	.qrcapture--bottom_left .qrcapture__button,
	.qrcapture--top_right .qrcapture__button,
	.qrcapture--top_left .qrcapture__button,
	.qrcapture--bottom_right .qrcapture__button {
		right: 8px;
		top: 8px;
		left:auto;
		bottom:auto;
	}

	.qrcapture__button {
		gap: 5px;
		min-height: 40px;
		padding: 0 7px;
		background: linear-gradient(135deg, var(--qrcapture-button-bg, #1f4e79), var(--qrcapture-button-bg, #1f4e79));
		box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
	}

	.qrcapture__icon {
		width: 27px;
		height: 27px;
	}

	.qrcapture__button .mobile-hidden {
		display: none;
	}

	.qrcapture__panel {
		align-items: center;
		padding: 12px;
	}
}
