#communities > div {
  padding-left: 24px;
  padding-right: 24px;

  solid-display-value-markdown p {
    margin: 0 0 10px 0;
  }

  solid-display-value-markdown ul {
    margin: 0 0 10px 0;
    padding: 0 0 10px 10px;
    list-style: disc inside;
  }
}

.community-profile {
  communities-join-leave-button {
    display: none;
  }

  .communities-edit-button {
    display: flex;
    justify-content: flex-end;
    gap: 16px;

    > *,
    solid-link {
      margin: 0 !important;
    }

    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 8px;
    }
  }

  // Disable base community background
  > div:nth-child(2) {
    background: none;
    box-shadow: none;
  }

  .communities-logo {
    display: block;
    height: 155px;
    width: 100%;

    div {
      background-position: 50%;
      background-repeat: no-repeat;
      background-size: contain;
      display: block;
      height: 100%;
      width: 100%;
    }
  }
}

// Position of the "Info" and "Message" buttons in the card
.tzcld-territory-profile-primary-contact {
  .send-display {
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1;
  }

  .view-display {
    position: absolute;
    right: 60px;
    top: 20px;
    z-index: 1;
  }
}

tzcld-my-territory-detail {
  .scrollbar-content > [data-view] {
    padding: 24px;
  }
}

// Sidebar
tzcld-my-territory-sidebar {
  width: 72px;

  [class^="tz2icon-"]:before,
  [class*=" tz2icon-"]:before {
    color: var(--color-heading);
  }

  solid-route[active] {
    background-color: var(--color-heading);
    color: white;

    [class^="tz2icon-"]:before,
    [class*=" tz2icon-"]:before {
      color: #fff;
    }
  }

  solid-route:hover:not([active]) {
    background-color: #e4e4e4;
  }
}

tzcld-followup-request-actions,
customtzcld-form-territory-project-team-member,
customtzcld-form-territory-political-senator,
customtzcld-form-territory-political-deputy,
customtzcld-form-territory-adhesion {
  solid-delete button {
    vertical-align: baseline;
  }
  solid-delete button,
  solid-link,
  a {
    padding: 0;
    color: var(--color-secondary);
    text-decoration: none;
  }
  solid-link:hover,
  a:hover {
    color: var(--color-primary);
  }
  solid-delete button:hover {
    color: #f05;
  }
  .text-primary button {
    text-decoration: underline;
    color: var(--color-primary);
    &:hover {
      color: #f05;
      text-decoration: none;
    }
  }
  button.text-primary,
  a.text-primary {
    color: var(--color-primary);
    &:hover {
      color: var(--color-secondary);
    }
  }
}

customtzcld-form-territory-project-team-member,
customtzcld-form-territory-political-senator,
customtzcld-form-territory-political-deputy,
customtzcld-form-territory-adhesion {
  box-sizing: border-box;
  display: inline-block;
  position: relative;
  white-space: normal;
  width: 100%;
  margin-bottom: 15px;
}

tzcld-tzcld-community-secondary-contacts-widget,
tzcld-regions-referents-widget {
  .segment.avatar-wrapper {
    display: block;

    .avatar.medium {
      height: 100%;
      width: 100%;
    }
  }
}
