/* Easy Size Select for WooCommerce – by Yas Technologies */

/* ---------- Guide banner on the product page ---------- */
.mfess-banner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 6px 0 14px;
	padding: 12px 16px;
	border-radius: 16px;
	border: 2px solid transparent;
	font-family: inherit;
	line-height: 1.3;
	text-align: left;
	transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.mfess-banner__icon { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; border-radius: 50%; }
.mfess-banner__icon svg { width: 30px; height: 30px; }
.mfess-emoji {
	display: block; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
	font-size: 28px; font-style: normal; line-height: 1; text-align: center;
}
.mfess-banner__text { display: grid; gap: 3px; }
.mfess-banner__title { font-size: 17px; font-weight: 800; letter-spacing: .01em; }
.mfess-banner__sub { font-size: 14.5px; font-weight: 600; opacity: .9; }

/* need a size: warm orange, bouncing hand pointing down at the sizes */
.mfess-banner.is-need { color: #8a3b00; background: linear-gradient(120deg, #fff6e6, #ffe8cc); border-color: #ffb45c; box-shadow: 0 8px 20px rgba(255, 140, 0, .18); }
.mfess-banner.is-need .mfess-banner__icon { background: #fff; box-shadow: 0 4px 12px rgba(255, 140, 0, .3); animation: mfess-point 1s ease-in-out infinite; }
.mfess-banner.is-need::after {
	position: absolute; bottom: -11px; left: 34px; width: 18px; height: 18px;
	background: #ffe8cc; border-right: 2px solid #ffb45c; border-bottom: 2px solid #ffb45c;
	transform: rotate(45deg); content: "";
}

/* chosen: green with tick */
.mfess-banner.is-done,
.mfess-banner.is-auto { color: #1f5f2c; background: linear-gradient(120deg, #effaf1, #dff3e4); border-color: #7cc98b; }
.mfess-banner.is-done .mfess-banner__icon,
.mfess-banner.is-auto .mfess-banner__icon { color: #2f9e48; background: #fff; box-shadow: 0 4px 12px rgba(47, 158, 72, .25); animation: mfess-pop .45s cubic-bezier(.3, 1.8, .5, 1); }
.mfess-banner.is-auto .mfess-banner__icon { color: #f2b01e; }

/* the size area glows while a size is missing */
.mfess-glow {
	border-radius: 18px;
	animation: mfess-glow 1.6s ease-in-out infinite;
}
.mfess-form .mfess-row-missing th.label label,
.mfess-form .mfess-row-missing .label label { color: #c24a00 !important; }

/* blocked click: shake */
.mfess-shake { animation: mfess-shake .6s cubic-bezier(.36, .07, .19, .97) both !important; }

/* ---------- Product cards ---------- */
.mfess-card-buttons button:disabled,
.mfess-card-buttons .button.disabled { pointer-events: none; }
.mfess-card-buttons { cursor: pointer; }
.mfess-card-multi { position: relative; }
.mfess-card-attn { border-radius: 12px; animation: mfess-glow 1.2s ease-in-out 2; }
.mfess-card-tip {
	position: relative;
	display: flex; align-items: center; justify-content: center; gap: 6px;
	width: -moz-fit-content; width: fit-content; justify-self: center;
	margin: 0 auto 6px; padding: 5px 12px 5px 6px;
	border-radius: 999px;
	color: #fff; background: linear-gradient(120deg, #ff9a3c, #f26b1d);
	box-shadow: 0 6px 14px rgba(242, 107, 29, .35);
	font-size: 12.5px; font-weight: 800; line-height: 1.2; white-space: nowrap;
	animation: mfess-pop .35s cubic-bezier(.3, 1.8, .5, 1);
	transition: opacity .3s ease, transform .3s ease;
}
.mfess-card-tip.is-hiding { opacity: 0; transform: translateY(-6px); }
.mfess-card-tip__hand { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #fff; animation: mfess-point .9s ease-in-out infinite; }
.mfess-card-tip__hand svg { width: 16px; height: 16px; }
.mfess-card-tip__hand .mfess-emoji { font-size: 15px; }

/* ---------- Animations ---------- */
@keyframes mfess-point { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
@keyframes mfess-pop { from { transform: scale(.4); } to { transform: scale(1); } }
@keyframes mfess-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(255, 154, 60, 0); background-color: transparent; }
	50% { box-shadow: 0 0 0 6px rgba(255, 154, 60, .28); background-color: rgba(255, 232, 204, .45); }
}
@keyframes mfess-shake {
	10%, 90% { transform: translateX(-2px); }
	20%, 80% { transform: translateX(4px); }
	30%, 50%, 70% { transform: translateX(-8px); }
	40%, 60% { transform: translateX(8px); }
}

@media (max-width: 600px) {
	.mfess-banner { gap: 10px; padding: 10px 12px; border-radius: 14px; }
	.mfess-banner__icon { flex-basis: 40px; width: 40px; height: 40px; }
	.mfess-banner__icon svg { width: 26px; height: 26px; }
	.mfess-emoji { font-size: 24px; }
	.mfess-banner__title { font-size: 15.5px; }
	.mfess-banner__sub { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.mfess-banner__icon, .mfess-glow, .mfess-card-attn, .mfess-card-tip__hand, .mfess-shake { animation: none !important; }
	.mfess-glow { box-shadow: 0 0 0 4px rgba(255, 154, 60, .35); }
}
