/* Pepper Staffing - uniform ordering page (only loaded on that page). */
.pu {
	--pu-green: #5BA630;
	--pu-green-dark: #4a8c28;
	--pu-green-soft: #ecf6e6;
	--pu-orange: #f97316;
	--pu-ink: #111827;
	--pu-text: #4b5563;
	--pu-muted: #6b7280;
	--pu-line: #e5e7eb;
	--pu-bg: #f9fafb;
	--pu-red: #dc2626;
	background: var(--pu-bg);
	color: var(--pu-text);
	padding: 56px 16px 96px;
}
.pu [hidden] { display: none !important; }
.pu *, .pu *::before, .pu *::after { box-sizing: border-box; }
.pu-wrap { max-width: 1200px; margin: 0 auto; }

/* hero */
.pu-hero { text-align: center; margin: 0 auto 44px; max-width: 680px; }
.pu-hero-icon {
	width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 9999px;
	display: flex; align-items: center; justify-content: center; color: #fff;
	background: linear-gradient(90deg, var(--pu-green), var(--pu-orange));
	box-shadow: 0 10px 25px -8px rgba(91, 166, 48, .55);
}
.pu-hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; font-weight: 800; color: var(--pu-ink); margin: 0 0 14px; letter-spacing: -.02em; }
.pu-hero h1 span { color: var(--pu-green); }
.pu-hero p { font-size: 18px; line-height: 1.6; margin: 0; }
.pu-empty-page { text-align: center; font-size: 18px; }

/* layout */
.pu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.pu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }

