// Saved Template Styles
.sp-pcp-blocks-setting-saved-template-page {
  max-width: 1300px;
  width: 100%;
  padding: 32px;
  border-radius: 6px;
  border: 1px solid  #DDD;
  background: #FFF;
  box-sizing: border-box;

  .sp-pcp-blocks-setting-saved-template-container {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    justify-content: center;
  }
  .sp-pcp-blocks-setting-saved-template-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    .sp-pcp-blocks-setting-template-header-left {
      flex-grow: 1;
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      column-gap: 12px;
      align-items: center;
      justify-content: flex-start;
      .sp-pcp-blocks-setting-template-bulk-action-form {
        display: flex;
        flex-direction: row;
        column-gap: 12px;
        align-items: center;
        
        select {
          display: flex;
          height: 36px;
          align-items: center;
          gap: 16px;
          border-radius: 3px;
          border: 1px solid #E0E0E0;
          min-width: 120px;
        }
        .sp-pcp-blocks-setting-template-select-apply {
          display: flex;
          height: 36px;
          padding: 6px 16px;
          justify-content: center;
          align-items: center;
          gap: 8px;
          border-radius: 3px;
          border: 1px solid #641DD7;
          background: #FFF;
          color: #641DD7;
         
          font-size: 14px;
          font-style: normal;
          font-weight: 500;
          line-height: 20px;
          box-sizing: border-box;
          transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
          cursor: pointer;
          user-select: none;

          &:hover {
            color: #FFF;
            background-color: #641DD7;
          }
        }
      }
      .sp-pcp-blocks-setting-template-search {
        .sp-pcp-blocks-setting-template-search-field {
          display: flex;
          width: 260px;
          height: 36px;
          padding: 6px 6px 6px 16px;
          align-items: center;
          gap: 8px;
          border-radius: 4px;
          border: 1px solid #DDD;
          background: #FFF;
        }
      }
    }
    .sp-pcp-blocks-setting-template-header-right {
      flex-shrink: 0;
      .sp-pcp-blocks-setting-template-add-new {
        .sp-pcp-blocks-setting-template {
          display: flex;
          padding: 10px 24px 10px 20px;
          justify-content: center;
          align-items: center;
          gap: 8px;
          border-radius: 4px;
          background: var(--sp-smart-primary-2-600);
          color: #FFF;
         
          font-size: 16px;
          font-style: normal;
          font-weight: 500;
          line-height: 28px;
          text-decoration: none;
          user-select: none;
          svg {
            width: 24px;
            height: 24px;
            path {
              stroke: #FFF;
            }
          }
          &:hover {
            background: var(--sp-smart-primary-2-700);
          }
        }
      }
    }
  }
  .sp-pcp-blocks-setting-saved-template-content-table {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    border-radius: 4px;
    border: 1px solid #D6C2F5;
    background: #FFF;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.08);
  }

  .sp-pcp-blocks-setting-saved-template-table-head,
  .sp-pcp-blocks-setting-saved-template-table-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    align-self: stretch;
    
    .sp-pcp-blocks-setting-saved-template-table-checkBox {
      input {
        margin-right: 16px;
      }
    }
    .sp-pcp-blocks-setting-saved-template-table-title {
      flex: auto;
    }
    .sp-pcp-blocks-setting-saved-template-table-editor_type {
      width: 150px;
      .sp-pcp-editor-type-badge {
        display: inline-block;
        font-size: 14px;
        font-weight: 500;
        line-height: 1;
        text-transform: capitalize;
      }
    }
    .sp-pcp-blocks-setting-saved-template-table-shortcode {
      width: 330px;
    }
    .sp-pcp-blocks-setting-saved-template-table-date {
      width: 222px;
    }
    .sp-pcp-blocks-setting-saved-template-table-action {
      width: 110px;
    }
  }
  .sp-pcp-blocks-setting-saved-template-table-head {
    tr {
      display: flex;
      height: 48px;
      align-items: center;
      align-self: stretch;
      background: #EFE6FB;
      padding-left: 24px;
    }
    tr th {
      color: #2F2F2F;
     
      font-size: 16px;
      font-style: normal;
      font-weight: 500;
      line-height: 20px;
      text-align: left;
      text-transform: capitalize;
    }
  }
  .sp-pcp-blocks-setting-saved-template-table-body {
    tr {
      display: flex;
      height: 64px;
      padding-left: 24px;
      align-items: center;
      // gap: 16px;
      align-self: stretch;
      &:nth-of-type( even ) {
        background: rgba(239, 230, 251, 0.40);
      }
    }
    tr th {
      color: #2F2F2F;
     
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: 24px;
      text-align: left;
      text-transform: capitalize;
    }
    .sp-pcp-blocks-setting-saved-template-table-shortcode {
      cursor: pointer;
      display: flex;
      align-items: center;

      svg {
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease-in-out;
        margin-left: 8px;
      }

      &:hover {
        svg {
          opacity: 1;
          visibility: visible;
        }
      }
      .sp-smart-post-shortcode-copy-tooltip {
        display: flex;
        align-items: center;
        gap: 3px;
        padding: 8px;
        color: #317d46;
        background-color: rgba(61, 158, 86, 0.1);
        font-size: 14px;
        line-height: 1;
        font-style: normal;
        font-weight: 500;
        border-radius: 4px;
        margin-left: 5px;

       > svg {
          width: 15px;
          height: 15px;
          margin-left: 0;
          opacity: 1;
          visibility: visible;
        }
      }
      .sp-smart-saved-template-shortcode-text {
        padding: 8px 12px;
        color: #2F2F2F;
        background-color: #F0F0F0;
        font-size: 14px;
        line-height: 1;
        font-style: normal;
        font-weight: 400;
        border-radius: 3px;
        border: 1px solid #E0E0E0;
        transition: all 0.3s ease-in-out;

        &:hover {
          border-color: #c3c3c3;
          background-color: #e7e7e7;
        }
      }
    }
    .sp-pcp-blocks-setting-saved-template-table-date {
      font-size: inherit;
      line-height: inherit;
      text-transform: capitalize;
    }

    .sp-pcp-blocks-setting-saved-template-table-title a {
      color: #1A74E4;
      font-size: 14px;
      font-style: normal;
      font-weight: 500;
      line-height: 24px;
      text-decoration: none;
      &:hover {
        color: #2744d1;
      }
    }
  }
  .sp-pcp-blocks-setting-saved-template-table-action {
    .sp-pcp-blocks-setting-saved-template-table-action-btn {
      display: flex;
      width: 128px;
      align-items: center;
      gap: 16px;
      align-self: stretch;
      .sp-pcp-saved-template-action:hover {
        svg path {
          stroke: #641DD7;
        }
      }
      .sp-action-edit {
        text-decoration: none;
        cursor: pointer;
      }
      .sp-action-delete,
      .sp-action-copy {
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
      }
    }
  }
  .sp-pcp-blocks-setting-saved-template-footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    .sp-pcp-blocks-setting-template-pagination {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 8px;

      .sp-pcp-template-pagination-btn {
        display: flex;
        width: 36px;
        height: 36px;
        justify-content: center;
        align-items: center;
        border-radius: 4px;
        border: 1px solid #757575;
        color: #2F2F2F;
        background-color: #FFF;
        box-sizing: border-box;

        &.sp-btn-prev:not(.btn-disabled):hover,
        &.sp-btn-next:not(.btn-disabled):hover {
          color: #FFF;
          background-color: #2F2F2F;
          svg path {
            fill: #fff;
          }
        }

        &.sp-btn-numb:hover,
        &.btn-active {
          color: #FFF;
          background-color: #2F2F2F;
        }
        
        &.btn-disabled {
          background-color: transparent;
          border-color: #ddd;
          svg path {
            fill: #ddd;
          }
        }
      }
    }
  }
  .sp-pcp-saved-template-no-data {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 12px auto;
  }
}

