/**
 * Banner sản phẩm tài trợ — chỉ hiển thị từ 1320px trở lên.
 */

.mmo-sponsored-account {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.mmo-sponsored-account__lead {
	line-height: 1.55;
	margin-bottom: 1rem;
}

.mmo-sponsored-account__queue {
	margin: 0.5rem 0 1.25rem 1.25rem;
}

.mmo-sponsored-card {
	position: fixed;
	bottom: 12%;
	z-index: 9970;
	max-width: 280px;
	width: calc(100vw - 24px);
	font-size: 0.875rem;
	line-height: 1.45;
	pointer-events: auto;
}

.mmo-sponsored-card--left {
	left: 10px;
}

.mmo-sponsored-card--right {
	right: 10px;
}

.mmo-sponsored-card__inner {
	background: #fff;
	border: 1px solid #e11d2e;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
	padding: 12px 14px 14px;
}

.mmo-sponsored-card__img {
	text-align: center;
	margin-bottom: 8px;
	border-radius: 8px;
	overflow: hidden;
	background: #f8fafc;
}

.mmo-sponsored-card__img-el {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	display: inline-block;
}

.mmo-sponsored-card__img .woocommerce-placeholder,
.mmo-sponsored-card__img-el--placeholder {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.mmo-sponsored-card__badge {
	display: inline-block;
	background: #e11d2e;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
	margin-bottom: 8px;
	text-transform: none;
}

.mmo-sponsored-card__title {
	font-size: 0.92rem;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.35;
	color: #1e293b;
}

.mmo-sponsored-card__title a {
	color: inherit;
	text-decoration: none;
}

.mmo-sponsored-card__title a:hover {
	text-decoration: underline;
}

.mmo-sponsored-card .star-rating {
	float: none;
	margin: 0 0 8px;
	font-size: 0.85rem;
}

.mmo-sponsored-card__price {
	font-size: 1.05rem;
	font-weight: 800;
	color: #e11d2e;
	margin-bottom: 6px;
}

.mmo-sponsored-card__price del {
	font-size: 0.85rem;
	font-weight: 500;
	opacity: 0.75;
}

.mmo-sponsored-card__stock {
	margin: 0 0 6px;
	font-size: 0.8rem;
	color: #64748b;
}

.mmo-sponsored-card__seller {
	margin: 0 0 10px;
	font-size: 0.8rem;
	color: #475569;
}

.mmo-sponsored-card__seller-name {
	color: #e11d2e;
	font-weight: 700;
}

.mmo-sponsored-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	background: #e11d2e;
	color: #fff !important;
	font-weight: 700;
	font-size: 0.88rem;
	border-radius: 8px;
	text-decoration: none !important;
	text-align: center;
	margin-bottom: 10px;
	transition: filter 0.15s ease;
}

.mmo-sponsored-card__cta:hover {
	filter: brightness(1.06);
	color: #fff !important;
}

.mmo-sponsored-card__cta-star {
	font-size: 1rem;
	line-height: 1;
}

.mmo-sponsored-card__rule {
	border: none;
	border-top: 1px dashed #e2e8f0;
	margin: 0 0 10px;
}

.mmo-sponsored-card__desc {
	margin: 0;
	font-size: 0.78rem;
	color: #64748b;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Ẩn khi cửa sổ < 1320px */
@media (max-width: 1319px) {
	.mmo-sponsored-card {
		display: none !important;
	}
}

/* —— Trang tài khoản: đơn banner + form đặt chỗ —— */

.mmo-sponsored-account__meta {
	margin-bottom: 1.25rem;
}

.mmo-sponsored-purchase {
	margin: 1rem 0 1.75rem;
	padding: 1rem 1.15rem;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 12px;
	background: #fafafa;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.mmo-sponsored-purchase__title {
	margin: 0 0 0.85rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
}

.mmo-sponsored-purchase__form {
	display: flex;
	flex-direction: column;
}

.mmo-sponsored-purchase__search-wrap {
	margin: 0 0 10px;
}

.mmo-sponsored-purchase__search {
	width: 100%;
	box-sizing: border-box;
}

.mmo-sponsored-purchase__sides {
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 0.92rem;
	background: #fff;
}

.mmo-sponsored-purchase__sides legend {
	font-weight: 600;
	padding: 0 4px;
	margin-bottom: 6px;
}

.mmo-sponsored-purchase__side {
	display: block;
	margin-bottom: 6px;
	cursor: pointer;
}

.mmo-sponsored-purchase__actions {
	display: flex;
	justify-content: flex-start;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 4px;
}

.mmo-sponsored-account__orders-title {
	margin: 1.5rem 0 0.75rem;
	font-size: 1.05rem;
}

.mmo-sponsored-account__empty {
	color: rgba(15, 23, 42, 0.55);
	margin: 0 0 1rem;
}

.mmo-sponsored-account__hint {
	margin: 0 0 1rem;
	line-height: 1.55;
	color: rgba(15, 23, 42, 0.75);
}

.mmo-sponsored-order {
	padding: 0.85rem 1rem;
	margin-bottom: 0.65rem;
	border-radius: 8px;
	border: 1px solid rgba(15, 23, 42, 0.1);
	background: #fafafa;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

.mmo-sponsored-order--running {
	border-left: 4px solid #2271b1;
	background: #f0f6fc;
}

.mmo-sponsored-order--pending {
	border-left: 4px solid #dba617;
	background: #fffbeb;
}

.mmo-sponsored-order__main {
	flex: 1;
	min-width: 200px;
	line-height: 1.45;
	font-size: 0.95rem;
}

.mmo-sponsored-order__meta {
	width: 100%;
	font-size: 0.85rem;
	color: rgba(15, 23, 42, 0.65);
	margin-top: 0.25rem;
}

.mmo-sponsored-order__hint {
	width: 100%;
	margin: 0.35rem 0 0;
	font-size: 0.82rem;
	color: rgba(15, 23, 42, 0.55);
}

.mmo-sponsored-order__badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 2px 7px;
	border-radius: 4px;
	background: #2271b1;
	color: #fff;
}

.mmo-sponsored-order__badge--pending {
	background: #b45309;
}

.mmo-sponsored-cancel-form {
	margin: 0;
	align-self: center;
}

.mmo-sponsored-product-list {
	overflow: visible;
	min-height: 0;
	max-height: none;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 6px 8px;
	margin-bottom: 10px;
	background: #fff;
	box-sizing: border-box;
}

.mmo-sponsored-product-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 6px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.92rem;
	line-height: 1.35;
}

.mmo-sponsored-product-row:hover {
	background: #fff;
}

.mmo-sponsored-product-row input {
	margin-top: 3px;
	flex-shrink: 0;
}

.mmo-sponsored-product-row__title {
	flex: 1;
}

.mmo-sponsored-product-empty {
	font-size: 0.88rem;
	color: #64748b;
	margin: 0 0 10px;
}

