/* "Πώς το θέλετε;" block on the product page, in the shop's own language.
   Selectors are doubled where the theme's :is(.btn, .button, button) rule
   would otherwise tie with them. */

:root {
	--mmru-ink: #1d2433;
	--mmru-muted: #6b7080;
	--mmru-line: rgba(29, 36, 51, 0.12);
	--mmru-accent: #ee7b10;
	--mmru-accent-soft: rgba(238, 123, 16, 0.1);
	--mmru-ok: #1f8f4e;
	--mmru-bad: #c8302e;
	--mmru-radius: 14px;
	--mmru-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* WooCommerce's quantity input stays in the form (the script drives it)
   but out of sight, as does the decimal plugin's unit label. */
.mmr-units-on form.cart.mmr-units-form .quantity,
.mmr-units-on form.cart.mmr-units-form .woodecimalproduct_pice_unit_label {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.mmr-units {
	width: 100%;
	margin: 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	color: var(--mmru-ink);
}

.mmr-units__group {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.mmr-units__heading {
	display: block;
	margin: 0 0 10px;
	padding: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--mmru-ink);
}

/* Cutting cards ------------------------------------------------------ */

.mmr-units__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 10px;
}

.mmr-units__card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 14px;
	border: 1.5px solid var(--mmru-line);
	border-radius: var(--mmru-radius);
	background: #fff;
	cursor: pointer;
	user-select: none;
	transition: border-color 160ms ease, box-shadow 220ms var(--mmru-ease), transform 180ms var(--mmru-ease), background 160ms ease;
	animation: mmr-units-rise 420ms var(--mmru-ease) both;
}

.mmr-units__card:hover {
	border-color: rgba(238, 123, 16, 0.5);
	transform: translateY(-1px);
}

.mmr-units__card input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.mmr-units__card:has(input:checked) {
	border-color: var(--mmru-accent);
	background: #fff8f1;
	box-shadow: 0 10px 28px -18px rgba(238, 123, 16, 0.75);
}

.mmr-units__card:has(input:focus-visible) {
	outline: 3px solid rgba(238, 123, 16, 0.35);
	outline-offset: 2px;
}

.mmr-units__card-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--mmru-accent-soft);
	color: var(--mmru-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 160ms ease, color 160ms ease;
}

.mmr-units__card:has(input:checked) .mmr-units__card-icon {
	background: var(--mmru-accent);
	color: #fff;
}

.mmr-units__card-icon svg,
.mmr-units__note svg,
.mmr-units__btn.mmr-units__btn svg,
.mmr-units__card-check svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mmr-units__card-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.25;
}

.mmr-units__card-text strong {
	font-size: 14px;
	font-weight: 700;
	color: var(--mmru-ink);
}

.mmr-units__card-text small {
	font-size: 12px;
	color: var(--mmru-muted);
}

.mmr-units__card-check {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--mmru-accent);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform: scale(0);
	transition: transform 220ms var(--mmru-ease);
}

.mmr-units__card-check svg {
	width: 14px;
	height: 14px;
	stroke-width: 2.6;
}

.mmr-units__card:has(input:checked) .mmr-units__card-check {
	transform: scale(1);
}

.mmr-units__cut.is-invalid .mmr-units__card {
	border-color: rgba(200, 48, 46, 0.5);
}

.mmr-units__required {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--mmru-bad);
}

.mmr-units__required[hidden] {
	display: none;
}

/* Quantity ------------------------------------------------------------ */

.mmr-units__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
}

.mmr-units__chip,
.mmr-units__chip.mmr-units__chip {
	margin: 0;
	padding: 9px 14px;
	border: 1.5px solid var(--mmru-line);
	border-radius: 999px;
	background: #fff;
	color: var(--mmru-ink);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms var(--mmru-ease);
	box-shadow: none;
}

.mmr-units__chip.mmr-units__chip:hover {
	border-color: rgba(238, 123, 16, 0.6);
	transform: translateY(-1px);
}

.mmr-units__chip.mmr-units__chip.is-active {
	border-color: var(--mmru-accent);
	background: var(--mmru-accent);
	color: #fff;
}

.mmr-units__stepper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px;
	border: 1.5px solid var(--mmru-line);
	border-radius: 999px;
	background: #fff;
}

.mmr-units__btn.mmr-units__btn {
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mmru-accent-soft);
	color: var(--mmru-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: none;
	transition: background 160ms ease, color 160ms ease, transform 140ms var(--mmru-ease);
}

.mmr-units__btn.mmr-units__btn svg {
	width: 20px;
	height: 20px;
	stroke-width: 2.2;
}

