/* Checkout: mesmo modal da home atual. */
.checkout-modal, .payment-banner {
	--radius: 12px;
	--shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
	--success: #10b981;
	--warning: #f59e0b;
	--text-light: #6b7280;
	--primary: #007AFF;
	--primary-dark: #0056b3;
	--shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}
.payment-banner {
	position: fixed;
	top: 80px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3000;
	padding: 14px 24px;
	border-radius: var(--radius);
	font-size: 0.95rem;
	font-weight: 600;
	box-shadow: var(--shadow-lg);
	display: none;
}
.payment-banner.success { background: var(--success); color: #fff; display: block; }
.payment-banner.failure { background: #ef4444; color: #fff; display: block; }
.payment-banner.pending { background: var(--warning); color: #1a1a2e; display: block; }

.checkout-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2500;
	background: rgba(0,0,0,0.7);
	backdrop-filter: blur(6px);
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.checkout-modal.active { display: flex; }
.checkout-modal-box {
	background: white;
	border-radius: var(--radius);
	padding: 32px;
	max-width: 420px;
	width: 100%;
	position: relative;
	box-shadow: var(--shadow-lg);
}
.checkout-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 1.5rem;
	color: var(--text-light);
	cursor: pointer;
	line-height: 1;
}
.checkout-modal-close:hover { color: #1a1a2e; }
.checkout-modal-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a1a2e;
	margin-bottom: 4px;
}
.checkout-modal-subtitle {
	font-size: 0.875rem;
	color: var(--text-light);
	margin-bottom: 24px;
}
.checkout-modal-input {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid #e5e7eb;
	border-radius: var(--radius);
	font-size: 1rem;
	color: #1a1a2e;
	background: #f9fafb;
	box-sizing: border-box;
}
.checkout-modal-input::placeholder { color: #9ca3af; }
.checkout-modal-input:focus { outline: none; border-color: var(--primary); background: white; }
.checkout-modal-input.invalid { border-color: #ef4444; }
.checkout-modal-methods { display: none; margin-top: 20px; }
.checkout-modal-methods.visible { display: block; }
.checkout-modal-methods-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #1a1a2e;
	margin-bottom: 8px;
}
.checkout-modal-method-group { display: flex; gap: 8px; }
.checkout-modal-method {
	flex: 1;
	padding: 10px 0;
	border: 2px solid #e5e7eb;
	border-radius: var(--radius);
	background: #f9fafb;
	color: #1a1a2e;
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}
.checkout-modal-method.active { border-color: var(--primary); background: white; color: var(--primary); }
.checkout-modal-buyer { display: none; }
.checkout-modal-buyer.visible { display: block; }
.checkout-modal-buyer .checkout-modal-input { margin-top: 12px; }
.checkout-modal-coupon { margin-top: 12px; text-transform: uppercase; letter-spacing: .04em; }
.checkout-modal-coupon::placeholder { text-transform: none; letter-spacing: normal; }
.checkout-modal-cpf-note {
	font-size: 0.75rem;
	color: var(--text-light);
	margin-top: 6px;
}
.checkout-modal-error {
	color: #ef4444;
	font-size: 0.8125rem;
	margin-top: 8px;
	display: none;
}
.checkout-modal-error.visible { display: block; }
.checkout-modal-submit {
	width: 100%;
	margin-top: 16px;
	padding: 14px;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: var(--radius);
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: white;
	cursor: pointer;
	box-shadow: var(--shadow);
}
.checkout-modal-submit:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.checkout-modal-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}
.checkout-modal-conflict {
	display: none;
	text-align: center;
	padding: 8px 0;
}
.checkout-modal-conflict.visible { display: block; }
.checkout-modal-conflict-msg {
	font-size: 0.9rem;
	color: #1a1a2e;
	line-height: 1.5;
	margin-bottom: 16px;
}
.checkout-modal-conflict-cta {
	display: inline-block;
	font-size: 0.875rem;
	color: var(--primary);
	text-decoration: underline;
}
.checkout-modal-conflict-cta:hover { color: var(--primary-dark); }
