/* BankID (Signicat) – frontend */

.bsg-wrap {
	margin: 12px 0 18px;
}

.bsg-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #235971;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1;
	transition: background .15s ease, opacity .15s ease;
}

.bsg-button:hover {
	background: #1b4557;
}

.bsg-button:disabled {
	opacity: .55;
	cursor: default;
}

.bsg-button__icon {
	width: 18px;
	height: 18px;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 3 5v6c0 5.5 3.8 10.7 9 12 5.2-1.3 9-6.5 9-12V5l-9-4Zm-1.2 15.5-3.8-3.8 1.4-1.4 2.4 2.4 5-5 1.4 1.4-6.4 6.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 3 5v6c0 5.5 3.8 10.7 9 12 5.2-1.3 9-6.5 9-12V5l-9-4Zm-1.2 15.5-3.8-3.8 1.4-1.4 2.4 2.4 5-5 1.4 1.4-6.4 6.4Z'/%3E%3C/svg%3E") center / contain no-repeat;
	flex: 0 0 auto;
}

.bsg-status {
	margin: 8px 0 0;
	font-size: 14px;
}

.bsg-status--ok {
	color: #1f7a3d;
	font-weight: 600;
}

.bsg-status--error {
	color: #b3261e;
}

.bsg-status--pending {
	color: #555;
}

.bsg-wrap--verified .bsg-button {
	background: #1f7a3d;
}

/* Tvingande-notis */
.bsg-required-note {
	margin: 0 0 10px;
	font-size: 14px;
	color: #7a4b00;
	background: #fff4e0;
	border: 1px solid #f0d199;
	border-radius: 6px;
	padding: 8px 12px;
}

/* Inbäddad QR */
.bsg-qr {
	margin-top: 14px;
	padding: 16px;
	border: 1px solid #dfe4e8;
	border-radius: 12px;
	background: #fff;
	display: inline-block;
	text-align: center;
	max-width: 320px;
}

.bsg-qr__code {
	width: 220px;
	height: 220px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bsg-qr__code svg {
	width: 100%;
	height: 100%;
}

.bsg-qr__hint {
	margin: 12px 0 8px;
	font-size: 14px;
	color: #333;
}

.bsg-qr__cancel {
	background: transparent;
	border: 0;
	color: #235971;
	text-decoration: underline;
	cursor: pointer;
	font-size: 13px;
	padding: 4px 8px;
}

/* Enhetsval */
.bsg-choice {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 12px;
	max-width: 340px;
}

.bsg-choice__btn {
	background: #235971;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: background .15s ease;
}

.bsg-choice__btn:hover {
	background: #1b4557;
}

.bsg-choice__btn--secondary {
	background: #fff;
	color: #235971;
	border: 1px solid #235971;
}

.bsg-choice__btn--secondary:hover {
	background: #eef4f7;
}

/* App-öppning (samma enhet) */
.bsg-applaunch {
	margin-top: 14px;
	padding: 16px;
	border: 1px solid #dfe4e8;
	border-radius: 12px;
	background: #fff;
	max-width: 340px;
	text-align: center;
}

.bsg-applaunch__hint {
	margin: 0 0 12px;
	font-size: 14px;
	color: #333;
}

.bsg-applaunch__open {
	display: inline-block;
	background: #235971;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	padding: 11px 18px;
	font-weight: 600;
	font-size: 15px;
}

.bsg-applaunch__open:hover {
	background: #1b4557;
	color: #fff;
}

.bsg-applaunch .bsg-qr__cancel {
	display: block;
	margin: 12px auto 0;
}
