.kb-ads-section {
  margin-top: 96px;
}

.kb-materials-downloads__actions,
.kb-ads-bulk__toolbar {
  display: grid;
  gap: 15px;
}

.kb-materials-downloads__actions {
  list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 72px;
  padding: 0;
}

.kb-materials-downloads__actions__item {
  margin: 0;
}

.kb-materials-downloads__actions .kb-btn,
.kb-ads-bulk__toolbar .kb-btn {
  position: relative;
}

.kb-materials-downloads__actions .kb-btn {
  justify-content: center;
  height: 60px;
  padding: 0 56px;
  white-space: nowrap;
  --clamp-min: 15;
  --clamp-max: 17;
}

.kb-materials-downloads__actions .kb-btn::before,
.kb-materials-downloads__actions .kb-btn::after,
.kb-ads-bulk__toolbar .kb-btn::before,
.kb-ads-bulk__toolbar .kb-btn::after,
.kb-materials-list__actions .kb-btn::before {
  display: block;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
}

.kb-materials-downloads__actions .kb-btn::before {
  width: 19px;
  height: 25px;
  margin-right: 12px;
}

.kb-materials-downloads__actions .kb-btn::after {
  width: 18px;
  height: 18px;
  background-image: url("../images/icon_dl_black.svg");
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.kb-ads-filter__footer .kb-btn {
  width: auto;
  min-width: 140px;
  height: 48px;
  background: var(--color-text-screen);
  color: #ffffff;
}

.kb-materials-downloads__actions__item:first-child .kb-btn,
.kb-ads-bulk__toolbar .kb-btn[value="selected"] {
  background: var(--color-text-screen);
  color: #ffffff;
}

.kb-materials-downloads__actions__item:first-child .kb-btn::before {
  background-image: url("../images/icon_check_white.svg");
}

.kb-materials-downloads__actions__item:nth-child(2) .kb-btn::before,
.kb-materials-downloads__actions__item:nth-child(3) .kb-btn::before {
  background-image: url("../images/icon_ppt_black.svg");
}

.kb-materials-downloads__actions__item:nth-child(3) .kb-btn::before {
  background-image: url("../images/icon_pdf_black.svg");
}

.kb-ads-bulk__toolbar .kb-btn {
  justify-content: center;
  height: 60px;
  padding: 0 56px;
  white-space: nowrap;
  cursor: pointer;
  --clamp-min: 15;
  --clamp-max: 17;
}

.kb-ads-bulk__toolbar .kb-btn::before {
  width: 19px;
  height: 25px;
  margin-right: 8px;
}

.kb-ads-bulk__toolbar .kb-btn::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 18px;
  height: 18px;
  background-image: url("../images/icon_dl_black.svg");
  transform: translateY(-50%);
}

.kb-materials-downloads__actions__item:first-child .kb-btn::after,
.kb-ads-bulk__toolbar .kb-btn[value="selected"]::after {
  background-image: url("../images/icon_dl_white.svg");
}

.kb-ads-bulk__toolbar .kb-btn[value="selected"]::before {
  background-image: url("../images/icon_check_white.svg");
}

.kb-ads-bulk__toolbar .kb-btn[value="ppt"]::before {
  background-image: url("../images/icon_ppt_black.svg");
}

.kb-ads-bulk__toolbar .kb-btn[value="pdf"]::before {
  background-image: url("../images/icon_pdf_black.svg");
}

.kb-materials-list__actions .kb-btn,
.kb-ads-table .kb-materials-list__actions .kb-btn {
  width: auto;
  min-width: 90px;
  height: 40px;
  padding: 0 14px;
  font-size: 16px;
}

.kb-materials-list__actions .kb-btn::before,
.kb-ads-table .kb-materials-list__actions .kb-btn::before {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  background-image: url("../images/icon_dl_black.svg");
}

