/* Accordion
----------------------------------------------------------------- */

.wp-block-acf-accordion {

  .block-accordion {
    cursor: pointer;
    padding: 1em 1.5em;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: 0.15s;
    margin-top: 0.75em;
    position: relative;
    border-radius: 0px;
    background: var(--wp--preset--color--secondary);

    h5 {
      margin: 0px;
      font-weight: 600;
      color: white;
      padding-right: 5%;
    }

    .block-accordion-indicator {
      width: 0.8em;
      height: 0.8em;
      border-width: 0;
      border-bottom-width: 0.2em;
      border-bottom-style: solid;
      border-left-width: 0.2em;
      border-left-style: solid;
      transform: rotate(-45deg);
      transition: 0.15s ease;
      position: absolute;
      top: 29%;
      right: 1.25em;
      border-color: white;
    }

    &.block-accordion-active .block-accordion-indicator {
      transform: rotate(135deg);
      top: 38%;
    }
  }

  .block-accordion-panel {
    padding: 0 2%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.15s ease-out;
    margin-bottom: 0.5em;
    color: initial;
    background: #f6f6f6;
    width: 100%;

    .acf-innerblocks-container {
      padding: 0em;


      > :first-child {
        margin-top: 1em;
      }

      > :last-child {
        margin-bottom: 1em;
      }
    }
  }



  &.has-background .block-accordion {
    background: inherit;
  }

  &.has-text-color h5 {
    color: inherit;
  }

}


/* WP Editor Styles */
.editor-styles-wrapper .block-accordion-panel {
  max-height: unset;
  position: relative;
}

.editor-styles-wrapper .block-accordion-panel .acf-innerblocks-container,
.editor-styles-wrapper .block-accordion-panel .acf-innerblocks-container .wp-block-group.has-background {
  position: unset;
}



/* Search Bar
----------------------------------------------------------------- */

.block-searchbar.searchbar-form {
  position: relative;
  flex: 1 0 auto;

  label {
    position: absolute;
    top: 50%;
    left: 1em;
    width: 1.25em;
    height: 1.25em;
    pointer-events: none;
    transform: translateY(-50%);
  }

  input {
    padding: 1em 2em 1em 3em;
    border: 1px solid var(--wp--preset--color--quaternary);
    width: 100%;
    font-size: 1em;

    &::placeholder {
      color: #627a83;
    }
  }

  button {
    display: none;
  }
}


/* WP Editor Styles */
.editor-styles-wrapper {}




/* Feature Titles
----------------------------------------------------------------- */

/* Define the custom color properties */
@property --gradient-start {
  syntax: '<color>';
  initial-value: white;
  inherits: false;
}

@property --gradient-end {
  syntax: '<color>';
  initial-value: white;
  inherits: false;
}

.block-featuretitles {
  display: flex;
  background: var(--wp--preset--color--white);
  border-radius: 0.5em;
  overflow: clip;
  border: 1px solid #ecf2ee;



  .block-featuretitle {
    padding: 2em;
    padding-right: 0em;
    flex: 1;
    transition: --gradient-start 0.3s ease, --gradient-end 0.3s ease;

    background: linear-gradient(45deg, rgb(255, 255, 255) 0%, rgb(255, 255, 255) 99%);
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));


    .block-featuretitle-inner {
      padding-right: 2em;
      height: 100%;
      border-right: 1px solid var(--wp--preset--color--quaternary);
      transition: 0.3s border-right-color ease;

      .block-featuretitle-icon {
        font-size: 2.3em;
        color: var(--wp--preset--color--primary);
        transition: 0.3s opacity ease;
      }

      .block-featuretitle-content {
        position: relative;
        padding-top: 0.5em;
        transition: 0.3s padding ease, 0.3s transform ease;
        margin-bottom: 1.2em;

        .block-featuretitle-link-a {
          text-decoration: none;

          &:hover {
            color: inherit;
          }
        }

        .block-featuretitle-title {
          margin: 0;
          margin-bottom: 0.5em;
          font-size: 1.4em;
          font-weight: 500;
          max-width: 270px;
        }


        .block-featuretitle-description {
          position: absolute;
          opacity: 0;
          transition: 0.3s opacity ease;
        }

      }

      .block-featuretitle-link {
        transition: 0.2s opacity ease;
        font-weight: 500;
        text-decoration: none;
      }
    }

    &:hover {
      --gradient-start: rgb(0, 137, 86);
      --gradient-end: rgb(17, 78, 44);
      color: white;
      

      .block-featuretitle-inner {
        border-right-color: transparent;

        .block-featuretitle-icon {
          opacity: 0;
        }

        .block-featuretitle-content {
          transform: translateY(-3em);

          .block-featuretitle-description {
            opacity: 1;
          }

        }

        .block-featuretitle-link {
          opacity: 0;
        }
      }
    }

    &:last-child {
      .block-featuretitle-inner {
        border-right: none;
      }
    }


  }
}



/* WP Editor Styles */
.editor-styles-wrapper {}






/* Next Block..
----------------------------------------------------------------- */

/* WP Editor Styles */
.editor-styles-wrapper {}

/* Next Block..
----------------------------------------------------------------- */

/* WP Editor Styles */
.editor-styles-wrapper {}

/* Next Block..
----------------------------------------------------------------- */

/* WP Editor Styles */
.editor-styles-wrapper {}


/* MOBILE
--------------------------------------------- */

@media only screen and (max-width: 1024px) {}

@media only screen and (max-width: 768px) {}

@media only screen and (max-width: 500px) {

  /* Accordion
----------------------------------------------------------------- */
  .block-accordion {
    padding: 0.5em 1em;
  }

}