.mmr-units__btn.mmr-units__btn:hover:not([disabled]) {
	background: var(--mmru-accent);
	color: #fff;
}

.mmr-units__btn.mmr-units__btn:active:not([disabled]) {
	transform: scale(0.94);
}

.mmr-units__btn.mmr-units__btn[disabled] {
	opacity: 0.35;
	cursor: not-allowed;
}

.mmr-units__value {
	display: inline-block;
	min-width: 150px;
	padding: 0 10px;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	color: var(--mmru-ink);
	line-height: 1.2;
}

.mmr-units__value.is-bump {
	animation: mmr-units-bump 260ms var(--mmru-ease);
}

.mmr-units__meta {
	margin: 10px 0 0;
	font-size: 13.5px;
	color: var(--mmru-muted);
}

.mmr-units__meta:empty {
	display: none;
}

.mmr-units__estimate {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 12px 0 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f6f7fa;
	font-size: 14px;
	line-height: 1.35;
}

.mmr-units__estimate[hidden] {
	display: none;
}

.mmr-units__estimate-label {
	color: var(--mmru-muted);
}

.mmr-units__estimate-value {
	font-size: 20px;
	font-weight: 800;
	color: var(--mmru-ink);
}

.mmr-units__estimate-note {
	flex-basis: 100%;
	font-size: 12.5px;
	color: var(--mmru-muted);
}

.mmr-units__note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 10px 0 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--mmru-muted);
}

.mmr-units__note svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--mmru-accent);
}

/* Cart, checkout, orders ----------------------------------------------- */

.mmr-units-line {
	display: block;
	width: 100%;
	flex-basis: 100%;
	clear: both;
	margin-top: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--mmru-muted);
	white-space: normal;
	text-align: inherit;
}

.product-quantity.mmr-units-qty {
	white-space: nowrap;
}

@keyframes mmr-units-rise {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes mmr-units-bump {
	0% { transform: scale(1); }
	40% { transform: scale(1.08); }
	100% { transform: scale(1); }
}

@media (max-width: 640px) {
	.mmr-units__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mmr-units__card {
		padding: 10px 12px;
		gap: 10px;
	}

	.mmr-units__card-icon {
		width: 36px;
		height: 36px;
	}

	.mmr-units__card-text small {
		display: none;
	}

	.mmr-units__stepper {
		width: 100%;
		justify-content: space-between;
	}

	.mmr-units__value {
		flex: 1 1 auto;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mmr-units__card,
	.mmr-units__value.is-bump {
		animation: none;
	}

	.mmr-units__card,
	.mmr-units__card-check,
	.mmr-units__btn.mmr-units__btn,
	.mmr-units__chip.mmr-units__chip {
		transition: none;
	}
}

/* The theme capitalises legends and labels; the block speaks normally. */
.mmr-units__heading,
.mmr-units__card-text strong,
.mmr-units__value {
	text-transform: none;
	letter-spacing: 0;
}

.mmr-units__cards {
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

/* Breathing room between the cutting cards and the quantity. */
.mmr-units__cut .mmr-units__cards {
	margin-bottom: 6px;
}

.mmr-units__cut + .mmr-units__group {
	margin-top: 4px;
}

/* The theme centres every span in the quantity cell (td.product-quantity >
   span); the label follows the cell instead, so it sits under the stepper
   wherever the theme puts it. On phones the stepper is right-aligned. */
td.product-quantity > span.mmr-units-line {
	text-align: inherit;
}

@media (max-width: 768px) {
	td.product-quantity > span.mmr-units-line {
		text-align: right;
	}
}

/* One vertical rhythm: 12px under a heading, 24px between groups, 14 to 16px
   between the controls of a group, 12px before a note. */
.mmr-units {
	gap: 28px;
	margin: 2px 0 6px;
}

.mmr-units__heading,
legend.mmr-units__heading.mmr-units__heading {
	margin: 0 0 12px;
	color: var(--mmru-ink);
	font-size: 15px;
	font-weight: 700;
}

.mmr-units__cut .mmr-units__cards {
	margin-bottom: 0;
}

.mmr-units__cut + .mmr-units__group {
	margin-top: 0;
}

.mmr-units__chips {
	margin-bottom: 14px;
}

.mmr-units__meta {
	margin-top: 12px;
}

.mmr-units__estimate {
	margin-top: 16px;
}

.mmr-units__note {
	margin-top: 12px;
}

/* The theme gives labels inside the cart form a negative bottom margin,
   which shrank every grid row by 20px and made the cards overlap. */
.mmr-units-on form.cart label.mmr-units__card,
label.mmr-units__card.mmr-units__card {
	margin: 0 !important;
}

.mmr-units__cards {
	align-items: stretch;
}

/* "Μαγειρεύεται σε": information chips, lighter than the cards because
   there is nothing to pick. The origin badge sits at the end of the row. */
.mmr-units__facts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0 0 -6px;
}

.mmr-units__facts-label {
	margin: 0 2px 0 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--mmru-muted);
	text-transform: none;
	letter-spacing: 0;
}

ul.mmr-units__facts-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

li.mmr-units__fact {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 !important;
	padding: 4px 11px 4px 5px;
	border: 1.5px solid var(--mmru-line);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--mmru-ink);
	list-style: none;
	animation: mmr-units-rise 420ms var(--mmru-ease) both;
}