.kb-materials-grid {
  display: grid;
  gap: 80px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kb-materials-card {
  margin: 0;
}

.kb-materials-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  margin: 0 0 34px;
  border-top: 1px solid var(--color-gray-light);
  border-bottom: 1px solid var(--color-gray-light);
  color: var(--color-text-screen);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.kb-materials-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 20px;
}

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

.kb-materials-list__label {
  display: block;
  color: var(--color-text-screen);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.kb-materials-list__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.kb-ads-filter {
  margin: 0 0 70px;
  padding: 32px 48px;
  border: 1px solid var(--color-gray-light);
  border-radius: 16px;
}

.kb-ads-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--color-gray-light);
}

.kb-ads-filter__head h3 {
  margin: 0;
  --clamp-min: 18;
  --clamp-max: 20;
  font-weight: 700;
}

.kb-ads-filter__reset {
  padding: 0;
  border: 0;
  background: transparent;
  --clamp-min: 13;
  --clamp-max: 14;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.kb-ads-filter__past,
.kb-ads-bulk__checkall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-screen);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.kb-ads-filter__past input,
.kb-ads-bulk__checkall input,
.kb-chip input {
  width: 25px;
  height: 25px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--color-text-screen);
}

.kb-ads-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-text-screen);
}

.kb-ads-filter__media {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 12px 0 0;
}

.kb-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-screen);
  text-decoration: none;
}

.kb-chip span {
  display: inline-flex;
  align-items: center;
  --clamp-min: 16;
  --clamp-max: 18;
}

.kb-chip span img {
  display: block;
  width: auto;
  max-width: 92px;
  max-height: 38px;
}

.kb-chip--all {
  flex-basis: 100%;
}

.kb-ads-filter__footer {
  display: none;
}

.kb-ads-filter select {
  display: block;
  width: 200px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--color-gray-light);
  border-radius: 6px;
  background: var(--color-background);
  color: var(--color-text-screen);
  font-size: 14px;
  line-height: 1.4;
}

.kb-ads-bulk {
  margin: 0;
}

.kb-ads-bulk__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 60px 12px;
  margin: 0;
}

.kb-ads-bulk__count {
  order: 2;
  color: var(--color-text-screen);
  font-size: 10px;
  line-height: 1.5;
}

.kb-ads-bulk__message {
  margin: 12px 0 0;
  color: #b00020;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.kb-ads-bulk__message[hidden] {
  display: none;
}

.kb-ads-bulk__toolbar .kb-btn {
  order: 1;
  flex: 1 1 calc((100% - 24px) / 3);
  min-width: 0;
  height: 60px;
  border-radius: 8px;
  padding: 0 56px;
  white-space: nowrap;
  --clamp-min: 15;
  --clamp-max: 17;
}

.kb-ads-bulk__checkall {
  order: 2;
}

.kb-ads-filter__past--toolbar {
  order: 2;
}

.kb-ads-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.kb-ads-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  margin: 48px 0 0;
}

.kb-ads-table th,
.kb-ads-table td {
  padding: 8px 10px;
  color: var(--color-text-screen);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.kb-ads-table th {
  padding: 0 0 8px;
  --clamp-min: 13;
  --clamp-max: 14;
  border-bottom: 1px dotted var(--color-gray-light);
}

/* .kb-ads-table td:nth-child(2),
.kb-ads-table td:nth-child(4),
.kb-ads-table td:nth-child(5) {
  color: #9b9b9b;
} */

.kb-ads-table td:nth-child(6) {
  white-space: normal;
}

.kb-ads-table td:nth-child(6) a {
  color: var(--color-text-screen);
  text-decoration: none;
}

.kb-ads-table tr.is-focused-ad td {
  background: #f3f8ff;
}

.kb-ads-media-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 40px;
  border-radius: 999px;
  background: #d9e2f6;
  --clamp-min: 16;
  --clamp-max: 18;
  font-weight: 700;
  line-height: 1;
}

.kb-ads-media-badge--classy {
  background: #d7e2f7;
}

