:root {
	--ab-mint: #c5e6da;
	--ab-mint-light: #e9f6f1;
	--ab-green: #163f3b;
	--ab-green-soft: #2b5a54;
	--ab-white: #ffffff;
	--ab-border: rgba(22, 63, 59, 0.22);
	--ab-coral: #e4754e;
	--ab-coral-soft: #fff3ed;
}

.ab-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.ab-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ab-border);
	border-radius: 20px;
	background: var(--ab-white);
	box-shadow: 0 14px 34px rgba(22, 63, 59, 0.08);
	color: var(--ab-green);
}

.ab-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--ab-mint-light);
}

.ab-card__image,
.ab-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ab-card__placeholder {
	background: linear-gradient(135deg, var(--ab-mint), var(--ab-mint-light));
}

.ab-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 18px 18px 20px;
}

.ab-card__meta {
	margin: 0;
	color: var(--ab-green-soft);
	font-size: 13px;
	font-weight: 700;
}

.ab-card__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
}

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

.ab-card__lead {
	margin: 0;
	flex: 1;
	line-height: 1.5;
}

.ab-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 4px 0 0;
	font-size: 14px;
}

.ab-filters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	gap: 12px;
	align-items: end;
	margin: 0 0 24px;
	overflow: visible;
}

.ab-filter,
.ab-filters label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	position: relative;
	font-weight: 700;
	font-size: 14px;
	color: var(--ab-green);
}

.ab-filter:has(.ab-select.is-open) {
	z-index: 40;
}

.ab-filter__label {
	font-weight: 700;
}

.ab-filters input,
.ab-filters select,
.ab-form input:not([type="checkbox"]):not([type="radio"]),
.ab-form select,
.ab-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border: 1.5px solid var(--ab-border);
	border-radius: 14px;
	background: var(--ab-white);
	color: var(--ab-green);
	font: inherit;
}

.ab-btn-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--ab-coral);
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.ab-btn-pill:hover,
.ab-btn-pill:focus-visible {
	filter: brightness(0.96);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(228, 117, 78, 0.28);
}

.ab-btn-pill--sm {
	min-height: 36px;
	padding: 8px 16px;
	font-size: 13px;
}

.ab-filters .ab-btn-pill {
	white-space: nowrap;
}

.ab-select {
	position: relative;
	width: 100%;
}

.ab-select__native {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	min-height: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.ab-select__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	padding: 0 16px;
	border: 1.5px solid var(--ab-border);
	border-radius: 14px;
	background: var(--ab-white);
	color: var(--ab-green);
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ab-select__trigger:hover,
.ab-select.is-open .ab-select__trigger,
.ab-select__trigger:focus-visible {
	border-color: rgba(22, 63, 59, 0.4);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(22, 63, 59, 0.08);
	outline: none;
}

.ab-select__value {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ab-select__chevron {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	margin-top: -4px;
	border-right: 2px solid var(--ab-green);
	border-bottom: 2px solid var(--ab-green);
	transform: rotate(45deg);
	transition: transform 0.22s ease;
}

.ab-select.is-open .ab-select__chevron {
	margin-top: 4px;
	transform: rotate(225deg);
}

.ab-select__menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 50;
	max-height: 0;
	overflow: hidden;
	padding: 0 8px;
	border: 1px solid transparent;
	border-radius: 16px;
	background: var(--ab-white);
	box-shadow: none;
	opacity: 0;
	transform: translateY(-12px);
	pointer-events: none;
	visibility: hidden;
	transition:
		max-height 0.32s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.22s ease,
		transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
		padding 0.28s ease,
		box-shadow 0.22s ease,
		border-color 0.22s ease,
		visibility 0.32s;
}

.ab-select.is-open .ab-select__menu {
	max-height: 280px;
	padding: 8px;
	border-color: rgba(228, 117, 78, 0.22);
	box-shadow: 0 18px 40px rgba(22, 63, 59, 0.16);
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
	visibility: visible;
}

.ab-select__list {
	margin: 0;
	padding: 0;
	list-style: none;
	max-height: 256px;
	overflow: auto;
}

.ab-select__option {
	padding: 10px 12px;
	border-radius: 10px;
	color: var(--ab-green);
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-6px);
	transition: background 0.16s ease, color 0.16s ease, opacity 0.22s ease, transform 0.22s ease;
}

.ab-select.is-open .ab-select__option {
	opacity: 1;
	transform: translateY(0);
}

.ab-select.is-open .ab-select__option:nth-child(1) { transition-delay: 0.02s; }
.ab-select.is-open .ab-select__option:nth-child(2) { transition-delay: 0.04s; }
.ab-select.is-open .ab-select__option:nth-child(3) { transition-delay: 0.06s; }
.ab-select.is-open .ab-select__option:nth-child(4) { transition-delay: 0.08s; }
.ab-select.is-open .ab-select__option:nth-child(5) { transition-delay: 0.1s; }
.ab-select.is-open .ab-select__option:nth-child(6) { transition-delay: 0.12s; }
.ab-select.is-open .ab-select__option:nth-child(7) { transition-delay: 0.14s; }
.ab-select.is-open .ab-select__option:nth-child(8) { transition-delay: 0.16s; }

