/**
 * Copyright 2022 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* Mostly copied from mat-expansion-panel. */
.expansion-box {
  background: white;
  border-radius: 4px;
  box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
    0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  box-sizing: content-box;
  color: rgba(0, 0, 0, 0.87);
  cursor: pointer;
  display: block;
  margin: 0;
  overflow: hidden;
  padding-bottom: 16px;
  padding-top: 16px;
  transition: margin 225ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mostly copied from mat-expandsion-panel-header. */
.expansion-box-header {
  align-items: center;
  border-radius: inherit;
  display: flex;
  flex-direction: row;
  height: 80px;
  padding: 0 24px;
  transition: height 0.3s;
}

.box-header {
  height: 100%;
  width: 100%;
}

.box-toggle {
  align-items: center;
  align-self: flex-start;
  display: flex;
  height: 80px;
}

.box-toggle.disabled {
  color: rgb(192, 194, 195);
}

.expansion-box-header.panel-open {
  height: fit-content;
}

.expansion-box-body {
  height: 0;
  padding: 0 24px;
  transition: height 0.3s;
  visibility: hidden;
}

.expansion-box-body.panel-open {
  height: 16em;
  visibility: visible;
}
