/*
*   Suppliers
*/
.block-suppliers {
    display: flex;
    flex-wrap: wrap;
    margin: 1em -1em;
}

.block-suppliers .block-supplier {
    padding: 0 1em;
    margin-bottom: 2em;
   
}

.block-suppliers .block-supplier .block-supplier-inner {
    padding: 4%;
    padding-top: 9%;
    border: 1px solid var(--wp--preset--color--tertiary);
}

.block-supplier-image {
    position: relative;
    padding-bottom: 28%;
    margin: 0 15%;
}

.block-supplier-image img {
    position: absolute;
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
}

.block-suppliers .block-supplier .button-p {
    display: block;
    margin: 0;
    margin-top: 2em;
    font-size: 14px;
    text-align: right;
}

.block-suppliers .block-supplier p a {
    display: inline-block;
}

/*
*   Categories
*/
.block-categories {
    display: flex;
    margin: 1em -0.25em;
    margin-bottom: 0;
    justify-content: center;
}

.block-categories .block-category {
    flex: 1 1 8.3%;
    width: 100%;
    padding: 0 0.25em;
    max-width: 12.5%;
    cursor: pointer;
}

.block-categories .block-category .block-category-inner {
    padding-bottom: 0%;
    position: relative;
    border: 1px solid var(--wp--preset--color--tertiary);
    transition: background 0.4s ease;
}

.block-categories .block-category .block-category-inner:hover {
    background: var(--wp--preset--color--tertiary);
}

.block-categories .block-category a {
    text-decoration: none;
}

.block-categories .block-category .block-category-inner .block-category-img {
    position: relative;
    padding-bottom: calc(75% - 2em);
    width: 70%;
    margin-left: 15%;
    margin-top: 10%;
    margin-bottom: 15%;
}

.block-categories .block-category .block-category-inner  img {
    object-fit: contain;
    object-position: center;
    position: absolute;
    width: 100%;
    height: 100%;
}

.block-categories .block-category p {
    text-align: center;
    width: 100%;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    color: #404040;
    height: 2em;
    line-height: 1em;
    margin: 0;
    margin-bottom: 0.25em;
}


/*
*   Feature Blocks
*/


.block-feature-blocks {
    display: flex;
    flex-wrap: nowrap;
    margin: 2em -1em;
}

.block-feature-block {
    padding: 0 1em;
}

.block-feature-block .block-feature-block-title {
    display: flex;
    margin-bottom: 1em;
    align-items: center;
}

.block-feature-block .block-feature-block-title .dashicons {
    margin-right: 0.5em;
    font-size: 1.5em;
}

.block-feature-block .block-feature-block-title  .block-feature-block-icon-image {
    max-width: 1.5em;
    width: 100%;
    margin-right: 0.5em;
    max-height: 1.5em;
    height: auto;
}

.block-feature-block .block-feature-block-title h4 {
    margin: 0;
}

.block-feature-block .block-feature-block-image {
    position: relative;
    padding-bottom: 33%;
}

.block-feature-block .block-feature-block-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.block-feature-block .button-p {
    margin: 0px;
}


/*
*   Offer Slider
*/

.block-offer-slider.offer-tiles {
    position: relative;
    margin: 2em 0;
}

.block-offer-slider-inner.offer-tiles-inner {
    flex-wrap: nowrap;
    overflow: hidden;
}

.block-offer-slider .offer-tile {
    transition: transform 0.4s ease;
    opacity: 0;
}


.block-offer-slider .offer-tile.block-offer-slide-active {
    opacity: 1;
}


.block-offer-slider-arrow {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 1.5em;
    height: 1.5em;
    cursor: pointer;
    transform: translateX(-150%);
}

.block-offer-slider-arrow span {
    display: block;
    width: 100%;
    height: 100%;
    border-bottom: 0.25em solid var(--wp--preset--color--primary);
    border-right: 0.25em solid var(--wp--preset--color--primary);
    transform: rotate(135deg) translate(-25%, -85%);
    margin: -10px;
}

.block-offer-slider-arrow.block-offer-slider-arrow-right {
    left: unset;
    right: 0%;
    transform: translateX(150%);
}

.block-offer-slider-arrow.block-offer-slider-arrow-right span {
    transform: rotate(-45deg) translate(-25%, 35%);
}

