:root {
	--cmbwc-border-color: #e5e5e5;
	--cmbwc-border-color-light: #ececec;
	--cmbwc-border-color-soft: #efefef;
	--cmbwc-background: #ffffff;
	--cmbwc-background-soft: #fafafa;
	--cmbwc-text-color: #1f1f1f;
	--cmbwc-muted-color: #666666;
	--cmbwc-accent-color: #065f46;
	--cmbwc-accent-contrast: #ffffff;
	--cmbwc-secondary-color: #b79559;
	--cmbwc-selected-bg: #f8f8f8;
	--cmbwc-radius-xl: 16px;
	--cmbwc-radius-lg: 14px;
	--cmbwc-radius-md: 12px;
	--cmbwc-radius-sm: 10px;
	--cmbwc-space-xs: 4px;
	--cmbwc-space-sm: 8px;
	--cmbwc-space-md: 12px;
	--cmbwc-space-lg: 20px;
	--cmbwc-space-xl: 28px;
	--cmbwc-price-big-size: 24px;
	--cmbwc-price-small-size: 12px;
	--cmbwc-transition: 0.2s ease;
}

.cmbwc-box {
	border: 1px solid var(--cmbwc-border-color);
	padding: 20px;
	margin-bottom: 20px;
	border-radius: var(--cmbwc-radius-xl);
	background: var(--cmbwc-background);
	color: var(--cmbwc-text-color);
}

.cmbwc-title {
	margin: 0 0 16px;
	font-size: 24px;
	line-height: 1.2;
}

.cmbwc-subtitle {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.3;
}

.cmbwc-section + .cmbwc-section,
.cmbwc-content-group + .cmbwc-content-group {
	margin-top: 20px;
}

.cmbwc-info-list {
	display: grid;
	gap: 10px;
}

.cmbwc-info-item {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f1f1f1;
}

.cmbwc-info-label,
.cmbwc-label {
	color: var(--cmbwc-muted-color);
}

.cmbwc-info-value,
.cmbwc-value {
	font-weight: 600;
}

.cmbwc-field label {
	display: block;
	margin-bottom: 8px;
}

.cmbwc-covers,
.cmbwc-input {
	width: 120px;
	padding: 10px 12px;
	border: 1px solid #d8d8d8;
	border-radius: var(--cmbwc-radius-sm);
	background: #fff;
	transition: border-color var(--cmbwc-transition), box-shadow var(--cmbwc-transition);
}

.cmbwc-input:focus,
.cmbwc-covers:focus {
	outline: none;
	border-color: #999;
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.cmbwc-field .cmbwc-covers {
	width: 100%;
	max-width: 100%;
}

.cmbwc-card-list {
	display: grid;
	gap: 12px;
}

.cmbwc-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid #f0f0f0;
	border-radius: var(--cmbwc-radius-md);
	background: var(--cmbwc-background-soft);
}

.cmbwc-card-image-wrap {
	flex: 0 0 56px;
}

.cmbwc-card-image {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 999px;
	display: block;
}

.cmbwc-card-title,
.cmbwc-ui-title {
	font-weight: 600;
	line-height: 1.4;
}

.cmbwc-addon-list,
.cmbwc-service-list {
	display: grid;
	gap: 12px;
}

.cmbwc-addon-item,
.cmbwc-service-item {
	border: 1px solid var(--cmbwc-border-color-light);
	border-radius: var(--cmbwc-radius-xl);
	background: var(--cmbwc-background);
	transition: border-color var(--cmbwc-transition), box-shadow var(--cmbwc-transition), background-color var(--cmbwc-transition), transform var(--cmbwc-transition);
}

.cmbwc-addon-item:hover,
.cmbwc-service-item:hover {
	border-color: #d7d7d7;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.cmbwc-addon-label,
.cmbwc-service-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	cursor: pointer;
	padding: 16px;
	margin: 0;
	width: 100%;
}

