.mmo-smmo360-widget {
	box-sizing: border-box;
	margin: 1rem 0;
	background: #fff;
	border: 1px solid #e7e7e7;
	border-radius: 10px;
	padding: 1rem;
}

.mmo-smmo360-widget__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.8rem;
}

.mmo-smmo360-widget__title {
	margin: 0;
	font-size: 1.5rem;
}

.mmo-smmo360-widget__wallet-pill {
	background: #1877f2;
	color: #fff;
	border-radius: 6px;
	padding: 0.35rem 0.6rem;
	font-weight: 600;
	font-size: 0.88rem;
	white-space: nowrap;
}

.mmo-smmo360-widget__filters {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr auto auto auto;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
}

.mmo-smmo360-widget__filters input,
.mmo-smmo360-widget__filters select {
	height: 38px;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 0 0.7rem;
}

.mmo-smmo360-widget__price-sort.button.warning {
	background: #f2c100;
	border-color: #f2c100;
	color: #222;
}

.mmo-smmo360-widget__table-wrap {
	overflow: auto;
}

.mmo-smmo360-widget__table {
	width: 100%;
	border-collapse: collapse;
}

.mmo-smmo360-widget__table thead th {
	font-size: 0.78rem;
	color: #8d8d8d;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-bottom: 1px solid #ececec;
	padding: 0.6rem 0.4rem;
	text-align: left;
}

.mmo-smmo360-widget__table tbody td {
	border-bottom: 1px solid #f1f1f1;
	padding: 0.75rem 0.4rem;
	vertical-align: top;
}

