/* -----------------------------------------------------------------------------
   NumatAGRI — Product Downloads
   Spec-line list of files. Per-row "Download" link on the right of each row.
   "Download all" sits right-aligned beneath, styled the same as the per-row
   links (no large dark button) and separated by a hairline from the list.

   Design system reference:
     - Row hairline matches .spec-line  (rgba(1,61,28,0.1))
     - Filename uses --text-heading      (#013D1C)
     - Link uses .ng-link arrow-slide pattern (text + arrow, no underline)
   -------------------------------------------------------------------------- */

.numat-product-downloads {
	margin: 16px 0;
	font-family: inherit;
}

.numat-product-downloads--empty p {
	margin: 0;
	color: #58595B;
	font-size: 15px;
	font-style: italic;
}

/* -----------------------------------------------------------------------------
   List of file rows
   -------------------------------------------------------------------------- */

.numat-product-downloads__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.numat-product-downloads__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid rgba(1, 61, 28, 0.1);
}

/* No hairline below the last (or only) row — the all-row's top border
   takes over when it's present. */
.numat-product-downloads__row:last-child {
	border-bottom: 0;
}

.numat-product-downloads__name {
	flex: 1 1 auto;
	min-width: 0;
	font-family: 'Soho Gothic Pro', system-ui, sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: #013D1C;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* -----------------------------------------------------------------------------
   Per-row and "Download all" links — shared styling.
   The all-link adds a top hairline + padding to separate from the list.
   -------------------------------------------------------------------------- */

.numat-product-downloads .numat-product-downloads__link,
.numat-product-downloads button.numat-product-downloads__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	padding: 4px 2px;
	background: transparent;
	border: 0;
	font-family: 'Soho Gothic Pro', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: #000;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.numat-product-downloads .numat-product-downloads__link svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.numat-product-downloads .numat-product-downloads__link:hover,
.numat-product-downloads .numat-product-downloads__link:focus-visible,
.numat-product-downloads button.numat-product-downloads__link:hover,
.numat-product-downloads button.numat-product-downloads__link:focus-visible {
	color: #017A37;
	text-decoration: none;
	outline: none;
}

.numat-product-downloads .numat-product-downloads__link:hover svg,
.numat-product-downloads .numat-product-downloads__link:focus-visible svg {
	transform: translateY(2px);
}

.numat-product-downloads .numat-product-downloads__link:focus-visible {
	outline: 2px solid #FED828;
	outline-offset: 3px;
	border-radius: 2px;
}

/* -----------------------------------------------------------------------------
   "Download all" row — right-aligned, separated from list by a hairline
   -------------------------------------------------------------------------- */

.numat-product-downloads__all-row {
	display: flex;
	justify-content: flex-end;
	padding-top: 14px;
	border-top: 1px solid rgba(1, 61, 28, 0.1);
}

.numat-product-downloads__all-form {
	margin: 0;
}

/* -----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
	.numat-product-downloads__row {
		flex-wrap: wrap;
		gap: 8px;
		padding: 12px 0;
	}
	.numat-product-downloads__name {
		flex-basis: 100%;
		white-space: normal;
		text-overflow: clip;
	}
}
