:host {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  z-index: 100;
  height: 100%;
  width: 100%;
  pointer-events: none;
  h2 {
    font-weight: 600;
  }
  h3 {
    font-weight: 600;
  }
  .mat-toolbar {
    &.mat-primary {
      box-shadow: none;
      padding: 0;
      background: transparent;
      height: 40px;
      justify-content: space-between;
    }
    .mat-icon {
      height: 20px;
      width: 20px;
      font-size: 20px;
      line-height: 20px;
    }
  }
  .hd-toolbar-spacer {
    display: flex;
    flex-basis: 100%;
  }

  .toast-wrapper {
    height: auto;
    position: absolute;
    top: 0;
    left: 50%;
    user-select: none;
    pointer-events: none;
    background: #74B77F;
    padding: 30px;
    border-radius: 0 0 10px 10px;
    min-width: 150px;
    max-width: 90%;
    color: white;
    text-align: center;
    transform: translate(-50%, -100%);

    &.warning {
      background: #F17300;
    }

    &.error {
      background: #CC2936
    }
  }


  /* Elements located in Furniture Manager plugin*/

  ::ng-deep {
    & .drawer__header {
      display: flex;
      align-items: center;
      min-height: 40px;
      margin-bottom: 16px;

      h2 {
        margin: 0;
        margin-right: auto;
        font-weight: 600;
      }
    }
    & .mat-headline-6 {
      font-weight: 600;
    }
    & .mat-subtitle-1 {
      font-weight: 600;
    }
    & mat-tab-header,
    & .FileDrop {
      margin-bottom: 16px;
    }

    /* Fix Floor/Wall panel width caused by mat-tab-label default styles */
    /* TODO(mdc-migration): The following rule targets internal classes of tabs that may no longer apply for the MDC version.*/
    & .tab--skin ::ng-deep .mat-tab-label {
      height: 52px;
      min-width: auto;
    }
  }

  /* Should fix an issue where mat-toolbar-row white-break property value conflicts with p elements */
  /* Should force text to go at the next line */
  ::ng-deep .drawer p {
    white-space: pre-wrap;
  }

  /* Specific to sidebars */
  ::ng-deep .mat-divider {
    margin: 16px 0 24px;
  }

  // TODO: in Ang. Mat v7, set hasBackdrop property on mat-drawer
  ::ng-deep .mat-drawer-backdrop {
    display: none;
  }
}

.storage-error {
  min-width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  align-self: center;
  border-radius: 50%;
  justify-content: center;
  background: white;
  color: #cc0000;
  font-size: 25px;
  font-weight: bold;
}

.layer--toolbar {
  display: flex;
  flex-direction: column;
}

.toolbar {
  display: flex;
  z-index: 101;
  flex-wrap: nowrap;
  .menu-icon {
    min-width: 50px;
    display: flex;
    justify-content: center;
    margin-left: -16px;
  }
  .left-toolbar,
  .right-toolbar {
    display: flex;
    align-items: center;
    background: #da9803;
    border-radius: 0 0 10px 0;
    padding: 0 20px 0 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    height: 100%;
    gap: 12px;
  }
  .right-toolbar {
    border-radius: 0 0 0 10px;
    padding: 0 5px 0 10px;
    &.modified {
      padding: 0 5px 0 0;
    }
  }
  .share-button {
    height: 100%;
    padding: 0 15px;
    border-radius: 0 0 0 10px;
    border: none;
    color: #ffffff;
    background-color: #2c67ff;
    cursor: pointer;
  }
  .toolbar-icon-list {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .toolbar-icon-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    gap: 5px;
    border-right: 1px solid #ffffff61;
    &:last-child {
      border-right: none;
    }
    &:first-child {
      border-left: 1px solid #ffffff61;
      margin-left: 10px;
    }
  }
  .toolbar-icon {
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    co-icon ::ng-deep {
      width: 20px;
      height: 20px;
      svg,
      path {
        fill: #FFF;
      }
    }
    co-icon.loading-green ::ng-deep {
      svg, path {
        fill: #74B77F;
      }
    }
    co-icon.loading-orange ::ng-deep {
      svg, path {
        fill: #F17300;
      }
    }
    co-icon.loading-yellow ::ng-deep {
      svg, path {
        fill: #CC2936;
      }
    }
    co-icon.loading-red ::ng-deep {
      svg, path {
        fill: #CC2936;
      }
    }
    &.search co-icon {
      height: 30px;
      width: 30px;
    }
    &.disabled {
      cursor: default;
      co-icon ::ng-deep svg {
        fill: rgba(0, 0, 0, 0.26);
      }
    }
  }
}

