/*!
 * Copyright (C) 2022 StApps
 * This program is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation, version 3.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see <https://www.gnu.org/licenses/>.
 */

@import '../../../../theme/util/mixins';

:host {
  display: block;
  max-width: 100%;

  ion-card {
    padding: 0;
    overflow: visible;

    ion-card-header {
      padding: 0;
      border-bottom: var(--border-width-default) solid var(--border-color-default);

      stapps-data-list-item {
        --ion-margin: 0;

        &::ng-deep ion-item {
          --padding-start: 0;
          --padding-end: 0;

          ion-label {
            white-space: break-spaces;
          }
        }
      }

      .close {
        position: absolute;
        top: -15px;
        right: -15px;
        z-index: 1;
        --padding-top: 0;
        --padding-bottom: 0;
        --padding-start: 0;
        --padding-end: 0;

        ion-icon {
          width: 30px;
          height: 30px;
        }
      }
    }

    ion-card-content {
      padding: var(--spacing-md);
      display: flex;
      flex-direction: row;

      .show-more-button {
        text-transform: uppercase;
        margin-left: auto;
      }
    }
  }
}
