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

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

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

.mmo-chillvn-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-chillvn-widget__filters {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr auto auto auto;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
}

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

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

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

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

.mmo-chillvn-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-chillvn-widget__table tbody td {
	border-bottom: 1px solid #f1f1f1;
	padding: 0.75rem 0.4rem;
	vertical-align: top;
}

.mmo-chillvn-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-chillvn-widget__table tbody.mmo-chillvn-widget__tbody:first-of-type .mmo-chillvn-widget__cat-heading-cell {
	border-top: none;
}

.mmo-chillvn-widget__service-name {
	font-weight: 700;
}

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

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

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

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

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

/* Toasts (widget notifications) */
.mmo-chillvn-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-chillvn-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-chillvn-toast-in 0.22s ease;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.mmo-chillvn-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-chillvn-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-chillvn-modal__close:hover {
	background: #f1f5f9;
	color: #0f172a;
}

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

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

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

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

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

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

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

.mmo-chillvn-modal__input,
.mmo-chillvn-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-chillvn-modal__textarea {
	resize: vertical;
	min-height: 4rem;
}

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

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

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

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

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

.mmo-chillvn-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-chillvn-modal__switch input:checked + .mmo-chillvn-modal__switch-ui {
	background: #1877f2;
}

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

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

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

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

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

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

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

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

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

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

.mmo-chillvn-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-chillvn-modal__hint {
	margin: 0.4rem 0 0;
	font-size: 0.8rem;
	color: #64748b;
}

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

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

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

.mmo-chillvn-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-chillvn-modal__info-col {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 1rem 1.1rem;
	background: #fafafa;
	align-self: start;
}

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

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

.mmo-chillvn-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;
}