@include export-module('co-search-layout') {
  .co-search {
    font-family: $co-search-font-family;
    font-size: $co-search-font-size;
    display: block;

    .search-main-wrapper {
      display: flex;
      width: 100%;
      height: 100%;
    }

    .search-wrapper {
      display: flex;
      &.fullscreen {
        width: 100%;
        transition: width 0.2s ease-in-out;
      }
      &.sidebar {
        width: $co-search-searchbar-width;
        transition: all 0.2s ease-in-out;
        &.collapsed {
          transform: translate(-$co-search-searchbar-width);
          width: 0;
          height: 0;
        }
        &.expanded {
          transform: translate(0);
        }
      }
    }
    .search-filter-panel {
      display: flex;
      min-width: $co-search-filter-wrapper-min-width;
      min-height: $co-search-filter-wrapper-min-height;

      &.sidebar {
        position: absolute;
        left: 0;
        transition: left 0.2s ease-in-out;
        z-index: 2;
        background: #FFF;
        min-width: $co-search-filter-wrapper-sidebar-min-width;
      }
      &.fullscreen {
        position: relative;
        left: 0;
        transition: left 0.2s ease-in-out;
      }
    }

    .search-header-result-wrapper {
      width: $co-search-header-result-wrapper-width;
      min-height: $co-search-header-result-wrapper-min-height;
    }

    .search-result {
      display: flex;
      overflow-y: auto;
      flex-basis: 100%;
      justify-content: flex-start;
      padding: $co-search-result-wrapper-padding;
      > div {
        width: 100%;
      }
    }

    .search-content-wrapper {
      display: block;
      width: 100%;
      &.fullscreen {
        display: none;
      }
    }
    & > co-icon-collapse-handle {
      position: absolute;
      flex-shrink: 0;
      top: 50vh;
      &.fullscreen {
        opacity: 0;
      }
      &.sidebar {
        transition: all 0.2s ease-in-out;
        &.collapsed {
          opacity: 0;
          transform: translate(0) rotate(90deg);
        }
        &.expanded {
          opacity: 1;
          transition-delay: 0.2s;
          transition-property: opacity;
          transform: translate($co-search-searchbar-width - 17px) rotate(90deg);
        }
      }
    }
  }
}
