/* Al Mahjar Core — phone field check (assets/phone.js): the country's flag at the start of the field, an animated tick at its end. Palette tokens. */
/* min-width:0 and normal wrapping: the block checkout's fields are flex items with white-space:nowrap, so a long hint widened the field under the order summary */
[data-almahjar-ph] {
	position: relative;
	min-width: 0;
	max-width: 100%;
}
.almahjar-ph-badge {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s;
}
body [data-almahjar-ph][data-almahjar-ph] > input[type] {
	padding-inline-end: 44px !important;
} /* body …[type]: over the checkout's own field padding (milano-checkout.css); data attributes, as React rewrites the block checkout's classes */
[data-almahjar-ph="ok"] .almahjar-ph-badge {
	opacity: 1;
}
.almahjar-ph-lead {
	position: absolute;
	top: 50%;
	left: 16px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	transform: translateY(-50%);
	pointer-events: none;
	line-height: 1;
	white-space: nowrap;
}
.almahjar-ph-lead[hidden] {
	display: none;
}
.almahjar-ph-flag {
	display: block;
	width: 20px;
	height: 15px;
	flex: none;
	border-radius: 3px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.almahjar-ph-code {
	font-weight: 500;
	color: inherit;
	opacity: 0.75;
	font-variant-numeric: tabular-nums;
}
.almahjar-ph-code:empty {
	display: none;
}
.almahjar-ph-flag[hidden] {
	display: none;
}
body [data-almahjar-ph-flag][data-almahjar-ph-flag] > input[type] {
	padding-inline-start: var(--almahjar-ph-lead, 48px) !important;
}
/* the block checkout's label rests inside the empty field: beside the flag, and back on the border once the field is active */
body .wc-block-components-text-input[data-almahjar-ph-flag]:not(.is-active) > label {
	left: var(--almahjar-ph-lead, 48px) !important;
} /* the theme's label sits at a fixed left (milano-checkout.css), like the number */
[data-almahjar-ph="ok"] .almahjar-ph-flag {
	animation: almahjar-ph-flag 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
@keyframes almahjar-ph-flag {
	from {
		opacity: 0.4;
		transform: scale(0.7);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
[data-almahjar-ph] .almahjar-ph-badge svg.almahjar-ph-svg {
	width: 22px;
	height: 22px;
	flex: none;
	overflow: visible;
} /* also inside a theme container that sizes every icon (Milano's header: the order-tracking popup) */
.almahjar-ph-ring {
	fill: none;
	stroke: var(--almahjar-sage, #1f8a4c);
	stroke-width: 2;
	stroke-dasharray: 63;
	stroke-dashoffset: 63;
	transform: rotate(-90deg);
	transform-origin: center;
}
.almahjar-ph-check {
	fill: none;
	stroke: var(--almahjar-sage, #1f8a4c);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 16;
	stroke-dashoffset: 16;
}
[data-almahjar-ph="ok"] .almahjar-ph-ring {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
[data-almahjar-ph="ok"] .almahjar-ph-check {
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 0.3s cubic-bezier(0.65, 0, 0.35, 1) 0.35s;
}
.almahjar-ph-badge.is-pop .almahjar-ph-svg {
	animation: almahjar-ph-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.55s both;
}
@keyframes almahjar-ph-pop {
	0% {
		transform: scale(1);
	}
	40% {
		transform: scale(1.22);
	}
	100% {
		transform: scale(1);
	}
}
body [data-almahjar-ph="ok"][data-almahjar-ph] > input[type] {
	border-color: color-mix(in srgb, var(--almahjar-sage, #1f8a4c) 55%, transparent) !important;
}
body [data-almahjar-ph="bad"][data-almahjar-ph] > input[type] {
	border-color: var(--almahjar-brick, #c0392b) !important;
}
.almahjar-ph-note {
	display: block;
	margin-top: 6px;
	white-space: normal;
	overflow-wrap: anywhere;
	text-align: start;
	font-size: calc(12.5px * var(--almahjar-fs, 1));
	color: var(--almahjar-brick-deep, #a12d22);
	line-height: 1.4;
}
.almahjar-ph-note[hidden] {
	display: none;
}
@media (prefers-reduced-motion: reduce) {
	.almahjar-ph-ring,
	.almahjar-ph-check {
		transition: none !important;
	}
	.almahjar-ph-badge.is-pop .almahjar-ph-svg {
		animation: none;
	}
}

/* country code picker (phone.js, data-almahjar-cc="1"): flag and code at the start of the field, the list below it */
.almahjar-ccp-row {
	position: relative;
	display: block;
}
.almahjar-ccp-row > input[type="tel"] {
	padding-inline-start: 104px !important;
	padding-right: 44px !important;
}
.almahjar-ccp-btn {
	position: absolute;
	top: 50%;
	inset-inline-start: 6px;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: calc(100% - 12px);
	min-height: 0;
	margin: 0;
	padding: 0 10px;
	border: 0;
	border-inline-end: 1px solid var(--almahjar-line, rgba(0, 0, 0, 0.12));
	border-radius: 999px 0 0 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: calc(14.5px * var(--almahjar-fs, 1));
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}
.almahjar-ccp-btn:hover:not(:disabled),
.almahjar-ccp-row.is-open .almahjar-ccp-btn {
	background: color-mix(in srgb, currentColor 6%, transparent);
}
.almahjar-ccp-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}
.almahjar-ccp-btn img,
.almahjar-ccp-list img {
	display: block;
	width: 20px;
	height: 15px;
	flex: none;
	border-radius: 3px;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.almahjar-ccp-btn i {
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.55;
	transition: transform 0.2s;
}
.almahjar-ccp-row.is-open .almahjar-ccp-btn i {
	transform: rotate(225deg);
	margin-top: 3px;
}
.almahjar-ccp-btn.is-fixed {
	cursor: default;
}
.almahjar-ccp-btn.is-fixed i {
	display: none;
}
.almahjar-ccp-list {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	z-index: 30;
	width: min(300px, 100%);
	max-height: 270px;
	margin: 0;
	padding: 6px;
	overflow: auto;
	list-style: none;
	background: #fff;
	color: #1b1715;
	border: 1px solid var(--almahjar-line, rgba(0, 0, 0, 0.1));
	border-radius: 14px;
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.28);
	animation: almahjar-ccp-in 0.18s ease-out;
}
.almahjar-ccp-list[hidden] {
	display: none;
}
/* the open list sits above the fields after it (each animated field is its own layer) */
:has(> .almahjar-ccp-row.is-open) {
	position: relative;
	z-index: 60;
}
@keyframes almahjar-ccp-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.almahjar-ccp-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 9px 10px;
	border-radius: 9px;
	cursor: pointer;
	font-size: calc(14px * var(--almahjar-fs, 1));
	outline: none;
}
.almahjar-ccp-list li .n {
	unicode-bidi: plaintext;
	text-align: start;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.almahjar-ccp-list li b {
	font-weight: 500;
	opacity: 0.6;
	font-variant-numeric: tabular-nums;
}
.almahjar-ccp-list li:hover,
.almahjar-ccp-list li:focus {
	background: color-mix(in srgb, currentColor 6%, transparent);
}
.almahjar-ccp-list li[aria-selected="true"] {
	font-weight: 600;
}
.almahjar-ccp-list li[aria-selected="true"]::after {
	content: "";
	width: 6px;
	height: 10px;
	margin-inline-start: 2px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-1px, -2px);
}
/* the picker shows the flag and code: the tick alone on the right */
.almahjar-ccp-row .almahjar-ph-flag {
	display: none !important;
}
.almahjar-ccp-row {
	min-width: 0;
	max-width: 100%;
}
/* inline picker (every other phone field): beside the input, not around it; the flag opens the list, the code is in the number */
.almahjar-ccp-row.is-inline {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	max-width: none;
}
.almahjar-ccp-row.is-inline[hidden] {
	display: none;
}
.almahjar-ccp-row.is-up .almahjar-ccp-pop {
	top: auto;
	bottom: calc(100% + 6px);
}
.almahjar-ccp-row.is-inline .almahjar-ccp-btn {
	position: static;
	transform: none;
	height: calc(100% - 12px);
	padding: 0 8px;
	gap: 6px;
}
body [data-almahjar-ph-pick][data-almahjar-ph-pick] > input[type] {
	padding-inline-start: var(--almahjar-ph-lead, 60px) !important;
}
body .wc-block-components-text-input[data-almahjar-ph-pick]:not(.is-active) > label {
	left: var(--almahjar-ph-lead, 60px) !important;
}
/* while the label rests inside the empty field, the example number would print over it: it shows once the field is active */
body .wc-block-components-text-input:not(.is-active) > input[type="tel"]::placeholder {
	color: transparent !important;
	opacity: 0 !important;
}
@media (prefers-reduced-motion: reduce) {
	.almahjar-ccp-list {
		animation: none;
	}
}
/* the login field (auth.js): an email or a number. The picker shows only for a number; an icon stands in for it otherwise */
.almahjar-smart > input {
	padding-inline-start: 46px !important;
	padding-right: 42px !important;
	transition: padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.almahjar-smart.is-phone > input {
	padding-inline-start: 104px !important;
}
.almahjar-smart .almahjar-ccp-btn {
	opacity: 0;
	visibility: hidden;
	transform: translate(-10px, -50%) scale(0.85);
	transition:
		opacity 0.25s,
		transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1),
		visibility 0s 0.35s;
}
.almahjar-smart.is-phone .almahjar-ccp-btn {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%);
	transition:
		opacity 0.25s,
		transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.almahjar-smart-ic {
	position: absolute;
	top: 50%;
	inset-inline-start: 15px;
	width: 20px;
	height: 20px;
	transform: translateY(-50%);
	pointer-events: none;
	color: currentColor;
	opacity: 0.55;
	transition:
		opacity 0.25s,
		transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.almahjar-smart-ic svg {
	position: absolute;
	inset: 0;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition:
		opacity 0.25s,
		transform 0.3s;
}
.almahjar-smart-ic .m {
	opacity: 0;
	transform: scale(0.6) rotate(-12deg);
}
.almahjar-smart.is-mail .almahjar-smart-ic {
	opacity: 0.85;
}
.almahjar-smart.is-mail .almahjar-smart-ic .u {
	opacity: 0;
	transform: scale(0.6);
}
.almahjar-smart.is-mail .almahjar-smart-ic .m {
	opacity: 1;
	transform: none;
}
.almahjar-smart.is-phone .almahjar-smart-ic {
	opacity: 0;
	transform: translateY(-50%) scale(0.5);
}
.almahjar-smart-ok {
	position: absolute;
	top: 50%;
	right: 14px;
	width: 22px;
	height: 22px;
	transform: translateY(-50%) scale(0.4);
	opacity: 0;
	pointer-events: none;
	border-radius: 50%;
	background: var(--almahjar-sage, #1f8a4c);
	transition:
		opacity 0.2s,
		transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.almahjar-smart-ok svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: #fff;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.almahjar-smart.is-good .almahjar-smart-ok {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}
.almahjar-smart.is-good > input {
	border-color: color-mix(in srgb, var(--almahjar-sage, #1f8a4c) 55%, transparent) !important;
}
@media (prefers-reduced-motion: reduce) {
	.almahjar-smart *,
	.almahjar-smart > input {
		transition: none !important;
	}
}

/* the picker with a search (more than 8 countries): the search box sits above the list, both in one pop-up */
.almahjar-ccp-pop {
	position: absolute;
	top: calc(100% + 6px);
	inset-inline-start: 0;
	z-index: 30;
	width: min(300px, 100%);
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #1b1715;
	border: 1px solid var(--almahjar-line, rgba(0, 0, 0, 0.12));
	border-radius: 14px;
	box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	animation: almahjar-ccp-in 0.18s ease-out;
}
.almahjar-ccp-pop[hidden] {
	display: none;
}
.almahjar-ccp-pop {
	line-height: 1.35;
	font-weight: 400;
	text-align: start;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;
} /* its own type: the field around it may set any (the block checkout's line-height:0 hid the names) */
.almahjar-ccp-pop .almahjar-ccp-list {
	position: static;
	width: auto;
	max-height: 240px;
	margin: 0;
	padding: 6px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	animation: none;
}
.almahjar-ccp-q {
	position: sticky;
	top: 0;
	z-index: 2;
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 12px;
	font: inherit;
	font-size: calc(14px * var(--almahjar-fs, 1));
	line-height: 1.3;
	color: inherit;
	background: #fff;
	border: 0;
	border-bottom: 1px solid var(--almahjar-line, rgba(0, 0, 0, 0.12));
	border-radius: 0;
	outline: none;
}
.almahjar-ccp-q:focus {
	border-bottom-color: var(--almahjar-sage, #1f8a4c);
}
/* themes style every search box (Milano: a tall black pill, and a rounded field inside the Track Order form): the picker's stays a plain strip at the top of the list */
body .almahjar-ccp-pop.almahjar-ccp-pop input.almahjar-ccp-q[type="search"] {
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 11px 14px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--almahjar-line, rgba(0, 0, 0, 0.12)) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #fff !important;
	color: #1b1715 !important;
	font: inherit !important;
	font-size: calc(14px * var(--almahjar-fs, 1)) !important;
	line-height: 1.3 !important;
	outline: none !important;
	-webkit-appearance: none;
	appearance: none;
}
body .almahjar-ccp-pop.almahjar-ccp-pop input.almahjar-ccp-q[type="search"]:focus {
	border-bottom-color: var(--almahjar-sage, #1f8a4c) !important;
}
.almahjar-ccp-list li[aria-selected="true"] {
	background: color-mix(in srgb, currentColor 5%, transparent);
}
.almahjar-ccp-sep {
	height: 1px;
	margin: 4px 6px;
	padding: 0 !important;
	background: var(--almahjar-line, rgba(0, 0, 0, 0.12));
	list-style: none;
	pointer-events: none;
}
.almahjar-ccp-sep[hidden] {
	display: none;
}
.almahjar-ccp-none {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 10px;
	font-size: calc(14px * var(--almahjar-fs, 1));
	opacity: 0.65;
	cursor: default;
	list-style: none;
}
.almahjar-ccp-none[hidden],
.almahjar-ccp-list li[hidden] {
	display: none;
}
.almahjar-ccp-none.is-blocked {
	opacity: 1;
	color: #b42318;
	text-align: center;
	line-height: 1.45;
}
@media (prefers-reduced-motion: reduce) {
	.almahjar-ccp-pop {
		animation: none;
	}
}
/* no country yet (data-cc-empty: the registration form): a globe until a code is typed or picked */
.almahjar-ccp-globe {
	width: 18px;
	height: 18px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	opacity: 0.7;
}
.almahjar-ccp-row.is-empty .almahjar-ccp-btn span {
	opacity: 0.6;
}
