.nms-taxonomy-product-page {
  --tax-blue: #075ecb;
  --tax-orange: #ff7514;
  --tax-navy: #061923;
  background: #fff;
  color: #152331;
}

.nms-tax-shell {
  width: min(var(--nms-container), calc(100% - (var(--nms-gutter) * 2)));
  margin: 0 auto;
}

.nms-tax-hero {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgb(4 15 24 / 96%) 0%, rgb(4 15 24 / 78%) 45%, rgb(4 15 24 / 20%) 72%, rgb(4 15 24 / 58%) 100%),
    var(--nms-tax-hero-image) right center / cover no-repeat;
  color: #fff;
}

.nms-tax-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  align-items: center;
  padding-top: 28px;
  color: rgb(255 255 255 / 72%);
  font-size: .82rem;
}

.nms-tax-crumbs a {
  color: #fff;
  text-decoration: none;
}

.nms-tax-hero__copy {
  max-width: 690px;
  padding-top: 50px;
}

.nms-tax-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 5vw, 5.05rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.nms-tax-hero p {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgb(255 255 255 / 84%);
  font-size: 1.1rem;
  line-height: 1.55;
}

.nms-tax-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}

.nms-tax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgb(255 255 255 / 52%);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.nms-tax-btn--primary,
.nms-tax-inquiry button {
  border-color: var(--tax-orange);
  background: linear-gradient(90deg, #ff6500, #ff8215);
}

.nms-tax-btn--ghost {
  background: rgb(4 13 22 / 46%);
}

.nms-tax-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  width: min(820px, 100%);
  height: 56px;
  margin-top: 26px;
  border: 1px solid rgb(255 255 255 / 18%);
  box-shadow: 0 18px 36px rgb(0 0 0 / 24%);
}

.nms-tax-search input {
  min-width: 0;
  border: 0;
  padding: 0 20px;
  background: #fff;
  color: #172431;
}

.nms-tax-search button {
  border: 0;
  background: #075ecb;
  color: #fff;
  font-weight: 850;
}

.nms-tax-overview {
  padding: 56px 0 44px;
}

.nms-tax-overview .nms-tax-shell {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 70px;
  align-items: center;
}

.nms-tax-overview h2,
.nms-tax-module-types h2,
.nms-tax-brands h2,
.nms-tax-records h2,
.nms-tax-applications h2 {
  margin: 0 0 22px;
  color: #172331;
  font-size: 1.75rem;
  line-height: 1.16;
  text-transform: uppercase;
}

.nms-tax-overview p {
  margin: 0 0 16px;
  color: #4f5e68;
  line-height: 1.7;
}

.nms-tax-overview img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.nms-tax-module-types,
.nms-tax-records,
.nms-tax-applications {
  padding: 34px 0;
  border-top: 1px solid #dfe6eb;
}

.nms-tax-type-grid,
.nms-tax-applications > .nms-tax-shell > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.nms-tax-type-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nms-tax-type-grid article {
  background: #fff;
}

.nms-tax-type-grid img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.nms-tax-type-grid h3 {
  margin: 12px 0 6px;
  color: #172331;
  font-size: .95rem;
}

.nms-tax-type-grid p {
  margin: 0;
  color: #5b6a75;
  font-size: .78rem;
  line-height: 1.45;
}

.nms-tax-brands {
  padding: 28px 0;
  border-top: 1px solid #dfe6eb;
}

.nms-tax-brands h2 {
  margin-bottom: 12px;
}

.nms-tax-brands div div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 0;
  justify-content: center;
  padding: 18px 12px;
  border-top: 1px solid #dfe6eb;
  border-bottom: 1px solid #dfe6eb;
}

.nms-tax-brands span,
.nms-tax-brands a {
  min-width: 104px;
  border-right: 1px solid #aab8c2;
  color: #1b2a36;
  text-align: center;
  text-decoration: none;
}

