/*!
  *  Copyright (C) 2019 Robert Bosch GmbH Copyright (C) 2019 Robert Bosch Manufacturing Solutions GmbH, Germany. All rights reserved.
 */

@import '@bci-web-core/common-styles/sass/bci/mixins/typography';
@import '@bci-web-core/common-styles/sass/bci/bci-variables';

/* the overlay box */
:host {
  @include make-font-regular(16px);
  background-color: $boschWhite;
  border: 1px solid transparent;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);

  // to fit arrow triangle
  position: relative;
  margin-left: 8px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  width: 220px;
  padding: 16px;
}

/* ..and its little arrow */
:host:after {
  // 5.657px border width result in a triangle of 8px height
  right: calc(100%);
  top: calc(100% - 24px); // little triangle points to the center of the menu-item
  content: ' ';
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
  transform-origin: 0 0;
  transform: rotate(-45deg) translateX(50%);
  border: 5.657px solid #ffffff;
  border-right-color: transparent;
  border-bottom-color: transparent;
  box-shadow: -1.4px -1.4px 2px -1px rgba(0, 0, 0, 0.25);
}

.close-button {
  position: absolute;
  top: 0;
  right: 4px;

  background: transparent;
  border: 0;
  box-shadow: none;

  .Bosch-Ic {
    text-align: center;
  }

  .Bosch-Ic:before {
    font-size: $icon-font-size-normal;
  }
}
