/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
$divider-color: var(--iui-color-background-disabled);
$hovered-icon-color: var(--iui-color-icon-accent);

.map-manager-basemap {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  margin-bottom: 15px;

  * {
    box-sizing: border-box;
  }

  .map-manager-base-header {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 5px;
  }

  .map-manager-base-label {
    margin-left: 2px;
    padding-right: 10px;
  }

  .map-manager-base-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;

    & .iui-select {
      overflow: hidden;
    }

    .map-manager-base-item-select {
      width: 100%; // makes the Select control fill empty space on the right
    }

    button.map-manager-base-settings-button {
      border: none;
      margin-left: 4px;
      background-color: transparent;
      color: var(--iui-color-text-muted);

      &:hover {
        background-color: transparent;
        color: $hovered-icon-color;
      }
    }

    .uicore-reactSelectTop {
      width: 100%;
      line-height: inherit;
    }

    .map-manager-base-item-select {
      height: 2em;
      width: 100%;
      min-width: 100px;
      margin-right: 6px;
    }

    .map-manager-base-item-transparency {
      max-width: 160px;
      width: 160px;
      display: flex;
      justify-content: center;
      margin-right: 6px;
    }

    .map-manager-base-item-color.components-color-swatch {
      min-inline-size: var(--iui-size-l);
      min-block-size: var(--iui-size-l);
      margin-inline: var(--iui-size-2xs);
      padding: 0;
      border: 0;

      .iui-color-swatch {
        pointer-events: none;
      }
    }
  }
}
