.ypix-modal,
.ypix-modal * {
	box-sizing: border-box;
}

.ypix-modal {
	align-items: center;
	display: none;
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: fixed;
	z-index: 999999;
}

.ypix-modal.is-open {
	display: flex;
}

.ypix-backdrop {
	background: rgba(16, 24, 40, 0.58);
	inset: 0;
	position: absolute;
}

.ypix-card {
	background: #fff;
	border: 1px solid #0F1F2F;
	border-radius: 8px;
	box-shadow: 0 26px 80px rgba(15, 31, 47, 0.26);
	color: #0F1F2F;
	font-family: Inter, Arial, sans-serif;
	max-height: min(92vh, 760px);
	overflow: auto;
	padding: 26px;
	position: relative;
	width: min(520px, 100%);
}

.ypix-close {
	background: #0F1F2F !important;
	border: 1px solid #0F1F2F !important;
	border-radius: 5px;
	color: #fff !important;
	cursor: pointer;
	font-size: 24px;
	height: 38px;
	line-height: 1;
	position: absolute;
	right: 14px;
	top: 14px;
	width: 38px;
}

.ypix-eyebrow {
	background: #fff;
	border: 1px solid #0F1F2F;
	border-radius: 5px;
	color: #0F1F2F;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	padding: 6px 10px;
}

.ypix-card h2 {
	color: #0F1F2F;
	font-size: 24px;
	letter-spacing: 0;
	margin: 12px 0 14px;
}

.ypix-summary {
	background: #fff;
	border: 1px solid #0F1F2F;
	border-radius: 5px;
	display: grid;
	gap: 4px;
	margin-bottom: 16px;
	padding: 12px;
}

.ypix-form {
	display: grid;
	gap: 12px;
}

.ypix-form label,
.ypix-code-label {
	color: #0F1F2F;
	display: grid;
	font-size: 14px;
	font-weight: 800;
	gap: 7px;
}

.ypix-form input,
.ypix-code-label input {
	background: #fff;
	border: 1px solid #0F1F2F;
	border-radius: 5px;
	color: #0F1F2F;
	font-size: 16px;
	min-height: 46px;
	padding: 10px 12px;
	width: 100%;
}

.ypix-form input:focus,
.ypix-code-label input:focus {
	border-color: #0F1F2F;
	box-shadow: 0 0 0 3px rgba(15, 31, 47, 0.12);
	outline: 0;
}

.ypix-submit,
.ypix-copy,
.ypix-assinar {
	background: #0F1F2F !important;
	border: 1px solid #0F1F2F !important;
	border-radius: 5px;
	color: #fff !important;
	cursor: pointer;
	font-size: 16px;
	font-weight: 900;
	min-height: 48px;
	padding: 12px 14px;
	width: 100%;
}

.ypix-card button.ypix-copy,
.ypix-copy {
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 12px auto 0 !important;
	max-width: 220px;
	width: min(220px, 100%) !important;
}

.ypix-card .ypix-submit:hover,
.ypix-card .ypix-submit:focus,
.ypix-card .ypix-copy:hover,
.ypix-card .ypix-copy:focus,
.ypix-assinar:hover,
.ypix-assinar:focus,
.ypix-close:hover,
.ypix-close:focus {
	background: #0F1F2F !important;
	border-color: #0F1F2F !important;
	box-shadow: 0 0 0 3px rgba(15, 31, 47, 0.12);
	color: #fff !important;
	outline: 0;
}

.ypix-assinar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	width: auto;
}

.ypix-submit:disabled {
	cursor: wait;
	opacity: 0.7;
}

.ypix-error {
	background: #fef3f2;
	border: 1px solid #fecdca;
	border-radius: 5px;
	color: #b42318;
	font-weight: 700;
	margin: 0;
	padding: 10px 12px;
}

.ypix-muted {
	color: #0F1F2F;
	line-height: 1.45;
	margin: 0 0 14px;
}

.ypix-qr {
	align-items: center;
	display: flex;
	justify-content: center;
	margin: 14px 0 18px;
	text-align: center;
}

.ypix-qr img {
	background: #fff;
	border: 1px solid #0F1F2F;
	border-radius: 5px;
	height: 240px;
	padding: 10px;
	width: 240px;
}

.ypix-info {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 14px;
}

.ypix-info span {
	background: #fff;
	border: 1px solid #0F1F2F;
	border-radius: 5px;
	color: #0F1F2F;
	padding: 12px;
}

.ypix-card button.ypix-wait,
.ypix-wait {
	background: #0F1F2F !important;
	border: 1px solid #0F1F2F !important;
	border-radius: 5px;
	color: #fff !important;
	cursor: default;
	display: block !important;
	font-weight: 800;
	line-height: 1.3;
	margin: 14px auto 0 !important;
	max-width: 100%;
	padding: 12px 14px;
	text-align: center;
	width: 100% !important;
	white-space: normal !important;
	overflow-wrap: anywhere !important;
	word-break: normal !important;
}

.ypix-card .ypix-wait:hover,
.ypix-card .ypix-wait:focus {
	background: #0F1F2F !important;
	border-color: #0F1F2F !important;
	color: #fff !important;
	outline: 0;
}

.ypix-toast {
	background: rgba(16, 24, 40, 0.94);
	border-radius: 5px;
	color: #fff;
	font-weight: 800;
	left: 50%;
	padding: 14px 18px;
	position: fixed;
	text-align: center;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1000000;
}

@media (max-width: 520px) {
	.ypix-modal {
		align-items: flex-start;
		padding: 14px;
	}

	.ypix-card {
		margin-top: 24px;
		padding: 20px;
		width: min(100%, 420px);
	}

	.ypix-info {
		grid-template-columns: 1fr;
	}

	.ypix-qr img {
		height: auto;
		max-width: 240px;
		width: 100%;
	}

	.ypix-wait,
	.ypix-copy,
	.ypix-submit {
		font-size: 15px;
		min-height: 46px;
	}

	.ypix-card button.ypix-copy,
	.ypix-copy {
		margin-left: auto !important;
		margin-right: auto !important;
		width: min(220px, 100%) !important;
	}

	.ypix-card button.ypix-wait,
	.ypix-wait {
		line-height: 1.35;
		padding: 12px;
		white-space: normal !important;
		width: 100% !important;
	}
}
