/* AG Voucher – Author: August - https://augustcsgo.com */

/* ---------- Danh sách ----------
 * Số cột theo thiết bị: --ag-vc-cols (máy tính), --ag-vc-cols-md (tablet ≤ 849px), --ag-vc-cols-sm (điện thoại ≤ 549px).
 * Kiểu "Vuốt ngang": số cột = số thẻ thấy cùng lúc (số lẻ như 1.2 để lộ mép thẻ kế tiếp, gợi ý vuốt). */
.ag-vc-list {
	--ag-vc-cols: 2;
	--ag-vc-cur: var(--ag-vc-cols);
	--ag-vc-gap: 14px;
	display: grid;
	grid-template-columns: repeat(var(--ag-vc-cur), minmax(0, 1fr));
	gap: var(--ag-vc-gap);
	margin: 0 0 20px;
}

@media (max-width: 849px) {
	.ag-vc-list {
		--ag-vc-cur: var(--ag-vc-cols-md, 2);
	}
}

@media (max-width: 549px) {
	.ag-vc-list {
		--ag-vc-cur: var(--ag-vc-cols-sm, 1);
		--ag-vc-gap: 10px;
	}
}

.ag-vc-list--stack {
	display: flex;
	flex-direction: column;
	max-height: 60vh;
	padding: 4px;
	overflow-y: auto;
}

/* Thẻ trong khung cuộn không bị ép dẹt */
.ag-vc-list--stack > .ag-vc-card {
	flex-shrink: 0;
}

.ag-vc-list--slider {
	display: flex;
	gap: var(--ag-vc-gap);
	padding: 4px 2px 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ag-vc-list--slider::-webkit-scrollbar {
	display: none;
}

.ag-vc-list--slider .ag-vc-card {
	flex: 0 0 calc((100% - (var(--ag-vc-cur) - 1) * var(--ag-vc-gap)) / var(--ag-vc-cur));
	scroll-snap-align: start;
}

.ag-vc-empty {
	padding: 14px;
	text-align: center;
	color: #6b7280;
	background: #f9fafb;
	border-radius: 10px;
}

.ag-vc-muted {
	color: #6b7280;
	font-size: 0.9em;
}

/* ---------- Thẻ voucher dạng vé ---------- */
.ag-vc-card {
	--ag-vc: #ef4444;
	--ag-vc-stub: 92px;
	position: relative;
	display: flex;
	min-height: 104px;
	overflow: hidden;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.05);
	isolation: isolate;
}

