/* Comptoir – menu and cart. Colours are CSS variables so Elementor, the block settings and themes can change them. */

/* The cart, the windows and the Pro widgets take the accent of the menu of the page
 * (copied on <html> by frontend.js), unless they have their own. */
.dstk-comptoir-menu,
.dstk-comptoir-cart {
	--dstk-comptoir-accent: #c2410c;
	--dstk-comptoir-accent-text: #fff;
	--dstk-comptoir-text: inherit;
	--dstk-comptoir-muted: #6b7280;
	--dstk-comptoir-surface: #fff;
	--dstk-comptoir-border: #e5e7eb;
	--dstk-comptoir-radius: 12px;
	--dstk-comptoir-gap: 20px;
	color: var(--dstk-comptoir-text);
	box-sizing: border-box;
}

.dstk-comptoir-cart {
	--dstk-comptoir-accent: var(--dstk-comptoir-page-accent, #c2410c);
	--dstk-comptoir-accent-text: var(--dstk-comptoir-page-accent-text, #fff);
}

.dstk-comptoir-menu *,
.dstk-comptoir-cart * {
	box-sizing: border-box;
}

.dstk-comptoir-sr,
.dstk-comptoir-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Menu ---------- */

.dstk-comptoir-menu__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 var(--dstk-comptoir-gap);
	position: sticky;
	/* Below the WordPress toolbar and below a fixed theme header (offset set in Elementor or by the theme). */
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--dstk-comptoir-sticky-offset, 0px));
	/* Below a fixed or sticky header found by the script (if lower than the offset above). */
	top: max(var(--dstk-comptoir-auto-top, 0px), calc(var(--wp-admin--admin-bar--height, 0px) + var(--dstk-comptoir-sticky-offset, 0px)));
	z-index: 20;
	padding: 8px 0;
	/* Opaque: the dishes slide under the bar. The script copies the page background when the theme has one. */
	background: var(--dstk-comptoir-nav-bg, var(--dstk-comptoir-surface));
}

/* A category reached from the bar shows its title below the header and the bar. */
.dstk-comptoir-menu__category {
	scroll-margin-top: calc(max(var(--dstk-comptoir-auto-top, 0px), calc(var(--wp-admin--admin-bar--height, 0px) + var(--dstk-comptoir-sticky-offset, 0px))) + var(--dstk-comptoir-nav-height, 56px) + 8px);
}

/* Phones: the WordPress toolbar scrolls away with the page. */
@media (max-width: 600px) {
	.dstk-comptoir-menu__nav {
		top: max(var(--dstk-comptoir-auto-top, 0px), var(--dstk-comptoir-sticky-offset, 0px));
	}
}

/* Tablets and phones: one line of categories that scrolls sideways, so the bar stays low. */
@media (max-width: 1024px) {
	.dstk-comptoir-menu__nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.dstk-comptoir-menu__nav::-webkit-scrollbar {
		display: none;
	}
	.dstk-comptoir-menu__nav-link {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

.dstk-comptoir-menu__nav-link {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
	font-size: 0.95em;
}

.dstk-comptoir-menu__nav-link:hover,
.dstk-comptoir-menu__nav-link:focus-visible {
	border-color: var(--dstk-comptoir-accent);
	color: var(--dstk-comptoir-accent);
}

.dstk-comptoir-menu__category {
	margin: 0 0 calc(var(--dstk-comptoir-gap) * 1.6);
}

/* Category links land below the sticky bar (two classes: themes style `:target`). */
.dstk-comptoir-menu .dstk-comptoir-menu__category {
	scroll-margin-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--dstk-comptoir-sticky-offset, 0px) + 72px);
}

.dstk-comptoir-menu__category-title {
	margin: 0 0 6px;
}

.dstk-comptoir-menu__category-desc {
	margin: 0 0 12px;
	color: var(--dstk-comptoir-muted);
}

.dstk-comptoir-menu__items {
	display: grid;
	gap: var(--dstk-comptoir-gap);
	grid-template-columns: repeat(var(--dstk-comptoir-columns, 3), minmax(0, 1fr));
}

