/* Comptoir Pro: options / formula dialog, time slot picker. Uses the free plugin variables. */
/* Options and formulas are shown in the free plugin's product window. */
.dstk-comptoir-pro-slot {
	width: 100%;
}


/* Photo of a choice (drink, sauce, dish of a menu), between the round and the name */
.dstk-comptoir-tile.has-image {
	padding-top: 8px;
	padding-bottom: 8px;
}
.dstk-comptoir-tile__img {
	display: block;
	flex: none;
	width: 48px;
	height: 48px;
	margin: 0;
	object-fit: cover;
	border-radius: 8px;
	background: #f3f4f6;
}

/* Points of sale: bar above the menu and choice dialog.
 * The dialog is added to <body>, outside the Comptoir widgets: pro-locations.js copies the accent of the
 * menu on it; otherwise the accent of the page (frontend.js) is used. The buttons repeat their type in the
 * selectors so the theme button styles (Hello Elementor reset: pink hover, nowrap) do not win. */
.dstk-comptoir-loc-bar,
.dstk-comptoir-loc-dialog,
.dstk-comptoir-loc-form {
	--dstk-loc-accent: var(--dstk-comptoir-accent, var(--dstk-comptoir-page-accent, #c2410c));
	--dstk-loc-muted: var(--dstk-comptoir-muted, #555);
}
.dstk-comptoir-loc-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
}
.dstk-comptoir-loc-bar__where {
	color: var(--dstk-loc-muted);
	font-size: 0.9em;
}
.dstk-comptoir-loc-bar__change[type="button"],
.dstk-comptoir-loc-bar__change[type="button"]:hover,
.dstk-comptoir-loc-bar__change[type="button"]:focus {
	margin-left: auto;
	padding: 6px 12px;
	border: 1px solid var(--dstk-loc-accent);
	border-radius: 999px;
	background: transparent;
	color: var(--dstk-loc-accent);
	font: inherit;
	line-height: 1.3;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
}
.dstk-comptoir-loc-bar__change[type="button"]:hover,
.dstk-comptoir-loc-bar__change[type="button"]:focus-visible {
	background: var(--dstk-loc-accent);
	color: #fff;
}
.dstk-comptoir-loc-lock body {
	overflow: hidden;
}
.dstk-comptoir-loc-dialog {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.55);
}
.dstk-comptoir-loc-dialog__box {
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 20px;
	border-radius: 16px;
	background: #fff;
	color: #1d2327;
}
.dstk-comptoir-loc-dialog__box h2 {
	margin: 0 0 6px;
}
.dstk-comptoir-loc-dialog__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0 0;
}
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"],
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"]:hover,
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"]:focus,
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"]:active {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: 14px;
	border: 2px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
	color: #1d2327;
	box-shadow: none;
	font: inherit;
	line-height: 1.35;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
	overflow-wrap: anywhere;
	cursor: pointer;
}
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"]:hover,
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"]:focus-visible,
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"].is-current {
	border-color: var(--dstk-loc-accent);
}
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"].is-current {
	box-shadow: inset 0 0 0 1px var(--dstk-loc-accent);
}
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"]:focus-visible {
	outline: 2px solid var(--dstk-loc-accent);
	outline-offset: 2px;
}
.dstk-comptoir-loc-card > span,
.dstk-comptoir-loc-card > strong {
	display: block;
	max-width: 100%;
}
.dstk-comptoir-loc-card__type {
	font-size: 0.75em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--dstk-loc-accent);
}
.dstk-comptoir-loc-card__name {
	font-size: 1.1em;
	color: #1d2327;
}
.dstk-comptoir-loc-card__where,
.dstk-comptoir-loc-card__detail,
.dstk-comptoir-loc-card__modes {
	font-size: 0.9em;
	color: var(--dstk-loc-muted);
}
.dstk-comptoir-loc-card__today {
	font-size: 0.9em;
	color: var(--dstk-loc-muted);
}
.dstk-comptoir-loc-card.is-open .dstk-comptoir-loc-card__today {
	color: #15803d;
	font-weight: 600;
}
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-dialog__close[type="button"],
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-dialog__close[type="button"]:hover,
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-dialog__close[type="button"]:focus {
	margin-top: 16px;
	padding: 8px 14px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 999px;
	background: transparent;
	color: #1d2327;
	font: inherit;
	text-transform: none;
	white-space: normal;
	cursor: pointer;
}
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-dialog__close[type="button"]:hover {
	border-color: var(--dstk-loc-accent);
	color: var(--dstk-loc-accent);
}
.dstk-comptoir-loc-form {
	margin: 0 0 12px;
	padding: 8px 12px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.04);
	border-left: 3px solid var(--dstk-loc-accent);
}

/* Card of a point of sale: one line per point of sale, the state of today in colour. */
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"]:is(*, :hover, :focus, :active) {
	gap: 3px;
	padding: 14px 16px;
	border-width: 1px;
}
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"]:is(:hover, :focus-visible) {
	background: color-mix(in srgb, var(--dstk-loc-accent) 4%, #fff);
}
.dstk-comptoir-loc-dialog .dstk-comptoir-loc-card[type="button"].is-current {
	background: color-mix(in srgb, var(--dstk-loc-accent) 6%, #fff);
}
.dstk-comptoir-loc-card__type {
	align-self: flex-start;
	padding: 1px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--dstk-loc-accent) 12%, #fff);
}
.dstk-comptoir-loc-card.is-closed .dstk-comptoir-loc-card__today {
	color: #6b7280;
}
.dstk-comptoir-loc-bar {
	padding: 12px 16px;
	border-color: #e5e7eb;
	border-radius: 14px;
	line-height: 1.4;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
