/**
 * PushinPay frontend styles.
 *
 * @package PushinPay
 */

.pushinpay-checkout-info {
	margin-top: 12px;
	padding: 14px 16px;
	border: 1px solid #d7e3f1;
	border-radius: 6px;
	background: #f7fbff;
	color: #1f2937;
}

.pushinpay-checkout-info p {
	margin: 6px 0 0;
}

.pushinpay-payment-info {
	max-width: 520px;
	margin: 28px auto;
	padding: 22px;
	border: 1px solid #d7dce3;
	border-radius: 8px;
	background: #fff;
	text-align: center;
}

.pushinpay-payment-info h2 {
	margin: 0 0 10px;
	font-size: 1.35rem;
	line-height: 1.3;
}

.pushinpay-payment-info p {
	margin: 0 auto 18px;
	color: #4b5563;
}

.pushinpay-pix-paid {
	border-color: #b8e0c2;
	background: #f3fbf5;
}

.pushinpay-pix-qrcode {
	display: flex;
	justify-content: center;
	margin: 18px 0;
}

.pushinpay-pix-qrcode img {
	width: min(280px, 100%);
	height: auto;
	padding: 10px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fff;
}

.pushinpay-pix-code-label {
	display: block;
	margin: 0 0 8px;
	font-weight: 600;
	text-align: left;
}

.pushinpay-pix-code {
	box-sizing: border-box;
	width: 100%;
	min-height: 92px;
	padding: 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	background: #f8fafc;
	color: #111827;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 13px;
	line-height: 1.45;
	resize: vertical;
}

.pushinpay-pix-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 16px;
}

.pushinpay-pix-actions .button {
	min-width: 150px;
	text-align: center;
}

.pushinpay-message {
	margin-top: 16px;
	padding: 10px 12px;
	border-radius: 6px;
	font-weight: 600;
}

.pushinpay-message:empty {
	display: none;
}

.pushinpay-message.is-success {
	background: #ecfdf3;
	color: #166534;
}

.pushinpay-message.is-error {
	background: #fef2f2;
	color: #991b1b;
}

.pushinpay-message.is-info {
	background: #eff6ff;
	color: #1d4ed8;
}

.pushinpay-pix-blocks-content {
	display: grid;
	gap: 4px;
	padding: 14px 0;
	color: #1f2937;
}

.pushinpay-pix-blocks-content p {
	margin: 0;
	color: #4b5563;
	font-size: 14px;
}

@media (max-width: 480px) {
	.pushinpay-payment-info {
		margin: 20px 0;
		padding: 16px;
	}

	.pushinpay-pix-actions {
		display: grid;
	}

	.pushinpay-pix-actions .button {
		width: 100%;
	}
}
