@import "../../theme.scss";

.wp-block-top-posts-top-posts-widget h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
  font-size: 22px;
}
.widget_settings_container > div,
.widget_settings_container > label {
  margin-bottom: 1rem;
  display: block;

  input:disabled {
    color: #aaa;
  }
}

html:dir(ltr) {
  .ResultCard-cardContainer--rtl {
    flex-direction: row-reverse;

    .ResultCard-category-type-container {
      justify-content: unset !important;
    }

    .ResultCard-tagsContainer {
      justify-content: unset !important;
    }
  }
}

.topPostsFrontend {
  color: #080808;
  margin: 0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 916px;
  overflow-x: hidden;
}

.topPostsFrontend-postsGrid--inner {
  overflow: hidden;
  display: grid;
  gap: 30px 30px;
  grid-template-columns: repeat(1, 1fr);
  max-width: 916px;
  width: 100%;
  padding: 0px 3px;
}

.topPostsFrontend-pinSvg {
  position: relative;
  top: 5px;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  margin-right: 5px;
  height: 0px;
}

.topPostsFrontend-pinSvg > svg {
  height: 25px;
  width: 30px;
  transform: rotate(45deg);
  background: rgb(0, 0, 0, 0.1);
  fill: white;
}

.topPostsFrontend-gridItem {
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

img.ResultCard-image {
  height: 100% !important;
}
img.CustomizableCard-image {
  height: 100% !important;
}

div.select-filter {
  width: 100%;
  background-color: #ddd;
  padding: 2rem 1rem;
  border-radius: 15px;
}

select.filters-selector {
  width: 100%;
}

.topPosts-cardStyle--container {
  display: flex !important;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 10px;
}

.topPosts-widget--resultStyleWrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 540px;

  .topPosts-widget--resultStyleRadio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }

  .topPosts-widget--columnsNumberPicker {
    display: flex;
    gap: 10px;
    align-items: center;
    position: absolute;
    right: 0;

    button {
      padding: 0.5rem;

      svg {
        height: 18px;
        width: 18px;
      }
    }
    html[dir="rtl"] & {
      position: relative;
    }
  }
}

.PopoverArrow {
  fill: white;
}

.topPostsFrontend-fancyCard-popoverContent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  justify-content: center;
  z-index: 99999;
  box-sizing: border-box;
  background-color: white !important;
  border: 0px solid white !important;
  box-shadow:
    rgba(14, 18, 22, 0.35) 0px 10px 38px -10px,
    rgba(14, 18, 22, 0.2) 0px 10px 20px -15px !important;
  border-radius: 6px;
  transform: translate(-14px, 0px) !important;
  padding: 10px;
  * {
    box-sizing: border-box;
  }
}
.topPostsFrontend-popoverContentTitle {
  text-align: center;
  margin: 2px !important;
  font-size: larger;
}
.topPostsFrontend-CustomizableCard-popoverContent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  justify-content: center;
  z-index: 99999;
  box-sizing: border-box;
  background-color: white !important;
  border: 0px solid white !important;
  box-shadow:
    rgba(14, 18, 22, 0.35) 0px 10px 38px -10px,
    rgba(14, 18, 22, 0.2) 0px 10px 20px -15px !important;
  border-radius: 6px;
  transform: translate(30px, 0px) !important;
  padding: 10px;
  * {
    box-sizing: border-box;
  }
}
@media screen and (max-width: 767px) {
  .topPostsFrontend-postsGrid--inner {
    grid-template-columns: repeat(1, 1fr);
  }
}
