/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.ouiCardSelect {
  // Option select button that expands to sides and bottom
  @include ouiCardBottomNodePosition;
  font-weight: $ouiFontWeightBold;

  // Create button modifiers based upon the map.
  @each $name, $color in $ouiCardSelectButtonBackgrounds {
    &--#{$name}:enabled {
      background-color: $color;

      // Custom success text color since it doesn't exist on OuiButtonEmpty
      @if ($name == 'success') {
        color: makeHighContrastColor($ouiColorSuccess, $color);
      }
    }
  }

  &:disabled {
    background-color: $ouiPageBackgroundColor;
  }
}