.cmbwc-addon-left,
.cmbwc-service-left {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1 1 auto;
}

.cmbwc-addon-image {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
	flex: 0 0 52px;
}

.cmbwc-addon-name-wrap,
.cmbwc-service-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cmbwc-addon-name,
.cmbwc-service-name {
	font-weight: 600;
	line-height: 1.3;
}

.cmbwc-ui-subtitle,
.cmbwc-addon-note,
.cmbwc-addon-follow-text {
	color: var(--cmbwc-muted-color);
	font-size: 14px;
	line-height: 1.3;
}

.cmbwc-choice-right-price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	gap: 2px;
	text-align: right;
	min-width: 92px;
	flex: 0 0 auto;
}

.cmbwc-price-big {
	font-weight: 700;
	font-size: var(--cmbwc-price-big-size);
	line-height: 1;
	color: var(--cmbwc-text-color);
}

.cmbwc-price-small {
	font-size: var(--cmbwc-price-small-size);
	line-height: 1.2;
	color: var(--cmbwc-muted-color);
}

.cmbwc-addon-right-wrap {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 0 0 auto;
}

.cmbwc-addon-qty-wrap {
	flex: 0 0 auto;
}

.cmbwc-addon-qty {
	width: 76px;
	padding: 8px 10px;
	border: 1px solid #d8d8d8;
	border-radius: var(--cmbwc-radius-sm);
}

.cmbwc-visually-hidden-input {
	position: absolute !important;
	opacity: 0 !important;
	pointer-events: none !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
}

.cmbwc-choice-control {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	border: 1.5px solid #bdbdbd;
	background: #fff;
	transition: all var(--cmbwc-transition);
}

.cmbwc-choice-control-checkbox {
	border-radius: 6px;
}

.cmbwc-menu-options[data-order-mode="addons_only"] .cmbwc-choice-control-checkbox {
	display: none;
}

.cmbwc-choice-control-radio {
	border-radius: 999px;
}

.cmbwc-choice-control::after {
	content: "";
	display: block;
	opacity: 0;
	transform: scale(0.7);
	transition: all var(--cmbwc-transition);
}

.cmbwc-choice-control-checkbox::after {
	width: 10px;
	height: 6px;
	border-left: 2px solid var(--cmbwc-accent-contrast);
	border-bottom: 2px solid var(--cmbwc-accent-contrast);
	transform: rotate(-45deg) scale(0.8);
	margin-top: -1px;
}

.cmbwc-choice-control-radio::after {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: var(--cmbwc-accent-contrast);
}

.cmbwc-visually-hidden-input:checked + .cmbwc-choice-control {
	background: var(--cmbwc-accent-color);
	border-color: var(--cmbwc-accent-color);
}

.cmbwc-visually-hidden-input:checked + .cmbwc-choice-control::after {
	opacity: 1;
}

