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

.sfsyncGridManager-filtersWrapper {
  margin-bottom: $padding-lg;
  background-color: #fefefe;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  max-width: 600px;

  .sfsyncGridManager-filter {
    width: 50%;
  }
}

.sfsyncGridManager-cardOverlay--content {
  display: flex;
  align-items: center;
  gap: 6px;

  p {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
  }

  svg {
    fill: currentColor;
    transform: rotate(45deg);
  }
}

.sfsyncGridManager-postsGrid--outer {
  overflow: hidden;
  padding: 16.5px 14px;
  background: #f0f4f973;
  border-radius: $border-radius;
  position: relative;

  .sfsyncGridManager-postsGrid--overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    background-color: rgb(244 244 244 / 44%);
    overflow: hidden;

    .sfsyncGridManager-postsGrid--loader {
      width: 40px;
      height: 40px;
      margin-inline: auto;
      margin-top: 50px;
      background-color: $secondary-bg;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      box-shadow:
        rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
        rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    }
  }
}

.sfsyncGridManager-postsGrid--inner {
  overflow-x: hidden;
  display: flex;
  flex-wrap: wrap;
  transform: translateX(2.5px);

  .sfsyncGridManager-gridItem {
    width: calc(33.33% - 5px);
    margin-inline-end: 5px;
    margin-bottom: 6px;
    position: relative;
  }

  &.sfsyncGridManager-postsGrid--twoCol {
    .sfsyncGridManager-gridItem {
      width: calc(50% - 5px);
    }
  }
}

.sfsyncGridManager-modalDescription {
  margin: 0;
  font-size: 1rem;
}

#sfsyncGridManager-modalCancelBtn {
  background-color: transparent;
  color: $primary;

  &:hover {
    color: $primary-dark;
  }

  &:disabled {
    color: $text-disabled;
    background-color: transparent;
  }
}

.sfsyncGridManager-gridItem-popover {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 9999;
  padding: 4rem 2.5rem;

  .sfsyncGridManager-gridItem-popoverContent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    z-index: 99999;
    box-sizing: border-box;
    background-color: white;
    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;

    padding: 14px;

    width: 260px !important;
    position: relative;
  }
}

.sfsyncGridManager-popover > button {
  width: 100%;
}
