/**
 * Shop pages: WooCommerce notices ("added to your cart", errors, information) and the
 * password form of protected products.
 *
 * ":not(#zm-notice)" only makes these rules stronger than WooCommerce's own notice styles.
 */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-notices-wrapper {
	margin-bottom: 22px;
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(#zm-notice) {
	--zm-n: var(--zm-color-primary, #732bed);
	--zm-n-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7.2v.1'/%3E%3C/svg%3E");
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	width: auto;
	margin: 0 0 14px;
	padding: 14px 18px;
	padding-inline-start: 66px;
	font-size: 13.5px;
	line-height: 1.9;
	color: var(--zm-color-heading, #1c1c25);
	list-style: none;
	background: color-mix(in srgb, var(--zm-n) 7%, #ffffff);
	border: 1px solid color-mix(in srgb, var(--zm-n) 18%, transparent);
	border-radius: 22px;
	box-shadow: 0 14px 34px color-mix(in srgb, var(--zm-n) 9%, transparent);
	animation: zm-notice-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.woocommerce-message:not(#zm-notice) {
	--zm-n: #12a372;
	--zm-n-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
}

.woocommerce-error:not(#zm-notice) {
	--zm-n: var(--zm-color-sale, #e80c4a);
	--zm-n-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 16.8v.1'/%3E%3C/svg%3E");
}

/* Icon in a colored circle, at the start of the notice. */
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(#zm-notice)::before {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-start: 16px;
	display: block;
	width: 34px;
	height: 34px;
	margin: 0;
	font-family: inherit;
	background: var(--zm-n) var(--zm-n-icon) center / 20px no-repeat;
	border-radius: 50%;
	box-shadow: 0 6px 14px color-mix(in srgb, var(--zm-n) 30%, transparent);
	transform: translateY(-50%);
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(#zm-notice)::after {
	content: none;
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(#zm-notice):focus {
	outline: none;
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(#zm-notice):focus-visible {
	outline: 2px solid var(--zm-n);
	outline-offset: 2px;
}

/* Each error of a list on its own line. */
.woocommerce-error:not(#zm-notice) li {
	flex-basis: 100%;
	margin: 0;
	padding: 0;
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(#zm-notice) a:not(.button) {
	font-weight: 600;
	color: var(--zm-n);
	text-decoration: none;
}

/* "View cart" and other buttons: at the end of the notice. */
:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button:not(#zm-notice) {
	order: 2;
	display: inline-flex;
	align-items: center;
	float: none;
	height: 38px;
	margin: 0;
	margin-inline-start: auto;
	padding: 0 18px;
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	color: #ffffff;
	text-decoration: none;
	white-space: nowrap;
	background: var(--zm-color-heading, #1c1c25);
	border: 0;
	border-radius: 999px;
	box-shadow: none;
	transition: background 0.2s, transform 0.2s;
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button:not(#zm-notice):hover {
	color: #ffffff;
	background: var(--zm-n);
	transform: translateY(-1px);
}

@keyframes zm-notice-in {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
}

/* Password of a protected product */
.woocommerce .post-password-form {
	max-width: 520px;
	margin: 40px auto;
	padding: 28px;
	font-size: 13.5px;
	line-height: 1.9;
	text-align: center;
	background: #ffffff;
	border: 1px solid var(--zm-color-border, #eceef3);
	border-radius: 28px;
	box-shadow: 0 20px 50px rgba(28, 28, 37, 0.06);
}

.woocommerce .post-password-form p:last-child {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 0;
}

.woocommerce .post-password-form input[type="password"] {
	height: 46px;
	padding: 0 16px;
	font: inherit;
	border: 1.5px solid var(--zm-color-border, #eceef3);
	border-radius: 999px;
}

.woocommerce .post-password-form input[type="submit"] {
	height: 46px;
	padding: 0 22px;
	font: inherit;
	font-weight: 700;
	color: #ffffff;
	background: var(--zm-color-primary, #732bed);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}

@media (max-width: 767px) {
	:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(#zm-notice) {
		padding: 12px 14px;
		padding-inline-start: 58px;
		font-size: 13px;
		border-radius: 20px;
	}

	:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(#zm-notice)::before {
		inset-inline-start: 12px;
		width: 32px;
		height: 32px;
		background-size: 18px;
	}

	:is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button:not(#zm-notice) {
		margin-inline-start: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(#zm-notice) {
		animation: none;
	}
}










/* ---------- Steps of buying: cart, delivery details, payment ---------- */

.zm-steps {
	display: inline-flex;
	align-items: center;
	padding: 7px;
	background: #ffffff;
	border: 1px solid var(--zm-color-border, #eceef3);
	border-radius: 999px;
}

.zm-steps__step {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 42px;
	padding-inline: 8px 18px;
	font-size: 13px;
	color: var(--zm-color-subtle, #a4a8ba);
	text-decoration: none;
	border-radius: 999px;
}

.zm-steps__step i {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	font-size: 12px;
	font-style: normal;
	font-weight: 800;
	background: #f3f4f7;
	border-radius: 50%;
}

.zm-steps__step b {
	font-weight: inherit;
}

.zm-steps__step.is-on {
	font-weight: 700;
	color: #ffffff;
	background: var(--zm-color-heading, #1c1c25);
}

.zm-steps__step.is-on i {
	color: var(--zm-color-heading, #1c1c25);
	background: #ffffff;
}

.zm-steps__step.is-done {
	color: var(--zm-color-primary, #732bed);
}

.zm-steps__step.is-done i {
	color: #ffffff;
	background: var(--zm-color-primary, #732bed);
}

a.zm-steps__step:hover {
	background: color-mix(in srgb, var(--zm-color-primary, #732bed) 7%, #ffffff);
}

.zm-steps__line {
	width: 30px;
	border-top: 1.5px dashed #d8dae3;
}

/* ---------- Free shipping bar ---------- */

.zm-free {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 22px;
	background: linear-gradient(120deg, color-mix(in srgb, var(--zm-color-primary, #732bed) 6%, #ffffff), color-mix(in srgb, var(--zm-color-accent, #c01dfb) 5%, #ffffff));
	border: 1px solid color-mix(in srgb, var(--zm-color-primary, #732bed) 12%, transparent);
	border-radius: 26px;
}

.zm-free__icon {
	display: grid;
	flex: 0 0 48px;
	place-items: center;
	height: 48px;
	color: #ffffff;
	background: linear-gradient(135deg, var(--zm-color-accent, #c01dfb), var(--zm-color-primary, #732bed));
	border-radius: 16px;
	box-shadow: 0 10px 22px color-mix(in srgb, var(--zm-color-primary, #732bed) 28%, transparent);
}

.zm-free__icon svg {
	width: 24px;
	height: 24px;
}

.zm-free__body {
	flex: 1;
	min-width: 0;
}

.zm-free__text {
	margin: 0 0 10px;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--zm-color-heading, #1c1c25);
}

.zm-free__text b {
	color: var(--zm-color-primary, #732bed);
}

.zm-free__bar {
	position: relative;
	height: 8px;
	background: #ffffff;
	border-radius: 999px;
}

/* Fills from the right (the start of the line). */
.zm-free__bar span {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	max-width: 100%;
	background: linear-gradient(270deg, var(--zm-color-accent, #c01dfb), var(--zm-color-primary, #732bed));
	border-radius: inherit;
	box-shadow: 0 0 12px color-mix(in srgb, var(--zm-color-accent, #c01dfb) 45%, transparent);
	transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.zm-free__bar span::after {
	content: "";
	position: absolute;
	top: 50%;
	inset-inline-end: -6px;
	width: 16px;
	height: 16px;
	background: #ffffff;
	border: 3px solid var(--zm-color-accent, #c01dfb);
	border-radius: 50%;
	transform: translateY(-50%);
}

.zm-free__goal {
	flex: 0 0 auto;
	font-size: 12px;
	color: var(--zm-color-muted, #707486);
	text-align: center;
}

.zm-free__goal b {
	display: block;
	font-size: 13.5px;
	color: var(--zm-color-heading, #1c1c25);
}

.zm-free.is-done {
	background: linear-gradient(120deg, #e9f8f1, #f1fbf6);
	border-color: #c9eedc;
}

.zm-free.is-done .zm-free__icon {
	background: linear-gradient(135deg, #1cc489, #12a372);
	box-shadow: 0 10px 22px rgba(18, 163, 114, 0.28);
}

.zm-free.is-done .zm-free__text b {
	color: #0f8a5f;
}

.zm-free.is-done .zm-free__bar span {
	background: linear-gradient(270deg, #1cc489, #12a372);
	box-shadow: none;
}

.zm-free.is-done .zm-free__bar span::after {
	border-color: #12a372;
}

@media (max-width: 767px) {
	.zm-steps {
		display: flex;
		justify-content: space-between;
		padding: 5px;
	}

	.zm-steps__step {
		gap: 6px;
		height: 38px;
		padding-inline: 6px 12px;
		font-size: 12px;
	}

	.zm-steps__step:not(.is-on) {
		padding-inline-end: 6px;
	}

	.zm-steps__step:not(.is-on) b {
		display: none;
	}

	.zm-steps__line {
		flex: 1;
		width: auto;
	}

	.zm-free {
		gap: 12px;
		padding: 14px;
		border-radius: 22px;
	}

	.zm-free__icon {
		flex-basis: 40px;
		height: 40px;
		border-radius: 13px;
	}

	.zm-free__goal {
		display: none;
	}

	.zm-free__text {
		font-size: 12.5px;
	}
}




/*
 * Footer trust badges (e.g. Enamad) on WooCommerce pages: WooCommerce's
 * ".woocommerce-page img { height: auto }" makes the image taller than its box.
 */
.zm-footer__badges .zm-badge img.zm-badge__img {
	width: auto;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}