.cmbwc-visually-hidden-input:focus + .cmbwc-choice-control {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.cmbwc-addon-item:has(.cmbwc-addon-checkbox:checked),
.cmbwc-service-item:has(.cmbwc-service-radio:checked) {
	border-color: var(--cmbwc-accent-color);
	background: var(--cmbwc-selected-bg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.cmbwc-price-box {
	border-top: 1px solid var(--cmbwc-border-color-soft);
	padding-top: 12px;
	display: grid;
	gap: 10px;
}

.cmbwc-price-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.cmbwc-price-row-total {
	padding-top: 10px;
	border-top: 1px solid var(--cmbwc-border-color-soft);
	font-size: 18px;
}

/* Ordinary WooCommerce items (sandwiches, drinks, salads, etc.). */
.cmbwc-simple-order {
	padding: clamp(20px, 3vw, 30px);
	border: 0;
	border-radius: 18px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 16px 44px rgba(48, 37, 25, .1);
}

.cmbwc-simple-order-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 22px;
}

.cmbwc-simple-order-heading .cmbwc-title { margin: 2px 0 0; }

.cmbwc-simple-kicker {
	display: block;
	color: var(--cmbwc-secondary-color);
	font-size: 10px;
	font-weight: 750;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.cmbwc-simple-unit-price {
	display: grid;
	justify-items: end;
	gap: 2px;
	color: var(--cmbwc-accent-color);
}

.cmbwc-simple-unit-price strong { font-size: 21px; line-height: 1.1; }
.cmbwc-simple-unit-price small { color: var(--cmbwc-muted-color); font-size: 11px; }

.cmbwc-simple-cart-form {
	display: grid !important;
	grid-template-columns: minmax(180px, 220px) minmax(125px, 160px) minmax(210px, 280px);
	grid-template-areas: "quantity total button";
	align-items: end;
	justify-content: end;
	gap: 14px;
	margin: 0 !important;
}

.cmbwc-simple-quantity-row,
.cmbwc-simple-total-row {
	display: grid;
	gap: 7px;
}

.cmbwc-simple-quantity-row { grid-area: quantity; }
.cmbwc-simple-total-row { grid-area: total; }

.cmbwc-simple-field-label,
.cmbwc-simple-total-row > span {
	color: var(--cmbwc-muted-color);
	font-size: 12px;
	font-weight: 650;
}

.cmbwc-simple-quantity {
	display: grid;
	grid-template-columns: 44px minmax(54px, 1fr) 44px;
	align-items: center;
	min-width: 0;
	height: 48px;
	border-radius: 12px;
	background: #f3eee7;
	box-shadow: inset 0 0 0 1px rgba(82, 66, 45, .08);
	overflow: hidden;
}

.cmbwc-simple-qty-button {
	width: 100% !important;
	height: 48px !important;
	min-height: 48px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--cmbwc-text-color) !important;
	font-family: inherit !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	letter-spacing: normal !important;
	cursor: pointer;
}

.cmbwc-simple-qty {
	width: 100% !important;
	min-width: 0 !important;
	height: 48px !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

.cmbwc-simple-qty::-webkit-inner-spin-button,
.cmbwc-simple-qty::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }

.cmbwc-simple-total-row {
	min-height: 72px;
	align-content: end;
	padding: 0 2px 7px;
}

.cmbwc-simple-total {
	color: var(--cmbwc-accent-color);
	font-size: 22px;
	line-height: 1.15;
}

.cmbwc-simple-add-button {
	grid-area: button;
	width: 100% !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 12px 18px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--cmbwc-accent-color) !important;
	box-shadow: 0 10px 24px color-mix(in srgb, var(--cmbwc-accent-color) 22%, transparent) !important;
	color: var(--cmbwc-accent-contrast) !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 750 !important;
	letter-spacing: .04em !important;
	text-transform: none !important;
}

.cmbwc-simple-add-button:hover {
	filter: brightness(.93);
	transform: translateY(-1px);
}

.cmbwc-simple-unavailable { margin: 0; color: var(--cmbwc-muted-color); }

/* The CMB shortcode is the complete order control for simple-mode products.
 * Hide Elementor/WooCommerce's second native cart form only after JS confirms
 * that the replacement is present on this page. */
body.cmbwc-simple-order-rendered form.cart:not(.cmbwc-simple-cart-form) {
	display: none !important;
}

/* Cart / checkout / mini-cart */
.cmbwc-cart-meta {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.5;
	max-width: 100%;
}

.cmbwc-cart-row {
	margin-bottom: 8px;
}

.cmbwc-cart-label {
	font-weight: 600;
	margin-right: 6px;
}

.cmbwc-cart-value {
	font-weight: 500;
}

.cmbwc-cart-group {
	margin-top: 12px;
}

.cmbwc-cart-group-title {
	font-weight: 700;
	margin-bottom: 6px;
}

.cmbwc-cart-list {
	margin: 0;
	padding-left: 18px;
}

.cmbwc-cart-list li {
	margin: 0 0 4px;
	line-height: 1.5;
}

.cmbwc-cart-service {
	margin-top: 2px;
	line-height: 1.5;
}

.cmbwc-mini-cart-quantity {
	display: inline-block;
	margin-top: 8px;
	font-weight: 600;
}

.cmbwc-order-meta-list {
	margin: 0;
	padding-left: 18px;
}

.cmbwc-order-meta-list li {
	margin: 0 0 4px;
	line-height: 1.5;
}

/* CMB details in WooCommerce Cart and Checkout Blocks. WooCommerce renders
 * woocommerce_get_item_data() as product details below the product name. */
.cmbwc-block-menu-line .wc-block-components-product-name {
	display: block;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.cmbwc-block-menu-line .wc-block-components-product-details {
	display: grid;
	gap: 8px;
	margin: 10px 0 0;
	padding: 12px 14px;
	border: 1px solid #e4ded3;
	border-left: 3px solid var(--cmbwc-secondary-color);
	border-radius: 6px;
	background: #fbf8f2;
	list-style: none;
}

.cmbwc-block-menu-line .wc-block-components-product-details li {
	display: grid;
	grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
	gap: 10px;
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
}

.cmbwc-block-menu-line .wc-block-components-product-details__name {
	font-weight: 700;
	color: #2f2f2f;
}

.cmbwc-block-menu-line .wc-block-components-product-details__value {
	min-width: 0;
	color: #424242;
	white-space: normal;
	overflow-wrap: anywhere;
}

.cmbwc-cart-choice-line {
	display: inline-block;
	margin-bottom: 2px;
}

/* The short product description duplicates the title and selections on CMB
 * menu lines and made the order summary unnecessarily noisy. */
.cmbwc-block-menu-line .wc-block-components-product-metadata__description {
	display: none;
}

@media (max-width: 600px) {
	.cmbwc-block-menu-line .wc-block-components-product-details li {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}

@media (max-width: 767px) {
	.cmbwc-simple-cart-form {
		grid-template-columns: minmax(0, 1fr) minmax(108px, .62fr);
		grid-template-areas:
			"quantity total"
			"button button";
		justify-content: stretch;
	}
	.cmbwc-simple-order-heading { align-items: flex-start; }
	.cmbwc-simple-total-row { min-height: 0; padding: 4px 2px; }
	.cmbwc-simple-unit-price strong { font-size: 18px; }

	.cmbwc-addon-label,
	.cmbwc-service-item,
	.cmbwc-info-item,
	.cmbwc-price-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.cmbwc-addon-left,
	.cmbwc-service-left {
		width: 100%;
	}

	.cmbwc-choice-right-price {
		align-items: flex-start;
		text-align: left;
		min-width: 0;
		width: 100%;
	}

	.cmbwc-addon-right-wrap {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.cmbwc-addon-qty-wrap {
		width: 100%;
	}

	.cmbwc-addon-qty {
		width: 100%;
	}
}

.cmbwc-addon-label,
.cmbwc-service-item {
	cursor: pointer;
}

.cmbwc-choice-control,
.cmbwc-addon-name-wrap,
.cmbwc-addon-follow-price,
.cmbwc-service-price-wrap {
	pointer-events: none;
}

.cmbwc-addon-item.is-selected,
.cmbwc-service-item.is-selected {
	outline: 2px solid var(--cmbwc-secondary-color);
	outline-offset: 0;
}

.wcr-qty-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 260px;
  gap: 10px;
  margin-top: 6px;
}

.wcr-qty-wrap input[type="number"] {
  flex: 1;
  min-width: 90px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  box-sizing: border-box;
  appearance: textfield;
  -moz-appearance: textfield;
}

.wcr-qty-wrap input[type="number"]::-webkit-outer-spin-button,
.wcr-qty-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wcr-qty-wrap input[type="number"]:focus {
  outline: none;
  border-color: var(--cmbwc-accent-color) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cmbwc-accent-color) 18%, transparent);
}

.wcr-qty-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--cmbwc-accent-color) !important;
  border-radius: 30px !important;
  background: var(--cmbwc-accent-color) !important;
	color: var(--cmbwc-accent-contrast) !important;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.wcr-qty-btn:hover,
