.wp-block-post-template.is-style-box-style .wp-block-post {
  position: relative !important;
}

.wp-block-post-template.is-style-box-style
  .wp-block-post
  .wp-block-post-terms
  a:not(:first-child),
.wp-block-post-terms__separator,
.show-single-category.wp-block-post-terms a:not(:first-child),
.wp-block-post-terms__separator {
  display: none;
}

.wp-block-post-template.is-style-box-style .wp-block-post .wp-block-post-terms {
  position: absolute !important;
  top: 16px;
  left: 16px;
  z-index: 1;
  margin: 0;
}

.wp-block-post-template.is-style-box-style
  .wp-block-post
  .wp-block-post-terms
  a:first-child,
.show-single-category.wp-block-post-terms a:first-child {
  padding: 6px 14px;
  background: var(--wp--preset--color--background);
  border: 1px solid #d7d7d7;
  border-radius: 30px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: #0a0a0a;
  transition: all 0.3s ease;
}

.wp-block-post-template.is-style-box-style
  .wp-block-post
  .wp-block-post-terms
  a:first-child:hover,
.show-single-category.wp-block-post-terms a:first-child:hover {
  background: var(--wp--preset--color--primary-four);
  border-color: var(--wp--preset--color--primary-four);
  color: var(--wp--preset--color--white);
}