.mmo-smmo360-widget__cat-heading-cell {
	background: linear-gradient(180deg, #f4f6f9 0%, #eef1f6 100%);
	font-weight: 700;
	font-size: 0.92rem;
	color: #1e3a5f;
	padding: 0.65rem 0.5rem !important;
	border-bottom: 1px solid #dde3ec;
	border-top: 1px solid #dde3ec;
}

.mmo-smmo360-widget__table tbody.mmo-smmo360-widget__tbody:first-of-type .mmo-smmo360-widget__cat-heading-cell {
	border-top: none;
}

.mmo-smmo360-widget__service-name {
	font-weight: 700;
	color: #1877f2;
}

.mmo-smmo360-widget__service-meta {
	font-size: 0.82rem;
	color: #8c8c8c;
	margin-top: 0.2rem;
}

.mmo-smmo360-widget__price {
	color: #2f7fd7;
	font-weight: 700;
	white-space: nowrap;
}

.mmo-smmo360-widget__desc {
	font-size: 0.9rem;
	color: #3d3d3d;
}

.mmo-smmo360-widget__empty {
	opacity: 0.7;
	text-align: center;
}

@media (max-width: 850px) {
	.mmo-smmo360-widget__filters {
		grid-template-columns: 1fr 1fr;
	}
}

/* Mobile: danh sách dịch vụ dạng thẻ, chạm mở popup mua */
@media (max-width: 768px) {
	.mmo-smmo360-widget {
		padding: 0.65rem;
		border-radius: 12px;
	}

	.mmo-smmo360-widget__head {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.mmo-smmo360-widget__title {
		font-size: 1.25rem;
	}

	.mmo-smmo360-widget__filters {
		grid-template-columns: 1fr;
	}

	.mmo-smmo360-widget__filters .button {
		width: 100%;
		justify-content: center;
	}

	.mmo-smmo360-widget__table-wrap {
		overflow: visible;
		margin: 0 -0.15rem;
	}

	.mmo-smmo360-widget__table {
		border-collapse: separate;
		border-spacing: 0 0.55rem;
	}

	.mmo-smmo360-widget__table thead {
		display: none;
	}

	.mmo-smmo360-widget__table tbody.mmo-smmo360-widget__tbody {
		display: block;
	}

	.mmo-smmo360-widget__table>tbody:not(.mmo-smmo360-widget__tbody) tr {
		display: block;
	}

	.mmo-smmo360-widget__empty {
		display: block;
		padding: 1.25rem 0.75rem !important;
		text-align: center;
	}

	.mmo-smmo360-widget__cat-heading {
		display: block;
	}

	.mmo-smmo360-widget__cat-heading-cell {
		display: block;
		border-radius: 8px;
		margin-bottom: 0.15rem;
		padding: 0.55rem 0.65rem !important;
		font-size: 0.85rem;
	}

	.mmo-smmo360-widget__row {
		display: block;
		position: relative;
		background: #fff;
		border: 1px solid #e4e9f0;
		border-radius: 12px;
		box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
		padding: 0.85rem 2.35rem 0.85rem 0.85rem;
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	}

	.mmo-smmo360-widget__row:active,
	.mmo-smmo360-widget__row.mmo-smmo360-widget__row--pressed {
		background: #f8fafc;
		border-color: #cbd5e1;
		box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
	}

	.mmo-smmo360-widget__row::after {
		content: '';
		position: absolute;
		top: 50%;
		right: 0.85rem;
		width: 1.35rem;
		height: 1.35rem;
		margin-top: -0.675rem;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231877f2'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / contain no-repeat;
		pointer-events: none;
	}

	.mmo-smmo360-widget__row td {
		display: block;
		border: none;
		padding: 0;
	}

	.mmo-smmo360-widget__row td:first-child {
		padding-right: 4.5rem;
	}

	.mmo-smmo360-widget__row td:nth-child(2) {
		position: absolute;
		top: 0.85rem;
		right: 2rem;
		text-align: right;
	}

	.mmo-smmo360-widget__row td:nth-child(3) {
		margin-top: 0.45rem;
		font-size: 0.82rem;
		color: #64748b;
		line-height: 1.45;
		display: -webkit-box;
	}

	.mmo-smmo360-widget__row td:nth-child(4) {
		display: none;
	}

	.mmo-smmo360-widget__service-name {
		font-size: 0.95rem;
		line-height: 1.35;
	}

	.mmo-smmo360-widget__service-meta {
		font-size: 0.78rem;
		margin-top: 0.25rem;
	}

	.mmo-smmo360-widget__price {
		font-size: 0.88rem;
	}

	/* Popup mua — bottom sheet trên mobile */
	.mmo-smmo360-modal {
		align-items: flex-end;
		padding: 0;
	}

	.mmo-smmo360-modal__dialog {
		width: 100%;
		max-height: min(92vh, 100%);
		border-radius: 16px 16px 0 0;
		padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
		animation: mmo-smmo360-sheet-up 0.28s ease;
	}

	.mmo-smmo360-modal__close {
		top: 0.15rem;
		right: 0.15rem;
	}

	.mmo-smmo360-modal__grid {
		gap: 1rem;
	}

	.mmo-smmo360-modal__info-col {
		order: -1;
		padding: 0.85rem;
	}

	.mmo-smmo360-modal__service-id {
		font-size: 1.5rem;
	}
}

@keyframes mmo-smmo360-sheet-up {
	from {
		opacity: 0;
		transform: translateY(100%);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 480px) {
	.mmo-smmo360-widget__filters {
		grid-template-columns: 1fr;
	}
}

/* Toasts (widget notifications) */
.mmo-smmo360-toast-wrap {
	position: fixed;
	bottom: 1.25rem;
	right: 1.25rem;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	pointer-events: none;
}

.mmo-smmo360-toast {
	pointer-events: auto;
	min-width: 260px;
	max-width: min(420px, calc(100vw - 2rem));
	padding: 0.85rem 1rem;
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
	font-size: 0.95rem;
	line-height: 1.45;
	animation: mmo-smmo360-toast-in 0.22s ease;
}

.mmo-smmo360-toast--out {
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.mmo-smmo360-toast--info {
	background: #1e3a5f;
	color: #fff;
}

.mmo-smmo360-toast--success {
	background: #166534;
	color: #fff;
}

.mmo-smmo360-toast--warning {
	background: #b45309;
	color: #fff;
}

.mmo-smmo360-toast--error {
	background: #b91c1c;
	color: #fff;
}

@keyframes mmo-smmo360-toast-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 600px) {
	.mmo-smmo360-toast-wrap {
		left: 1rem;
		right: 1rem;
		align-items: stretch;
	}

	.mmo-smmo360-toast {
		min-width: 0;
		max-width: none;
	}
}

/* Đặt hàng — popup */
body.mmo-smmo360-modal-open {
	overflow: hidden;
}

.mmo-smmo360-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.mmo-smmo360-modal[hidden] {
	display: none !important;
}

.mmo-smmo360-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(2px);
}

.mmo-smmo360-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	max-height: min(90vh, 720px);
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
	padding: 1.25rem 1.5rem 1.5rem;
}

.mmo-smmo360-modal__close {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
	border-radius: 6px;
	margin: 0;
	padding: 0;
	width: 48px;
	height: 48px;
	min-width: 48px;
	max-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.mmo-smmo360-modal__close:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.mmo-smmo360-modal__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 0.35rem;
}

@media (max-width: 768px) {
	.mmo-smmo360-modal__grid {
		grid-template-columns: 1fr;
	}
}

.mmo-smmo360-modal__title {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 700;
}

.mmo-smmo360-modal__mode {
	border: none;
	padding: 0;
	margin: 0 0 1rem;
	display: flex;
	gap: 1.25rem;
}

.mmo-smmo360-modal__radio {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	font-size: 0.95rem;
}

.mmo-smmo360-modal__radio input {
	accent-color: #1877f2;
	margin: 0;
}

.mmo-smmo360-modal__label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
	color: #334155;
}

