/* HNW download management */
.swb_hnw_downloads_dynamic {
  margin: 0;
}

.swb_hnw_downloads_recent {
  margin-bottom: 54px;
}

.swb_hnw_downloads_recent > h2 {
  margin-bottom: 24px;
}

.swb_hnw_downloads_search_form {
  display: grid;
  gap: 22px;
  margin: 0;
}

.swb_hnw_downloads_search_header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
}

.swb_hnw_downloads_title {
  margin: 0;
}

.swb_hnw_downloads_view_toggle {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--swb_hnw_line, #dce3ec);
  border-radius: 6px;
  background: var(--swb_hnw_white, #ffffff);
}

.swb_hnw_downloads_view_button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 4px;
  color: var(--swb_hnw_blue, #002f5d);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.swb_hnw_downloads_view_button:hover,
.swb_hnw_downloads_view_button:focus,
.swb_hnw_downloads_view_button_active {
  background: var(--swb_hnw_blue, #002f5d);
  color: var(--swb_hnw_white, #ffffff);
  outline: none;
}

.swb_hnw_downloads_toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: 10px;
  margin: 0;
}

.swb_hnw_downloads_search_field,
.swb_hnw_downloads_select {
  display: block;
  margin: 0;
}

.swb_hnw_downloads_search_field input,
.swb_hnw_downloads_select select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid var(--swb_hnw_line, #dce3ec);
  border-radius: 5px;
  background: var(--swb_hnw_white, #ffffff);
  color: var(--swb_hnw_text, #2d2e33);
  font: inherit;
}

.swb_hnw_downloads_search_field input:focus,
.swb_hnw_downloads_select select:focus {
  border-color: var(--swb_hnw_teal, #00ab96);
  box-shadow: 0 0 0 3px rgba(0, 171, 150, 0.16);
  outline: none;
}

.swb_hnw_downloads_submit,
.swb_hnw_download_result_action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--swb_hnw_teal, #00ab96);
  border-radius: 500px;
  background: var(--swb_hnw_teal, #00ab96);
  color: var(--swb_hnw_white, #ffffff);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.swb_hnw_downloads_actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swb_hnw_downloads_reset {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--swb_hnw_line, #dce3ec);
  border-radius: 500px;
  background: var(--swb_hnw_white, #ffffff);
  color: var(--swb_hnw_blue, #002f5d);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.swb_hnw_downloads_reset:hover,
.swb_hnw_downloads_reset:focus {
  border-color: var(--swb_hnw_blue, #002f5d);
  background: var(--swb_hnw_mint, #d3e5e0);
  color: var(--swb_hnw_blue, #002f5d);
  outline: none;
}

.swb_hnw_downloads_submit:hover,
.swb_hnw_downloads_submit:focus,
.swb_hnw_download_result_action:hover,
.swb_hnw_download_result_action:focus {
  border-color: var(--swb_hnw_teal_dark, #007768);
  background: var(--swb_hnw_teal_dark, #007768);
  color: var(--swb_hnw_white, #ffffff);
  outline: none;
}

.swb_hnw_downloads_result_count {
  margin: 22px 0 18px;
  color: var(--swb_hnw_text_muted, var(--swb_hnw_muted, #6c6d74));
  font-size: 15px;
  font-weight: 700;
}

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

.swb_hnw_downloads_list {
  display: grid;
  gap: 12px;
}

.swb_hnw_downloads_cards > .swb_hnw_download_result,
.swb_hnw_downloads_list > .swb_hnw_download_result {
  margin-block-start: 0;
}

.swb_hnw_download_result {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--swb_hnw_line, #dce3ec);
  border-radius: var(--swb_hnw_radius, 8px);
  background: var(--swb_hnw_white, #ffffff);
  box-shadow: 0 14px 34px rgba(0, 27, 76, 0.07);
}

.swb_hnw_download_result_grid {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.swb_hnw_download_result_list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
}

.swb_hnw_download_result_icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--swb_hnw_mint, #d3e5e0);
  color: var(--swb_hnw_teal_dark, #007768);
  font-size: 25px;
  font-weight: 700;
}

.swb_hnw_download_result_grid .swb_hnw_download_result_icon {
  margin-bottom: 24px;
}

.swb_hnw_download_result_body {
  min-width: 0;
}

.swb_hnw_download_result_grid .swb_hnw_download_result_body {
  width: 100%;
  flex: 1 1 auto;
}

.swb_hnw_download_result_meta {
  margin: 0 0 8px;
  color: var(--swb_hnw_teal_dark, #007768);
  font-size: 13px;
  font-weight: 700;
}

.swb_hnw_download_result h3 {
  margin: 0;
  color: var(--swb_hnw_blue, #002f5d);
  font-size: 21px;
  line-height: 1.25;
}

.swb_hnw_download_result h3 a {
  color: inherit;
  text-decoration: none;
}

.swb_hnw_download_result h3 a:hover,
.swb_hnw_download_result h3 a:focus {
  color: var(--swb_hnw_teal_dark, #007768);
  text-decoration: underline;
  outline: none;
}

.swb_hnw_download_result_description {
  margin: 12px 0 0;
  color: var(--swb_hnw_text_muted, var(--swb_hnw_muted, #6c6d74));
}

.swb_hnw_download_result_categories {
  margin: 10px 0 0;
  color: var(--swb_hnw_blue, #002f5d);
  font-size: 14px;
  font-weight: 700;
}

.swb_hnw_download_result_grid .swb_hnw_download_result_action {
  margin-top: 22px;
}

.swb_hnw_manual_download_card .swb_hnw_download_result_body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.swb_hnw_manual_download_file,
.swb_hnw_manual_download_file .wp-block-file,
.swb_hnw_manual_download_file .wp-block-file__content-wrapper,
.swb_hnw_manual_download_file .wp-block-file__button-richtext-wrapper {
  display: contents;
}

.swb_hnw_manual_download_file a:not(.wp-block-file__button) {
  order: 1;
  color: var(--swb_hnw_blue, #002f5d);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.swb_hnw_manual_download_file a:not(.wp-block-file__button):hover,
.swb_hnw_manual_download_file a:not(.wp-block-file__button):focus {
  color: var(--swb_hnw_teal_dark, #007768);
  text-decoration: underline;
  outline: none;
}

.swb_hnw_manual_download_card .swb_hnw_download_result_categories {
  order: 2;
}

.swb_hnw_manual_download_card .swb_hnw_download_result_description {
  order: 3;
}

.swb_hnw_manual_download_file .wp-block-file__button {
  order: 4;
  align-self: flex-start;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 22px 0 0;
  padding: 10px 18px;
  border: 1px solid var(--swb_hnw_teal, #00ab96);
  border-radius: 500px;
  background: var(--swb_hnw_teal, #00ab96);
  color: var(--swb_hnw_white, #ffffff);
  font-size: inherit;
  font-weight: 700;
  text-decoration: none;
}

.swb_hnw_manual_download_file .wp-block-file__button:hover,
.swb_hnw_manual_download_file .wp-block-file__button:focus {
  border-color: var(--swb_hnw_teal_dark, #007768);
  background: var(--swb_hnw_teal_dark, #007768);
  color: var(--swb_hnw_white, #ffffff);
  outline: none;
}

.swb_hnw_downloads_empty {
  padding: 26px;
  border: 1px solid var(--swb_hnw_line, #dce3ec);
  border-radius: var(--swb_hnw_radius, 8px);
  background: var(--swb_hnw_mint, #d3e5e0);
  color: var(--swb_hnw_blue, #002f5d);
}

.swb_hnw_downloads_pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.swb_hnw_downloads_page,
.swb_hnw_downloads_page_ellipsis {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--swb_hnw_line, #dce3ec);
  border-radius: 5px;
  background: var(--swb_hnw_white, #ffffff);
  color: var(--swb_hnw_blue, #002f5d);
  font-weight: 700;
  text-decoration: none;
}

.swb_hnw_downloads_page:hover,
.swb_hnw_downloads_page:focus,
.swb_hnw_downloads_page_current {
  border-color: var(--swb_hnw_blue, #002f5d);
  background: var(--swb_hnw_blue, #002f5d);
  color: var(--swb_hnw_white, #ffffff);
  outline: none;
}

.swb_hnw_downloads_page_direction {
  padding-inline: 16px;
}

.swb_hnw_downloads_page_ellipsis {
  border-color: transparent;
  background: transparent;
}

.swb_hnw_member_download_notice {
  max-width: 880px;
  padding: 34px;
  border-left: 5px solid var(--swb_hnw_teal, #00ab96);
  border-radius: var(--swb_hnw_radius, 8px);
  background: var(--swb_hnw_mint, #d3e5e0);
  box-shadow: 0 14px 34px rgba(0, 27, 76, 0.06);
}

.swb_hnw_member_download_notice h2 {
  margin-top: 0;
}

.swb_hnw_member_download_notice .wp-block-buttons {
  margin-top: 22px;
}

.swb_hnw_download_back {
  margin: 0 0 26px;
}

.swb_hnw_download_back a {
  color: var(--swb_hnw_blue, #002f5d);
  font-weight: 700;
}

.swb_hnw_download_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(112px, auto);
  align-items: stretch;
  gap: 14px;
  margin-top: 34px;
}

.swb_hnw_download_grid > .swb_hnw_download_item {
  min-height: 112px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
  margin-block-start: 0;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--swb_hnw_radius, 8px);
  background: rgba(255, 255, 255, 0.1);
  color: var(--swb_hnw_white, #ffffff);
  font-weight: 700;
}

.swb_hnw_download_item > p {
  width: 100%;
  margin: 0;
  color: inherit;
}

.swb_hnw_download_category_link {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.swb_hnw_download_icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: var(--swb_hnw_white, #ffffff);
  flex: 0 0 auto;
}

.swb_hnw_download_icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.swb_hnw_download_label {
  min-width: 0;
  line-height: 1.25;
}

.swb_hnw_download_item:hover,
.swb_hnw_download_item:focus-within {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.swb_hnw_download_category_link:focus-visible {
  border-radius: 4px;
  outline: 3px solid var(--swb_hnw_white, #ffffff);
  outline-offset: 5px;
}

@media (max-width: 1020px) {
  .swb_hnw_download_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1180px) {
  .swb_hnw_downloads_toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .swb_hnw_downloads_toolbar .swb_hnw_downloads_actions {
    justify-self: start;
  }

  .swb_hnw_downloads_cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .swb_hnw_download_grid {
    grid-template-columns: 1fr;
  }

  .swb_hnw_downloads_search_header {
    align-items: flex-start;
    flex-direction: column;
  }

  .swb_hnw_downloads_view_toggle {
    width: 100%;
  }

  .swb_hnw_downloads_view_button {
    flex: 1 1 50%;
  }

  .swb_hnw_downloads_toolbar,
  .swb_hnw_downloads_cards {
    grid-template-columns: 1fr;
  }

  .swb_hnw_downloads_toolbar .swb_hnw_downloads_actions,
  .swb_hnw_downloads_toolbar .swb_hnw_downloads_submit,
  .swb_hnw_downloads_toolbar .swb_hnw_downloads_reset {
    width: 100%;
  }

  .swb_hnw_downloads_actions {
    align-items: stretch;
    flex-direction: column;
  }

  .swb_hnw_download_result_list {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .swb_hnw_download_result_list .swb_hnw_download_result_action {
    grid-column: 1 / -1;
  }

  .swb_hnw_member_download_notice {
    padding: 24px;
  }
}