.wcr-qty-btn:focus {
  background: var(--cmbwc-accent-color) !important;
  border-color: var(--cmbwc-accent-color) !important;
	color: var(--cmbwc-accent-contrast);
	filter: brightness(.9);
  outline: none;
}

.wcr-qty-btn:active {
  transform: scale(0.98);
}

.cmbwc-selection-help {
	margin: 0 0 18px;
	color: var(--cmbwc-muted-color);
	line-height: 1.5;
}

.cmbwc-add-to-cart-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 100%;
	min-height: 52px;
	margin-top: 18px !important;
	padding: 14px 20px !important;
	border: 1px solid var(--cmbwc-accent-color) !important;
	border-radius: 999px !important;
	background: var(--cmbwc-accent-color) !important;
	color: var(--cmbwc-accent-contrast) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.08em !important;
	text-align: center !important;
	text-transform: uppercase !important;
	cursor: pointer;
}

.cmbwc-add-to-cart-button:hover,
.cmbwc-add-to-cart-button:focus {
	filter: brightness(0.92);
}

.cmbwc-add-to-cart-button[hidden] {
	display: none !important;
}

/* The site theme applies a very wide global button letter-spacing. Keep the
 * delivery controls readable when Woo Catering Rules is used with CMB. */
.wcr-floating-button,
.wcr-primary-button,
#wcr-popup button {
	letter-spacing: normal !important;
}