.toolbar-logo {
  height: 20px;
}

.secondary-logo {
  margin-left: 20px;
}

.toolbar__nav {
  display: flex;
  flex-direction: row;
  padding-top: 0;
}

.toolbar__nav .mat-mdc-list-item {
  color: white;
  height: 40px;
}

.toolbar-row {
  flex: auto;
  display: flex;
  flex-direction: column;
  //align-items: stretch;
  padding: 0;
  pointer-events: none;
  position: relative;
  align-items: baseline;
  height: 100%;
}
::ng-deep mat-toolbar-row {
  .toolbar--secondary {
    width: 50px;
    padding: 15px 0;
    //height: auto;
    flex-direction: column;
    background: #17253391;
    height: 100%;
    gap: 5px;
    button ::ng-deep {
      width: 30px;
      height: 30px;
      line-height: 30px;
      color: #FFFFFF;
      display: flex;
      justify-content: center;
    }
    .add-to-cart-button {
      button ::ng-deep {
        color: #da9803;
      }
    }
  }
}

.toolbar--secondary .drawer {
  flex: auto;
  pointer-events: none;
  background: transparent;
}

.wip-card {
  margin-left: 5px;
  padding: 0 10px;
  color: white;
  background-color: #7a828a;
  .mat-mdc-card-content {
    font-size: 12px;
  }
}

.drawer-container {
  position: static;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.drawer {
  width: 420px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  left: 50px;
}
::ng-deep rp-category-library {
  .mat-mdc-list-item ::ng-deep {
    border-color: #747c84;
  }
  .mdc-list-item__primary-text {
    color: #000000;
  }
  .mdc-list-item:hover .mdc-list-item__primary-text {
    color: #000000;
  }
}
.toolbar,
.toolbar--secondary > *,
.drawer-container > *,
.drawer > * {
  pointer-events: all;
}

.drawer__button {
  min-width: initial;
  padding: 0;
  border: none;
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 50%;
}

.blinker {
  animation: blinker 1s linear infinite;
}
.badge-tooltip {
  position: relative;
  .mat-badge {
    position: absolute;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    right: -2px;
    bottom: 13px;
    .mat-badge-content {
      background-color: transparent;
      color: #b71c1c;
      border: 1px solid #b71c1c;
      animation: bounce 2s ease-out;
      animation-iteration-count: infinite;
      right: initial;
      left: initial;
      position: relative;
      height: 12px;
      width: 12px;
      line-height: 12px;
      font-size: 10px;
      bottom: initial;
    }
  }
}


::ng-deep .tooltip-red {
  background: #b71c1c;
}

@keyframes bounce {
  0%   { transform: scale(1,1)      translateY(0); }
  10%  { transform: scale(1.1,.9)   translateY(0); }
  30%  { transform: scale(.9,1.1)   translateY(-20px); }
  50%  { transform: scale(1.05,.95) translateY(0); }
  57%  { transform: scale(1,1)      translateY(-7px); }
  64%  { transform: scale(1,1)      translateY(0); }
  100% { transform: scale(1,1)      translateY(0); }
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

::ng-deep .mat-mdc-menu-panel {
  width: 256px !important;

  .mat-mdc-menu-content {
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    padding-right: 10px;
  }
}

::ng-deep mat-drawer-content.mat-drawer-content {
  display: flex;
  height: 100%;
  flex-direction: column;
}
