/* == WordPress 5.8 new Widgets footer == */

.widget {
}
footer#footer {
  .widget_block {
    h2 {
      color: $footer-widget-title-color;
    }
  }

  .widget_block {
    .wp-block-preformatted, .wp-block-code {
      &:not(.has-text-color) {
        color: $footer-primary-text-color;
      }
    }

    .wp-block-latest-comments {
      .wp-block-latest-comments__comment-meta {
        a {
          color: $footer-link-color;
          &:hover {
            color: var(--hover-theme-color);
          }
        }
        .wp-block-latest-comments__comment-date {
          color: var(--theme-color1);
        }
      }
    }

    .wp-block-pullquote {
      blockquote {
        &:not(.has-text-color) {
          p {
            color: $footer-primary-text-color;
          }
        }
      }
    }
    
    .wp-block-page-list {
      li {
        &::before {
          color: var(--theme-color1);
        }
        a {
          color: $footer-link-color;
          &:hover {
            color: $footer-link-color-hover;
          }
        }
      }
    }

    .wp-block-tag-cloud {
      .tag-cloud-link {
        color: $footer-link-color;
        &:hover {
          color: var(--hover-theme-color);
        }
      }
    }
    .wp-block-calendar, .widget_calendar {
      .wp-calendar-table {
        caption {
          color: var(--theme-color1);
        }
      }
    }
    .wp-calendar-nav {
      .wp-calendar-nav-prev,
      .wp-calendar-nav-next {
        a {
          color: $footer-link-color;
          &:hover {
            color: $footer-link-color-hover;
          }
        }
      }
    }

    .wp-block-latest-posts.wp-block-latest-posts__list {
      .wp-block-latest-posts__post-author, .wp-block-latest-posts__post-date {
        color: var(--theme-color1);
      }
    }
    .wp-block-latest-posts {
      a {
        color: $footer-link-color;
        &:hover {
          color: $footer-link-color-hover;
        }
      }
    }

    .wp-block-table {
      table {
        td,
        th {
          border-color: rgba($footer-primary-text-color, 0.4);
        }
      }
    }
    
    .wp-block-verse {
      color: $footer-primary-text-color;
    }
  }
}