.block-offer-slider-arrow:before {
    content: "";
    width: 2em;
    height: 3em;
    display: block;
    background: #ffffff8f;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



.editor-styles-wrapper .offer-tiles {
    position: relative;
    margin: 2em 0;
    overflow: hidden;
}

.editor-styles-wrapper .offer-tiles-inner {
    display: flex;
    flex-wrap: nowrap;
    margin: 0 -0.5em;
    align-items: stretch;
    overflow: hidden;
}

.editor-styles-wrapper .offer-tile {
    padding: 0.5em;
    opacity: 1;
}

.editor-styles-wrapper .offer-tile .offer-tile-inner {
    border: 1px solid var(--wp--preset--color--tertiary);
    padding: 0.75em;
    height: 100%;
}

.editor-styles-wrapper .offer-tile-header {
display: flex;
padding-bottom: 0.5em;
}

.editor-styles-wrapper .offer-tile-header .offer-tile-supplier {
flex: 0 1 50%;
position: relative;
padding-bottom: 10%;
overflow: hidden;
height: 100%;
}


.editor-styles-wrapper .offer-tile-header .offer-tile-supplier a {
    display: block;
    width: 100%;
    height: 100%;
}

.editor-styles-wrapper .offer-tile-header .offer-tile-supplier img {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.editor-styles-wrapper .offer-tile-header .offer-tile-categories {
    text-align: right;
    flex: 0 1 50%;
    line-height: 0;
}
.editor-styles-wrapper .offer-tile-header .offer-tile-categories p {
    display: inline-block;
    width: 2.2em;
    height: 2.2em;
    position: relative;
    margin: 0;
    margin-left: 0.5em;
    border: 1px solid #00000091;
    padding: 0.25em;
}
.editor-styles-wrapper .offer-tile-header .offer-tile-categories p a{
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.editor-styles-wrapper .offer-tile-header .offer-tile-categories img {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}


.editor-styles-wrapper .offer-tile-image {
    position: relative;
    padding-bottom: 64.5%;
    overflow: hidden;
    display: block;
    margin-bottom: 0.75em;
}

.editor-styles-wrapper .offer-tile-img {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.editor-styles-wrapper .offer-tile-img.offer-tile-img-rebate {
	object-fit: contain;
    height: 75%;
}

.editor-styles-wrapper .offer-tile-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--wp--preset--color--primary);
    color: white;
    font-weight: 600;
    padding: 0.25em 1em;
    margin: 0;
}


.editor-styles-wrapper .offer-tile-title {
    height: 2.6em;
    overflow-y: hidden;
    margin: 0;
    font-size: 1.125em;
    line-height: 1.3;
}

.editor-styles-wrapper .offer-tile-title a {
 text-decoration: none;
 color: black;
}

.editor-styles-wrapper .offer-tile-cta {
    position: relative;
    padding: 0.25em;
    margin-top: 0.75em;
}

.editor-styles-wrapper .offer-tile-cta a {
    color: white;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    display: block;
    padding: 0 2em;
}

.editor-styles-wrapper .offer-tile-cta .offer-tile-cta-external {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 2em;
    border: 1px solid var(--wp--preset--color--primary);
    background: white;
    text-align: center;
    padding: 0em;
}

.editor-styles-wrapper .offer-tile-cta .offer-tile-cta-external .dashicons {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--wp--preset--color--primary);
    transform: translate(-50%, -50%);
    font-size: 1.2em;
}




/*
*   Login / Logout
*/

.block-login-form, .block-logout-form {
    width: 100%;
    max-width: 350px;
    margin: 2em auto;
    border: 1px solid var(--wp--preset--color--tertiary);
    padding: 1.5em;
    padding-top: 0.5em;
}

.block-login-form h3 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 0.5em;
}

.block-login-form input {
width: 100%;
}

.block-login-form  .gfield-choice-input {
    width: auto;
}

.block-login-form .gform_wrapper.gravity-theme .gfield_required {
display: none;
}

.block-logout-form {
    text-align: center;
}

.block-logout-form .button-p {
    margin-bottom: 0;
}


/* 
Profile Setup
*/

.block-profilesetup {
    display: flex;
    margin: 2em 0;
    margin-top: 0;
    align-items: center;
}

.block-profilesetup .block-profilesetup-progress .account-progress {
    font-size: 12em;
}

.block-profilesetup .block-profilesetup-progress {
    flex: 0 1 25%;
    text-align: center;
    font-weight: 600;
}

.block-profilesetup .block-profilesetup-checklist {
    flex: 1 1 75%;
    padding-left: 2em;
}

.block-profilesetup-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5em;
}

.block-profilesetup-check p {
    margin-top: 0;
    margin-bottom: 0;
}