.kb-ads-media-badge--very {
  background: #dce3f7;
}

.kb-ads-media-badge--navy {
  background: #d5deef;
}

.kb-ads-media-badge--story {
  background: #ecdde4;
}

.kb-ads-media-badge--be-story,
.kb-ads-media-badge--bist {
  background: #efe4ea;
}

.kb-ads-media-badge--jisin {
  background: #e5ebf7;
}

.kb-ads-media-badge--flash {
  background: #d8dff2;
}

.kb-ads-media-badge--jj {
  background: #dfe5f8;
}

.kb-ads-media-badge--ad {
  background: #dce3f7;
}

.kb-ads-media-badge--plan {
  background: #ffe6f0;
}

.kb-ads-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #4a4a4a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.kb-ads-type-badge--plan {
  background: #ffe6f0;
}

.js-kb-hidden-inputs {
  display: none;
}

.kb-ads-pagination {
  margin-top: 32px;
}

.kb-ads-pagination .page-numbers {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-ads-pagination .page-numbers a,
.kb-ads-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-screen);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.kb-ads-pagination .page-numbers .current {
  background: #a6a6a6;
  color: var(--color-background);
}

.kb-ads-pagination .page-numbers .prev,
.kb-ads-pagination .page-numbers .next {
  padding: 0;
  background: transparent;
  font-weight: 400;
}

@media (width <=1100px) {

  .kb-materials-downloads__actions,
  .kb-materials-grid {
    grid-template-columns: 1fr;
  }

  .kb-materials-grid {
    gap: 56px;
  }

  .kb-ads-bulk__toolbar .kb-btn {
    flex-basis: calc((100% - 12px) / 2);
  }
}

@media (width <=900px) {
  .kb-materials-page {
    padding: 56px 0 96px;
  }

  .kb-section-title {
    gap: 16px;
    font-size: 26px;
  }

  .kb-materials-grid {
    grid-template-columns: 1fr;
  }

  .kb-materials-grid {
    gap: 44px;
  }

  .kb-ads-bulk__toolbar .kb-btn {
    flex-basis: 100%;
  }

  .kb-ads-pagination {
    margin-top: 24px;
  }
}

@media (width <=767px) {
  .kb-page-title {
    font-size: 28px;
  }

  .kb-section-title {
    gap: 12px;
    margin-bottom: 36px;
    font-size: 24px;
  }

  .kb-materials-card h3 {
    min-height: 58px;
    margin-bottom: 24px;
    font-size: 22px;
  }

  .kb-materials-list__item {
    justify-items: center;
    grid-template-columns: 1fr;
  }

  .kb-materials-list__label {
    font-size: 15px;
  }

  .kb-ads-filter {
    padding: 22px 20px 24px;
  }

  .kb-ads-filter__head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
    padding-bottom: 14px;
  }

  .kb-ads-filter__head h3 {
    font-size: 14px;
  }

  .kb-ads-filter__reset {
    font-size: 11px;
  }

  .kb-ads-filter__media {
    gap: 18px 20px;
    margin-top: 22px;
  }

  .kb-ads-filter__past,
  .kb-chip {
    gap: 12px;
    font-size: 12px;
  }

  .kb-ads-filter__past input,
  .kb-chip input {
    width: 16px;
    height: 16px;
  }

  .kb-chip span {
    min-height: 24px;
    font-size: 12px;
  }

  .kb-chip span img {
    max-width: 90px;
    max-height: 24px;
  }

  .kb-materials-downloads__actions .kb-btn,
  .kb-ads-bulk__toolbar .kb-btn {
    height: 60px;
    padding: 0 30px 0 12px;
    font-size: 14px;
  }

  .kb-materials-list__actions .kb-btn,
  .kb-ads-table .kb-materials-list__actions .kb-btn {
    min-width: 74px;
    height: 48px;
    font-size: 14px;
  }

  .kb-ads-table th,
  .kb-ads-table td {
    padding: 8px 8px;
  }
}