/* product card */
.pu-card {
	background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .12);
	transition: transform .2s ease, box-shadow .2s ease;
}
.pu-card:hover { transform: translateY(-3px); box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 18px 36px -14px rgba(0, 0, 0, .2); }
.pu-img { aspect-ratio: 1 / 1; background: var(--pu-green-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pu-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pu-img .pu-ph { width: 55%; height: auto; }
.pu-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pu-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pu-title-row h3 { font-size: 18px; font-weight: 700; color: var(--pu-ink); margin: 0; line-height: 1.3; }
.pu-price { font-weight: 800; color: var(--pu-green); font-size: 18px; white-space: nowrap; }
.pu-price.is-tbc { font-size: 13px; font-weight: 600; color: var(--pu-muted); background: #f3f4f6; padding: 3px 8px; border-radius: 9999px; }
.pu-desc { margin: 0; font-size: 14px; line-height: 1.5; }
.pu-controls { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: auto; }
.pu-field { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.pu-field > span { font-size: 12px; font-weight: 600; color: var(--pu-muted); text-transform: uppercase; letter-spacing: .04em; }
.pu-field select, .pu-onesize {
	height: 42px; border: 1px solid #d1d5db; border-radius: 10px; padding: 0 10px; font: inherit; font-size: 15px;
	color: var(--pu-ink); background: #fff; width: 100%;
}
.pu-onesize { display: flex; align-items: center; color: var(--pu-muted); background: #f9fafb; }
.pu-field select:focus, .pu-stepper input:focus, .pu-input input:focus, .pu-input textarea:focus {
	outline: none; border-color: var(--pu-green); box-shadow: 0 0 0 3px rgba(91, 166, 48, .2);
}
.pu-field select.is-invalid { border-color: var(--pu-red); box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.pu-stepper { display: flex; height: 42px; border: 1px solid #d1d5db; border-radius: 10px; overflow: hidden; background: #fff; }
.pu-stepper button { width: 34px; border: 0; background: #f9fafb; font-size: 18px; color: var(--pu-ink); cursor: pointer; padding: 0; }
.pu-stepper button:hover { background: var(--pu-green-soft); color: var(--pu-green-dark); }
.pu-stepper input { width: 40px; border: 0; text-align: center; font: inherit; font-weight: 600; color: var(--pu-ink); -moz-appearance: textfield; padding: 0; }
.pu-stepper input::-webkit-outer-spin-button, .pu-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pu-add {
	height: 46px; border: 0; border-radius: 10px; background: var(--pu-green); color: #fff; font: inherit;
	font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s ease, transform .1s ease;
}
.pu-add:hover { background: var(--pu-green-dark); }
.pu-add:active { transform: scale(.98); }
.pu-card-msg { margin: -4px 0 0; font-size: 13px; min-height: 18px; }
.pu-card-msg.is-ok { color: var(--pu-green-dark); }
.pu-card-msg.is-error { color: var(--pu-red); }

/* order panel */
.pu-side { position: sticky; top: 96px; }
.pu-panel {
	background: #fff; border-radius: 16px; padding: 24px; border-top: 4px solid var(--pu-green);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 12px 32px -14px rgba(0, 0, 0, .18);
	max-height: calc(100vh - 120px); overflow: auto;
}
.pu-panel.is-pulse { animation: pu-pulse .6s ease; }
@keyframes pu-pulse { 0% { box-shadow: 0 0 0 0 rgba(91, 166, 48, .45); } 100% { box-shadow: 0 0 0 14px rgba(91, 166, 48, 0); } }
.pu-panel h2 { font-size: 22px; font-weight: 800; color: var(--pu-ink); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.pu-count { background: var(--pu-orange); color: #fff; font-size: 13px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; }
.pu-lines { list-style: none; margin: 0; padding: 0; }
.pu-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--pu-line); }
.pu-line-name { font-weight: 600; color: var(--pu-ink); font-size: 14px; line-height: 1.3; }
.pu-line-name small { display: block; font-weight: 500; color: var(--pu-muted); font-size: 12px; margin-top: 2px; }
.pu-line-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pu-mini-step { display: flex; align-items: center; border: 1px solid var(--pu-line); border-radius: 8px; overflow: hidden; }
.pu-mini-step button { width: 26px; height: 28px; border: 0; background: #f9fafb; cursor: pointer; font-size: 15px; color: var(--pu-ink); padding: 0; }
.pu-mini-step button:hover { background: var(--pu-green-soft); }
.pu-mini-step span { min-width: 24px; text-align: center; font-weight: 600; font-size: 14px; color: var(--pu-ink); }
.pu-line-price { min-width: 58px; text-align: right; font-weight: 700; font-size: 14px; color: var(--pu-ink); }
.pu-rm { border: 0; background: none; color: #9ca3af; font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.pu-rm:hover { color: var(--pu-red); }
.pu-empty { margin: 4px 0 8px; font-size: 14px; color: var(--pu-muted); }
.pu-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; font-size: 16px; color: var(--pu-ink); }
.pu-total strong { font-size: 24px; font-weight: 800; color: var(--pu-green); }
.pu-tbc-note { font-size: 13px; color: var(--pu-muted); margin: 4px 0 0; }

/* form */
.pu-form { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.pu-form h3 { font-size: 15px; font-weight: 700; color: var(--pu-ink); margin: 14px 0 2px; padding-top: 14px; border-top: 1px solid var(--pu-line); }
.pu-form h3:first-of-type { border-top: 0; padding-top: 4px; }
.pu-hp { position: absolute; left: -9999px; }
.pu-input { display: flex; flex-direction: column; gap: 5px; margin: 0; }
.pu-input > span { font-size: 13px; font-weight: 600; color: #374151; }
.pu-input input, .pu-input textarea {
	width: 100%; border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 15px;
	color: var(--pu-ink); background: #fff; resize: vertical;
}
.pu-input input { height: 44px; }
.pu-choice {
	display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--pu-line);
	border-radius: 10px; cursor: pointer; margin: 0; transition: border-color .15s ease, background .15s ease;
}
.pu-choice:has(input:checked) { border-color: var(--pu-green); background: var(--pu-green-soft); }
.pu-choice input, .pu-consent input { accent-color: var(--pu-green); margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.pu-choice strong { display: block; color: var(--pu-ink); font-size: 14px; }
.pu-choice small { display: block; color: var(--pu-muted); font-size: 12px; margin-top: 1px; }
.pu-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; padding: 11px 12px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; margin: 0; color: #7c2d12; cursor: pointer; }
.pu-consent strong { color: #7c2d12; }
.pu-submit {
	margin-top: 8px; height: 50px; border: 0; border-radius: 10px; color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
	background: linear-gradient(90deg, var(--pu-green), var(--pu-orange)); transition: box-shadow .2s ease, transform .2s ease;
}
.pu-submit:hover { box-shadow: 0 10px 22px -8px rgba(249, 115, 22, .55); transform: translateY(-1px); }
.pu-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.pu-error { margin: 0; font-size: 14px; color: var(--pu-red); background: #fef2f2; border-radius: 8px; padding: 10px 12px; }

/* success */
.pu-done { text-align: center; padding: 10px 0 4px; }
.pu-done-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 9999px; background: #dcfce7; display: flex; align-items: center; justify-content: center; color: var(--pu-green); }
.pu-done h3 { font-size: 20px; font-weight: 800; color: var(--pu-ink); margin: 0 0 8px; }
.pu-done p { margin: 0 0 16px; font-size: 15px; line-height: 1.55; }
.pu-again { border: 1px solid var(--pu-green); color: var(--pu-green-dark); background: #fff; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; }

/* mobile summary bar */
.pu-mobile-bar { display: none; }

@media (max-width: 960px) {
	.pu-layout { grid-template-columns: 1fr; }
	.pu-side { position: static; }
	.pu-panel { max-height: none; }
	.pu-mobile-bar {
		position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; gap: 12px;
		padding: 14px 18px; border-radius: 14px; color: #fff; text-decoration: none;
		background: linear-gradient(90deg, var(--pu-green), var(--pu-orange)); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4);
	}
	.pu-mobile-bar span { font-size: 14px; opacity: .95; }
	.pu-mobile-bar strong { font-size: 17px; }
	.pu-mobile-bar em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 14px; }
}
@media (max-width: 560px) {
	.pu { padding: 36px 16px 110px; }
	.pu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.pu-body { padding: 12px; gap: 10px; }
	.pu-title-row { flex-direction: column; gap: 4px; }
	.pu-title-row h3 { font-size: 15px; }
	.pu-price { font-size: 16px; }
	.pu-desc { display: none; }
	.pu-controls { grid-template-columns: 1fr; }
	.pu-stepper button { width: 38px; }
	.pu-stepper input { flex: 1; }
	.pu-add { height: 42px; font-size: 14px; }
	.pu-panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.pu-card, .pu-submit, .pu-add { transition: none; }
	.pu-panel.is-pulse { animation: none; }
}
