.wrap {
  flex: 0 0 100%;
  background: #ffffff;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.1);
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: 20px;
  padding: 20px;
}

.wrapNoBg {
  flex: 0 0 100%;
  padding: 20px 0 0 0;
}

.wrapBottomSpacing {
  flex: 0 0 100%;
  padding: 20px 0 20px 0;
}

.searchForm {
  width: 100%;
  display: flex;
}

.intro {
  display: none;
  @media (min-width: 782px) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 10px 0 12px;
  }
  @media (min-width: 1220px) {
    background-image: url("../../../images/elements-header-photo.png");
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: auto auto;
    padding-left: 368px;
    max-width: 500px;
    min-height: 271px;
  }

  p {
    font-size: 15px;
    color: #767676;
  }
}

.introTitle {
  margin: 0 0 5px;
  font-weight: 100;
  color: #444;
  font-size: 31px;
  line-height: 35px;
}

.searchText {
  max-width: 570px;
  flex: 1;
  position: relative;
}

.searchTextSubmit {
  position: absolute;
  right: 5px;
  top: 0;
  width: 26px;
  height: 40px;
  background: url("../../../images/icon-search.svg") no-repeat center 8px;
  cursor: pointer;
  border: 0;
  overflow: hidden;
  text-indent: -999px;
  opacity: 0.6;
  transition: opacity 0.3s;
  &:hover{
    opacity: 1;
  }
  &:active,
  &:focus{
    outline: 0;
  }
}
.searchTextReset {
  position: absolute;
  left: 101%;
  top: 0;
  width: 90px;
  text-align: left;
  height: 40px;
  cursor: pointer;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: #909090;
  &:active,
  &:focus{
    outline: 0;
  }
}
.searchTotalItems{
  color: #979797;
  position: absolute;
  left: 102%;
  font-size: 13px;
  width: 300px;
  top: 30%;
}
.searchFilter {
  max-width: 570px;
  display: flex;
  padding: 10px;
  width: 100%;
}
.viewToggle {
  background: transparent;
  border: 0;
  height: 35px;
  padding: 0 20px 0 0;
  width: 100px;
  color: #767676;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  vertical-align: middle;
  justify-content: space-between;
  line-height: 20px;
}
.viewToggleGridIcon path,
.viewToggleMasonryIcon path{
  fill: #9EA3A8;
}
.viewToggleGrid {
  .viewToggleGridIcon path {
    fill: #0878B0;
  }
}
.viewToggleMasonry{
  .viewToggleMasonryIcon path {
    fill: #0878B0;
  }
}

.filter {
  flex: 1;
}
.filterLabel {
  height: 35px;
  margin-right: 10px;
  padding: 0 20px 0 9px;
  line-height: 35px;
  color: #767676;
  background: #fff;
  border: 1px solid #dddddd;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  &:after {
    content: "\f345";
    opacity: 0.7;
    margin-top: 0px;
    font-family: dashicons;
    position: absolute;
    right: 7px;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform 0.1s ease;
  }
}
.filterAttributes {
  position: absolute;
  left: -1px;
  right: -1px;
  display: none;
  padding: 12px;
  background: #fff;
  border: 1px solid #dddddd;
  white-space: nowrap;
  z-index: 8;
}
.filterAttributesWide{
  width: 200px;
  .filterAttribute{
    flex: 1 1 50%;
  }
}
.filterAttributeCheckbox[type=radio] {
  border: 1px solid #b4b9be;
  background: #fff;
  color: #555;
  clear: none;
  cursor: pointer;
  display: inline-block;
  line-height: 0;
  height: 16px;
  margin: -4px 10px 0 0;
  outline: 0;
  padding: 0!important;
  text-align: center;
  vertical-align: middle;
  width: 16px;
  min-width: 16px;
  -webkit-appearance: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
  transition: .05s border-color ease-in-out;
}

[type=checkbox].filterAttributeCheckboxColor {
  width: 30px;
  height: 20px;
  border: 0;
  border-radius: 5px;
  &:before{
    float: left;
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    font: normal 21px/1 dashicons;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  &:checked:before{
    margin: 0px 0 0 4px;
    color: #fff;
    content: "\f147";
  }
  &--pink{
    background-color: #FF85CA;
  }
  &--red{
    background-color: #EF3962;
  }
  &--orange{
    background-color: #FB7058;
  }
  &--yellow{
    background-color: #FEE757;
  }
  &--green{
    background-color: #1ACB7E;
  }
  &--teal{
    background-color: #1DDAC2;
  }
  &--blue{
    background-color: #349FE5;
  }
  &--purple{
    background-color: #8966B7;
  }
  &--brown{
    background-color: #7F5D60;
  }
  &--black{
    background-color: #010101;
  }
  &--grey{
    background-color: #D6D3E3;
  }
  &--white{
    background-color: #FFFFFF;
    border: 1px solid #EEEEEE;
  }
  &--yellow,
  &--white{
    &:checked:before {
      color: #000;
    }
  }
}
.filter {
  &:hover {
    .filterLabel:after {
      transform: rotate(90deg);
    }
    .filterAttributes {
      display: flex;
      flex-wrap: wrap;
    }
  }
}

.tagFilter {
  padding: 0 10px;
}
.tagCurrent,
.tag {
  display: inline-block;
  margin: 0 1px;
  padding: 3px;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: #0073aa;
}
.tagCurrent {
  text-decoration: underline;
}


.pageTitle{
  padding: 1px 0 25px;
}
.pageTitleHeading{
  font-weight: 100;
  color: #444;
  font-size: 31px;
  line-height: 35px;
  margin: 25px 0 10px;
}
.pageTitleCount{
  font-size: 15px;
  color: #767676;
}

.autoComplete{
  position: absolute;
  z-index: 10;
  background: #FFFFFF;
  border: 1px solid #9EA3A8;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin-top: 5px;
  padding: 15px 0;
  min-width: 250px;
}

.autoCompleteEntry{

}
.autoCompleteButton{
  background: transparent;
  cursor: pointer;
  padding: 6px 19px;
  color: #767676;
  border: 0;
  box-sizing: border-box;
  font-size: 15px;
  width: 100%;
  text-align: left;
  &:hover{
    background: #EEEEEE;
  }
}

.searchBasicFilters{
  display: none;
  flex: 0 0 150px;
  margin: 0 0 0 auto;
  @media (min-width: 782px) {
    display: flex;
    justify-content: right;
    align-items: center;
  }
  .filterAttributes{
    left: auto;
  }
}

.premiumNotice {
  background: #fff;
  margin: 20px 0;
  position: relative;
  padding: 0;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  display: flex;
}

.premiumText {
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  @media (min-width: 1000px) {
    min-height: 260px;
    max-width: 580px;
  }

  p {
    font-size: 15px;
    color: #767676;
  }
}

.premiumImage {
  display: none;
  background-image: url("../../../images/premium-template-kits.png");
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% auto;
  flex: 0 0 30%;
  @media (min-width: 500px) {
    display: block;
  }
  @media (min-width: 1000px) {
    flex: 1;
  }
  max-width: 495px;
}

.premiumCloseButton {
  position: absolute;
  right: 20px;
  top: 20px;
  display: block;
  padding: 0 14px;
  cursor: pointer;
  color: #919191;
  border: 0;
  background: transparent;
}
