/* ===== Zamówienia online =====
 * Nadbudowa na pos.css — ekran klienta (identyczny układ jak POS).
 */

.order-launch-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 60;
	background: var(--pos-red);
	color: #fff;
	text-align: center;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 1rem 1.25rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.order-pay-banner {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--pos-red);
	color: #fff;
	text-align: center;
	font-weight: 600;
	padding: 0.8rem 1rem;
}

.order-pay-banner.ok {
	background: var(--pos-green);
}

.order-move-banner {
	background: #0f172a;
	color: #fff;
	text-align: center;
	font-weight: 600;
	padding: 0.8rem 1rem;
	font-size: 0.95rem;
}

.order-move-banner a {
	color: #fbbf24;
	text-decoration: underline;
}

.closed-address {
	margin-top: 1rem;
	font-size: 0.95rem;
}

.order-closed .closed-address a.closed-map,
.order-paused .closed-address a.closed-map {
	color: #ffffff;
	text-decoration: none;
}

.order-closed .closed-address a.closed-map:hover,
.order-paused .closed-address a.closed-map:hover {
	color: var(--pos-amber);
	text-decoration: underline;
}

.closed-address a.closed-map .fc-pin {
	vertical-align: -0.18em;
	margin-right: 0.4rem;
}

.order-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.order-header h1 {
	font-size: 1.6rem;
}

.order-sub {
	color: var(--fc-accent);
	margin: 0.25rem 0 0;
	font-size: 0.95rem;
}

.order-address {
	font-size: 0.9rem;
	opacity: 0.85;
	text-align: right;
}

.order-cart {
	padding: 1.25rem;
}

.order-customer label {
	display: block;
	margin: 0.5rem 0;
	font-size: 0.85rem;
	opacity: 0.9;
}

.order-customer input {
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.7rem 0.8rem;
	font-size: 1rem;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	box-sizing: border-box;
}

.order-customer input:focus {
	outline: none;
	border-color: var(--fc-accent);
}

.order-customer select {
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.7rem 0.8rem;
	font-size: 1rem;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	box-sizing: border-box;
}

.order-customer select:focus {
	outline: none;
	border-color: var(--fc-accent);
}

.order-customer select option {
	color: #222;
}

.order-note {
	font-size: 0.8rem;
	opacity: 0.75;
	margin: 0.5rem 0;
}

/* Linki Regulamin / Polityka prywatności — domyślny niebieski przeglądarki
   razi na ciemnym tle; miękki złoty pasujący do motywu */
.order-note a {
	color: #f5c66d;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.order-note a:hover,
.order-note a:active {
	color: var(--pos-amber);
}

body.order-body:not(.kiosk-body) .pos-btn-cash,
body.order-body:not(.kiosk-body) .pos-btn-card {
	font-size: 0.95rem;
}

body.order-body:not(.kiosk-body) .pos-btn-cash small,
body.order-body:not(.kiosk-body) .pos-btn-card small {
	font-size: 0.7rem;
	font-weight: 400;
	opacity: 0.85;
}

/* ===== Ekran "ZAMKNIĘTE" ===== */

.order-closed {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, #101622, #1c2a3d);
	color: #fff;
	text-align: center;
}

.order-paused {
	position: fixed;
	inset: 0;
	z-index: 51;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, #3a0d0d, #5c1a1a);
	color: #fff;
	text-align: center;
}

.order-paused .closed-icon {
	animation: fc-pause-pulse 1.6s ease-in-out infinite;
}

@keyframes fc-pause-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.closed-box {
	max-width: 30rem;
	padding: 2rem;
}

.closed-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
}

.closed-box h2 {
	font-size: 2.4rem;
	margin: 0 0 0.75rem;
	color: var(--fc-accent);
}

.closed-hours {
	font-size: 1.6rem;
	font-weight: 700;
	margin: 1rem 0 1.5rem;
	opacity: 0.95;
}

.closed-note {
	color: var(--fc-accent);
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.closed-box .pos-btn {
	display: inline-block;
	margin: 0.5rem;
	text-decoration: none;
}

.closed-farewell {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 1.5rem 0 0;
	opacity: 0.95;
}

/* ===== Tablet i mobile: układ klienta, nie kasy POS =====
 * Poniżej 1100 px rezygnujemy z trójki kolumn i trybu aplikacji
 * (overflow:hidden + 100vh) — strona przewija się naturalnie:
 * pasek kategorii -> siatka dań -> koszyk z formularzem.
 */

/* pos.css blokuje scroll na html (tryb aplikacji POS/kiosk) — /zamow/
 * ma rosnący dokument: po dodaniu wielu dań przycisk płatności musi
 * być osiągalny przez przewinięcie */
html.order-scroll {
	overflow: auto;
	height: auto;
}

body.order-body:not(.kiosk-body) {
	overflow: auto;
	height: auto;
}

body.order-body:not(.kiosk-body) .pos-app {
	display: block;
	height: auto;
	min-height: 100dvh;
}

body.order-body:not(.kiosk-body) .pos-main {
	display: block;
}

body.order-body:not(.kiosk-body) .pos-cats {
	position: sticky;
	top: 0;
	z-index: 40;
	flex-direction: row;
	overflow-x: auto;
	padding: 10px 12px;
	gap: 8px;
	background: var(--pos-dark-2);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

body.order-body:not(.kiosk-body) .pos-cat {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 12px 16px;
	font-size: 0.95rem;
}

body.order-body:not(.kiosk-body) .pos-products {
	padding: 14px;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

body.order-body:not(.kiosk-body) .pos-product .pp-main {
	min-height: 96px;
}

body.order-body:not(.kiosk-body) .pos-cart {
	border-left: none;
	border-top: 2px solid var(--pos-amber);
	max-height: none;
	overflow: visible;
}

body.order-body:not(.kiosk-body) .pos-cart-lines {
	max-height: none;
	overflow: visible;
}

/* Jeden przycisk płatności (nie para gotówka/karta jak w POS):
   siatka 1-kolumnowa, przycisk wyśrodkowany, duży cel dotykowy */
body.order-body:not(.kiosk-body) .pos-pay {
	grid-template-columns: 1fr;
	justify-items: center;
}

body.order-body:not(.kiosk-body) .pos-pay .pos-btn {
	width: min(100%, 420px);
	padding: 16px;
	font-size: 1.05rem;
}

body.order-body:not(.kiosk-body) .pos-btn-clear {
	width: calc(100% - 2rem);
	margin: 0 1rem 1.5rem;
}

@media (min-width: 761px) {
	body.order-body:not(.kiosk-body) .pos-products {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}
}

/* ===== Mobilne ===== */

@media (max-width: 760px) {
	.order-header {
		flex-direction: column;
		text-align: center;
	}
	.order-address {
		text-align: center;
	}
}

@media (max-width: 620px) {
	.order-header h1 {
		font-size: 1.3rem;
	}

	.order-cart {
		padding: 1rem;
	}

	.order-customer input {
		padding: 0.8rem 0.75rem;
	}
}