.ab-select__option:hover,
.ab-select__option.is-active {
	background: #e9f6f1;
	color: #163f3b;
}

.ab-select__option.is-selected {
	background: #c5e6da;
	color: #163f3b;
}

.ab-select__option.is-selected:hover,
.ab-select__option.is-selected.is-active {
	background: #b7dccf;
	color: #163f3b;
}

.ab-form textarea {
	min-height: 140px;
	padding: 12px 14px;
}

.ab-form {
	display: grid;
	gap: 14px;
	max-width: 640px;
}

.ab-form--inline {
	grid-template-columns: 1fr auto;
	align-items: end;
	max-width: 720px;
}

.ab-form label {
	display: grid;
	gap: 6px;
	font-weight: 700;
}

.ab-empty,
.ab-placeholder {
	padding: 22px;
	border-radius: 16px;
	background: var(--ab-mint-light);
	color: var(--ab-green);
}

.ab-grid .ab-empty,
.ab-empty--wide {
	grid-column: 1 / -1;
	width: 100%;
	margin: 0;
	text-align: center;
}

.ab-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 12px;
	font-weight: 600;
}

.ab-notice--success {
	background: var(--ab-mint);
}

.ab-notice--error {
	background: #f8d7da;
}

.ab-notice--info {
	background: var(--ab-mint-light);
}

.ab-single__inner,
.ab-archive .ab-single__inner {
	width: min(1120px, calc(100% - 32px));
	margin: 32px auto 64px;
}

.ab-single__hero img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
}

.ab-single__lead {
	font-size: 1.15rem;
	line-height: 1.5;
}

.ab-single__meta-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 24px 0;
}

.ab-single__meta-item {
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--ab-mint);
}

.ab-single__meta-item span {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
}

.ab-player audio,
.ab-player video {
	width: 100%;
	margin: 16px 0;
}

.ab-single__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 20px 0;
}

.ab-related {
	margin-top: 40px;
}

.ab-table-wrap {
	overflow: hidden;
	width: 100%;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(22, 63, 59, 0.08);
}

.ab-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: transparent;
}

.ab-table th,
.ab-table td {
	padding: 16px 18px;
	border: 0;
	border-bottom: 1px solid rgba(22, 63, 59, 0.08);
	text-align: left;
	vertical-align: middle;
}

.ab-table thead th {
	background: #c5e6da;
	color: #163f3b;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: none;
}

.ab-table thead th:first-child {
	border-top-left-radius: 20px;
}

.ab-table thead th:last-child {
	border-top-right-radius: 20px;
}

.ab-table tbody td {
	background: #fff;
	color: #163f3b;
	font-weight: 600;
}

.ab-table__price,
.ab-table td.ab-table__price {
	white-space: nowrap;
}

.ab-table tbody tr:hover td {
	background: #fff8f4;
}

.ab-table tbody tr:last-child td {
	border-bottom: 0;
}

.ab-status {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.ab-status--pending {
	background: #ffe8cc;
	color: #b54708;
}

.ab-status--paid {
	background: #d1f5dc;
	color: #146c43;
}

.ab-status--failed {
	background: #f8d7da;
	color: #b42318;
}

.ab-status--cancelled {
	background: #e7e7e7;
	color: #667085;
}

@media (max-width: 960px) {
	.ab-grid,
	.ab-filters,
	.ab-single__meta-grid {
		grid-template-columns: 1fr;
	}

	.ab-form--inline {
		grid-template-columns: 1fr;
	}
}

body.ab-modal-open {
	overflow: hidden;
}

.ab-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

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

.ab-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(22, 63, 59, 0.55);
}

.ab-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: min(88vh, 900px);
	overflow: auto;
	padding: 28px 24px 24px;
	border-radius: 20px;
	background: var(--ab-white);
	box-shadow: 0 24px 60px rgba(22, 63, 59, 0.25);
}

.ab-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--ab-mint-light);
	color: var(--ab-green);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.ab-material-detail h2 {
	margin: 0 0 12px;
}

.ab-player--embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	margin: 16px 0;
	overflow: hidden;
	border-radius: 14px;
	background: #000;
}

.ab-player--embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ab-player--pdf {
	width: 100%;
	height: 70vh;
	margin: 16px 0;
	overflow: hidden;
	border-radius: 14px;
	background: var(--ab-mint-light);
}

.ab-player--pdf iframe,
.ab-player img {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ab-player img {
	height: auto;
	border-radius: 14px;
}

.ab-lock-badge {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	width: fit-content;
	line-height: 1.2;
}

.ab-lock-badge svg {
	width: 14px;
	height: 14px;
}

.ab-lock-badge--open {
	background: #e9f6f1;
	color: #146c43;
}

.ab-lock-badge--closed {
	background: #fff3ed;
	color: #e4754e;
}
