/* Container */
.next-downloads {
  margin: 2rem 0;
}

/* Section wrapper */
.downloads-section {
  border: 1px solid #b8b8b8;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* Accordion header */
.downloads-accordion-header {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background: #fff;
	border: none;
	border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
}
.downloads-accordion-header:hover,
.downloads-accordion-header:active,
.downloads-accordion-header:focus {
	color: var(--fl-global-color-1);
	border: none;
	background: none;
}

/* Accordion header: room for icon */
.downloads-accordion-header {
  position: relative;
  padding-right: 2rem;
}

/* Collapsed: Font Awesome “plus” (fa-plus) */
.downloads-accordion-header::after {
  content: "\f067";                   /* Unicode for fa-plus */
  font-family: "Font Awesome 6 Free"; 
  font-weight: 600;                 /* solid style */
  position: absolute;
	color: #b8b8b8;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
	font-size: 13px !important;
}

/* Expanded: Font Awesome “minus” (fa-minus) */
.downloads-accordion-header[aria-expanded="true"]::after {
  content: "\f068";                   /* Unicode for fa-minus */
	
	color: #b8b8b8;
}



/* Accordion content & table */
.downloads-accordion-content {
  display: block;
  padding: 1rem;
	border-top: 1px solid #b8b8b8;
	border-radius:0;
}
.downloads-table {
  width: 100%;
  border-collapse: collapse;
}
.downloads-table tr {
	border-bottom: 1px solid #b8b8b8;
}
.downloads-table th,
.downloads-table td {
  padding: 0.5rem 0.75rem;
  border: none;
  vertical-align: middle;
}
.downloads-table th {
  background: #fafafa;
  text-align: left;
}
.downloads-table td.col-select {
  width: 2.5rem;
  text-align: center;
}

.downloads-table label {
	font-size: 13px;
	font-weight: normal;
}

/* Hide legacy toggle */
.download-toggle { display: none; }

/* Checkbox styling (optional basic) */
.download-select {
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
}

/* Per‐section “Download” button container */
.download-actions-section {
  text-align: right;
  margin-top: 0.75rem;
}

/* Icon‐only button */
.download-all-section {
  background: none;
  border: none;
  font-size: 1.6rem;    /* larger icon */
  cursor: pointer;
  color: #000;
}
.download-all-section:hover {
	color: var(--fl-global-color-1);
	border: none;
	background: none;
}
.download-all-section:disabled {
  opacity: 0.15;
  cursor: default;
}

.doc-actions {
	text-align: right;
}
.doc-actions a {
	color: #000;
	padding-right: 10px;
}
.doc-actions a:hover {
	color: var(--fl-global-color-1);
}

/* ─── Download-Center additions ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 1rem;
}
.products-grid input[type=checkbox] {
    width: 16px;
    height: 15px;
    border: 0;
    margin: 0.205em 0 0;
    padding: 0;
    float: left;
    font-size: 1em;
}
.products-grid input:checked {
	color: #FFF;
	background: #000;
}
.products-grid input[type=checkbox].file-category-checkbox {
	margin-top: -1px;
	margin-right: 10px;
}
.download-product-box {
  border: 1px solid #b8b8b8;
  border-radius: 10px;
  padding: 1rem;
}
.product-download-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
	border-bottom: 1px solid #b8b8b8;
}
.product-count {
  margin-left: 0.5rem;
}
.file-categories-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.file-category-label {
  font-size: 13px;
	font-weight: 400;
  display: flex;
  align-items: center;
	line-height: 2.5 !important;
}
.file-category-label input {
  margin-right: 0.5rem;
}

.download-actions-bottom {
	text-align: center;
	margin-top: 45px;
}
.download-count {
	display: block;
}
.download-actions-bottom .download-all-section {
	color: #FFF;
	padding: 15px 30px;
	margin-top: 20px;
	border: none;
	border-radius: 0;
	background: #000;
}
.download-actions-bottom .download-all-section:hover {
	color: #FFF;
	background: var(--fl-global-color-1);
	border: none;
}
/* reuse your .download-actions-section & .download-all-section */


/* -------------------------------------------------
   NEXT Lighting Downloads: responsive section grid
-------------------------------------------------- */

.next-downloads {
  display: grid;
  grid-template-columns: 1fr; /* mobile default */
  gap: 20px;
  align-items: start;
}


/* Tablet: 2 across */
@media (min-width: 768px) {
  .next-downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
	.single-products .next-downloads {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Desktop: 3 across */
@media (min-width: 1024px) {
  .next-downloads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
	.single-products .next-downloads {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Make each section behave like a nice card */
.next-downloads .downloads-section {
  width: 100%;
  min-width: 0; /* prevents overflow in grids */
}

/* Ensure accordion + content fill the grid cell */
.next-downloads .downloads-accordion-header,
.next-downloads .downloads-accordion-content {
  width: 100%;
}

/* Tables should never blow out the grid column */
.next-downloads .downloads-table {
  width: 100%;
  table-layout: fixed; /* helps keep columns contained */
}

.next-downloads .downloads-table td {
  vertical-align: middle;
}

/* Long filenames should wrap instead of forcing horizontal scroll */
.next-downloads .downloads-table .doc-title label {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