.block-profilesetup-check h4 {
    margin: 0;
}

.block-profilesetup-check .button-p {
    margin-top: 1em;
}

.block-profilesetup-checkbox {
    font-size: 1.75em;
    width: 1em;
    height: 1em;
    border-radius: 100%;
    border: 2px solid var(--wp--preset--color--tertiary);
    margin-right: 1em;
    flex: 0 0 auto;
}

.block-profilesetup-checkbox .dashicons {
    vertical-align: top;
    font-size: 1.65em;
    transform: translate(-21%, -27%);
    color: #00c110;
}

/* 
Contact Union
*/
.block-contact-union .button-p-a {
    display: inline-block;
    margin-left: 0.5em;
}


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

.adaccordion {
    background-color: unset;
    color: black;
    cursor: pointer;
    padding: 1em 1.5em;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
      margin-top: 1em;
      position: relative;
      border-radius: 0px;
      border: 1px solid var(--wp--preset--color--tertiary);
  }
  
  .adaccordion h4 {
      margin: 0px;
      font-weight: 600;
      color: var(--wp--preset--color--primary);
  }
  
  .adactive, .adaccordion:hover {
   
  }
  
  .adaccordionpanel {
        padding: 0 2%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }
  
  .adaccordion-indicator {
      width: 0.8em;
      height: 0.8em;
      border-bottom-width: 0.2em;
      border-bottom-style: solid;
      border-left-width: 0.2em;
      border-left-style: solid;
      transform: rotate( -45deg);
      transition: 0.4s ease;
      position: absolute;
      top: 29%;
      right: 1.25em;
      border-color: var(--wp--preset--color--primary);
  }
  
  .adactive .adaccordion-indicator {
          transform: rotate(135deg);
          top: 38%;
  }

  
  .edit-post-visual-editor .adaccordion:after {
      content: "Remember to add an 'Advanced Accordion End' Block at the end of your content";
      position: absolute;
      bottom:0px;
      left: 50%;
      transform: translate(-50%, 100%);
      padding: 0.2em 0.5em;
      font-size: 11px;
      color: #00000057;
  }









  




/*
Laptops
*/

@media only screen and (max-width: 1200px) {
	
        /*
    *   Categories
    */

    .block-categories {
        flex-wrap: wrap;
    }

    .block-categories .block-category {
        flex: 0 1 12.5%;
        max-width: 12.5%;
        margin-bottom: 0.5em;
    }

    .block-categories .block-category .block-category-inner img {

    }

    .block-categories .block-category p {
        line-height: 1em;
        margin-bottom: 0.25em;
    }

}



/*
Tablet
*/

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

    /*
    *   Suppliers
    */

    .block-suppliers {
        margin: 1em -0.25em;
    }

    .block-suppliers .block-supplier {
        margin-bottom: 0.5em;
        padding: 0 0.25em;
    }

    .block-suppliers .block-supplier .block-supplier-inner {
        padding: 4% 10%;
    }

    .block-supplier-image {
        padding-bottom: 50%;
        margin: 0 5%;
    }

    .block-suppliers .block-supplier .button-p {
        display: none;
    }


    /*
    Feature Blocks
    */
    .block-feature-blocks {
        flex-wrap: wrap;
    }

    .block-feature-blocks .block-feature-block {
        margin-bottom: 3em;
    }


    /*
    *   Categories
    */

    .block-categories .block-category {
        flex: 0 1 16.66%;
        max-width: 16.66%;
    }

        /*
    *   Profile Setup
    */

    .block-profilesetup {
        flex-wrap: wrap;
    }

    .block-profilesetup .block-profilesetup-progress {
        flex: 1 0 100%;
    }

    .block-profilesetup .block-profilesetup-checklist {
        flex: 1 0 100%;
        padding-left: 0em;
    }

    .block-profilesetup .block-profilesetup-progress .account-progress {
        font-size: 10em;
    }



}


/*
Mobile
*/

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

    .block-suppliers .block-supplier .block-supplier-inner {
        padding: 7%;
    }

    .block-supplier-image {
        padding-bottom: 70%;
        margin: 0;
    }



    /*
    *   Acordion
    */

    .adaccordion {
        padding: 0.75em;
    }



        /*
    *   Categories
    */

    .block-categories .block-category {
        flex: 0 1 33.33%;
        max-width: 33.33%;
    }


     /*
    *   Profile Setup
    */

    .block-profilesetup .block-profilesetup-progress .account-progress {
        font-size: 8em;
    }

}
