.p1qr-widget,
.p1qr-widget * {
	box-sizing: border-box;
}

.p1qr-widget {
	display: grid;
	grid-template-columns: repeat(2, minmax(240px, 1fr));
	gap: clamp(28px, 6vw, 88px);
	align-items: start;
	width: 100%;
	font-family: inherit;
}

.p1qr-widget--stacked {
	grid-template-columns: minmax(220px, 1fr);
	justify-items: center;
}

.p1qr-card {
	--p1qr-accent: #0d3b73;
	--p1qr-title-color: var(--p1qr-accent);
	--p1qr-cta-color: #fff;
	display: grid;
	justify-items: center;
	gap: 18px;
	min-width: 0;
	text-align: center;
	color: #1d2433;
}

.p1qr-card__title {
	margin: 0;
	color: var(--p1qr-title-color);
	font-size: var(--p1qr-title-size, 34px);
	font-weight: var(--p1qr-title-weight, 800);
	line-height: 1.14;
	letter-spacing: 0;
}

.p1qr-card__qr-link {
	display: block;
	width: calc(var(--p1qr-qr-size, 230px) + 54px);
	max-width: 100%;
	padding: 22px;
	background: #fff;
	border: 9px solid var(--p1qr-accent);
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
	line-height: 0;
}

.p1qr-code {
	position: relative;
	display: grid;
	width: min(var(--p1qr-qr-size, 230px), 100%);
	aspect-ratio: 1;
	place-items: center;
	margin: 0 auto;
	overflow: hidden;
	background: #fff;
}

.p1qr-code svg {
	display: block;
	width: 100%;
	height: 100%;
}

.p1qr-code__logo {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	object-fit: contain;
	padding: 2%;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 0 0 5px #fff;
	transform: translate(-50%, -50%);
}

.p1qr-code--error {
	align-content: center;
	padding: 18px;
	color: #7f1d1d;
	background: #fff7f7;
	border: 1px solid #fecaca;
	font-size: 13px;
	line-height: 1.35;
}

.p1qr-card__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: min(calc(var(--p1qr-qr-size, 230px) + 54px), 100%);
	min-height: 52px;
	padding: 12px 22px;
	color: var(--p1qr-cta-color);
	background: var(--p1qr-accent);
	border-radius: 8px;
	font-size: var(--p1qr-cta-size, 18px);
	font-weight: var(--p1qr-cta-weight, 800);
	line-height: 1.2;
	text-decoration: none;
}

.p1qr-card__cta::before {
	content: "";
	position: absolute;
	top: -24px;
	left: 50%;
	width: 0;
	height: 0;
	border-right: 24px solid transparent;
	border-bottom: 24px solid var(--p1qr-accent);
	border-left: 24px solid transparent;
	transform: translateX(-50%);
}

.p1qr-card__cta:hover,
.p1qr-card__cta:focus-visible {
	color: var(--p1qr-cta-color);
	filter: brightness(1.08);
}

.p1qr-card__cta-icon {
	width: 1.15em;
	height: 1.15em;
	flex: 0 0 auto;
}

.p1qr-card__caption {
	margin: -4px 0 0;
	color: var(--p1qr-caption-color, #555);
	font-size: var(--p1qr-caption-size, 14px);
	font-weight: var(--p1qr-caption-weight, 400);
	line-height: 1.4;
}

.p1qr-frame--modern .p1qr-card {
	gap: 16px;
	width: min(100%, 390px);
	padding: 24px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 8px;
	box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14);
}

.p1qr-frame--modern .p1qr-card__title {
	color: #111827;
	font-size: min(var(--p1qr-title-size, 34px), 30px);
}

.p1qr-frame--modern .p1qr-card__qr-link {
	width: calc(var(--p1qr-qr-size, 250px) + 36px);
	padding: 16px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 8px;
	box-shadow: inset 0 0 0 7px #fff, 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.p1qr-frame--modern .p1qr-card__cta {
	width: min(calc(var(--p1qr-qr-size, 250px) + 36px), 100%);
	min-height: 48px;
	border-radius: 8px;
	box-shadow: 0 12px 24px color-mix(in srgb, var(--p1qr-accent), transparent 72%);
}