.nms-tax-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nms-tax-record-grid article {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 160px;
  border: 1px solid #d7e0e7;
  background: #fff;
}

.nms-tax-record-image {
  display: grid;
  margin: 12px 0 12px 12px;
  place-items: center;
  border: 1px solid #e0e8ee;
  background:
    linear-gradient(135deg, #f7fafb 0%, #eef4f7 100%);
  overflow: hidden;
}

.nms-tax-record-image img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  padding: 7px;
}

.nms-tax-record-grid article > div {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-content: stretch;
  min-width: 0;
  padding: 18px;
}

.nms-tax-record-grid strong {
  color: #172331;
  font-size: 1rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.nms-tax-record-grid span,
.nms-tax-record-grid small {
  margin-top: 8px;
  color: #5e6d78;
  font-size: .78rem;
  overflow-wrap: anywhere;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nms-tax-record-grid strong a {
  color: inherit;
  text-decoration: none;
}

.nms-tax-record-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-self: end;
  margin-top: 16px;
}

.nms-tax-record-grid nav a {
  align-self: end;
  color: #ff6f10;
  font-weight: 850;
  text-decoration: none;
}

.nms-tax-record-grid nav a:first-child {
  color: #075ecb;
}

.nms-taxonomy-product-page .navigation.pagination {
  margin-top: 20px;
}

.nms-taxonomy-product-page .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nms-taxonomy-product-page .page-numbers {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5dde4;
  color: #152331;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.nms-taxonomy-product-page .page-numbers.current,
.nms-taxonomy-product-page a.page-numbers:hover {
  border-color: var(--tax-blue);
  background: var(--tax-blue);
  color: #fff;
}

.nms-tax-applications article {
  text-align: center;
}

.nms-tax-applications img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.nms-tax-applications strong {
  display: block;
  margin-top: 10px;
  color: #172331;
  font-size: .85rem;
}

.nms-tax-trust {
  padding: 28px 0;
  background: #061923;
  color: #fff;
}

.nms-tax-trust .nms-tax-shell {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.nms-tax-trust div div {
  display: grid;
  gap: 6px;
  padding: 0 18px;
  border-right: 1px solid rgb(255 255 255 / 18%);
}

.nms-tax-trust div div:last-child {
  border-right: 0;
}

.nms-tax-trust .dashicons {
  width: 36px;
  height: 36px;
  font-size: 36px;
}

.nms-tax-trust strong {
  font-size: .9rem;
}

.nms-tax-trust small {
  color: rgb(255 255 255 / 70%);
  font-size: .72rem;
  line-height: 1.35;
}

.nms-tax-inquiry {
  padding: 58px 0;
  background:
    linear-gradient(90deg, rgb(4 18 29 / 98%), rgb(7 27 40 / 96%)),
    #061923;
  color: #fff;
}

.nms-tax-inquiry .nms-tax-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr) 330px;
  gap: 38px;
  align-items: start;
}

.nms-tax-inquiry h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 2.1rem;
  line-height: 1.1;
}

.nms-tax-inquiry aside p {
  color: rgb(255 255 255 / 74%);
  line-height: 1.55;
}

.nms-tax-inquiry aside a {
  display: block;
  margin-top: 20px;
  color: #fff;
  text-decoration: none;
}

.nms-tax-inquiry form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.nms-tax-inquiry label {
  display: grid;
  gap: 7px;
  color: rgb(255 255 255 / 82%);
  font-size: .82rem;
  font-weight: 800;
}

.nms-tax-inquiry label span {
  color: #ff7815;
}

.nms-tax-inquiry input,
.nms-tax-inquiry textarea {
  width: 100%;
  border: 1px solid rgb(255 255 255 / 24%);
  background: rgb(255 255 255 / 7%);
  color: #fff;
}

.nms-tax-inquiry input {
  height: 46px;
  padding: 0 13px;
}

.nms-tax-inquiry textarea {
  min-height: 112px;
  padding: 13px;
}