/* Răng cưa 2 cạnh của phần cuống */
.ag-vc-card__stub {
	position: relative;
	display: flex;
	flex: 0 0 var(--ag-vc-stub);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	padding: 10px 6px;
	color: #fff;
	text-align: center;
	background:
		radial-gradient(circle at 0 50%, transparent 5px, transparent 5.5px) left / 6px 14px repeat-y,
		linear-gradient(135deg, var(--ag-vc), color-mix(in srgb, var(--ag-vc) 70%, #f59e0b));
	-webkit-mask: radial-gradient(circle 4px at 0 7px, transparent 98%, #000) 0 0 / 100% 14px repeat-y;
	mask: radial-gradient(circle 4px at 0 7px, transparent 98%, #000) 0 0 / 100% 14px repeat-y;
}

.ag-vc-card.is-wholesale .ag-vc-card__stub {
	background: linear-gradient(135deg, var(--ag-vc), color-mix(in srgb, var(--ag-vc) 65%, #4cc38a));
}

.ag-vc-card__big {
	font-size: 22px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.01em;
}

.ag-vc-card__small {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	opacity: 0.9;
}

.ag-vc-card__tag {
	margin-top: 4px;
	padding: 1px 7px;
	font-size: 10px;
	font-weight: 800;
	color: var(--ag-vc);
	background: #fff;
	border-radius: 999px;
}

/* Đường đứt + 2 khuyết tròn trên / dưới */
.ag-vc-card__rip {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	border-left: 2px dashed color-mix(in srgb, var(--ag-vc) 35%, #e5e7eb);
}

.ag-vc-card::before,
.ag-vc-card::after {
	content: "";
	position: absolute;
	left: calc(var(--ag-vc-stub) - 8px);
	z-index: 2;
	width: 16px;
	height: 16px;
	background: var(--ag-vc-bg, #f5f6f7);
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.ag-vc-card::before { top: -8px; }
.ag-vc-card::after { bottom: -8px; }

.ag-vc-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	padding: 10px 6px 10px 14px;
}

.ag-vc-card__title {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
	color: #111827;
}

.ag-vc-card__cond {
	font-size: 12.5px;
	color: #4b5563;
}

.ag-vc-card__bar {
	height: 5px;
	margin-top: 2px;
	overflow: hidden;
	background: #f3f4f6;
	border-radius: 999px;
}

.ag-vc-card__bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, color-mix(in srgb, var(--ag-vc) 60%, #fde68a), var(--ag-vc));
	border-radius: 999px;
}

.ag-vc-card__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 8px;
	font-size: 11.5px;
	color: #6b7280;
}

.ag-vc-card__time.is-hot {
	font-weight: 700;
	color: #dc2626;
}

.ag-vc-card__action {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 10px 12px 10px 4px;
}

.ag-vc-card__need {
	max-width: 86px;
	font-size: 10.5px;
	line-height: 1.2;
	text-align: center;
	color: #b45309;
}

.ag-vc-card__badge {
	padding: 3px 9px;
	font-size: 12px;
	font-weight: 700;
	color: #6b7280;
	background: #f3f4f6;
	border-radius: 6px;
}

.ag-vc-card--out,
.ag-vc-card--used,
.ag-vc-card--ended {
	filter: grayscale(0.85);
	opacity: 0.7;
}

/* ---------- Nút ---------- */
.ag-vc-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 76px;
	min-height: 0;
	margin: 0;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: none;
	text-decoration: none;
	color: #fff !important;
	background: var(--ag-vc, #ef4444);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: transform 0.12s ease, filter 0.15s ease, background-color 0.2s ease;
}

.ag-vc-btn:hover { filter: brightness(1.06); }
.ag-vc-btn:active { transform: scale(0.95); }
.ag-vc-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.ag-vc-btn.is-ghost {
	color: var(--ag-vc) !important;
	background: #fff;
	box-shadow: inset 0 0 0 1.5px var(--ag-vc);
}

.ag-vc-btn.is-saved {
	animation: ag-vc-pop 0.45s ease;
}

@keyframes ag-vc-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.18); }
	100% { transform: scale(1); }
}

/* Pháo giấy khi lưu */
.ag-vc-confetti {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	width: 6px;
	height: 6px;
	border-radius: 1px;
	pointer-events: none;
	animation: ag-vc-burst 0.7s ease-out forwards;
}

@keyframes ag-vc-burst {
	from { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
	to { transform: translate(var(--x), var(--y)) rotate(320deg); opacity: 0; }
}

/* ---------- Hiệu ứng xé vé từ phải sang trái ---------- */
/* Cả mảnh vé (thân + nút) bị cắt dần từ phải sang trái, mép răng cưa chạy theo đúng đường cắt. */
.ag-vc-card.is-tearing {
	background: #eef0f3;
}

.ag-vc-card.is-tearing .ag-vc-card__rip {
	background: #fff;
	animation: ag-vc-tear 1.3s cubic-bezier(0.45, 0.05, 0.35, 1) forwards;
}

.ag-vc-card.is-torn .ag-vc-card__rip > *:not(.ag-vc-card__done) {
	display: none;
}

@keyframes ag-vc-tear {
	from { clip-path: inset(-6px 0 -6px 0); }
	to { clip-path: inset(-6px 100% -6px 0); }
}

/* Mép giấy rách (răng cưa) chạy từ phải sang trái */
.ag-vc-card__edge {
	position: absolute;
	top: -2px;
	bottom: -2px;
	right: 0;
	z-index: 3;
	width: 10px;
	background:
		linear-gradient(135deg, transparent 50%, #fff 50%) 0 0 / 10px 10px repeat-y,
		linear-gradient(45deg, #fff 50%, transparent 50%) 0 5px / 10px 10px repeat-y;
	filter: drop-shadow(-2px 0 1px rgba(0, 0, 0, 0.28)) drop-shadow(2px 0 3px rgba(0, 0, 0, 0.12));
	animation: ag-vc-edge 1.3s cubic-bezier(0.45, 0.05, 0.35, 1) forwards;
	pointer-events: none;
}

@keyframes ag-vc-edge {
	from { right: 0; opacity: 1; }
	90% { opacity: 1; }
	to { right: calc(100% - var(--ag-vc-stub) - 5px); opacity: 0; }
}

.ag-vc-card__done {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 0;
	min-height: 104px;
	padding: 10px 12px;
	text-align: center;
	background: repeating-linear-gradient(135deg, #fff, #fff 10px, color-mix(in srgb, var(--ag-vc) 5%, #fff) 10px, color-mix(in srgb, var(--ag-vc) 5%, #fff) 20px);
	animation: ag-vc-fade 0.4s ease both;
}

.ag-vc-card__done small {
	line-height: 1.4;
}

@keyframes ag-vc-fade {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: none; }
}

.ag-vc-card__done strong {
	font-size: 14px;
	color: var(--ag-vc);
}

.ag-vc-card__done code {
	padding: 2px 8px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #111827;
	background: #fff;
	border: 1px dashed var(--ag-vc);
	border-radius: 6px;
}

.ag-vc-card__done small {
	font-size: 11.5px;
	color: #4b5563;
}

.ag-vc-card__done a {
	font-size: 12px;
	font-weight: 700;
	color: var(--ag-vc);
}

/* ---------- Thông báo nổi ---------- */
.ag-vc-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 99999;
	max-width: min(92vw, 420px);
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	background: rgba(17, 24, 39, 0.92);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transform: translate(-50%, 20px);
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.ag-vc-toast.is-show {
	transform: translate(-50%, 0);
	opacity: 1;
}

.ag-vc-toast a {
	margin-left: 6px;
	color: #86efac;
}

/* ---------- Hộp mời đăng nhập / chọn voucher ---------- */
.ag-vc-modal {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(17, 24, 39, 0.5);
}

.ag-vc-modal[hidden] {
	display: none;
}

.ag-vc-modal__box {
	position: relative;
	width: min(480px, 100%);
	max-height: 90vh;
	padding: 24px 20px 20px;
	overflow: auto;
	text-align: center;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: ag-vc-fade 0.25s ease both;
}

.ag-vc-modal--picker .ag-vc-modal__box {
	text-align: left;
	background: #f5f6f7;
}

.ag-vc-modal__box h3 {
	margin: 4px 0 6px;
}

.ag-vc-modal__icon {
	font-size: 40px;
}

.ag-vc-modal__x {
	position: absolute;
	top: 6px;
	right: 10px;
	min-height: 0;
	margin: 0;
	padding: 4px 8px;
	font-size: 24px;
	line-height: 1;
	color: #6b7280;
	background: none;
	border: 0;
	cursor: pointer;
}

/* ---------- Nút chọn voucher ở giỏ / thanh toán ---------- */
.ag-vc-picker {
	width: 100%;
	margin: 8px 0 12px;
}

.ag-vc-picker__open {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 700;
	text-transform: none;
	color: #b91c1c;
	background: #fff5f5;
	border: 1.5px dashed #fca5a5;
	border-radius: 10px;
	cursor: pointer;
}

.ag-vc-picker__open span {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
}

/* ---------- Kho voucher ---------- */
.ag-vc-wallet {
	--ag-vc-bg: #fff;
}

.ag-vc-tabs {
	display: flex;
	gap: 6px;
	margin: 0 0 14px;
	padding: 4px;
	overflow-x: auto;
	background: #f3f4f6;
	border-radius: 10px;
	scrollbar-width: none;
}

.ag-vc-tab {
	flex: 1 0 auto;
	min-height: 0;
	margin: 0;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 700;
	text-transform: none;
	color: #4b5563;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
}

.ag-vc-tab span {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	margin-left: 4px;
	font-size: 11px;
	line-height: 1;
	vertical-align: 1px;
	color: #fff;
	background: #9ca3af;
	border-radius: 999px;
}

.ag-vc-tab.is-active {
	color: #0b6b4a;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ag-vc-tab.is-active span {
	background: #0f9d6c;
}

.ag-vc-pane {
	display: none;
}

.ag-vc-pane.is-active {
	display: block;
}

/* Icon tab "Kho voucher" trong menu Tài khoản (giao diện AG Khách Sỉ) */
body.ag-ws-myaccount #my-account-nav > li.woocommerce-MyAccount-navigation-link--kho-voucher > a::before {
	--agm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 6h18v4a2 2 0 0 0 0 4v4H3v-4a2 2 0 0 0 0-4zm7 2v2h2V8zm0 3v2h2v-2zm0 3v2h2v-2z'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
	.ag-vc-card {
		--ag-vc-stub: 80px;
	}

	.ag-vc-btn {
		min-width: 62px;
		padding-right: 10px !important;
		padding-left: 10px !important;
	}

	.ag-vc-card__big {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ag-vc-card.is-tearing .ag-vc-card__rip,
	.ag-vc-card__edge,
	.ag-vc-confetti {
		animation-duration: 0.01s !important;
	}
}


/* ---------- Hộp chọn voucher: báo lỗi dưới thẻ, trạng thái đang áp / đã áp ---------- */
.ag-vc-card__err {
	margin-top: 4px;
	padding: 5px 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: #9a3412;
	background: #fff7ed;
	border: 1px dashed #fdba74;
	border-radius: 6px;
}

.ag-vc-card.is-picked {
	box-shadow: 0 0 0 2px var(--ag-vc), 0 6px 18px rgba(0, 0, 0, 0.1);
}

.ag-vc-btn.is-loading {
	opacity: 0.85;
	pointer-events: none;
}

.ag-vc-btn.is-loading::after {
	content: "";
	width: 12px;
	height: 12px;
	margin-left: 6px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ag-vc-spin 0.7s linear infinite;
}

@keyframes ag-vc-spin {
	to { transform: rotate(360deg); }
}

/* Xé xong mà máy chủ chưa trả lời: hiện chữ "Đang áp mã" thay vì khoảng trắng */
.ag-vc-card.is-tearing::after {
	content: "Đang áp mã...";
	position: absolute;
	top: 50%;
	left: calc(var(--ag-vc-stub) + (100% - var(--ag-vc-stub)) / 2);
	z-index: 2;
	font-size: 13px;
	font-weight: 700;
	color: #6b7280;
	white-space: nowrap;
	opacity: 0;
	transform: translate(-50%, -50%);
	animation: ag-vc-show 0.3s ease 1.1s forwards;
	pointer-events: none;
}

@keyframes ag-vc-show {
	to { opacity: 1; }
}


/* =====================================================================
 * Khối Danh sách voucher: tiêu đề + "Xem tất cả", nút ‹ › cho kiểu vuốt ngang
 * ===================================================================== */
.ag-vc-block {
	margin: 0 0 20px;
}

.ag-vc-block .ag-vc-list {
	margin-bottom: 0;
}

.ag-vc-block__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
}

.ag-vc-block__title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: #0b6b4a;
}

.ag-vc-block__more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 14px;
	font-size: 14px;
	font-weight: 700;
	color: #0f9d6c;
	white-space: nowrap;
	background: #ecfdf5;
	border-radius: 999px;
	transition: background-color .2s, color .2s;
}

.ag-vc-block__more:hover {
	color: #fff;
	background: #0f9d6c;
}

.ag-vc-block__more span {
	font-weight: 600;
	opacity: .8;
}

.ag-vc-slide {
	position: relative;
}

.ag-vc-nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	min-height: 0;
	margin: 0 !important;
	padding: 0 0 3px;
	font-size: 26px;
	line-height: 1;
	color: #0b6b4a;
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
	transform: translateY(-50%);
	cursor: pointer;
	transition: opacity .2s, transform .15s;
}

.ag-vc-nav[hidden] {
	display: none;
}

.ag-vc-nav:disabled {
	opacity: 0;
	pointer-events: none;
}

.ag-vc-nav:hover {
	color: #fff;
	background: #0f9d6c;
}

.ag-vc-nav--prev {
	left: -14px;
}

.ag-vc-nav--next {
	right: -14px;
}

.ag-vc-list--slider.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

@media (hover: none) {
	.ag-vc-nav {
		display: none !important; /* Điện thoại: vuốt tay */
	}
}

/* Link "Săn thêm voucher" trong Kho voucher */
.ag-vc-wallet__hunt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 12px;
	padding: 12px 16px;
	font-weight: 800;
	color: #fff !important;
	background: linear-gradient(90deg, #0b6b4a, #0f9d6c 55%, #22b07d);
	border-radius: 12px;
	box-shadow: 0 6px 16px rgba(15, 157, 108, .25);
}

.ag-vc-wallet__hunt span {
	font-size: 20px;
}

/* =====================================================================
 * Trang Săn voucher
 * ===================================================================== */
.ag-vc-center {
	max-width: 1180px;
	margin: 0 auto 30px;
}

.ag-vc-center__hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 14px;
	padding: 20px 22px;
	color: #fff;
	background: linear-gradient(120deg, #0b6b4a, #0f9d6c 55%, #4cc38a);
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(11, 107, 74, .2);
}

.ag-vc-center__title {
	margin: 0 0 4px;
	font-size: 24px;
	font-weight: 800;
	color: #fff;
}

.ag-vc-center__desc {
	margin: 0;
	font-size: 14px;
	opacity: .92;
}

.ag-vc-center__saveall,
.ag-vc-center__saveall:hover {
	color: #0b6b4a !important;
	background: #fff;
	min-height: 42px;
	padding: 0 20px;
	font-size: 14px;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.ag-vc-center__cart {
	margin: 0 0 12px;
	padding: 10px 14px;
	font-size: 14px;
	color: #7c2d12;
	background: #fff7e6;
	border: 1.5px dashed #f7b731;
	border-radius: 12px;
}

.ag-vc-center__bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 12px;
}

.ag-vc-center__search {
	position: relative;
	display: flex;
	flex: 1 1 280px;
	align-items: center;
	margin: 0;
}

.ag-vc-center__search svg {
	position: absolute;
	left: 14px;
	color: #9ca3af;
	pointer-events: none;
}

.ag-vc-center .ag-vc-center__search input {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 16px 0 42px;
	font-size: 15px;
	background: #fff;
	border: 1.5px solid #e2efe8;
	border-radius: 999px;
	box-shadow: none;
}

.ag-vc-center .ag-vc-center__search input:focus {
	border-color: #22b07d;
	outline: none;
	box-shadow: 0 0 0 4px rgba(34, 176, 125, .15);
}

.ag-vc-center__sort {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	color: #4b5563;
}

.ag-vc-center__tab[hidden] {
	display: none;
}

.ag-vc-center .ag-vc-center__sort select {
	height: 46px;
	margin: 0;
	padding: 0 34px 0 14px;
	font-size: 14px;
	font-weight: 700;
	color: #0b6b4a;
	background-color: #fff;
	border: 1.5px solid #e2efe8;
	border-radius: 999px;
}

.ag-vc-center__tabs {
	display: flex;
	gap: 8px;
	margin: 0 0 10px;
	padding-bottom: 4px;
	overflow-x: auto;
	scrollbar-width: none;
}

.ag-vc-center__tabs::-webkit-scrollbar {
	display: none;
}

.ag-vc-center__tab {
	flex: 0 0 auto;
	min-height: 0;
	margin: 0 !important;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	color: #374151;
	background: #f3f4f6;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .2s, color .2s;
}

.ag-vc-center__tab span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	margin-left: 4px;
	padding: 0 6px;
	font-size: 11px;
	line-height: 1;
	color: #fff;
	background: #9ca3af;
	border-radius: 999px;
	box-sizing: border-box;
}

.ag-vc-center__tab.is-active {
	color: #fff;
	background: linear-gradient(90deg, #0f9d6c, #22b07d);
	box-shadow: 0 6px 14px rgba(15, 157, 108, .25);
}

.ag-vc-center__tab.is-active span {
	color: #0b6b4a;
	background: #fff;
}

.ag-vc-center__count {
	margin: 0 0 10px;
	font-size: 13px;
	color: #6b7280;
}

.ag-vc-item {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ag-vc-item[hidden] {
	display: none;
}

.ag-vc-item > .ag-vc-card {
	flex: 1 1 auto;
}

.ag-vc-item__fit {
	margin: 0 0 -6px;
	padding: 6px 12px 12px;
	font-size: 12.5px;
	border-radius: 10px 10px 0 0;
}

.ag-vc-item__fit.is-ok {
	color: #065f46;
	background: #d1fae5;
}

.ag-vc-item__fit.is-need {
	color: #9a3412;
	background: #ffedd5;
}

@media (max-width: 549px) {
	.ag-vc-center__hero {
		padding: 16px;
	}

	.ag-vc-center__title {
		font-size: 20px;
	}

	.ag-vc-center__sort span {
		display: none;
	}

	.ag-vc-center__sort,
	.ag-vc-center .ag-vc-center__sort select {
		flex: 1 1 100%;
		width: 100%;
	}
}
