.documents-filter {
  width: 100%;
  margin-bottom: 40px;
}

.documents-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.documents-filter__item {
  margin: 0;
}

.documents-filter__link {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border: 1px solid var(--wp--preset--color--c-neutral-300, #ddd);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--wp--preset--color--c-neutral-500, #2a2a2a);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.documents-filter__link:hover {
  border-color: var(--wp--preset--color--c-plum, #5c0a46);
  color: var(--wp--preset--color--c-plum, #5c0a46);
}
.documents-filter__link.is-active {
  background-color: var(--wp--preset--color--c-plum, #5c0a46);
  border-color: var(--wp--preset--color--c-plum, #5c0a46);
  color: var(--wp--preset--color--c-white, #fff);
}

.documents-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 40px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.documents-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.documents-table__heading {
  padding: 12px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--wp--preset--color--c-neutral-300, #ddd);
  color: var(--wp--preset--color--c-neutral-400, #737373);
  white-space: nowrap;
}
.documents-table__heading--download {
  width: 180px;
  text-align: right;
}

.documents-table__row {
  border-bottom: 1px solid var(--wp--preset--color--c-neutral-200, #f2f2f2);
}
.documents-table__row:hover {
  background-color: var(--wp--preset--color--c-neutral-100, #fafafa);
}

.documents-table__cell {
  padding: 16px 20px;
  vertical-align: middle;
  color: var(--wp--preset--color--c-neutral-500, #2a2a2a);
}
.documents-table__cell--title {
  font-weight: 500;
}
.documents-table__cell--download {
  text-align: right;
  white-space: nowrap;
}

.documents-table__download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--wp--preset--color--c-plum, #5c0a46);
  color: var(--wp--preset--color--c-white, #fff);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.documents-table__download-link::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}
.documents-table__download-link--not-download::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
}
.documents-table__download-link:hover {
  background-color: var(--wp--preset--color--c-pink-600, #5c0a46);
  filter: brightness(1.15);
  color: var(--wp--preset--color--c-white, #fff);
}

.documents-table__no-file {
  font-size: 13px;
  color: var(--wp--preset--color--c-neutral-400, #737373);
  font-style: italic;
}

.documents-no-results {
  padding: 40px 0;
  color: var(--wp--preset--color--c-neutral-400, #737373);
}

.documents-pagination {
  margin-top: 40px;
}

@media (max-width: 600px) {
  .documents-table thead {
    display: none;
  }

  .documents-table,
.documents-table tbody,
.documents-table__row,
.documents-table__cell {
    display: block;
    width: 100%;
  }

  .documents-table__row {
    padding: 12px 0;
    border-bottom: 1px solid var(--wp--preset--color--c-neutral-200, #f2f2f2);
  }

  .documents-table__cell {
    padding: 4px 16px;
    text-align: left;
  }
  .documents-table__cell--title {
    padding-bottom: 6px;
  }
  .documents-table__cell--download {
    padding-top: 0;
  }

  .documents-filter__list {
    gap: 6px;
  }

  .documents-filter__link {
    font-size: 13px;
    padding: 6px 14px;
  }
}

/* Child theme overrides follow the former parent theme styles. */

.documents-filter {
    width: 100%;
    margin-bottom: 40px;
}

.documents-filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.documents-filter__item {
    margin: 0;
}

.documents-filter__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: #2a2a2a;
    background-color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.documents-filter__link:hover {
    border-color: #5c0a46;
    color: #5c0a46;
}

.documents-filter__link.is-active {
    background-color: #5c0a46;
    border-color: #5c0a46;
    color: #fff;
}

.documents-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.documents-table__heading {
    padding: 12px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid #ddd;
    color: #737373;
    white-space: nowrap;
}

.documents-table__heading--download {
    width: 180px;
    text-align: right;
}

.documents-table__row {
    border-bottom: 1px solid #f2f2f2;
}

.documents-table__row:hover {
    background-color: #fafafa;
}

.documents-table__cell {
    padding: 16px 20px;
    vertical-align: middle;
    color: #2a2a2a;
}

.documents-table__cell--title {
    font-weight: 500;
}

.documents-table__cell--download {
    text-align: right;
    white-space: nowrap;
}

.documents-table__download-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: #5c0a46;
    color: #fff;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.documents-table__download-link:hover {
    filter: brightness(1.15);
    color: #fff;
}

.documents-table__no-file {
    font-size: 13px;
    color: #737373;
    font-style: italic;
}

.documents-no-results {
    padding: 40px 0;
    color: #737373;
}

.documents-pagination {
    margin-top: 40px;
}

@media screen and (max-width: 600px) {
    .documents-table__heading--download,
    .documents-table__cell--download {
        display: none;
    }

    .documents-filter__link {
        font-size: 13px;
        padding: 6px 14px;
    }
}
