.po-app {
	--po-brand: #ea580c;
	--po-brand-dark: #c2410c;
	--po-brand-light: #fff7ed;
	--po-line: #e7e5e4;
	--po-muted: #78716c;
	--po-green: #16a34a;
	--po-amber: #b45309;
	--po-red: #dc2626;
	max-width: 560px;
	margin: 0 auto;
	font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1c1917;
}

.po-app * { box-sizing: border-box; }

.po-app__header { text-align: center; margin-bottom: 18px; }
.po-app__header h2 { margin: 0 0 4px; }

.po-muted { color: var(--po-muted); font-size: 13px; }

.po-card {
	background: #fff;
	border: 1px solid var(--po-line);
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.po-list-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	border: 1px solid var(--po-line);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 10px;
	background: #fff;
}

.po-list-item strong { display: block; }

.po-item-main { display: flex; align-items: center; gap: 12px; min-width: 0; }

.po-item-thumb {
	width: 46px; height: 46px; flex-shrink: 0;
	border-radius: 10px; object-fit: cover;
	background: var(--po-brand-light);
}

.po-item-thumb--empty {
	background: linear-gradient(135deg, var(--po-brand-light), #fff);
	border: 1px solid var(--po-line);
}

.po-btn {
	background: var(--po-brand);
	color: #fff;
	border: none;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.po-btn:hover { background: var(--po-brand-dark); color: #fff; }
.po-btn.po-btn-block { width: 100%; text-align: center; }
.po-btn.po-btn-secondary { background: #fff; color: var(--po-brand); border: 1px solid var(--po-brand); }

.po-field { margin-bottom: 14px; }
.po-field label { display: block; font-size: 12px; color: var(--po-muted); margin-bottom: 5px; }
.po-field input, .po-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--po-line);
	border-radius: 8px;
	font-size: 15px;
}

.po-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	text-transform: uppercase;
}

.po-badge-free { background: #dcfce7; color: var(--po-green); }
.po-badge-paid { background: #fef3c7; color: var(--po-amber); }

.po-toggle { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.po-toggle button {
	flex: 1;
	min-width: 110px;
	padding: 10px;
	border: 1px solid var(--po-line);
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
}
.po-toggle button.active { background: var(--po-brand); color: #fff; border-color: var(--po-brand); }

.po-qr-box { width: 170px; height: 170px; margin: 0 auto 14px; }
.po-qr-box img, .po-qr-box canvas { max-width: 100%; }

.po-stepper { display: flex; align-items: center; gap: 10px; }
.po-stepper button {
	width: 30px; height: 30px; border-radius: 8px;
	border: 1px solid var(--po-line); background: #fff; cursor: pointer; font-size: 16px;
}

.po-cartbar {
	position: sticky; bottom: 12px;
	background: var(--po-brand-dark);
	color: #fff;
	padding: 14px 18px;
	border-radius: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 16px;
	box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.po-cartbar .po-btn { background: #fff; color: var(--po-brand-dark); }

.po-center { text-align: center; }

.po-check {
	width: 60px; height: 60px; border-radius: 50%;
	background: var(--po-green); color: #fff; font-size: 30px;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 14px;
}

.po-code {
	font-size: 24px; font-weight: 800; letter-spacing: 3px;
	background: var(--po-brand-light); color: var(--po-brand-dark);
	padding: 12px 18px; border-radius: 10px; display: inline-block; margin-top: 10px;
}

.po-note {
	background: var(--po-brand-light); border: 1px solid #fed7aa;
	border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--po-brand-dark);
	margin-top: 14px;
}

.po-error {
	background: #fee2e2; border: 1px solid #fecaca;
	border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--po-red);
	margin-top: 14px;
}