.dstk-comptoir-menu.is-list .dstk-comptoir-menu__items {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 1024px) {
	.dstk-comptoir-menu.is-grid .dstk-comptoir-menu__items {
		grid-template-columns: repeat(min(var(--dstk-comptoir-columns, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.dstk-comptoir-menu.is-grid .dstk-comptoir-menu__items {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.dstk-comptoir-menu.is-cards .dstk-comptoir-menu__items {
		grid-template-columns: repeat(min(var(--dstk-comptoir-columns, 3), 2), minmax(0, 1fr));
		gap: 14px;
	}
}

.dstk-comptoir-item {
	display: flex;
	flex-direction: column;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	background: var(--dstk-comptoir-surface);
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: var(--dstk-comptoir-radius);
	overflow: hidden;
}

.dstk-comptoir-menu.is-list .dstk-comptoir-item {
	flex-direction: row;
	align-items: stretch;
}

.dstk-comptoir-item__image {
	overflow: hidden;
}

.dstk-comptoir-item__image img {
	display: block;
	transition: transform 0.3s ease;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	height: auto;
}

.dstk-comptoir-menu.is-list .dstk-comptoir-item__image {
	flex: 0 0 var(--dstk-comptoir-image-width, min(32%, 180px));
}

.dstk-comptoir-menu.is-list .dstk-comptoir-item__image img {
	height: 100%;
	aspect-ratio: 1 / 1;
}

.dstk-comptoir-item__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 14px 16px 16px;
}

.dstk-comptoir-item__title {
	margin: 0;
	font-size: 1.1em;
}

.dstk-comptoir-item__desc {
	color: var(--dstk-comptoir-muted);
	font-size: 0.95em;
}

.dstk-comptoir-item__desc p {
	margin: 0 0 4px;
}

.dstk-comptoir-item__allergens {
	margin: 0;
	font-size: 0.85em;
	color: var(--dstk-comptoir-muted);
}

.dstk-comptoir-item__allergens-label {
	font-weight: 600;
}

.dstk-comptoir-item__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: var(--dstk-comptoir-justify, space-between);
	gap: 10px;
	margin-top: auto;
}

.dstk-comptoir-item__price {
	font-weight: 700;
	font-size: 1.05em;
}

.dstk-comptoir-item__sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	border: 0;
	flex: 1 1 100%;
	justify-content: var(--dstk-comptoir-justify, flex-start);
}

.dstk-comptoir-size {
	position: relative;
	cursor: pointer;
}

.dstk-comptoir-size input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.dstk-comptoir-size__label,
.dstk-comptoir-size__price {
	pointer-events: none;
}

.dstk-comptoir-size {
	display: inline-flex;
	gap: 6px;
	align-items: baseline;
	padding: 6px 12px;
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: 999px;
	font-size: 0.9em;
}

.dstk-comptoir-size__price {
	font-weight: 700;
}

.dstk-comptoir-size:has(input:checked) {
	border-color: var(--dstk-comptoir-accent);
	box-shadow: inset 0 0 0 1px var(--dstk-comptoir-accent);
}

.dstk-comptoir-size:has(input:focus-visible) {
	outline: 2px solid var(--dstk-comptoir-accent);
	outline-offset: 2px;
}

.dstk-comptoir-item__add,
.dstk-comptoir-submit,
.dstk-comptoir-cart__toggle {
	appearance: none;
	border: 0;
	border-radius: 999px;
	background: var(--dstk-comptoir-accent);
	color: var(--dstk-comptoir-accent-text);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.dstk-comptoir-item__add {
	padding: 9px 18px;
	margin-left: var(--dstk-comptoir-add-margin, auto);
}

.dstk-comptoir-item__add:hover,
.dstk-comptoir-submit:hover:not(:disabled),
.dstk-comptoir-cart__toggle:hover {
	filter: brightness(0.92);
}

.dstk-comptoir-item__add.is-added {
	transform: scale(1.06);
}

.dstk-comptoir-item.is-unavailable {
	opacity: 0.6;
}

.dstk-comptoir-item__unavailable {
	margin-left: auto;
	font-size: 0.9em;
	color: var(--dstk-comptoir-muted);
}

/* Photo on the side of the card (grid and list). */
.dstk-comptoir-menu.has-image-left .dstk-comptoir-item,
.dstk-comptoir-menu.has-image-right .dstk-comptoir-item {
	flex-direction: row;
	align-items: stretch;
}

.dstk-comptoir-menu.has-image-right .dstk-comptoir-item {
	flex-direction: row-reverse;
}

.dstk-comptoir-menu.is-grid.has-image-left .dstk-comptoir-item__image,
.dstk-comptoir-menu.is-grid.has-image-right .dstk-comptoir-item__image {
	flex: 0 0 var(--dstk-comptoir-image-width, 38%);
}

.dstk-comptoir-menu.has-image-left .dstk-comptoir-item__image img,
.dstk-comptoir-menu.has-image-right .dstk-comptoir-item__image img {
	height: 100%;
}

.dstk-comptoir-menu.is-list.has-image-top .dstk-comptoir-item {
	flex-direction: column;
}

.dstk-comptoir-item__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: var(--dstk-comptoir-justify, flex-start);
}

.dstk-comptoir-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--dstk-comptoir-accent) 10%, transparent);
	color: var(--dstk-comptoir-accent);
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.4;
}

/* ---------- Icons on the photo ---------- */

.dstk-comptoir-item__image {
	position: relative;
}

.dstk-comptoir-item__labels {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	gap: 4px;
	z-index: 1;
}

.dstk-comptoir-item__title .dstk-comptoir-item__labels {
	position: static;
	display: inline-flex;
	margin-left: 6px;
	vertical-align: middle;
}

