@include export-module('cc-collapsible-layout') {
  .co-collapsible {
    font-family: $cc-collapsible-font-family;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    flex-grow: 0;
    outline: none;
    overflow: hidden;
    font-size: $cc-collapsible-font-size;

    .collapsible-header {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      column-gap: 5px;
      height: $cc-collapsible-height;
      align-items: center;
      cursor: pointer;
      user-select: none;
      border-bottom: $cc-collapsible-border-bottom;
    }

    .collapsible-title {
      font-weight: $cc-collapsible-title-font-weight;
    }

    .collapsible-header-start, .collapsible-header-end {
      display: flex;
      flex-direction: row;
    }

    .expand-icon-wrapper {
      display: flex;
      transition: .3s ease-in-out;
      .expand-icon {
        height: $cc-collapsible-icon-size;
        width: $cc-collapsible-icon-size;
      }
      &.expanded {
        transform: rotate(180deg);
      }
    }

    .collapsible-button-wrapper {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding-left: $cc-collapsible-button-wrapper-padding-left;
      min-width: $cc-collapsible-button-wrapper-min-width;
      cursor: default;
    }

    .collapsible-button {
      border: $cc-collapsible-button-border;
      border-radius: $cc-collapsible-button-border-radius;
      padding: $cc-collapsible-button-padding;
      cursor: pointer;
      font-family: $cc-collapsible-font-family;
      font-size: $cc-collapsible-font-size;
    }

    .collapsible-content {
      overflow: hidden;
      padding: $cc-collapsible-content-padding;
    }
  }
}