.mmo-smmo360-modal__input,
.mmo-smmo360-modal__textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0.55rem 0.75rem;
	font-size: 0.95rem;
}

.mmo-smmo360-modal__textarea {
	resize: vertical;
	min-height: 4rem;
}

.mmo-smmo360-modal__schedule-block,
.mmo-smmo360-modal__repeat-block {
	margin-top: 1.1rem;
	padding-top: 1rem;
	border-top: 1px solid #e2e8f0;
}

.mmo-smmo360-modal__switch-row {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin-bottom: 0.65rem;
}

.mmo-smmo360-modal__switch {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	cursor: pointer;
}

.mmo-smmo360-modal__switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mmo-smmo360-modal__switch-ui {
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: #cbd5e1;
	display: block;
	position: relative;
	transition: background 0.2s ease;
}

.mmo-smmo360-modal__switch-ui::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	top: 2px;
	left: 2px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.mmo-smmo360-modal__switch input:checked+.mmo-smmo360-modal__switch-ui {
	background: #1877f2;
}

.mmo-smmo360-modal__switch input:checked+.mmo-smmo360-modal__switch-ui::after {
	transform: translateX(20px);
}

.mmo-smmo360-modal__switch input:focus-visible+.mmo-smmo360-modal__switch-ui {
	outline: 2px solid #1877f2;
	outline-offset: 2px;
}

.mmo-smmo360-modal__switch-text {
	font-size: 0.9rem;
	line-height: 1.45;
	color: #0f172a;
}

.mmo-smmo360-modal__switch-text--wide strong {
	display: block;
	margin-bottom: 0.25rem;
}

.mmo-smmo360-modal__tz {
	display: block;
	font-size: 0.82rem;
	color: #64748b;
	margin-top: 0.15rem;
}

.mmo-smmo360-modal__repeat-desc {
	display: block;
	font-size: 0.82rem;
	font-weight: 400;
	color: #475569;
	margin-top: 0.25rem;
}

.mmo-smmo360-modal__repeat-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

@media (max-width: 520px) {
	.mmo-smmo360-modal__repeat-grid {
		grid-template-columns: 1fr;
	}
}

.mmo-smmo360-modal__qty-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.mmo-smmo360-modal__qty {
	width: 8rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 1rem;
}

.mmo-smmo360-modal__price-badge {
	background: #1877f2;
	color: #fff;
	font-weight: 700;
	padding: 0.4rem 0.65rem;
	border-radius: 6px;
	font-size: 0.9rem;
	white-space: nowrap;
}

.mmo-smmo360-modal__hint {
	margin: 0.4rem 0 0;
	font-size: 0.8rem;
	color: #64748b;
}

.mmo-smmo360-modal__toggles {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.mmo-smmo360-modal__toggle {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.82rem;
	color: #64748b;
	cursor: not-allowed;
}

.mmo-smmo360-modal__toggle input {
	margin-top: 0.2rem;
}

.mmo-smmo360-modal__submit {
	width: 100%;
	margin-top: 0.5rem;
	padding: 0.75rem 1rem !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	background: #1877f2 !important;
	border-color: #1877f2 !important;
	color: #fff !important;
	border-radius: 8px !important;
}

.mmo-smmo360-modal__info-col {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 1rem 1.1rem;
	background: #fafafa;
	align-self: start;
}

.mmo-smmo360-modal__service-id {
	font-size: 2rem;
	font-weight: 800;
	color: #1877f2;
	line-height: 1.1;
	margin-bottom: 0.5rem;
}

.mmo-smmo360-modal__service-name {
	font-weight: 700;
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: #0f172a;
}

.mmo-smmo360-modal__service-desc {
	font-size: 0.88rem;
	line-height: 1.5;
	color: #475569;
	white-space: pre-wrap;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}