.p1qr-frame--modern .p1qr-card__cta::before {
	display: none;
}

.p1qr-frame--modern .p1qr-card__caption {
	margin-top: 0;
}

.p1qr-frame--badge .p1qr-card {
	width: min(100%, 360px);
	padding: 0;
	gap: 14px;
}

.p1qr-frame--badge .p1qr-card__title {
	font-size: min(var(--p1qr-title-size, 34px), 28px);
}

.p1qr-frame--badge .p1qr-card__qr-link {
	width: calc(var(--p1qr-qr-size, 250px) + 28px);
	padding: 14px;
	border: 1px solid rgba(15, 23, 42, 0.15);
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.p1qr-frame--badge .p1qr-card__cta {
	width: min(calc(var(--p1qr-qr-size, 250px) + 28px), 100%);
	min-height: 52px;
	color: #fff;
	background: #111827;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.p1qr-frame--badge .p1qr-card__cta::before {
	display: none;
}

.p1qr-frame--simple .p1qr-card__qr-link {
	width: var(--p1qr-qr-size, 230px);
	padding: 0;
	border: 0;
	border-radius: 0;
}

.p1qr-frame--simple .p1qr-card__cta::before {
	display: none;
}

.p1qr-frame--card .p1qr-card {
	padding: 28px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 8px;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.p1qr-frame--phone .p1qr-card__qr-link {
	padding: 34px 20px 28px;
	border-width: 7px;
	border-radius: 28px;
	box-shadow: inset 0 12px 0 rgba(0, 0, 0, 0.05);
}

.p1qr-frame--phone .p1qr-card__qr-link::before {
	content: "";
	display: block;
	width: 38px;
	height: 4px;
	margin: -18px auto 18px;
	background: var(--p1qr-accent);
	border-radius: 999px;
	opacity: 0.45;
}

.p1qr-frame--compact .p1qr-card {
	gap: 12px;
}

.p1qr-frame--compact .p1qr-card__title {
	font-size: min(var(--p1qr-title-size, 34px), 28px);
}

.p1qr-frame--compact .p1qr-card__qr-link {
	width: calc(var(--p1qr-qr-size, 230px) + 32px);
	padding: 14px;
	border-width: 6px;
}

.p1qr-frame--compact .p1qr-card__cta {
	width: min(calc(var(--p1qr-qr-size, 230px) + 32px), 100%);
	min-height: 46px;
}

.p1qr-frame--horizontal {
	grid-template-columns: minmax(280px, 1fr);
}

.p1qr-frame--horizontal .p1qr-card {
	grid-template-columns: auto minmax(180px, 1fr);
	grid-template-areas:
		"qr title"
		"qr cta"
		"qr caption";
	column-gap: 22px;
	justify-items: start;
	text-align: left;
}

.p1qr-frame--horizontal .p1qr-card__title {
	grid-area: title;
	align-self: end;
}

.p1qr-frame--horizontal .p1qr-card__qr-link {
	grid-area: qr;
	width: calc(var(--p1qr-qr-size, 230px) + 34px);
	padding: 14px;
	border-width: 6px;
}

.p1qr-frame--horizontal .p1qr-card__cta {
	grid-area: cta;
	width: auto;
}

.p1qr-frame--horizontal .p1qr-card__cta::before {
	display: none;
}

.p1qr-frame--horizontal .p1qr-card__caption {
	grid-area: caption;
}

@media (max-width: 760px) {
	.p1qr-widget {
		grid-template-columns: minmax(220px, 1fr);
		gap: 42px;
		justify-items: center;
	}

	.p1qr-card {
		width: min(100%, 420px);
	}

	.p1qr-card__title {
		font-size: min(var(--p1qr-title-size, 34px), 30px);
	}

	.p1qr-frame--horizontal .p1qr-card {
		grid-template-columns: minmax(220px, 1fr);
		grid-template-areas:
			"title"
			"qr"
			"cta"
			"caption";
		justify-items: center;
		text-align: center;
	}
}