.wcr-floating-button {
	text-transform: none !important;
}

.cmbwc-delivery-first-notice,
.cmbwc-selection-required-notice {
	display: none;
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff7e6;
	border: 1px solid #f0c36d;
	color: #5f4100;
	font-size: 14px;
	font-weight: 600;
}

/* Smagens Kammer uses a fixed Elementor header. Keep WooCommerce's global
 * notices clickable and keep the Cart/Checkout page content below the header.
 * The exact offset is measured in frontend.js so this also follows mobile and
 * logged-in admin-bar header heights. */
body.cmbwc-has-fixed-header.woocommerce-cart,
body.cmbwc-has-fixed-header.woocommerce-checkout {
	padding-top: var(--cmbwc-fixed-header-offset, 0px) !important;
}

body.cmbwc-has-fixed-header > .woocommerce-notices-wrapper:not(:empty) {
	position: fixed !important;
	top: var(--cmbwc-fixed-header-offset, 0px) !important;
	left: 0 !important;
	right: 0 !important;
	z-index: 1100 !important;
	pointer-events: auto !important;
}

body.cmbwc-has-fixed-header > .woocommerce-notices-wrapper:not(:empty) .woocommerce-message,
body.cmbwc-has-fixed-header > .woocommerce-notices-wrapper:not(:empty) .woocommerce-error,
body.cmbwc-has-fixed-header > .woocommerce-notices-wrapper:not(:empty) .woocommerce-info,
body.cmbwc-has-fixed-header > .woocommerce-notices-wrapper:not(:empty) a,
body.cmbwc-has-fixed-header > .woocommerce-notices-wrapper:not(:empty) button {
	pointer-events: auto !important;
}

.cmbwc-back-to-ordering {
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	margin: 0 0 22px !important;
	padding: 9px 14px !important;
	border: 1px solid var(--cmbwc-secondary-color) !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--cmbwc-accent-color) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	text-transform: none !important;
}

.cmbwc-back-to-ordering:hover,
.cmbwc-back-to-ordering:focus {
	background: color-mix(in srgb, var(--cmbwc-secondary-color) 14%, transparent) !important;
}