.dstk-comptoir-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fff;
	color: var(--dstk-comptoir-label-color, #374151);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* ---------- Simple cards (photo, name, price; details in the product window) ---------- */

.dstk-comptoir-menu.is-cards .dstk-comptoir-item {
	background: transparent;
	border: 0;
	border-radius: 0;
	overflow: visible;
	cursor: pointer;
}

.dstk-comptoir-menu.is-cards .dstk-comptoir-item__image {
	border-radius: var(--dstk-comptoir-radius);
	overflow: hidden;
	background: color-mix(in srgb, var(--dstk-comptoir-accent) 6%, #f5f5f4);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dstk-comptoir-menu.is-cards .dstk-comptoir-item__image img {
	aspect-ratio: 4 / 3;
}

.dstk-comptoir-item__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	font-size: 3em;
	font-weight: 700;
	color: color-mix(in srgb, var(--dstk-comptoir-accent) 45%, #fff);
}

.dstk-comptoir-menu.is-cards .dstk-comptoir-item:hover .dstk-comptoir-item__image img {
	transform: scale(1.04);
}

.dstk-comptoir-menu.is-cards .dstk-comptoir-item__add,
.dstk-comptoir-menu.is-cards .dstk-comptoir-item__unavailable {
	position: absolute;
	right: 10px;
	bottom: 10px;
	margin: 0;
	z-index: 1;
}

.dstk-comptoir-menu.is-cards .dstk-comptoir-item__add {
	padding: 8px 16px;
	background: #fff;
	color: #111827;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dstk-comptoir-menu.is-cards .dstk-comptoir-item:hover .dstk-comptoir-item__add,
.dstk-comptoir-menu.is-cards .dstk-comptoir-item__add:focus-visible {
	background: var(--dstk-comptoir-accent);
	color: var(--dstk-comptoir-accent-text);
	filter: none;
}

.dstk-comptoir-menu.is-cards .dstk-comptoir-item__unavailable {
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
}

.dstk-comptoir-menu.is-cards .dstk-comptoir-item__body {
	gap: 2px;
	padding: 10px 2px 0;
}

.dstk-comptoir-menu.is-cards .dstk-comptoir-item__title {
	font-size: 1em;
	font-weight: 600;
}

.dstk-comptoir-menu.is-cards .dstk-comptoir-item__price {
	margin: 0;
	font-size: 0.92em;
	font-weight: 400;
	color: var(--dstk-comptoir-muted);
}

.dstk-comptoir-menu__empty {
	color: var(--dstk-comptoir-muted);
}

/* ---------- Cart ---------- */

.dstk-comptoir-cart__toggle {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 99990;
	display: inline-flex;
	gap: 10px;
	align-items: center;
	padding: 14px 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.dstk-comptoir-cart.is-left .dstk-comptoir-cart__toggle {
	right: auto;
	left: 20px;
}

.dstk-comptoir-cart__toggle.is-empty {
	display: none;
}

.dstk-comptoir-cart__toggle.is-bump {
	animation: dstk-comptoir-bump 0.4s ease;
}

@keyframes dstk-comptoir-bump {
	50% { transform: scale(1.1); }
}

.dstk-comptoir-cart__toggle-count {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--dstk-comptoir-accent-text);
	color: var(--dstk-comptoir-accent);
	font-size: 0.85em;
}

.dstk-comptoir-cart__backdrop {
	position: fixed;
	inset: 0;
	z-index: 99991;
	background: rgba(0, 0, 0, 0.4);
}

.dstk-comptoir-cart.is-floating .dstk-comptoir-cart__panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 99992;
	width: min(440px, 100vw);
	overflow-y: auto;
	padding: 20px;
	background: var(--dstk-comptoir-surface);
	box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

.dstk-comptoir-cart.is-floating.is-left .dstk-comptoir-cart__panel {
	right: auto;
	left: 0;
}

.dstk-comptoir-cart [hidden] {
	display: none !important;
}

html.dstk-comptoir-locked {
	overflow: hidden;
}

.dstk-comptoir-cart.is-inline .dstk-comptoir-cart__panel {
	padding: 20px;
	background: var(--dstk-comptoir-surface);
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: var(--dstk-comptoir-radius);
}

.dstk-comptoir-cart__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.dstk-comptoir-cart__title {
	margin: 0;
}

.dstk-comptoir-cart__close {
	appearance: none;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	padding: 4px 8px;
}

.dstk-comptoir-cart__empty,
.dstk-comptoir-hint,
.dstk-comptoir-terms {
	color: var(--dstk-comptoir-muted);
	font-size: 0.9em;
}

.dstk-comptoir-cart__notice {
	padding: 10px 12px;
	border-radius: 8px;
	background: #fef3c7;
	color: #78350f;
}

.dstk-comptoir-cart__lines {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.dstk-comptoir-cart__line {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 10px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid var(--dstk-comptoir-border);
}

.dstk-comptoir-cart__line-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.dstk-comptoir-cart__line-name {
	font-weight: 600;
}

.dstk-comptoir-cart__line-meta {
	font-size: 0.85em;
	color: var(--dstk-comptoir-muted);
}

.dstk-comptoir-cart__line-error,
.dstk-comptoir-cart__error {
	color: #b91c1c;
	font-size: 0.9em;
}

.dstk-comptoir-cart__line-total {
	font-weight: 600;
	white-space: nowrap;
}

.dstk-comptoir-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: 999px;
}

.dstk-comptoir-qty__btn {
	appearance: none;
	border: 0;
	background: none;
	width: 32px;
	height: 32px;
	font-size: 18px;
	cursor: pointer;
	color: inherit;
}

.dstk-comptoir-qty__value {
	min-width: 20px;
	text-align: center;
}

.dstk-comptoir-checkout fieldset {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

.dstk-comptoir-checkout legend {
	margin-bottom: 8px;
	font-weight: 600;
}

.dstk-comptoir-choice {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dstk-comptoir-choice.is-payment {
	flex-direction: column;
}

.dstk-comptoir-choice__option {
	display: flex;
	gap: 8px;
	align-items: center;
	flex: 1 1 auto;
	padding: 10px 12px;
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: 10px;
	cursor: pointer;
}

.dstk-comptoir-choice__option.is-checked {
	border-color: var(--dstk-comptoir-accent);
	box-shadow: inset 0 0 0 1px var(--dstk-comptoir-accent);
}

.dstk-comptoir-choice__option input {
	accent-color: var(--dstk-comptoir-accent);
	margin: 0;
}

.dstk-comptoir-fields {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.dstk-comptoir-fields legend {
	grid-column: 1 / -1;
}

.dstk-comptoir-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
}

.dstk-comptoir-field.is-wide {
	grid-column: 1 / -1;
}

.dstk-comptoir-field label {
	font-size: 0.9em;
}

.dstk-comptoir-field input,
.dstk-comptoir-field textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: 8px;
	font: inherit;
	background: #fff;
	color: #111827;
}

.dstk-comptoir-field input:focus,
.dstk-comptoir-field textarea:focus {
	outline: 2px solid var(--dstk-comptoir-accent);
	outline-offset: 0;
	border-color: transparent;
}

.dstk-comptoir-totals {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 12px;
	margin: 0 0 12px;
}

.dstk-comptoir-totals dt,
.dstk-comptoir-totals dd {
	margin: 0;
}

.dstk-comptoir-totals dd {
	text-align: right;
}

.dstk-comptoir-totals .is-total {
	font-weight: 700;
	font-size: 1.1em;
	padding-top: 6px;
	border-top: 1px solid var(--dstk-comptoir-border);
}

.dstk-comptoir-submit {
	width: 100%;
	padding: 14px 20px;
	font-size: 1.05em;
}

.dstk-comptoir-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.dstk-comptoir-confirm__title {
	font-size: 1.15em;
	font-weight: 700;
	margin: 0 0 8px;
}

.dstk-comptoir-confirm__lines {
	list-style: none;
	margin: 12px 0;
	padding: 0;
}

.dstk-comptoir-confirm__lines li,
.dstk-comptoir-confirm__total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid var(--dstk-comptoir-border);
	margin: 0;
}

.dstk-comptoir-confirm.is-rejected .dstk-comptoir-confirm__status,
.dstk-comptoir-confirm.is-cancelled .dstk-comptoir-confirm__status {
	color: #b91c1c;
}

/* Order timeline. */
.dstk-comptoir-steps {
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	list-style: none;
	margin: 16px 0 8px;
	padding: 0;
	counter-reset: none;
}

.dstk-comptoir-steps__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0 2px;
	text-align: center;
	font-size: 12px;
	line-height: 1.25;
}

.dstk-comptoir-steps__step::before {
	content: "";
	position: absolute;
	top: 7px;
	right: 50%;
	left: -50%;
	height: 2px;
	background: var(--dstk-comptoir-border);
}

.dstk-comptoir-steps__step:first-child::before {
	display: none;
}

.dstk-comptoir-steps__step.is-done::before,
.dstk-comptoir-steps__step.is-current::before {
	background: var(--dstk-comptoir-accent);
}

.dstk-comptoir-steps__dot {
	position: relative;
	z-index: 1;
	width: 16px;
	height: 16px;
	border: 2px solid var(--dstk-comptoir-border);
	border-radius: 50%;
	background: #fff;
	box-sizing: border-box;
}

.dstk-comptoir-steps__step.is-done .dstk-comptoir-steps__dot {
	border-color: var(--dstk-comptoir-accent);
	background: var(--dstk-comptoir-accent);
}

.dstk-comptoir-steps__step.is-current .dstk-comptoir-steps__dot {
	border-color: var(--dstk-comptoir-accent);
	background: var(--dstk-comptoir-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--dstk-comptoir-accent) 25%, transparent);
	animation: dstk-comptoir-pulse 1.6s ease-in-out infinite;
}

.dstk-comptoir-steps__step.is-todo {
	opacity: 0.55;
}

.dstk-comptoir-steps__step.is-current .dstk-comptoir-steps__label {
	font-weight: 700;
}

.dstk-comptoir-steps__time {
	font-size: 11px;
	opacity: 0.8;
}

@keyframes dstk-comptoir-pulse {
	50% {
		box-shadow: 0 0 0 7px color-mix(in srgb, var(--dstk-comptoir-accent) 10%, transparent);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dstk-comptoir-steps__step.is-current .dstk-comptoir-steps__dot {
		animation: none;
	}
}

.dstk-comptoir-confirm__slip {
	margin: 12px 0 0;
}

.dstk-comptoir-confirm__slip a {
	color: var(--dstk-comptoir-accent);
	font-weight: 600;
}

.dstk-comptoir-confirm__slip small {
	display: block;
	opacity: 0.75;
}

.dstk-comptoir-link {
	appearance: none;
	border: 0;
	background: none;
	padding: 0;
	margin-top: 12px;
	color: var(--dstk-comptoir-accent);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

@media (max-width: 480px) {
	.dstk-comptoir-fields {
		grid-template-columns: 1fr;
	}

	.dstk-comptoir-cart__toggle {
		left: 16px;
		right: 16px;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dstk-comptoir-cart__toggle.is-bump,
	.dstk-comptoir-item__add {
		animation: none;
		transition: none;
	}
}

/* ---------- Product window ---------- */

html.dstk-comptoir-locked {
	overflow: hidden;
}

.dstk-comptoir-product-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(17, 24, 39, 0.55);
	animation: dstk-comptoir-fade 0.15s ease;
}

.dstk-comptoir-product {
	--dstk-comptoir-accent: var(--dstk-comptoir-product-accent, var(--dstk-comptoir-page-accent, #c2410c));
	--dstk-comptoir-accent-text: var(--dstk-comptoir-product-accent-text, var(--dstk-comptoir-page-accent-text, #fff));
	display: flex;
	flex-direction: column;
	width: min(560px, 100%);
	max-height: min(92vh, 900px);
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	color: #111827;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	animation: dstk-comptoir-rise 0.2s ease;
}

.dstk-comptoir-product * {
	box-sizing: border-box;
}

.dstk-comptoir-product__scroll {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.dstk-comptoir-product__hero {
	position: relative;
	background: #f5f5f4;
}

.dstk-comptoir-product__hero img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.dstk-comptoir-product__hero.is-empty {
	min-height: 56px;
}

.dstk-comptoir-product__hero .dstk-comptoir-item__labels {
	top: auto;
	bottom: 12px;
	left: 16px;
}

.dstk-comptoir-product__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111827;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dstk-comptoir-product__head {
	padding: 18px 20px 8px;
}

.dstk-comptoir-product__title {
	margin: 0 0 4px;
	font-size: 1.5em;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.dstk-comptoir-product__from {
	margin: 0 0 10px;
	color: #6b7280;
}

.dstk-comptoir-product__desc,
.dstk-comptoir-product__allergens {
	margin: 0 0 10px;
	font-size: 0.95em;
	line-height: 1.5;
}

.dstk-comptoir-product__allergens {
	color: #6b7280;
	font-size: 0.85em;
}

/* Accordion */
.dstk-comptoir-acc {
	border-top: 1px solid #e5e7eb;
}

.dstk-comptoir-acc.is-open {
	background: #fafafa;
}

.dstk-comptoir-acc__head {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 16px 20px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.dstk-comptoir-acc__title {
	flex: 1;
	font-weight: 700;
	font-size: 1.05em;
}

.dstk-comptoir-acc__rule {
	display: block;
	font-weight: 400;
	font-size: 0.78em;
	color: #6b7280;
}

.dstk-comptoir-acc__pill {
	max-width: 50%;
	overflow: hidden;
	padding: 3px 10px;
	border-radius: 999px;
	background: #e5e7eb;
	font-size: 0.82em;
	font-weight: 600;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.dstk-comptoir-acc__pill.is-todo {
	background: color-mix(in srgb, var(--dstk-comptoir-accent) 14%, #fff);
	color: var(--dstk-comptoir-accent);
}

.dstk-comptoir-acc.is-error .dstk-comptoir-acc__pill.is-todo {
	background: #fee2e2;
	color: #b91c1c;
}

.dstk-comptoir-acc__chevron {
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.15s ease;
}

.dstk-comptoir-acc.is-open .dstk-comptoir-acc__chevron {
	transform: rotate(-135deg) translateY(-1px);
}

.dstk-comptoir-acc__body {
	padding: 0 20px 18px;
}

/* Choice tiles */
.dstk-comptoir-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.dstk-comptoir-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 58px;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	background: #fff;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dstk-comptoir-tile input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.dstk-comptoir-tile__label {
	font-weight: 600;
	font-size: 0.93em;
	line-height: 1.25;
}

.dstk-comptoir-tile__price {
	font-size: 0.85em;
	color: #4b5563;
}

.dstk-comptoir-tile:has(input:checked) {
	border-color: var(--dstk-comptoir-accent);
	box-shadow: inset 0 0 0 1px var(--dstk-comptoir-accent);
}

.dstk-comptoir-tile:has(input[type="checkbox"]:checked)::after {
	content: "✓";
	position: absolute;
	top: 4px;
	right: 8px;
	font-size: 0.8em;
	font-weight: 700;
	color: var(--dstk-comptoir-accent);
}

.dstk-comptoir-tile:has(input:focus-visible) {
	outline: 2px solid var(--dstk-comptoir-accent);
	outline-offset: 2px;
}

.dstk-comptoir-tile:has(input:disabled) {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Footer: quantity and add button */
.dstk-comptoir-product__foot {
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #e5e7eb;
	background: #fff;
}

.dstk-comptoir-product__error {
	margin: 0 0 8px;
	color: #b91c1c;
	font-size: 0.9em;
}

.dstk-comptoir-product__actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.dstk-comptoir-product__qty {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px;
	border-radius: 999px;
	background: #f3f4f6;
}

.dstk-comptoir-product__qty .dstk-comptoir-qty__btn {
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	font-size: 20px;
	cursor: pointer;
}

.dstk-comptoir-product__qty .dstk-comptoir-qty__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.dstk-comptoir-product__qty-value {
	min-width: 20px;
	text-align: center;
	font-weight: 700;
}

.dstk-comptoir-product__add {
	flex: 1;
	padding: 14px 18px;
	font-size: 1em;
}

@keyframes dstk-comptoir-fade {
	from { opacity: 0; }
}

@keyframes dstk-comptoir-rise {
	from { transform: translateY(16px); opacity: 0; }
}

/* Phones: bottom sheet, full height. */
@media (max-width: 600px) {
	.dstk-comptoir-product-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.dstk-comptoir-product {
		width: 100%;
		max-height: 94vh;
		border-radius: 18px 18px 0 0;
	}

	.dstk-comptoir-product__title {
		font-size: 1.3em;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dstk-comptoir-product-overlay,
	.dstk-comptoir-product {
		animation: none;
	}
}

/* ------------------------------------------------ Delivery or pickup bar */

.dstk-comptoir-orderbar {
	margin: 0 0 16px;
}

.dstk-comptoir-orderbar__btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: 640px;
	padding: 10px 16px;
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: 999px;
	background: var(--dstk-comptoir-surface);
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dstk-comptoir-orderbar__btn:hover,
.dstk-comptoir-orderbar__btn:focus-visible {
	border-color: var(--dstk-comptoir-accent);
}

.dstk-comptoir-orderbar__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--dstk-comptoir-accent);
	color: var(--dstk-comptoir-accent-text);
}

.dstk-comptoir-orderbar__text {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	gap: 2px 8px;
	min-width: 0;
	font-size: 0.95em;
	line-height: 1.3;
}

.dstk-comptoir-orderbar__when::before,
.dstk-comptoir-orderbar__where::before {
	content: "·";
	margin-right: 8px;
	color: var(--dstk-comptoir-muted);
}

.dstk-comptoir-orderbar__where.is-todo {
	color: var(--dstk-comptoir-accent);
	font-weight: 600;
}

.dstk-comptoir-orderbar__change {
	flex: none;
	color: var(--dstk-comptoir-accent);
	font-size: 0.9em;
	font-weight: 600;
	text-decoration: underline;
}

.dstk-comptoir-orderbar__closed {
	margin: 8px 0 0;
	color: #b91c1c;
	font-size: 0.9em;
}

/* ------------------------------------------------ Delivery or pickup window */

.dstk-comptoir-product.is-details .dstk-comptoir-product__head {
	position: relative;
	padding-right: 64px;
}

.dstk-comptoir-product.is-details .dstk-comptoir-product__close {
	top: 14px;
	right: 14px;
	background: #f3f4f6;
	box-shadow: none;
}

.dstk-comptoir-details {
	display: grid;
	gap: 18px;
	padding: 0 22px 22px;
}

.dstk-comptoir-segment {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: #f3f4f6;
}

.dstk-comptoir-segment__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #374151;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.dstk-comptoir-segment__btn.is-on {
	background: var(--dstk-comptoir-accent);
	color: var(--dstk-comptoir-accent-text);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.dstk-comptoir-segment__icon {
	display: inline-flex;
}

.dstk-comptoir-details .dstk-comptoir-fields {
	margin: 0;
}

.dstk-comptoir-details__block {
	padding: 14px 16px;
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: 12px;
}

.dstk-comptoir-details__label {
	margin: 0 0 4px;
	color: var(--dstk-comptoir-muted);
	font-size: 0.85em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.dstk-comptoir-details__value {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}

.dstk-comptoir-details__value .is-open {
	color: #15803d;
	font-size: 0.9em;
}

.dstk-comptoir-details__value .is-closed {
	color: #b91c1c;
	font-size: 0.9em;
}

.dstk-comptoir-product.is-details .dstk-comptoir-product__add {
	flex: 1;
}

/* ================================================================
 * Theme-proof look (0.8.1).
 * Themes style every button and field (Hello Elementor: pink border and hover, no line break,
 * centred text). Their rules load after ours, so Comptoir controls carry one more attribute
 * ([type]) and list every state: they win over the theme in all states, while the Elementor
 * style controls ({{WRAPPER}} .class) still win over them.
 * ================================================================ */

:is(.dstk-comptoir-menu, .dstk-comptoir-cart, .dstk-comptoir-product) :is(button, [type="button"], [type="submit"]):is(*, :hover, :focus, :active) {
	white-space: normal;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	user-select: none;
}

:is(.dstk-comptoir-menu, .dstk-comptoir-cart, .dstk-comptoir-product) :is(button, [type="button"], [type="submit"]):focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

/* ---- Accent buttons: add, order, cart ---- */
.dstk-comptoir-item__add[type]:is(*, :hover, :focus, :active),
.dstk-comptoir-submit[type]:is(*, :hover, :focus, :active),
.dstk-comptoir-cart__toggle[type]:is(*, :hover, :focus, :active) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 999px;
	background: var(--dstk-comptoir-accent);
	color: var(--dstk-comptoir-accent-text);
	font: inherit;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.dstk-comptoir-item__add[type]:is(:hover, :focus-visible),
.dstk-comptoir-submit[type]:is(:hover, :focus-visible):not(:disabled),
.dstk-comptoir-cart__toggle[type]:is(:hover, :focus-visible) {
	filter: brightness(0.92);
}

.dstk-comptoir-item__add[type] {
	padding: 9px 18px;
}

.dstk-comptoir-submit[type] {
	width: 100%;
	min-height: 50px;
	padding: 14px 20px;
	font-size: 1.05em;
}

.dstk-comptoir-submit[type]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.dstk-comptoir-cart__toggle.is-empty[type]:is(*, :hover, :focus, :active) {
	display: none;
}

.dstk-comptoir-cart__toggle[type] {
	padding: 14px 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* Simple cards: white button on the photo, accent on hover. */
.dstk-comptoir-menu.is-cards .dstk-comptoir-item__add[type] {
	padding: 8px 16px;
	background: #fff;
	color: #111827;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.dstk-comptoir-menu.is-cards .dstk-comptoir-item:hover .dstk-comptoir-item__add[type],
.dstk-comptoir-menu.is-cards .dstk-comptoir-item__add[type]:focus-visible {
	background: var(--dstk-comptoir-accent);
	color: var(--dstk-comptoir-accent-text);
	filter: none;
}

/* ---- Quiet buttons: close, quantity, links ---- */
.dstk-comptoir-cart__close[type]:is(*, :hover, :focus, :active),
.dstk-comptoir-product__close[type]:is(*, :hover, :focus, :active) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #111827;
	font: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.dstk-comptoir-product__close[type]:is(*, :hover, :focus, :active) {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dstk-comptoir-product.is-details .dstk-comptoir-product__close[type]:is(*, :hover, :focus, :active) {
	top: 14px;
	right: 14px;
	background: #f3f4f6;
	box-shadow: none;
}

.dstk-comptoir-cart__close[type]:is(:hover, :focus-visible),
.dstk-comptoir-product__close[type]:is(:hover, :focus-visible) {
	background: #e5e7eb;
}

.dstk-comptoir-qty__btn[type]:is(*, :hover, :focus, :active) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.dstk-comptoir-product__qty .dstk-comptoir-qty__btn[type] {
	width: 38px;
	height: 38px;
	font-size: 20px;
}

.dstk-comptoir-qty__btn[type]:is(:hover, :focus-visible):not(:disabled) {
	background: rgba(0, 0, 0, 0.06);
}

.dstk-comptoir-qty__btn[type]:disabled {
	opacity: 0.35;
	cursor: default;
}

.dstk-comptoir-link[type]:is(*, :hover, :focus, :active) {
	padding: 0;
	margin-top: 12px;
	border: 0;
	background: none;
	color: var(--dstk-comptoir-accent);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

/* ---- Product window: options ---- */
.dstk-comptoir-product__title {
	text-transform: none;
	font-weight: 700;
	letter-spacing: 0;
}

.dstk-comptoir-acc {
	border-top: 1px solid #eef0f2;
}

.dstk-comptoir-acc.is-open {
	background: transparent;
}

.dstk-comptoir-acc__head[type]:is(*, :hover, :focus, :active) {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 16px 20px 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
}

.dstk-comptoir-acc__head[type]:focus-visible {
	outline: 2px solid var(--dstk-comptoir-accent);
	outline-offset: -2px;
}

.dstk-comptoir-acc__title {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	min-width: 0;
	font-weight: 700;
	font-size: 1.02em;
}

.dstk-comptoir-acc__rule {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #4b5563;
	font-size: 0.72em;
	font-weight: 600;
	line-height: 1.4;
}

.dstk-comptoir-acc__pill {
	max-width: 45%;
	padding: 3px 10px;
	background: #f3f4f6;
	color: #374151;
	font-size: 0.8em;
}

.dstk-comptoir-acc__chevron {
	flex: none;
	color: #9ca3af;
}

.dstk-comptoir-acc__body {
	padding: 0 20px 18px;
}

/* Choices: one line each, a round (one choice) or a square (several) before the name, the price on the right. */
.dstk-comptoir-tiles {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.dstk-comptoir-tile {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	min-height: 50px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	color: #111827;
	line-height: 1.3;
	text-align: left;
	overflow-wrap: anywhere;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dstk-comptoir-tile::before {
	content: "";
	flex: none;
	order: -1;
	width: 20px;
	height: 20px;
	border: 2px solid #d1d5db;
	border-radius: 50%;
	background: #fff;
	transition: border 0.15s ease, background-color 0.15s ease;
}

.dstk-comptoir-tile:has(input[type="checkbox"])::before {
	border-radius: 6px;
}

.dstk-comptoir-tile:hover {
	border-color: #c4c8ce;
}

.dstk-comptoir-tile:has(input:checked) {
	border-color: var(--dstk-comptoir-accent);
	background: color-mix(in srgb, var(--dstk-comptoir-accent) 6%, #fff);
	box-shadow: none;
}

.dstk-comptoir-tile:has(input[type="radio"]:checked)::before {
	border: 6px solid var(--dstk-comptoir-accent);
}

.dstk-comptoir-tile:has(input[type="checkbox"]:checked)::before {
	border-color: var(--dstk-comptoir-accent);
	background: var(--dstk-comptoir-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.dstk-comptoir-tile:has(input[type="checkbox"]:checked)::after {
	content: none;
}

.dstk-comptoir-tile:has(input:focus-visible) {
	outline: 2px solid var(--dstk-comptoir-accent);
	outline-offset: 2px;
}

.dstk-comptoir-tile:has(input:disabled) {
	opacity: 0.45;
	cursor: not-allowed;
}

.dstk-comptoir-tile__label {
	flex: 1;
	min-width: 0;
	font-weight: 500;
	font-size: 0.95em;
	line-height: 1.3;
}

.dstk-comptoir-tile__price {
	flex: none;
	margin-left: auto;
	color: #4b5563;
	font-size: 0.9em;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Sizes: side by side buttons (2 to 4 per line). */
.dstk-comptoir-tiles.is-sizes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr));
}

.dstk-comptoir-tiles.is-sizes .dstk-comptoir-tile {
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-height: 60px;
	padding: 10px 8px;
	text-align: center;
}

.dstk-comptoir-tiles.is-sizes .dstk-comptoir-tile::before {
	content: none;
}

.dstk-comptoir-tiles.is-sizes .dstk-comptoir-tile__label {
	flex: none;
	font-weight: 700;
}

.dstk-comptoir-tiles.is-sizes .dstk-comptoir-tile__price {
	margin: 0;
	font-size: 0.82em;
}

.dstk-comptoir-tiles.is-sizes .dstk-comptoir-tile:has(input:checked) {
	box-shadow: inset 0 0 0 1px var(--dstk-comptoir-accent);
}

/* Footer of the product window. */
.dstk-comptoir-product__foot {
	border-top: 1px solid #eef0f2;
	box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.04);
}

.dstk-comptoir-product__add[type] {
	flex: 1;
	min-height: 48px;
	padding: 12px 18px;
	font-size: 1em;
}

/* Sizes on the menu cards. */
.dstk-comptoir-size {
	align-items: center;
	background: #fff;
	color: #111827;
	line-height: 1.25;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dstk-comptoir-size:hover {
	border-color: #c4c8ce;
}

.dstk-comptoir-size:has(input:checked) {
	border-color: var(--dstk-comptoir-accent);
	background: color-mix(in srgb, var(--dstk-comptoir-accent) 8%, #fff);
	box-shadow: inset 0 0 0 1px var(--dstk-comptoir-accent);
}

.dstk-comptoir-size__price {
	font-weight: 600;
	color: #4b5563;
}

/* ---- Mode, time and place: one card above the menu ---- */
.dstk-comptoir-orderbar__btn[type]:is(*, :hover, :focus, :active) {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--dstk-comptoir-border);
	border-radius: 14px;
	background: var(--dstk-comptoir-surface);
	color: inherit;
	font: inherit;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dstk-comptoir-orderbar__btn[type]:is(:hover, :focus-visible) {
	border-color: var(--dstk-comptoir-accent);
}

.dstk-comptoir-orderbar__icon {
	background: color-mix(in srgb, var(--dstk-comptoir-accent) 12%, #fff);
	color: var(--dstk-comptoir-accent);
}

.dstk-comptoir-orderbar__text {
	color: #111827;
}

.dstk-comptoir-orderbar__mode {
	font-weight: 700;
}

.dstk-comptoir-orderbar__when,
.dstk-comptoir-orderbar__where {
	color: #4b5563;
}

.dstk-comptoir-orderbar__change {
	padding: 6px 14px;
	border: 1px solid var(--dstk-comptoir-accent);
	border-radius: 999px;
	color: var(--dstk-comptoir-accent);
	font-size: 0.88em;
	text-decoration: none;
	white-space: nowrap;
}

.dstk-comptoir-orderbar__btn[type]:is(:hover, :focus-visible) .dstk-comptoir-orderbar__change {
	background: var(--dstk-comptoir-accent);
	color: var(--dstk-comptoir-accent-text);
}

.dstk-comptoir-segment__btn[type]:is(*, :hover, :focus, :active) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #374151;
	font: inherit;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
	box-shadow: none;
}

.dstk-comptoir-segment__btn[type]:hover {
	background: rgba(0, 0, 0, 0.05);
}

.dstk-comptoir-segment__btn.is-on[type]:is(*, :hover, :focus, :active) {
	background: var(--dstk-comptoir-accent);
	color: var(--dstk-comptoir-accent-text);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.dstk-comptoir-details__label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.82em;
}

/* ---- Cart and contact details ---- */
.dstk-comptoir-cart__panel {
	line-height: 1.45;
}

.dstk-comptoir-cart.is-floating .dstk-comptoir-cart__panel {
	padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px));
}

.dstk-comptoir-cart__line {
	grid-template-columns: minmax(0, 1fr) auto auto;
	padding: 12px 0;
}

.dstk-comptoir-cart__line-name,
.dstk-comptoir-cart__line-meta {
	overflow-wrap: anywhere;
}

.dstk-comptoir-qty {
	background: #fff;
}

.dstk-comptoir-checkout fieldset {
	min-width: 0;
	margin: 0 0 18px;
}

.dstk-comptoir-checkout legend {
	float: none;
	width: auto;
	padding: 0;
	margin-bottom: 8px;
	font-size: 0.95em;
	font-weight: 700;
	color: inherit;
}

.dstk-comptoir-fields {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.dstk-comptoir-field {
	min-width: 0;
}

.dstk-comptoir-field label {
	display: block;
	font-size: 0.88em;
	font-weight: 600;
	line-height: 1.3;
	color: #374151;
}

.dstk-comptoir-field :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	color: #111827;
	font: inherit;
	line-height: 1.4;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dstk-comptoir-field textarea {
	min-height: 80px;
}

.dstk-comptoir-field :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select):focus {
	outline: none;
	border-color: var(--dstk-comptoir-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--dstk-comptoir-accent) 20%, transparent);
}

.dstk-comptoir-choice__option {
	position: relative;
	gap: 10px;
	min-height: 48px;
	margin: 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #fff;
	color: #111827;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.dstk-comptoir-choice__option.is-checked {
	background: color-mix(in srgb, var(--dstk-comptoir-accent) 6%, #fff);
	box-shadow: none;
}

.dstk-comptoir-choice__option input[type] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	padding: 0;
	accent-color: var(--dstk-comptoir-accent);
}

.dstk-comptoir-totals .is-total {
	font-size: 1.15em;
}

.dstk-comptoir-terms {
	margin: 8px 0 12px;
}

@media (max-width: 480px) {
	.dstk-comptoir-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.dstk-comptoir-cart.is-floating .dstk-comptoir-cart__panel {
		width: 100vw;
		padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
	}

	.dstk-comptoir-cart__toggle[type] {
		left: 16px;
		right: 16px;
		justify-content: center;
	}

	.dstk-comptoir-orderbar__btn[type]:is(*, :hover, :focus, :active) {
		flex-wrap: wrap;
	}

	.dstk-comptoir-orderbar__change {
		margin-left: 48px;
	}
}
