/**
 * Cart & checkout styles — Misho Mart Pro v1.1.
 *
 * Free gifts, bulk discounts, estimated delivery, gift progress and
 * My Account dashboard widgets. RTL-first, responsive, uses the v1
 * palette (primary #2D1B69, accent #FF6B1A).
 */

/* ------------------------------------------------------------------ */
/*  Free gift                                                          */
/* ------------------------------------------------------------------ */
.mmp-gift-badge {
	display: inline-block;
	background: #15803d;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 999px;
	margin-inline-start: 6px;
	vertical-align: middle;
	white-space: nowrap;
}

.mmp-price-free {
	color: #15803d;
	font-weight: 700;
}

.mmp-gift-progress {
	background: #fff7ed;
	border: 1px solid #fdba74;
	border-radius: 10px;
	padding: 12px 16px;
	margin: 12px 0;
}
.mmp-gift-progress p {
	margin: 0 0 8px;
	font-weight: 700;
	color: #7c2d12;
}
.mmp-gift-progress--done {
	background: #f0fdf4;
	border-color: #86efac;
	color: #14532d;
	font-weight: 700;
}
.mmp-gift-progress__bar {
	height: 8px;
	background: #ffedd5;
	border-radius: 999px;
	overflow: hidden;
}
.mmp-gift-progress__bar span {
	display: block;
	height: 100%;
	background: #ff6b1a;
	border-radius: 999px;
	transition: width .3s ease;
}
/* Progress notice injected at the top of the cart drawer. */
.mmp-cart-drawer .mmp-gift-progress {
	margin: 12px 12px 0;
	padding: 10px 12px;
	font-size: 13px;
}
.mmp-cart-drawer .mmp-gift-progress p {
	margin-bottom: 6px;
}

/* ------------------------------------------------------------------ */
/*  Bulk discounts                                                     */
/* ------------------------------------------------------------------ */
.mmp-price-original {
	color: #94a3b8;
	font-size: .85em;
	margin-inline-end: 4px;
}
.mmp-price-discounted {
	color: #dc2626;
	font-weight: 700;
	text-decoration: none;
}
.mmp-bulk-badge {
	display: inline-block;
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 3px 7px;
	border-radius: 999px;
	margin-inline-start: 4px;
	vertical-align: middle;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/*  Estimated delivery                                                 */
/* ------------------------------------------------------------------ */
.mmp-delivery-estimate {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e3a5f;
	border-radius: 10px;
	padding: 10px 14px;
	margin: 12px 0;
	font-weight: 600;
}
.mmp-delivery-estimate svg {
	flex-shrink: 0;
	color: #2d1b69;
}
.woocommerce-cart .mmp-delivery-estimate,
.woocommerce-checkout .mmp-delivery-estimate {
	margin-inline: 0;
}

/* ------------------------------------------------------------------ */
/*  My Account dashboard widgets                                       */
/* ------------------------------------------------------------------ */
.mmp-account-widgets {
	margin: 24px 0;
}
.mmp-account-widgets__title {
	font-size: 20px;
	margin: 0 0 14px;
}
.mmp-account-widgets__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.mmp-account-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
}
.mmp-account-card h3 {
	margin: 0 0 12px;
	font-size: 16px;
}
.mmp-account-card p {
	margin: 0 0 10px;
	color: #475569;
}
.mmp-account-card__big {
	font-size: 32px;
	font-weight: 800;
	color: #2d1b69;
	margin: 0 0 4px;
}
.mmp-account-orders {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}
.mmp-account-orders li + li {
	border-top: 1px solid #f1f5f9;
}
.mmp-account-orders a {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	padding: 10px 0;
	text-decoration: none;
	color: inherit;
}
.mmp-account-orders a:hover .mmp-account-orders__num {
	color: #ff6b1a;
}
.mmp-account-orders__num {
	font-weight: 700;
	color: #2d1b69;
}
.mmp-account-orders__date {
	color: #64748b;
	font-size: 13px;
}
.mmp-account-orders__status {
	background: #f1f5f9;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
}
.mmp-account-orders__total {
	margin-inline-start: auto;
	font-weight: 700;
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 768px) {
	.mmp-account-widgets__grid {
		grid-template-columns: 1fr;
	}
	.mmp-gift-progress,
	.mmp-delivery-estimate {
		font-size: 14px;
	}
	.mmp-account-orders__total {
		margin-inline-start: 0;
	}
}
