/* Lovely Evermile — checkout slot grid. Cream/green to match the site. */
.lr-em-grid {
	--lr-green: #4a5a39;
	--lr-green-dark: #3b4a2d;
	--lr-cream: #fbf6e9;
	--lr-line: #e6ddc6;
	--lr-text: #2f2a1e;
	--lr-muted: #8a8268;
	margin: 6px 0 4px;
	font-size: 14px;
	color: var(--lr-text);
}

.lr-em-note {
	margin: 10px 0;
	padding: 12px 14px;
	background: var(--lr-cream);
	border: 1px solid var(--lr-line);
	border-radius: 8px;
	color: var(--lr-muted);
	font-size: 13px;
	line-height: 1.5;
}

/* The delivery fields sit in a CSS grid, so span every column to fill the box. */
.lr-em-grid { display: block; width: 100%; grid-column: 1 / -1; }
#lr-em-flat-note { grid-column: 1 / -1; }
.lr-em-grid__body {
	width: 100%;
	margin-top: 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Columns size to their content (min 80px) and the table stretches to fill the
   box; if all seven days don't fit, the body scrolls horizontally. */
.lr-em-grid__table {
	border-collapse: separate;
	border-spacing: 8px;
	width: 100%;
}

.lr-em-grid__corner { width: 110px; }

.lr-em-grid__date {
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	color: var(--lr-text);
	padding: 2px 4px 4px;
	white-space: nowrap;
	min-width: 80px;
}

.lr-em-grid__row-head {
	text-align: left;
	vertical-align: middle;
	padding-right: 8px;
	line-height: 1.2;
	width: 110px;
}
.lr-em-grid__row-label { display: block; font-weight: 700; font-size: 15px; }
.lr-em-grid__row-sub { display: block; font-size: 12px; color: var(--lr-muted); }

.lr-em-grid__cell { padding: 0; text-align: center; }
.lr-em-grid__cell.is-empty {
	background: repeating-linear-gradient( 135deg, #f4f0e4, #f4f0e4 7px, #efe9d9 7px, #efe9d9 14px );
	border-radius: 10px;
}

.lr-em-grid__btn {
	display: block;
	width: 100%;
	min-width: 80px;
	padding: 18px 10px;
	border: 1px solid var(--lr-line);
	border-radius: 10px;
	background: #fff;
	color: var(--lr-text);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .12s, background .12s, color .12s, box-shadow .12s;
}
.lr-em-grid__btn:hover {
	border-color: var(--lr-green);
	box-shadow: 0 0 0 1px var(--lr-green) inset;
}
.lr-em-grid__btn.is-selected {
	background: var(--lr-green);
	border-color: var(--lr-green-dark);
	color: #fff;
}
.lr-em-grid__btn:focus-visible { outline: 2px solid var(--lr-green); outline-offset: 2px; }

.lr-em-grid__hint { margin: 12px 2px 0; font-size: 12px; color: var(--lr-muted); }

.lr-em-toggles { margin: 16px 0 2px; display: flex; flex-direction: column; gap: 10px; }
.lr-em-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}
.lr-em-toggle input { width: 18px; height: 18px; accent-color: var(--lr-green); flex: 0 0 auto; margin: 0; }
/* Don't inherit the theme's cramped uppercase label styling. */
.lr-em-toggle span {
	text-transform: none;
	letter-spacing: normal;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.35;
	color: var(--lr-text);
}

/* Phones: slightly tighter, still scrolls. */
@media ( max-width: 600px ) {
	.lr-em-grid__table { border-spacing: 6px; }
	.lr-em-grid__btn { padding: 14px 8px; font-size: 15px; }
	.lr-em-grid__corner, .lr-em-grid__row-head { width: 96px; }
}
