/* Keep download choices aligned with the maintained legacy dialogue buttons. */

div.popup_inner.choice div#box_buttons_menu ul li.ajaxtable_downloadOption {
  margin: 0 7px 15px 0 !important;
}

div.popup_inner.choice div#box_buttons_menu ul li a.ajaxtable_downloadType:link,
div.popup_inner.choice div#box_buttons_menu ul li a.ajaxtable_downloadType:visited {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 125px;
  min-height: 82px;
  padding: 18px 20px;
  background-color: #f0f0f0;
  color: var(--lor-color-dark) !important;
  font-size: 1.25em;
  line-height: 1.2;
  text-decoration: none !important;
}

/* Round the ends of the format group. Both rules apply to a single option. */
.popup_outer.choice #box_buttons_menu a.ajaxtable_downloadType:any-link {
  border-radius: 0;
}

.popup_outer.choice #box_buttons_menu .ajaxtable_downloadOption:first-child > a.ajaxtable_downloadType:any-link {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.popup_outer.choice #box_buttons_menu .ajaxtable_downloadOption:last-child > a.ajaxtable_downloadType:any-link {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

div.popup_inner.choice div#box_buttons_menu ul li a.ajaxtable_downloadType:link::before,
div.popup_inner.choice div#box_buttons_menu ul li a.ajaxtable_downloadType:visited::before {
  display: none;
  content: none;
}

div.popup_inner.choice div#box_buttons_menu ul li a.ajaxtable_downloadType i,
div.popup_inner.choice div#box_buttons_menu ul li a.ajaxtable_downloadType svg {
  flex: 0 0 auto;
  margin-right: 10px;
  color: var(--lor-color) !important;
  fill: currentColor;
  font-size: 1.45em;
  line-height: 1;
}

div.popup_inner.choice div#box_buttons_menu ul li a.ajaxtable_downloadType:hover {
  background-color: var(--lor-color-dark);
  color: white !important;
}

div.popup_inner.choice div#box_buttons_menu ul li a.ajaxtable_downloadType:hover i,
div.popup_inner.choice div#box_buttons_menu ul li a.ajaxtable_downloadType:hover svg {
  color: white !important;
  fill: currentColor;
}
div.ajaxtable_container button.ajaxtable_download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  background-color: #ddd;
  color: var(--lor-color);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
}

div.ajaxtable_container button.ajaxtable_download:hover,
div.ajaxtable_container button.ajaxtable_download:focus-visible {
  background-color: var(--lor-color);
  color: #fff;
}