.mmr-units__fact-icon {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 8px;
	background: var(--mmru-accent-soft);
	color: var(--mmru-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mmr-units__fact-icon svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mmr-units__fact--other .mmr-units__fact-icon {
	background: #f1f2f5;
	color: var(--mmru-muted);
}

.mmr-units__origin {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 5px 11px 5px 7px;
	border-radius: 999px;
	background: #f1f2f5;
	color: #3a4152;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	animation: mmr-units-rise 420ms var(--mmru-ease) both;
}

.mmr-units__origin--home {
	background: #e9f1fb;
	color: #1d5fb0;
}

.mmr-units__origin svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mmr-units__flag rect {
	fill: #1d5fb0;
	stroke: none;
}

.mmr-units__flag path {
	fill: none;
	stroke: #fff;
	stroke-width: 1.3;
	stroke-linecap: butt;
}

.mmr-units__flag .mmr-units__flag-cross {
	stroke-width: 1.9;
}

@media (max-width: 640px) {
	.mmr-units__origin {
		margin-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	li.mmr-units__fact,
	.mmr-units__origin {
		animation: none;
	}
}

/* With every row of the attributes table said elsewhere, the theme prints
   no table and Elementor drops the empty widget altogether; the divider
   that introduced it would then hang alone at the end of the product
   column, so a divider that ends that column goes too. */
.mmr-units-on .elementor-widget-wrap:has(> .elementor-widget-wd_single_product_add_to_cart) > .elementor-widget-divider:last-child {
	display: none !important;
}

/* "Κάτι ιδιαίτερο;": the customer's note for the line (1.3.0). The same
   field language as the cards: 1.5px line, 14px corners, orange on focus.
   The theme rounds every textarea into a pill and pulls labels in the cart
   form up by 20px; both are undone here. */

.mmr-units__optional {
	margin-left: 4px;
	font-size: 13px;
	font-weight: 500;
	color: var(--mmru-muted);
}

.mmr-units-on form.cart label.mmr-units__heading,
label.mmr-units__heading.mmr-units__heading {
	display: block;
	margin: 0 0 12px !important;
	text-transform: none;
	letter-spacing: 0;
}

.mmr-units textarea.mmr-units__textarea.mmr-units__textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: auto;
	min-height: 76px;
	max-height: 196px;
	margin: 0;
	padding: 12px 14px;
	border: 1.5px solid var(--mmru-line);
	border-radius: var(--mmru-radius);
	background: #fff;
	color: var(--mmru-ink);
	font: inherit;
	/* Under 16px Safari on iOS zooms the page into the field. */
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	text-transform: none;
	letter-spacing: 0;
	resize: none;
	overflow-y: auto;
	box-shadow: none;
	transition: border-color 160ms ease, box-shadow 220ms var(--mmru-ease);
}

.mmr-units textarea.mmr-units__textarea.mmr-units__textarea::placeholder {
	color: var(--mmru-muted);
	opacity: 1;
}

.mmr-units textarea.mmr-units__textarea.mmr-units__textarea:hover {
	border-color: rgba(238, 123, 16, 0.5);
}

/* While typing the field is focused the whole time: one soft halo, not
   the cards' offset ring, which reads heavy around a text box. */
.mmr-units textarea.mmr-units__textarea.mmr-units__textarea:focus {
	border-color: var(--mmru-accent);
	outline: none;
	box-shadow: 0 0 0 4px rgba(238, 123, 16, 0.14);
}

.mmr-units__count {
	margin: 8px 0 0;
	font-size: 12.5px;
	line-height: 1.3;
	color: var(--mmru-muted);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.mmr-units__count[hidden] {
	display: none;
}

.mmr-units__count.is-full {
	color: var(--mmru-bad);
}

/* On its own (a form without the block): the same space above as between groups. */
.mmr-units--comment {
	margin-top: 14px;
}

@media (prefers-reduced-motion: reduce) {
	.mmr-units textarea.mmr-units__textarea.mmr-units__textarea {
		transition: none;
	}
}
