/*
 * The order tablet in the shop.
 *
 * Only the things a fixed tablet needs that a laptop does not. The tile layout, the section rail
 * and the basket all come from `wizresto-desktop.css`, which is the same stylesheet the wide
 * customer menu uses: one layout, so the two screens cannot drift apart. What is left for this
 * file is the width rule, and sizing for a fingertip.
 */

/*
 * THE LAYOUT IS ALWAYS ON HERE, AT ANY WIDTH.
 *
 * On the customer menu the tiles are gated at 1024px, so that a phone keeps its own menu. A tablet
 * on a stand is very often 768 wide in portrait and must get the tiles anyway, so this screen asks
 * for them unconditionally.
 */
#wr-desk {
	/*
	 * THE RAIL IS TALLER HERE, BECAUSE THE CHIPS IN IT ARE BIGGER.
	 *
	 * Measured: the shared layout gives the rail 116px, and the kiosk gives each chip a 78px
	 * photograph. 78 + 7 of gap + a 17px label + the chip's own 8px of padding + the rail's 24px
	 * of padding comes to 134, and the LABEL was the part that fell off the bottom. A rail of
	 * photographs with no names is a rail nobody can use, and the arithmetic is the only way to
	 * see it: the strip still looked deliberate.
	 */
	--wd-rail: 140px;
	display: block !important;
}

/* A fingertip is the only pointer: every control a customer has to hit is at least 44px. */
.wd-add,
.wd-place {
	min-height: 46px;
}

.wd-add {
	min-width: 92px;
	font-size: 15px;
}

.wd-step {
	height: 46px;
}

.wd-step button {
	width: 44px;
	font-size: 20px;
}

.wd-mini {
	width: 40px;
	height: 40px;
	font-size: 18px;
}

.wd-line {
	padding: 12px 8px;
}

/* A bigger dish on the line: a thumb is a thumb on a laptop, and a target on a tablet. */
.wd-line {
	grid-template-columns: 54px minmax(0, 1fr) auto;
}

.wd-line-pic {
	width: 54px;
	height: 54px;
	border-radius: 12px;
}

.wd-line-name {
	font-size: 15px;
}

.wd-field {
	height: 48px;
	font-size: 15px;
}

/* Bigger chips, because the rail is how a customer moves around the shop's menu. */
.wd-chip {
	width: 104px;
}

.wd-chip-pic {
	width: 78px;
	height: 78px;
	border-radius: 16px;
}

.wd-chip-name {
	font-size: 13px;
}

/* A tablet has no pointer, so nothing depends on hovering. */
.wd-tile:hover {
	transform: none;
}

/*
 * PORTRAIT. The basket cannot hold a column of its own next to the dishes at this width, so it
 * moves below them rather than being squeezed to a strip: a basket 200px wide is a basket nobody
 * can read, and the total is the one number on this screen that has to be legible.
 */
@media (max-width: 900px) {
	.wd-main {
		grid-template-columns: minmax(0, 1fr);
	}

	.wd-basket {
		position: static;
		max-height: none;
	}
}

/*
 * The tall layouts above assume a tablet the customer is looking down at. A short screen — a
 * counter tablet in landscape, which is how most of these are mounted — gives the rail its 116px
 * and needs the rest to still make sense, so the hero band is the first thing to go.
 */
@media (max-height: 700px) {
	.wd-hero {
		height: 150px;
	}
}
