/**
 * Misho Mart Pro v1.1 — Marketing & retention styles.
 * RTL-first, responsive. Uses the theme's button classes where present.
 */

/* ---------------- Wishlist: multiple lists ---------------- */
.mmp-wl-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e5e7eb;
}
.mmp-wl-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1;
	min-width: 0;
}
.mmp-wl-tab {
	border: 1px solid #d1d5db;
	background: #fff;
	color: #1f2937;
	border-radius: 999px;
	padding: 7px 14px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1.4;
}
.mmp-wl-tab:hover { border-color: #111827; }
.mmp-wl-tab.is-active {
	background: #111827;
	border-color: #111827;
	color: #fff;
}
.mmp-wl-tab__count {
	opacity: .75;
	font-weight: 600;
	margin-inline-start: 4px;
}
.mmp-wl-tabs__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.mmp-wl-tabs__btn {
	border: 1px dashed #9ca3af;
	background: transparent;
	color: #374151;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
}
.mmp-wl-tabs__btn:hover { border-color: #111827; color: #111827; }
.mmp-wl-tabs__btn--danger:hover { border-color: #b91c1c; color: #b91c1c; }
.mmp-wl-move {
	width: 100%;
	margin-top: 8px;
	padding: 7px 10px;
	font-size: 13px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #fff;
	color: #374151;
}

/* ---------------- Popups ---------------- */
.mmp-v11-popup {
	position: fixed;
	inset: 0;
	z-index: 9990;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.mmp-v11-popup.is-open { display: flex; }
.mmp-v11-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, .6);
}
.mmp-v11-popup__panel {
	position: relative;
	background: #fff;
	color: #111827;
	border-radius: 16px;
	max-width: 460px;
	width: 100%;
	padding: 28px 24px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.mmp-v11-popup__close {
	position: absolute;
	top: 10px;
	inset-inline-end: 12px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
}
.mmp-v11-popup__close:hover { color: #111827; }
.mmp-v11-popup__eyebrow {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 800;
	color: #b45309;
}
.mmp-v11-popup__title {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.3;
}
.mmp-v11-popup__text {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.8;
	color: #374151;
}
.mmp-v11-popup__cta { display: inline-block; }
.mmp-v11-popup__actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 18px;
}
.mmp-v11-popup__note {
	margin: 16px 0 0;
	padding: 12px;
	background: #fef3c7;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.8;
	color: #92400e;
}

/* ---------------- Cookie bar ---------------- */
.mmp-v11-cookie {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9980;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	background: #111827;
	color: #f9fafb;
	padding: 14px 18px;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
}
.mmp-v11-cookie[hidden] { display: none; }
.mmp-v11-cookie__text { margin: 0; font-size: 14px; line-height: 1.7; }
.mmp-v11-cookie__btn { flex-shrink: 0; }

/* ---------------- Waitlist ---------------- */
.mmp-v11-waitlist {
	margin-top: 20px;
	padding: 20px;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	background: #f9fafb;
}
.mmp-v11-waitlist__title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 800;
}
.mmp-v11-waitlist__desc {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.8;
	color: #4b5563;
}
.mmp-v11-waitlist__form {
	display: grid;
	gap: 12px;
}
.mmp-v11-waitlist__field {
	display: grid;
	gap: 5px;
	font-size: 14px;
	font-weight: 700;
}
.mmp-v11-waitlist__field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 9px;
	font-size: 15px;
	background: #fff;
}
.mmp-v11-waitlist__field input:focus {
	outline: 2px solid #111827;
	outline-offset: 1px;
}
.mmp-v11-waitlist__msg,
.mmp-v11-price__msg {
	margin: 4px 0 0;
	padding: 10px 12px;
	border-radius: 9px;
	font-size: 14px;
	line-height: 1.7;
}
.mmp-v11-waitlist__msg--ok,
.mmp-v11-price__msg--ok { background: #dcfce7; color: #166534; }
.mmp-v11-waitlist__msg--err,
.mmp-v11-price__msg--err { background: #fee2e2; color: #991b1b; }

/* ---------------- Price tracker ---------------- */
.mmp-v11-price {
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	background: #fff;
}
.mmp-v11-price__line {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 800;
}
.mmp-v11-price__verdict { margin: 0 0 12px; font-size: 13px; line-height: 1.7; }
.mmp-v11-price__verdict--low { color: #166534; }
.mmp-v11-price__verdict--avg { color: #92400e; }
.mmp-v11-price__verdict--high { color: #991b1b; }
.mmp-v11-price__alert {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.mmp-v11-price__alert label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	flex-wrap: wrap;
}
.mmp-v11-price__alert input[type="number"] {
	width: 130px;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 14px;
}
.mmp-v11-price__currency { color: #6b7280; }
.mmp-v11-price__saved {
	font-size: 13px;
	color: #166534;
	font-weight: 700;
}
.mmp-v11-price__msg { flex-basis: 100%; }

/* ---------------- Admin pages ---------------- */
.mmp-v11-admin__count {
	font-size: 13px;
	color: #6b7280;
	font-weight: 400;
	margin-inline-start: 8px;
}
.mmp-v11-admin__table { margin-bottom: 28px; }
.mmp-v11-admin__empty {
	padding: 18px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 6px;
}
.mmp-v11-admin__muted { color: #6b7280; font-size: 13px; }
.mmp-v11-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}
.mmp-v11-badge--new { background: #fef3c7; color: #92400e; }
.mmp-v11-badge--done { background: #dcfce7; color: #166534; }

@media (max-width: 640px) {
	.mmp-v11-popup__panel { padding: 22px 16px; }
	.mmp-v11-popup__title { font-size: 20px; }
	.mmp-v11-cookie { text-align: center; }
	.mmp-v11-price__alert input[type="number"] { width: 110px; }
}