.nms-tax-inquiry .is-wide,
.nms-tax-upload,
.nms-tax-inquiry button {
  grid-column: 1 / -1;
}

.nms-tax-upload {
  min-height: 74px;
  padding: 14px 16px;
  border: 1px dashed rgb(255 255 255 / 48%);
}

.nms-tax-upload input,
.nms-tax-hidden {
  display: none !important;
}

.nms-tax-upload small {
  color: rgb(255 255 255 / 62%);
}

.nms-tax-inquiry button {
  height: 54px;
  border: 0;
  color: #fff;
  font-weight: 900;
}

.nms-tax-inquiry > .nms-tax-shell > img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.nms-tax-empty {
  padding: 30px;
  border: 1px solid #d7e0e7;
  background: #f7fafc;
}

body.tax-product_category,
body.tax-system,
body.tax-product_category .nms-main,
body.tax-system .nms-main {
  background: #fff !important;
}

@media (min-width: 901px) {
  .nms-tax-hero {
    height: 491px !important;
    min-height: 491px !important;
    overflow: hidden;
  }

  .nms-tax-hero .nms-tax-shell {
    height: 100%;
  }

  .nms-tax-crumbs {
    min-height: 50px;
    padding-top: 24px;
  }

  .nms-tax-hero__copy {
    max-width: 760px;
    padding-top: 30px;
  }

  .nms-tax-hero h1 {
    max-width: 720px;
    font-size: clamp(42px, 3.45vw, 50px);
    line-height: 1.05;
  }

  .nms-tax-hero p {
    max-width: 620px;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.45;
  }

  .nms-tax-actions {
    gap: 14px;
    margin-top: 20px;
  }

  .nms-tax-btn {
    min-height: 48px;
    padding-inline: 22px;
  }

  .nms-tax-search {
    grid-template-columns: minmax(0, 1fr) 154px;
    width: min(760px, 62vw);
    height: 50px;
    margin-top: 19px;
  }
}

@media (max-width: 1100px) {
  .nms-tax-overview .nms-tax-shell,
  .nms-tax-inquiry .nms-tax-shell {
    grid-template-columns: 1fr;
  }

  .nms-tax-type-grid,
  .nms-tax-type-grid--four,
  .nms-tax-applications > .nms-tax-shell > div,
  .nms-tax-trust .nms-tax-shell {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 767px) {
  .nms-tax-shell {
    width: min(var(--nms-container), calc(100% - (var(--nms-gutter) * 2)));
  }

  .nms-tax-hero {
    min-height: auto;
    padding-bottom: 30px;
  }

  .nms-tax-hero__copy {
    padding-top: 42px;
  }

  .nms-tax-hero h1 {
    font-size: 2.55rem;
  }

  .nms-tax-actions,
  .nms-tax-search,
  .nms-tax-inquiry form,
  .nms-tax-type-grid,
  .nms-tax-type-grid--four,
  .nms-tax-applications > .nms-tax-shell > div,
  .nms-tax-trust .nms-tax-shell {
    grid-template-columns: 1fr;
  }

  .nms-tax-search {
    height: auto;
  }

  .nms-tax-search input,
  .nms-tax-search button {
    height: 52px;
  }

  .nms-tax-overview .nms-tax-shell {
    gap: 28px;
  }

  .nms-tax-overview img {
    height: 220px;
  }

  .nms-tax-record-grid {
    grid-template-columns: 1fr;
  }

  .nms-tax-record-grid article {
    grid-template-columns: 122px minmax(0, 1fr);
  }

  .nms-tax-record-image img {
    height: 116px;
  }

  .nms-tax-trust div div {
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 18%);
    padding: 18px 0;
  }

  .nms-tax-trust div div:last-child {
    border-bottom: 0;
  }

  .nms-tax-inquiry > .nms-tax-shell > img {
    height: 240px;
  }
}
