/*
 *   Copyright (C) 2020-2025 CERN.
 *   Copyright (C) 2020 Northwestern University.
 *   Copyright (C) 2021 Graz University of Technology.
 *   Copyright (C) 2021 New York University.
 *
 * Invenio RDM Records is free software; you can redistribute it and/or modify
 * it under the terms of the MIT License; see LICENSE file for more details.
 */

#licenses ul.details-list,
#licenses dl.details-list {
  list-style-type: none;

  li,
  dd {
    margin: .5rem 0;

    &:first-child {
      margin-top: 0;
      border-top: none;
    }

    &.has-popup {
      background-color: #f9f9f9;
      cursor: pointer;

      &:hover {
        background-color: #f1f1f1;
      }
    }

    div.license {
      display: flex;
      font-size: 1em;

      &.clickable {
        cursor: pointer;
        padding: 1rem;
      }

      .icon-wrap {
        min-width: 3.5rem;
        width: 3.5rem;
        margin-top: .2rem;
        margin-right: .7rem;
        float: left;
        font-weight: normal;

        img.icon {
          width: 100%;
        }
      }

      .title-text {
        display: block;
      }
    }

    div.licenses-description {
      i.close.icon[role="button"] {
        float: right;
        cursor: pointer;
        margin-left: .5rem;
        margin-bottom: .5rem;
      }
    }

    a.license-link {
      display: inline;
      font-weight: normal;
    }
  }
}
