/* ── Amino COA Table Block ─────────────────────────────────────── */

.amino-coa-wrap {
	margin: 20px 0;
}

.amino-coa-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.amino-coa-group {
	border: 2px solid #e8eaed;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.amino-coa-group-title {
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 700;
	color: #1a202c;
	background: #f7fafc;
	border-bottom: 1px solid #e2e8f0;
}

.amino-coa-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.amino-coa-table thead th {
	padding: 8px 14px;
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #718096;
	background: #f7fafc;
	border-bottom: 1px solid #e2e8f0;
}

.amino-coa-table thead th:last-child {
	text-align: right;
}

.amino-coa-table tbody td {
	padding: 10px 14px;
	border-bottom: 1px solid #edf2f7;
	color: #2d3748;
}

.amino-coa-table tbody tr:last-child td {
	border-bottom: none;
}

.amino-coa-current {
	background: #faf7ff;
}

.amino-coa-current .amino-coa-batch {
	font-weight: 600;
}

.amino-coa-past {
	background: #fff;
}

.amino-coa-mg {
	font-weight: 600;
	color: #9876c6;
}

.amino-coa-actions {
	text-align: right;
	white-space: nowrap;
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	align-items: center;
}

.amino-coa-view,
.amino-coa-dl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #4a5568;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	padding: 0;
}

.amino-coa-view:hover,
.amino-coa-dl:hover {
	background: #9876c6;
	color: #fff;
	border-color: #9876c6;
}

.amino-coa-view-link {
	color: #9876c6;
	font-weight: 600;
	font-size: 12px;
	cursor: pointer;
}
.amino-coa-view-link:hover {
	text-decoration: underline;
}

/* Single product table — wrap with the same border treatment as grouped tables */
.amino-coa-wrap:not(.amino-coa-grid) .amino-coa-table-wrap {
	border: 2px solid #e8eaed;
	border-radius: 10px;
	overflow: hidden;
}
.amino-coa-wrap:not(.amino-coa-grid) {
	max-width: 600px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.amino-coa-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.amino-coa-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.amino-coa-table {
		font-size: 13px;
	}
	.amino-coa-table thead th,
	.amino-coa-table tbody td {
		padding: 8px 10px;
	}
}

/* ── Badges ─────────────────────────────────────────────────────── */
.amino-coa-purchased {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: #379d9b;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 6px;
	vertical-align: middle;
	line-height: 1.4;
}

.amino-coa-purchased-row {
	background: #faf3ff !important;
}
.amino-coa-purchased-row .amino-coa-batch {
	font-weight: 600;
}

.amino-coa-purchase-date {
	display: inline-block;
	font-size: 11px;
	font-weight: 400;
	color: #a0aec0;
	margin-left: 6px;
	vertical-align: middle;
}

.amino-coa-current-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #fff;
	background: #38a169;
	padding: 2px 8px;
	border-radius: 10px;
	margin-left: 6px;
	vertical-align: middle;
	line-height: 1.4;
}

.amino-coa-current.amino-coa-purchased-row {
	background: #faf3ff !important;
}

/* ── Show more toggle ───────────────────────────────────────────── */
.amino-coa-table-wrap.amino-coa-collapsed tbody tr:nth-child(n+5) {
	display: none;
}
.amino-coa-show-more {
	display: block;
	width: 100%;
	font-size: 12px;
	font-weight: 600;
	color: #9876c6 !important;
	background: none !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	cursor: pointer;
	text-align: center;
	text-decoration: none !important;
	padding: 8px 0 !important;
	margin: 0 0 10px;
	opacity: 1 !important;
}
.amino-coa-show-more:hover {
	color: #876bb5 !important;
	text-decoration: none !important;
	background: none !important;
	box-shadow: none !important;
	transform: none !important;
}

/* ── Lightbox ───────────────────────────────────────────────────── */
.amino-coa-lightbox {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	background: rgba(0, 0, 0, 0.85);
	justify-content: center;
	align-items: center;
	cursor: zoom-out;
}

.amino-coa-lightbox.active {
	display: flex;
}

.amino-coa-lightbox img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	cursor: grab;
	transition: transform 0.3s ease;
}

.amino-coa-lightbox img.zoomed {
	cursor: grabbing;
	max-width: none;
	max-height: none;
}

.amino-coa-lightbox-close {
	position: absolute;
	top: 16px;
	right: 24px;
	font-size: 36px;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	font-weight: 300;
	z-index: 1000000;
}
.amino-coa-lightbox-close:hover {
	color: #ccc;
}

.amino-coa-lightbox-dl {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: inline-block;
	padding: 10px 28px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #9876c6;
	text-decoration: none;
	z-index: 1000001;
	transition: background 0.2s ease;
}
.amino-coa-lightbox-dl:hover {
	background: #876bb5;
	color: #fff;
}
